Skills

Parametric CAD Modeling

Builds and edits parametric CAD parts as Python models and exports STEP, STL and GLB.

Install

npx skills add earthtojake/text-to-cad --skill cad -g -a claude-code -y
Category
Design
Updated
3d ago
License
MIT
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Creates and edits parametric CAD parts and assemblies as Python build123d models that cadgen's engine builds and the CAD Viewer shows live; exports STEP, STL, 3MF, GLB and xbf files on request; resolves prompt references, measures geometry, and articulates or animates assemblies. Use for 3D CAD modeling, editing a model script (any change to a part's or assembly's `.py`), organizing a CAD project, exporting or converting CAD files, Quick Edit prompts, mechanisms, and explode or showcase animations. Opens and reviews existing XBF, STEP/STP, STL, 3MF and GLB files in the CAD Viewer.

CAD modeling and inspection

Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files for the current interface.

A model is a Python function; running its script rebuilds it in cadgen's warm engine, and the page the person has open updates. Files are exports, made when asked.

Start with the task

TaskStart withReference
Create or edit a part or assemblyThe project's model script, or a new one (below).Models, build123d, positioning
Organize a CAD projectThe project's existing layout.Project layout
Export STEP, STL, 3MF, GLB or xbfcadgen export <id> <file>.Exports
Use a vendor STEP, an xbf or a scan in a modelread_step, read_xbf or read_mesh in the body.Inputs
Resolve a reference from a promptcadgen inspect <id> '<ref>'.References
Measure or check geometryA check script that calls the model.Inspection
See a model, a view or a posecadgen snapshot <id> out.png.Snapshots
Articulate a mechanismbuild123d joints in the body, then cadgen.ap242.Kinematics
Explode, reveal or showcase a modelcadgen.gltf's animation() in the body.Animation
Open an existing XBF, STEP/STP, STL, 3MF or GLBShow it to the user.Show the model

A project built with cadgen 0.7 may need migrating: see migrations.

Read the whole SKILL.md on GitHub

More in Design