Prompt-CAD / harness
AGENTS.md2 starsChanged 6 months agoMITView on GitHub
This repository is a harness for script-driven CAD and robot-description generation with coding agents. AGENTS.md is for repository-level operating rules only. Domain workflows, validation rules, Explorer/link behavior, rendering policy, CLI details, dependency setup, and generator contracts live in the relevant agent skills and their references. Do not duplicate reusable skill methodology in this file. Skill location and packaging may vary by agent; rely on the active agent's skill-discovery mechanism. If you are modifying CAD Explorer itself, use the CAD Explorer…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository26 other files it gives its agents.
- harness/CLAUDE.mdCLAUDE.md
- auto-kinematicsSkill
- real-time-bom-costingSkill
- cadSkill
- camSkill
- competitor-benchmarkSkill
- regulatory-compliance-checkerSkill
- semantic-design-intent-memorySkill
- drawing-generatorSkill
- enterprise-vaultSkill
- esg-analyzerSkill
- exploded-viewSkill
- fastener-standard-enforcerSkill
- feaSkill
- multi-physics-cosimulationSkill
- patent-detectorSkill
- predictive-maintenanceSkill
- renderSkill
- scan-to-codeSkill
- sdfSkill
- sendcutsendSkill
- sketch-to-cadSkill
- srdfSkill
- step-partsSkill
- tolerance-stackup-analyzerSkill
- urdfSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Do not duplicate reusable skill methodology in this file.
- Distinctive: line 15
If you are modifying CAD Explorer itself, use the CAD Explorer documentation provided with the render skill or local project documentation.
- Distinctive: line 35
Prefer the repo-local CAD runtime when it exists:
- Very specific: line 41
If .venv is missing or cannot import required CAD runtime modules, create or install the environment from the repo root using the …
- Distinctive: line 53
Do not hand-edit derived artifacts unless explicitly instructed.
- Distinctive: line 57
If regenerated output differs from checked-in generated files, the regenerated output is authoritative.
- Distinctive: line 62
Keep project files in explicit repo-relative locations.
- Distinctive: line 64
Use explicit generation targets.
- Distinctive: line 69
Update project-local documentation only when project focus, entry roles, inventory, dependency notes, durable quirks, or preferred rebuild …
- Distinctive: line 85
Never disable LFS filters for git add, commits, or other object-writing operations.
- Distinctive: line 90
Start with the narrowest source-only search that can identify directly affected files.
- Distinctive: line 96
If the first pass makes scope clear, edit the source first and validate after.
- Distinctive: line 98
Do not run mutable generation, inspection, and render/review steps in parallel against geometry that is still changing in the same edit …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This repository is a harness for script-driven CAD and robot-description generation with coding agents.
AGENTS.md is for repository-level operating rules only. Domain workflows,
validation rules, Explorer/link behavior, rendering policy, CLI details,
dependency setup, and generator contracts live in the relevant agent skills and
their references.
Do not duplicate reusable skill methodology in this file. Skill location and packaging may vary by agent; rely on the active agent's skill-discovery mechanism.
If you are modifying CAD Explorer itself, use the CAD Explorer documentation provided with the render skill or local project documentation.
Harness context
Project files are repo-relative. This harness does not reserve a project-file
directory. Project entries may live at the repository root under folders such as
STEP/, STL/, DXF/, and 3MF/, or in another explicit repo-relative
layout chosen by the project.
Skill tools are file-targeted. They do not depend on a harness layout and do not prepend a project root.
Project-specific context may live in compact root-level notes such as
PROJECT.md. Do not copy reusable skill workflow rules, validation policy,
Explorer/link rules, image-review policy, generator contracts, or full CLI
syntax into project notes; refer to the relevant skill reference instead.
Python environment
Prefer the repo-local CAD runtime when it exists:
./.venv/bin/pythonIf .venv is missing or cannot import required CAD runtime modules, create or
install the environment from the repo root using the dependency instructions
provided by the relevant CAD skill.
Other bundled workflows own their own dependency setup. Install those dependencies only when using those workflows.
Source of truth
Generated CAD files, URDF, SDF, and SRDF files, Explorer sidecars, renders, topology, meshes, and flat-pattern artifacts are derived artifacts.
Do not hand-edit derived artifacts unless explicitly instructed. Edit the owning source file or imported source file first, then regenerate the explicit target with the relevant skill tool.
If regenerated output differs from checked-in generated files, the regenerated output is authoritative.
Repo policies
Keep project files in explicit repo-relative locations.
Use explicit generation targets. Do not run directory-wide generation.
Generation tools write and overwrite configured outputs. They do not delete stale outputs when paths change.
Update project-local documentation only when project focus, entry roles, inventory, dependency notes, durable quirks, or preferred rebuild roots change.
CAD outputs are often LFS-tracked. Prefer path-limited git status during CAD
work, especially while generated files are changing.
For bookkeeping-only full status, use:
git -c filter.lfs.clean= \
-c filter.lfs.smudge= \
-c filter.lfs.process= \
-c filter.lfs.required=false \
status --shortNever disable LFS filters for git add, commits, or other object-writing
operations.
Execution notes
Start with the narrowest source-only search that can identify directly affected files.
Exclude generated artifacts, binary CAD files, caches, and build outputs from default searches unless the task explicitly targets them.
If the first pass makes scope clear, edit the source first and validate after.
Do not run mutable generation, inspection, and render/review steps in parallel against geometry that is still changing in the same edit loop. Rebuild first, then inspect, then review.
In cloud or constrained environments, avoid full-repo hydration when affected entries are known. Fetch only the needed inputs, generated outputs, and LFS objects for the entries being edited and explicitly regenerated.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

