Skip to main content

For agents

Read the repo contract first

AGENTS.md is the authoritative agent guide. Testing strategy defines markers, test groups, and the just test-unit → full-suite workflow. This page is a pointer — do not treat the docs site as a substitute for AGENTS.md.

Summary​

  1. Structure — parts in cad/parts/, assemblies in cad/assemblies/, three-layer pattern (make_* → @artifact / @customizable)
  2. Testing loop — just test-unit while implementing; targeted test-integration / test-render / test-functional when those areas change; full suite only at completion (Testing strategy)
  3. Completion gate — just ci or just quality && just export-smoke before marking work done
  4. Visual verify — after geometry edits to cad/ (or main.py display wiring), start just view in the background immediately so the user sees live updates in OCP CAD Viewer; re-launch on every geometry edit (independent of test runs)
  5. MakerRepo — from mr import artifact, customizable, cached; decorators on entry points only
  6. External libs — use bd_warehouse, bd-vslot, etc. for catalog geometry; thin-wrap in cad/parts/
  7. Part colors — assign part.color on leaf Part solids; validate top-level @artifact PNGs when using nested multi-color compounds (AGENTS.md — Part preview colors, troubleshooting)
  8. just command tests — destructive recipes (just init, just template-apply, …) only in tests/functional/ via isolated_repo + run_just() — never on the real repo root (AGENTS.md → Testing just commands; markers in Testing strategy)

Documentation work​

Follow the Documentation section in AGENTS.md. Keep the docs shaped like an iceberg: README for the pitch and shortest path, the docs intro as the concept map, quick start for first success, and deeper pages for technical detail.

No doc drift (mandatory)​

Whenever you change code, config, justfile, or workflows:

  1. Open the matching guide under website/docs/ and confirm it still describes current behavior.
  2. Search website/docs/, README.md, AGENTS.md, and cad_tooling/README.md for the old command names, paths, and strings you replaced.
  3. Update every reference in the same change — links, tables, and examples included.

Full rules: Keep docs in sync (mandatory) in AGENTS.md.

Troubleshooting pages​

When you debug container, viewer, MCP, Dagger/CI, export, or GitHub setup issues, check the troubleshooting index and add any new reproducible symptom/fix to the matching page in the same change. Routing table and style: Troubleshooting documentation in AGENTS.md.

Template identity: edit template.repo.toml, then just init — or pass just init --owner … --repo …. Create and initialize your repository.