text-to-cad

Introduction: An open source harness for generating CAD models
More: Author   ReportBugs   
Tags:
Demo of the CAD skill generating and previewing CAD geometry
 ██████╗ █████╗ ██████╗       ███████╗██╗  ██╗██╗██╗     ██╗     ███████╗
██╔════╝██╔══██╗██╔══██╗      ██╔════╝██║ ██╔╝██║██║     ██║     ██╔════╝
██║     ███████║██║  ██║      ███████╗█████╔╝ ██║██║     ██║     ███████╗
██║     ██╔══██║██║  ██║      ╚════██║██╔═██╗ ██║██║     ██║     ╚════██║
╚██████╗██║  ██║██████╔╝      ███████║██║  ██╗██║███████╗███████╗███████║
 ╚═════╝╚═╝  ╚═╝╚═════╝       ╚══════╝╚═╝  ╚═╝╚═╝╚══════╝╚══════╝╚══════╝

A skills library for CAD, robotics, and hardware design agents

Docs | Demo

GitHub stars GitHub forks License: MIT Follow @earthtojake Python build123d OCP STEP STL 3MF URDF SDF SRDF

CAD Skills is a library of agent skills for generating, inspecting, sourcing, slicing, and handing off CAD and robot-description artifacts from local project files.

🧰 Skills

Install the library to give agents focused workflows for CAD, fabrication, robot description files, simulation, and local review.

Skill Summary Source
CAD Creates and edits CAD models from plain-language or image requests, with STEP as the main output along with options to export to STL, 3MF and GLB. skills/cad
CAD Viewer Shows local browser previews for CAD, G-code, and robot files. skills/cad-viewer
step.parts Finds off-the-shelf STEP parts like screws, bearings, motors, and connectors. skills/step-parts
URDF Writes robot structure files with links, joints, limits, inertials, and meshes. skills/urdf
SRDF Adds MoveIt planning groups, end effectors, poses, and collision rules to a URDF. skills/srdf
SDF Creates simulator models and worlds with frames, physics, sensors, and lights. skills/sdf
SendCutSend Checks DXF and STEP files before upload to SendCutSend. skills/sendcutsend
G-code Slices supported mesh files into validated, printer-profiled FDM .gcode with real slicer CLIs. skills/gcode
Bambu Labs Dry-runs, uploads, and cautiously starts local Bambu Lab print jobs from validated .gcode. skills/bambu-labs

💻 Installation

For production use, install or clone from main; that branch contains the generated skill/plugin outputs needed by provider installers.

Skills

Install CAD Skills with the Skills CLI:

npx skills install earthtojake/text-to-cad

This is the preferred installation path. It installs the individual skills directly for supported agents.

Plugins

Provider-native plugin installs are also available for Codex and Claude Code:

# Codex
codex plugin marketplace add earthtojake/text-to-cad
codex plugin add cad@text-to-cad
# Claude Code
claude plugin marketplace add earthtojake/text-to-cad
claude plugin install cad@text-to-cad

Restart your agent if newly installed skills do not appear. For local development, branch from develop, open PRs against develop, and use the symlink workflow in CONTRIBUTING.md.

📸 Screenshots

CAD skill demo showing generated geometry in CAD Viewer CAD URDF skill demo showing robot description output in CAD Viewer URDF SRDF MoveIt2 skill demo showing inverse kinematics in CAD Viewer SRDF / MoveIt2

🧪 Benchmarks

The repo stores heavyweight assets in assets/** and benchmarks/** through Git LFS and excludes those trees from default LFS pulls so lightweight clones do not fetch GIF assets. Benchmark markdown remains normal Git for readable diffs. To hydrate only the benchmark assets locally, run:

git lfs pull --include="benchmarks/**"
# Target Prompt Output
1 Rectangular calibration block with four holes Create a centered 100 x 60 x 20 mm block with four 8 mm vertical through-holes. Add only a 2 mm chamfer on the top outer perimeter. Rectangular calibration block orbit gif
2 Circular flange with bolt-hole pattern Create an 80 mm diameter, 10 mm thick circular flange with a 30 mm central through-bore. Add six 6 mm through-holes on a 60 mm bolt circle and fillet the outside circular edges. Circular flange orbit gif
3 L-bracket with gussets and two hole directions Create an L-bracket from a base plate and rear vertical plate. Add vertical base holes, horizontal back-plate holes, two triangular gussets, and a filleted base/back transition. L-bracket orbit gif
4 Stepped shaft with keyway Create a 120 mm shaft along X with 20/30/20 mm diameter stepped sections. Add end chamfers and a shallow rectangular keyway on top of the middle section. Stepped shaft orbit gif
5 Open-top electronics enclosure with bosses Create a hollow open-top enclosure with 3 mm walls and floor. Add four internal standoffs with centered blind holes and 2 mm outside vertical corner fillets. Open-top electronics enclosure orbit gif
6 Aerospace-style clevis bracket with lightening cutouts Create a symmetric clevis bracket with a base plate, two rounded lugs, base mounting holes, and a horizontal lug bore. Add triangular lightening cutouts, reinforcing ribs, and rounded transitions. Clevis bracket orbit gif
7 Radial-engine-style cylinder with cooling fins Create a vertical engine-cylinder form with a central barrel, 12 cooling fins, a base flange, and a top cap. Add a 35 degree angled spark-plug boss with a coaxial through-hole. Radial-engine-style cylinder orbit gif
8 Centrifugal impeller with backward-curved blades Create a centrifugal impeller with a backplate, hub, and through-bore. Add 12 fused backward-curved blades sweeping about 45 degrees from root to tip. Centrifugal impeller orbit gif
9 Spiral staircase with helical handrail Create a miniature spiral staircase with a central column, base disk, and 20 rising wedge treads. Add a one-revolution helical handrail and vertical balusters at the tread outer ends. Spiral staircase orbit gif
10 Simplified planetary gear stage Create a flat planetary gear assembly with separate sun, planet, ring, carrier, and pin bodies. Use simplified trapezoidal teeth and place three planets around the sun on a 42 mm radius circle. Planetary gear stage orbit gif

🛠️ Contributing

Development happens from the develop branch; open PRs against develop, not main. For local contribution workflow, skill linking, and validation guidance, see CONTRIBUTING.md.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools
AI Daily Digest