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:
| Change | Start here | Run before opening a PR |
|---|---|---|
| CAD geometry, parameters, or assemblies | Parts and assemblies, Testing strategy | just quality, then just view for visual review |
| Export behavior or release artifacts | Export and formats, MakerRepo | just quality, just export-smoke |
Tooling, justfile, or quality checks | uv and quality tools, Just commands | just ci |
| GitHub Actions, Dagger, or publishing | CI/CD pipeline and Dagger, Releases | just ci |
| Documentation only | The page you are changing, plus nearby linked pages | just 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 viewor 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
justcommands - 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:
- Rebase or merge the latest
main. - Run the checks that match your change.
- Review your own diff for generated files, stale links, and accidental formatting churn.
- 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:
- Export and CI/CD pipeline troubleshooting
- Dagger and Docker troubleshooting
- Dev Container troubleshooting
- OCP viewer troubleshooting
If the failure points to unfamiliar software terms, check the glossary first.