tamayotchi/dotfiles/forgecad-component-model
Claude Code and agent skill by tamayotchi/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Enforce the ForgeCAD Component Model when building multi-part assemblies. Parts build at origin, connectors position them, data flows down from parent. Use when building or reviewing any multi-file ForgeCAD project.
Install
npx vskill@latest install tamayotchi/dotfiles/forgecad-component-modelSKILL.md
The same SKILL.md was published earlier as tamayotchi/dotfiles/forgecad-component-model.
Component Model — The React of CAD
You are building a ForgeCAD multi-part assembly. Follow the Component Model strictly.
The Core Principle
Parts never position themselves. The assembly positions them via connectors.
A part is a function from props to { shape, connectors, metadata }. It builds at origin in local space. It doesn't know where it sits in the world.
Rules (Non-Negotiable)
1. Parts Build at Origin
- Geometry starts at
[0, 0, 0]in local coordinates - No assembly-space offsets (no
translate(pinionPitchR, 0, layout.pinionZ)) - Internal structure computed from the part's own props only
2. Connectors Are the Interface
- Every part that joins an assembly declares connectors via
.withConnectors({}) - A connector = origin + axis (outward from the part)
- Connectors meet face-to-face: both axes point outward, system brings them together
- For prismatic joints: axes point along the shared slide direction
3. Assembly Is Pure Composition
addPart()+connect()+addJointCoupling()— nothing else- Zero
translate()calls for structural parts - Zero coordinate math
- The assembly passes props down and reads metadata up
4. Data Flows Down, Never Sideways
- Props down: Assembly passes dimensions to parts via
require('./part.forge.js', { Height: 20 }) - Metadata up: Parts return
{ shape, boltPattern, pinionZ, ... }— computed values the parent might pass to siblings - Siblings never import each other. The assembly mediates ALL sibling communication
5. Verify, Don't console.log
- Use
verify.that("name", () => condition)for spatial checks - Use
verify.equal(),verify.inRange(),verify.notColliding()for specific assertions - Never
console.log+iffor validation
Connector Convention
Part Return Shape
Every part file returns a structured object:
File Structure
Default: one file for project-specific assemblies. Parts are sections within the file. Shared data is variables. Split into separate files only when parts are reusable or the file exceeds ~300 lines.
Anti-Patterns (Reject These)
❌ shared-dims.js — A file whose only job is computing derived dimensions. The assembly should derive and pass them.
❌ Sibling imports — require('./motor-mount.forge.js') inside cover-plate.forge.js. Data flows through the parent.
❌ Assembly-space coordinates in parts — A part knowing pinionZ = 14 from a sibling's geometry. It should receive rackZ: 14 as a prop.
❌ `translate()` in assembly — If you're translating to position a part, add a connector instead.
❌ console.log validation — Use verify.*. Always.
❌ Bare `connector.neutral()` — Use connector() without gender unless building a reusable component library with compatibility checking.
Design Gate
Before committing any multi-part assembly, verify:
- Can you understand each part without reading other files?
- Does the assembly contain zero coordinate math?
- Do all inter-part relationships flow through connectors and props?
If any answer is no, refactor.
Reference
Full philosophy: docs/permanent/component-model.md Connector details: docs/permanent/generated/assembly.md Blueprint-first: docs/permanent/blueprint-first.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmy-forgecad-project/.agents/skills/forgecad-component-model/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tamayotchi/dotfiles/forgecad-component-model)