Skip to main content

Contributing

This template treats parametric CAD like software. A good contribution should leave the model, generated artifacts, and documentation in a state that another person can reproduce from source.

You do not need to be a CI/CD pipeline expert to contribute. Use the project commands, keep the change small, and make the pull request easy to review.

Start from a focused change​

Before editing, decide what kind of change you are making:

ChangeStart hereRun before opening a PR
CAD geometry, parameters, or assembliesParts and assemblies, Testing strategyjust quality, then just view for visual review
Export behavior or release artifactsExport and formats, MakerRepojust quality, just export-smoke
Tooling, justfile, or quality checksuv and quality tools, Just commandsjust ci
GitHub Actions, Dagger, or publishingCI/CD pipeline and Dagger, Releasesjust ci
Documentation onlyThe page you are changing, plus nearby linked pagesjust docs-build

Small PRs are easier to review. Keep each one focused on a single model change, workflow change, or docs cleanup.

Local checks​

Use the smallest relevant test loop while editing, then run the broader gate before opening a PR:

just test-unit # quick loop for pure logic, config, and discovery changes
just test-integration # CAD geometry and export paths
just test-render # headless OCP PNG rendering
just test-functional # isolated just CLI recipes
just quality # lint + full pytest; run before opening a PR

See Testing strategy for markers and test groups.

If you changed model geometry, also open the viewer:

just view

If you changed export registration or artifact generation, run the export smoke check:

just export-smoke

If you changed broad behavior, project commands, dependencies, or the CI/CD pipeline, run the full local gate:

just ci

See uv and quality tools for what each check proves and how to fix common failures.

Keep CAD changes reviewable​

A CAD-as-Code PR should explain the design change and show that it still builds from source.

When relevant, include:

  • the part or assembly you changed
  • the parameter or dimension you intended to change
  • screenshots from just view or generated preview images
  • the commands you ran
  • any export artifacts that should change

Avoid hand-editing generated files unless the docs for that workflow explicitly say to do so. The source model should remain the thing reviewers reason about.

Keep documentation in sync​

If you change behavior, update the docs in the same PR. Common examples:

  • new or renamed just commands
  • changed export formats or artifact names
  • new workflow requirements
  • GitHub Actions or release behavior changes
  • model conventions or project layout changes

Useful places to check:

Keep the docs layered. The README should sell the project and route people to the first step. The docs intro should map the system. Deeper pages should hold the technical detail.

Commits and pull requests​

Use Conventional Commits for commit titles:

feat: add adjustable bracket width
fix: correct enclosure wall clearance
docs: clarify release setup
deps: update docs dependencies

Before opening a PR:

  1. Rebase or merge the latest main.
  2. Run the checks that match your change.
  3. Review your own diff for generated files, stale links, and accidental formatting churn.
  4. Write a short PR description with the goal, the important changes, and the checks you ran.

PRs are squash-merged to main, so a clean final PR title matters more than a long commit stack.

Documentation preview​

For docs changes, run the site locally:

just docs-install
just docs-start

Before handing the PR off, build it:

just docs-build

A docs build can surface broken links and Mermaid syntax problems that are easy to miss in plain Markdown.

When something fails​

Do not work around a failing check by deleting the check or weakening the command. Fix the model, test, export registration, or documentation that caused the failure.

Start with the focused troubleshooting pages:

If the failure points to unfamiliar software terms, check the glossary first.