Cad Codegen — Development skill for Claude Code
/cad-codegen — 从 CAD_SPEC.md 生成 CadQuery 脚手架代码.
How to install Cad Codegen
Installs to ~/.claude/commands/proecheng-cad-spec-gen-cad-codegen.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/proecheng/cad-spec-gen/HEAD/.claude/commands/cad-codegen.md -o ~/.claude/commands/proecheng-cad-spec-gen-cad-codegen.md Restart Claude Code, or start a new session, for it to be picked up.
What Cad Codegen does
/cad-codegen — 从 CAD_SPEC.md 生成 CadQuery 脚手架代码
用户输入: $ARGUMENTS
指令
从 CAD_SPEC.md 的结构化数据,通过 Jinja2 模板自动生成 CadQuery Python 脚本。
前置条件
- 目标子系统目录下已有
CAD_SPEC.md(由/cad-spec生成) - 已安装 Jinja2(
pip install Jinja2)
路由规则
**无参数** → 显示用法:
用法: /cad-codegen [--force] 示例: /cad-codegen end_effector # scaffold 模式(不覆盖已有文件) /cad-codegen end_effector --force # 强制覆盖全部生成文件 /cad-codegen 充电对接机构 # 支持中文别名**`<子系统名>`**
Alternatives in Development
- Agent3dify — 2D to 3D CAD Conversion Using Coding Agent 33 ★
- Autonomous Desk — Open source smart desk Pro - CAD, electronics, assembly guide 9 ★
- Autoconst Cad To Excel Claude — Turn a construction CAD file (DWG/DXF) into a structured Excel takeoff 6 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Text2print
Claude Code skill for parametric 3D printing with CadQuery
Codegen
Run build_runner code generation and verify the output
Engineering Agent Skills
Claude/Copilot Agent Skills for EDA, PCB, RF, IoT, CAD, 3D Print engineering automation
FreeCAD MCP By Staf 37
FreeCAD MCP by staf_37 — local CAD automation for Codex, Claude Code, Cursor and VS Code; cross-platform setup
Cad Taxmap
Claude Code skill for extracting property lines from county GIS portals into CAD (DXF)
Blender Skill
Blender automation marketplace for Claude Code — blender-remote MCP, CAD import, materials, and Cycles/CUDA re
Related Agents
Mechanical Cad Engineer
Turns a physical-part spec (dimensions, mounting features, material intent) into a real parametric solid model
Cross Backend Reviewer
Reviews Slang emit/codegen changes for consistency across all target backends.
Shep Tsp Field Adder
Adds ONE new field (property, enum value, or base-type extension) to a TypeSpec model in tsp/, re-runs codegen