semantic-design-intent-memory
Skill2 starsChanged 6 months agoMITView on GitHub
A semantic vector database to log and query the engineering rationale behind CAD decisions.
In this repository26 other files it gives its agents.
- harness/AGENTS.mdAGENTS.md
- harness/CLAUDE.mdCLAUDE.md
- auto-kinematicsSkill
- real-time-bom-costingSkill
- cadSkill
- camSkill
- competitor-benchmarkSkill
- regulatory-compliance-checkerSkill
- 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
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Very specific: line 9
Every time you make a functional geometric decision in a build123d script (e.g.
- Distinctive: line 29
Before changing an existing feature, ask the database *why* it was designed that way to avoid breaking a constraint.
- Distinctive: line 37
If a human asks for a design review or a regulatory compliance report (e.g.
- Distinctive: line 45
BE SPECIFIC: Don't write "Added holes".
- Distinctive: line 46
SEMANTIC SEARCH: Use natural language for queries.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Semantic Design Intent Memory
This skill enforces a crucial engineering best practice: documenting the why, not just the what.
Every time you make a functional geometric decision in a build123d script (e.g. choosing a wall thickness, adding a chamfer, picking a tolerance), you MUST log that decision into the design memory.
This allows future agents (or humans) to ask "Why did we make this part out of aluminum instead of steel?" and instantly retrieve the engineering rationale.
How to Use
The memory is stored locally in .cad_memory/. You interact with it via the CLI tool skills/design-memory/scripts/memory.py.
1. Logging a Decision
Whenever you modify CAD geometry, run the log command. Provide the feature name, the engineering intent/rationale, the file you modified, and the line number.
python skills/design-memory/scripts/memory.py log \
--feature "Base Plate Ribs" \
--intent "Added 3mm stiffening ribs to reduce bending stress under 500N load, keeping total mass under 200g." \
--file "bracket.py" \
--line 452. Querying Past Decisions
Before changing an existing feature, ask the database why it was designed that way to avoid breaking a constraint.
python skills/design-memory/scripts/memory.py query "Why is the base plate so thick?"Output will semantically match the closest logged rationale.
3. Generating an Audit Trail
If a human asks for a design review or a regulatory compliance report (e.g. ISO 9001), export the entire memory to a Markdown file.
python skills/design-memory/scripts/memory.py export --output design_audit.mdRules for Agents
- NO SILENT CHANGES: You must log an intent for every significant geometric addition or modification.
- BE SPECIFIC: Don't write "Added holes". Write "Added M4 clearance holes spaced at 31mm to conform to the NEMA 17 stepper motor mounting standard."
- SEMANTIC SEARCH: Use natural language for queries. You don't need exact keywords.
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.

