Help us improve
Share bugs, ideas, or general feedback.
From cad
Creates and modifies parametric CAD models from natural-language specs, generates validated STEP/STP files, and produces secondary DXF/STL/3MF/GLB outputs via build123d/Python.
npx claudepluginhub earthtojake/text-to-cad --plugin cadHow this skill is triggered — by the user, by Claude, or both
Slash command
/cad:cadThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create or modify parametric CAD models from natural-language requirements, generate validated STEP/STP artifacts, inspect geometry references, and return checked outputs. Treat STEP as the primary CAD artifact. Treat DXF, STL, 3MF, and native GLB as secondary workflows that branch from, or accompany, a STEP-first process. For assemblies, prefer source-level build123d joints and named mating dat...
LICENSEagents/openai.yamlassets/design-brief-template.mdreferences/build123d-modeling.mdreferences/dxf.mdreferences/inspection-and-validation.mdreferences/natural-language-specs.mdreferences/parameters.mdreferences/positioning.mdreferences/repair-loop.mdreferences/snapshot-review.mdreferences/step-generation.mdreferences/supported-exports.mdrequirements.txtscripts/cadpy_common/__init__.pyscripts/cadpy_common/assembly_composition.pyscripts/cadpy_common/assembly_export.pyscripts/cadpy_common/assembly_flatten.pyscripts/cadpy_common/assembly_spec.pyscripts/cadpy_common/cad_ref_syntax.pyCAD modeling with build123d Python library. Use when creating 3D models, exporting to GLB/STEP/STL, or doing boolean operations (union, difference, intersection). Triggers on: CAD, 3D modeling, sphere, box, cylinder, mesh export, GLB, STEP, STL, solid modeling, parametric design, threads, fasteners, bolts, nuts, screws, gears, pipes, flanges, bearings, bd_warehouse, spur gear, helical gear, bevel gear, planetary gear, ring gear, cycloid gear, rack and pinion, gggears, herringbone, gear mesh, gear train.
Reviews DXF and STEP/STP uploads for SendCutSend orders, checking ordering guide, catalog, and specs for readiness. Use for preflight reports before submitting to SendCutSend.
Guides Onshape CAD operations via onshape-mcp plugin with protocols for render/entity workflows, units/coordinates, FeatureScript, iteration, and gotchas like REMOVE-on-face auto-flip. Load before any Onshape builds.
Share bugs, ideas, or general feedback.
Create or modify parametric CAD models from natural-language requirements, generate validated STEP/STP artifacts, inspect geometry references, and return checked outputs. Treat STEP as the primary CAD artifact. Treat DXF, STL, 3MF, and native GLB as secondary workflows that branch from, or accompany, a STEP-first process. For assemblies, prefer source-level build123d joints and named mating datums when the parts have functional assembly relationships.
Use this skill when the user asks for CAD files, STEP/STP files, build123d source, @cad[...] references, mechanical parts, assemblies, enclosures, brackets, fixtures, holes, counterbores, countersinks, slots, pockets, bosses, standoffs, ribs, fillets, chamfers, shells, source-level joints, mating, or measurements.
Also use it when the user asks for DXF, STL, 3MF, or native GLB output from CAD geometry. Keep those workflows secondary and load dxf.md or supported-exports.md for details.
Do not use this skill for render-only concept art, CAM toolpaths, engineering certification, FEA conclusions, architectural BIM, or freehand illustration unless the user also needs CAD geometry.
Use these defaults unless the user specifies otherwise. These are first-pass modeling defaults, not manufacturability, tolerance, or certification claims:
Ask one focused clarification question only when missing information makes the model impossible, fit-critical, safety-critical, or compliance-bound. Otherwise proceed with explicit assumptions.
Do not ask the user to provide a JSON specification and do not make JSON the user-facing workflow. Convert the user's prose into an internal CAD brief with dimensions, features, assumptions, output paths, and validation criteria. Use references/natural-language-specs.md for brief-writing patterns.
Keep these roots separate:
scripts/step, scripts/snapshot, scripts/inspect, and scripts/dxf.Short command examples in this skill use launcher paths relative to the CAD skill directory. Adapt the launcher path or target path so project CAD files resolve from the intended workspace, not accidentally under the skill directory.
Prefer keeping a STEP output and its Python generator in the same directory so the source stays easy to discover. Unless the user explicitly requests otherwise, keep the STEP basename and generator basename the same even when they cannot live side by side.
From the CAD skill directory, the launcher shape is:
python scripts/step ...
python scripts/snapshot ...
python scripts/inspect ...
python scripts/dxf ...
Use the active project Python interpreter. Treat python in examples as an interpreter placeholder; if bare python is unavailable or lacks dependencies, substitute python3, a project virtualenv interpreter, or the configured interpreter path while keeping the root model above explicit.
Use python scripts/<tool> --help for the complete current command interface; reference docs show recommended workflows, not every flag.
$step-parts before creating simplified placeholder geometry. If no exact match is found, record the miss and then use a documented envelope.gen_step() for STEP generation.scripts/step for STEP/STP generation, GLB/topology artifacts, and sidecars. When a Python generator exists, its GLB/topology artifact is Python-backed even when the STEP is also written. Use --kind part or --kind assembly only for direct STEP/STP imports. Use --skip-step-write only when explicitly generating a Python-backed GLB/topology artifact without writing STEP. Do not run directory-wide generation.scripts/inspect refs --facts --planes --positioning, then targeted measure, mate, frame, or diff when needed.scripts/snapshot against the primary STEP/STP artifact for visual verification/review. Do not skip snapshots for speed, convenience, confidence, or because deterministic checks passed. Skip only when references/snapshot-review.md says no visible geometry changed or no valid artifact exists, and report that reason. Use PNGs for static reviews and GIFs for motion/animation reviews; scripts/inspect, measurements, mating checks, frames, and diffs are complementary, not replacements.After completing CAD work that creates or modifies .step, .stp, .stl, .3mf, .dxf, or native .glb artifacts, you must ALWAYS hand the explicit file path(s) to $cad-viewer when that skill is installed. $cad-viewer must start CAD Viewer if it is not already running and return link(s) to the relevant created or updated file(s); include those live viewer link(s) in the final response. If $cad-viewer is unavailable or startup fails, report that instead of silently omitting the handoff.
When verification snapshots are generated, also include the saved PNG/GIF snapshot(s) in the final response. If no snapshot applies, or if snapshot generation fails, say why and report the deterministic validation that still ran.
scripts/step on the generator. Use a direct STEP/STP target only when the generator is unavailable or the user explicitly identifies that STEP/STP file as the target.Location transforms, or build123d joints. Treat CLI inspect mate as read-only validation, not as a source-editing API.git status, git diff, or file-size churn as CAD comparison for large exported STEP/STP, GLB/topology, STL, 3MF, or DXF artifacts. Compare source changes, scripts/inspect summaries, primary STEP/STP CAD scripts/snapshot outputs, or generated topology output instead; use path-limited git status only for bookkeeping.$cad-viewer is unavailable or fails, say so and rely on CLI inspection for validation.Load these files only when their trigger applies:
references/natural-language-specs.md — converting prose requirements into a CAD brief without requiring user JSON.references/parameters.md — parameter, control, and animation design best practices.references/step-generation.md — STEP generation, direct STEP/STP targets, part-vs-assembly behavior, and post-generation inspection.references/inspection-and-validation.md — validation gates, @cad[...] refs, facts, planes, topology, measurements, mating, diff, frame, and final validation reporting.references/snapshot-review.md — risk-based snapshot triggers, small snapshot packets, targeted visual views, multimodal critique, and converting visual findings into geometry checks.references/positioning.md — part-local datums, assembly transforms, build123d joints, CLI mate validation, and positioning reports.references/dxf.md — secondary DXF workflow.references/supported-exports.md — secondary STL/3MF/native GLB sidecar workflows.references/build123d-modeling.md — build123d modeling patterns, topology, selectors, features, assemblies.references/repair-loop.md — diagnosis and repair procedures.Final responses should include generated files, returned $cad-viewer viewer links, verification snapshots, validation actually run, assumptions, and caveats. Use references/inspection-and-validation.md for report structure.