Agent skill · text-to-cad
/cad Model real parts in Python and check they can be made
The core skill of text-to-cad. The agent writes each part or assembly as a decorated build123d function, rebuilds it through a local server that keeps a live viewer page in sync, and verifies every change with asserts, check scripts, interference tests and snapshots. When you name a process, the part is designed for it from the first line and checked after each run.
Works with
- macOS and Linux
- Windows PowerShell
When to use it
- You want a bracket, enclosure or mechanism as an editable parametric model rather than a one-off mesh.
- A part has to be machined, bent from sheet, molded or printed and you want limits applied while modelling.
- You need STEP, STL, 3MF, GLB or DXF files exported from one source of truth.
How it works
- 1Write the model
Defines each configuration as a parameterless model function that calls a helper holding the dimensions, and keeps the calls under the script's main guard.
- 2Run and read the delta
Builds with cad run, then reads the printed parts, bounds, joints and sequences and fixes any mismatch with the intent first.
- 3Verify the change
Checks given numbers with asserts on measured geometry, assemblies with the interference command at each pose, and appearance with targeted snapshots.
- 4Design for the process
Reads the process reference before modelling, records material and shop flags in the model, and reruns the manufacturing check after every edit.
- 5Hand off
Reports the models and files produced, checks run and results, unchecked requirements and any assumption, and shares the viewer link once.
What it steers the agent away from
- Reading dimensions off a rendered picture instead of measuring the geometry.
- Quietly dropping or shrinking a requested fillet or feature to get a build to pass.
- Treating a check that could not decide as a pass.
Install this skill
It installs with the text-to-cad pack.
macOS and Linux (all detected agent apps)Sets up the plugin or skills in each agent app and registers the cad command; run again to update.
curl -fsSL https://texttocad.dev/install.sh | shWindows PowerShell (all detected agent apps)The Windows equivalent of the shell installer; per-app manual steps are in docs/install.md.
irm https://www.texttocad.dev/install.ps1 | iexCommands come from the author’s README; check it for changes before you run them.
Questions
What units and axes does it use?
Millimetres, with positive Z pointing up.
Does every run write files?
No. Running a script only rebuilds the model in the server; files are written when you ask for an export or keep an exports script.
More guides from text-to-cad
/feaFind out whether a part will hold before you build itRuns linear static stress studies with netgen and CalculiX, reporting peak von Mises stress, safety factor and deflection on the part.Read the guide →/pcbEdit and review KiCad boards with checks at every stepEdits native KiCad schematics and boards, runs ERC and DRC, routes nets and reviews the board against a fab's limits before export.Read the guide →
Also in this pack
/renderRenders stills, turntables and motion films of a model in Blender, drafting in EEVEE before a final Cycles pass on the GPU.↗/robot-simulationGenerates or hand-writes URDF, SRDF and MJCF robot descriptions for ROS, MoveIt and MuJoCo, with joints, inertials and collision setup.↗/sendcutsendPreflights DXF and STEP uploads for SendCutSend orders against its current guide, catalog and specs for material, thickness and services.↗
Summary by trendhub. The skill itself lives in earthtojake/text-to-cad/skills/cad by earthtojake (MIT); read the full, current text there.