sdf
Skill17k starsChanged 57 days agoMITView on GitHub
SDFormat/SDF model and world authoring, validation, and simulator handoff. Use for `.sdf` files, SDFormat XML, models, worlds, links, joints, poses, frames, inertials, visual/collision geometry, mesh URIs, sensors, lights, physics, plugins, includes, Gazebo, static SDF review, or simulator-specific metadata. Do not use for signed-distance-field geometry. Open and visually review existing SDF files in CAD Viewer.
3 other projects use a version of this, 3 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- saint0x/my-skillsedited, first seen Aug 29, 2026
- tlinedeep/claude-skillsedited, first seen Jun 3, 2026
- gugu-2/Prompt-CADedited, first seen May 29, 2026
Who's talking about earthtojake/text-to-cad
- A Hacker News story“Text-to-CAD”Hacker News · May 1, 2026 · 186 points
- @camilleroux.com“Text-to-CAD open source : décrivez une pièce ou un mécanisme en langage naturel, laissez un agent (Codex, …”Bluesky · May 18, 2026 · 14 likes
- @davepentecost.bsky.social“github.com/earthtojake/...”Bluesky · Jul 28, 2026 · 2 likes
- A Hacker News story“Text-to-CAD: Generate 3D models with coding agents (open source)”Hacker News · Apr 29, 2026 · 2 points
- @agentpalisade.bsky.social“text-to-cad is a library of eleven agent skills that turn a coding agent into a CAD engineer, carrying a …”Bluesky · Jul 31, 2026 · 1 likes
The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 61
Talked about on GitHub, Bluesky and Hacker News (61 times).
On GitHub · 50
- Nov 2, 2026vendor: pull text-to-cad 5efa85a9 — gurul/gencad0 reactions
- Nov 2, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 2, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 2, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 2, 2026claude-code-plugins.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 1, 2026Upstream updates to review — MoradDev/skills-unified0 reactions
- Oct 31, 2026PEP 541 Request: cad — pypi/support0 reactions · 1 comment
- Oct 30, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-plugins.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026Roadmap: Shaderera inside Claude and ChatGPT (not now) — shaderera/shaderera0 reactions
- Oct 30, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-plugins.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-plugins.github.earthtojake.text-to-cad: init at 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: init at 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.26 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.26 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.26 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 26, 2026vendor: pull text-to-cad 2f793659 — gurul/gencad0 reactions
- Oct 23, 2026Epic: Scan a broken part, get replacement CAD — zeketx/sidekick-mechanic0 reactions
- Oct 23, 2026Epic: Photo part ID with a 3D view and the manual page — zeketx/sidekick-mechanic0 reactions
- Oct 23, 2026Epic: "Make me this part" chat tool (text to CAD: STEP, STL, drawing) — zeketx/sidekick-mechanic0 reactions
- Oct 20, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.25 → 0.7.26 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.25 → 0.7.26 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.25 → 0.7.26 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.24 → 0.7.25 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.24 → 0.7.25 — sudosubin/agents.nix0 reactions
- Oct 20, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.24 → 0.7.25 — sudosubin/agents.nix0 reactions
- Oct 19, 2026vendor: pull text-to-cad b316da8f — gurul/gencad0 reactions
- Oct 18, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.22 → 0.7.24 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.22 → 0.7.24 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.22 → 0.7.24 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.21 → 0.7.22 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.21 → 0.7.22 — sudosubin/agents.nix0 reactions
- Oct 18, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.21 → 0.7.22 — sudosubin/agents.nix0 reactions
- Oct 13, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.15 → 0.7.21 — sudosubin/agents.nix0 reactions
- Oct 13, 2026agent-plugins.github.earthtojake.text-to-cad: init at 0.7.21 — sudosubin/agents.nix0 reactions
On Bluesky · 9
- May 18, 2026Text-to-CAD open source : décrivez une pièce ou un mécanisme en langage naturel, laissez un agent (Codex, Claude Code) générer les fichiers… — @camilleroux.com14 likes and reposts · 1 reply
- Jul 28, 2026github.com/earthtojake/... — @davepentecost.bsky.social2 likes and reposts · 2 replies
- Jul 31, 2026text-to-cad is a library of eleven agent skills that turn a coding agent into a CAD engineer, carrying a plain-language request from STEP… — @agentpalisade.bsky.social1 likes and repost
- Jul 30, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 earthtojake / text-to-cad ⭐ 11,679 (+477) 🗒 JavaScript A collection of agent skills for CAD,… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jul 25, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 earthtojake / text-to-cad ⭐ 10,288 (+555) 🗒 JavaScript A collection of agent skills for CAD,… — @github-trending-js.bsky.social1 likes and repost · 1 reply
4 more on Bluesky
- Jul 22, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 earthtojake / text-to-cad ⭐ 8,784 (+297) 🗒 JavaScript A collection of agent skills for CAD,… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jul 21, 2026今日のGitHubトレンド earthtojake/text-to-cad CAD、ロボティクス、およびハードウェア設計を行うAIエージェント向けのスキルライブラリです。 CADデータの生成、検査、調達、スライス、受け渡しなどの機能をエージェントに提供することを目的としています。 — @dailygithubtrends.bsky.social1 likes and repost
- Aug 8, 2026公式GitHubを確認。これはかなり堅い。CADを会話だけで終わらせず、ソース管理されたファイルとして編集し、STEP/STL/URDF/SRDF/SDFやG-codeまで明示的に出力・閲覧する技能群。… — @nemu-echosphere.bsky.social0 likes and reposts · 1 reply
- May 25, 2026CAD SKILLS: Generate CAD in AI agents like Codex and Claude Code. 100% open source, runs locally, free forever. 开源生成 CAD 文件的代理模型 - 支持导出… — @maoguofang.bsky.socialsays it tested it0 likes and reposts · 2 replies
On Hacker News · 2
- May 1, 2026Text-to-CAD186 points · 48 comments
- Apr 29, 2026Text-to-CAD: Generate 3D models with coding agents (open source)2 points
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- gugu-2/Prompt-CAD★ 244% same
- saint0x/my-skills★ 167% same
- tlinedeep/claude-skills★ 086% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bambu-labsSkill
- cadSkill
- dfam-checkSkill
- dfmSkill
- dxfSkill
- engineering-drawingSkill
- gcodeSkill
- sendcutsendSkill
- srdfSkill
- step-partsSkill
- urdfSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 7 are common, 1 is distinctive, and 7 are very specific to this project.
7
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 10
Use the installed local skill files as the runtime source of truth.
- Common: line 13
Use this skill when the deliverable is an SDFormat document.
- Distinctive: line 21
Run cadgen through uv, so this skill's commands share one installation, and its warm build daemon, with the CAD app's server:
- Common: line 35
Use SI units unless the target explicitly requires otherwise: meters, kilograms, seconds, radians.
- Very specific: line 36
Prefer version="1.12" for new outputs unless the target consumer constrains the version.
- Very specific: line 38
Write relative_to / expressed_in explicitly on every nontrivial pose and axis.
- Common: line 39
Do not infer spatial transforms from visual impression alone.
- Very specific: line 40
When the robot already has a URDF, derive the SDF from it instead of re-authoring geometry.
- Very specific: line 42
After authoring, run available checks: bundled validation (which runs gz sdf --check itself whenever gz is on PATH), simulator load, joint …
- Common: line 47
Use this skill for SDFormat outputs.
- Very specific: line 54
If your tools include cad_show (your host may prefix it), use it with the file's absolute path, and follow its description for when to call …
- Common: line 76
Read or create the design ledger comment block.
- Very specific: line 77
Read references/frame-semantics.md before editing any <pose>, <frame>, joint axis, relative_to, expressed_in, nested scope, sensor frame, …
- Very specific: line 80
Run target-consumer smoke tests when available (references/smoke-tests.md).
- Common: line 108
When finishing an SDF task, include a compact report:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SDF
Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth; the repository link is only for provenance and release review.
Use this skill when the deliverable is an SDFormat document. SDFormat describes simulator and world behavior: models, worlds, frames, poses, links, joints, inertials, visuals, collisions, sensors, lights, physics, plugins, includes, and simulator metadata.
This skill is for SDFormat, not signed-distance-field geometry.
The .sdf file is the source of truth: author and edit the XML directly. There is no gen_sdf() contract.
Setup
Run cadgen through uv, so this skill's commands share one installation, and its warm build daemon, with the CAD app's server:
cadgenbelow meansuvx --no-config --managed-python --python 3.13 --from cadgen==0.7.14 cadgenpythonbelow meansuvx --no-config --managed-python --python 3.13 --from cadgen==0.7.14 python
The first run downloads that installation and the first snapshot its headless browser; later runs reuse both.
Core rules
- Author
.sdfXML directly and validate every created or modified file withcadgen sdf validatebefore reporting completion. - Identify the target consumer before editing: Gazebo/libsdformat version, another simulator, visualization-only tooling, model package, or world handoff.
- Decide document kind: model-level SDF, world-level SDF, or model-in-world. Prefer model-level SDF for reusable robot/object exports.
- Use SI units unless the target explicitly requires otherwise: meters, kilograms, seconds, radians.
- Prefer
version="1.12"for new outputs unless the target consumer constrains the version. - Establish the design ledger before writing poses, frames, joint axes, mesh scales, inertials, sensors, or plugins, and keep it as a comment block at the top of the
.sdf. Usereferences/design-ledger.mdandreferences/llm-guardrails.md. - Write
relative_to/expressed_inexplicitly on every nontrivial pose and axis. Implicit frame defaults are the top SDF failure mode. Seereferences/frame-semantics.md. - Do not infer spatial transforms from visual impression alone. Derive poses, axes, scale, mass, inertia, and frame names from upstream source data, drawings, simulator documentation, measured values, or explicit assumptions. Never freehand computed numbers — use formulas or a throwaway helper script (inertia tensors, unit conversions).
- When the robot already has a URDF, derive the SDF from it instead of re-authoring geometry; see
references/interoperability.md. - Regenerate upstream geometry, mesh, robot-description, render, topology, or package assets with their owning workflows before editing SDF that references them.
- After authoring, run available checks: bundled validation (which runs
gz sdf --checkitself whenevergzis on PATH), simulator load, joint motion, and plugin/sensor startup. - Report assumptions, skipped checks, unresolved resource paths, and target-specific compatibility risks.
Scope
Use this skill for SDFormat outputs. Do not use it for signed-distance-field modeling, raw geometry generation, planning semantics, or to paper over incorrect upstream robot/source data unless the task is explicitly simulator-only.
Show the model
Show the user each file you create or change, and any they ask to see. Snapshots and validation don't replace this.
- If your tools include
cad_show(your host may prefix it), use it with the file's absolute path, and follow its description for when to call it again.cad_viewreads what the user selected;cad_screenshotshows you what they see. Neither is a review of your own work. Otherwise run the CAD Viewer, from any folder:
cadgen viewer --host 127.0.0.1 --json --detach--detachreturns once the viewer answers requests and leaves it running in the background: always pass it, since a foreground viewer never exits (and piping its output throughtailcan hide the URL for good). It starts this machine's one viewer, or reuses it. Readurlfrom its one JSON line (never guess the port), and for each file returnurl?file=<its URL-encoded absolute path>. If it fails to launch, say so.
Review placement, resources and joints. The viewer does not execute simulator plugins or validate dynamics; keep simulator checks separate.
Workflow
- Locate the target
.sdfand its consumers. - Read or create the design ledger comment block.
- Read
references/frame-semantics.mdbefore editing any<pose>,<frame>, joint axis,relative_to,expressed_in, nested scope, sensor frame, or plugin frame. - Author the XML directly, following the worked examples in
references/examples.md. - Validate the explicit target with
cadgen sdf validate; treat bundled validation as a guardrail, not simulator proof. - Run target-consumer smoke tests when available (
references/smoke-tests.md). - Show the result (Show the model). Static rendering does not execute SDF plugins or read file-authored motion metadata.
- Report checks run, checks skipped, and assumptions.
Commands
Run cadgen as Setup defines it. cadgen doctor <skill-dir> reports the installation in use and checks that it is the one this skill pins — docs drift silently on another. Validation itself needs nothing beyond the Python standard library; only snapshots need the browser. Use cadgen <verb> --help for the complete current interface.
cadgen sdf validate path/to/model.sdf
cadgen sdf validate path/to/model.sdf --strict
cadgen sdf validate path/to/model.sdf --json
cadgen sdf snapshot path/to/model.sdf review.pngThe validator checks document shape, name scopes, pose/frame graphs, joints, geometry, mesh URIs, inertials, sensors, and plugins, and prints its findings plus a summary. One run validates ONE file: --strict treats warnings as failures and --json prints one line of {"ok", "path", "issues": [{"severity", "code", "message", "element", "hint"}], "summary"}, where element is the XML path. It exits nonzero if the target fails.
External checking is on by default:
cadgen sdf validate path/to/model.sdf --gz-check required
cadgen sdf validate path/to/model.sdf --gz-check nevergz sdf --check is target-consumer validation. --gz-check auto is the default: it runs when gz is on PATH, reporting gz_check_passed or the tool's own output as the error gz_check_failed, and otherwise notes info: gz_check_unavailable and carries on. An absent optional tool says nothing about the file, so it never fails a clean document and --strict does not change that. --gz-check required makes the tool mandatory — a missing gz is then an error — and --gz-check never skips it outright.
Required report shape
When finishing an SDF task, include a compact report:
Validated: path/to/model.sdf
Checks run:
- bundled SDF validation: passed
- gz sdf --check: skipped, gz not installed
- simulator load: skipped, target simulator unavailable
- viewer review: live link returned, or explicit launch failure
Assumptions:
- Assumed mesh units are meters.
- Assumed lidar frame is coincident with lidar_link.
Risks:
- Camera plugin filename was not verified in the target simulator environment.Snapshot Tool
cadgen sdf snapshot renders the robot to a PNG still, using the same shared
CLI and headless browser runtime every rendering skill uses — so a snapshot matches what
the CAD Viewer shows.
cadgen sdf snapshot path/to/robot.sdf review.pngIt accepts .sdf only (a format door, same TARGET [OUT] grammar as the rest). Pose the robot with --joint-values — {joint: degrees} JSON,
joints you do not name staying at their defaults, where the CAD Viewer opens the robot (the
"jointValues" job field is the same thing in a packet). The snapshot draws the robot with the
viewer's own scene, so it shows what the viewer shows, and a link mesh that cannot be loaded
fails it rather than leaving the link out. Robots are authored in metres and are framed on the
robot scene scale automatically.
A normal snapshot uses the Solid preset and Light appearance; omitted groups inherit preset defaults.
Pass --display render for the shared photographic scene. Inline display JSON and
JSON files use grouped settings such as lighting, background, and floor;
appearance is light (default) or dark. Projection and focal length belong
in display.camera. Top-level --camera and --joint-values remain active in every display
mode. The display modes are solid and render: edges, clip, exploded, the
xray, hidden-line and wireframe modes and the hidden/off surface styles
describe a STEP model's CAD edges, parts and solids, and are refused by name here.
Link meshes are resolved relative to the description, so they must be present: an
unhydrated Git LFS pointer fails as "No link mesh loaded for robot". Run
git lfs checkout <mesh dir> first.
The grammar is cadgen sdf snapshot TARGET [OUT] [flags], the same one every
format door uses. Use cadgen sdf snapshot --help for the complete current
interface — the flags a robot cannot act on are absent from it, not refused by it.
References
- SDF workflow:
references/sdf-workflow.md - Worked examples (golden skeletons):
references/examples.md - LLM guardrails:
references/llm-guardrails.md - Design ledger:
references/design-ledger.md - Frame semantics:
references/frame-semantics.md - Validation scope:
references/validation.md - Smoke tests:
references/smoke-tests.md - Interoperability notes (URDF-derived SDF, meshes, Gazebo):
references/interoperability.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

