Project layout
.
├── template.repo.toml # Org/repo identity — edit after "Use this template", then just init
├── AGENTS.md # Agent conventions
├── README.md # Template landing page
├── .cursor/ # MCP wiring (IDE → in-container servers)
├── .makerrepo/config.yaml # MakerRepo defaults
├── .github/
│ └── workflows/ # CI/CD pipeline, release, docs
├── ci/ # Dagger module
├── .devcontainer/ # Dev container + OCP VSIX install
├── cad/
│ ├── assets/ # Committed third-party reference files (images, meshes, STEP, …)
│ ├── parts/ # Reusable parametric parts
│ └── assemblies/ # Composed products
├── cad_tooling/ # Export, render, release helpers
├── justfile # Dev, export, and CI/CD pipeline commands
├── main.py # Viewer entry (not model logic)
├── tests/ # CAD model tests
└── cad_tooling_tests/ # Tooling unit tests
Directory responsibilities
| Path | Purpose |
|---|---|
cad/assets/ | Third-party reference files (images, meshes, SVG, STEP) + manifests — see Third-party assets |
cad/parts/ | Single reusable components; builders + MR decorators |
cad/assemblies/ | Products composed from parts; placement and patterns |
cad_tooling/ | Export, headless render, release notes |
main.py | Thin viewer demo — import builders, call show_object |
tests/ | Geometry, export, MakerRepo discovery tests |
Where to add code
- New reusable part →
cad/parts/<name>.py - New product →
cad/assemblies/<name>.py(import fromcad.parts) - Export/CI/CD pipeline helper →
cad_tooling/(not incad/)
See Parts & assemblies for the three-layer pattern.
After cloning from the template
| Task | Guide |
|---|---|
| One-time GitHub.com settings | Set up GitHub |
| First GitHub Release | Releases |
| Rename repo / fix docs URL | Edit template.repo.toml, then just init or just template-apply — Create and initialize your repository |