SdfSAFE
Give your agent CAD superpowers.
Overview
Give your agent CAD superpowers.
6e67aa70c1b3OBSERVED · 2026-10-27Install
Commands as the repository documents them. They are shown, not run.
uvx --no-config --managed-python --python 3.13 --from cadgen==0.8.0 cadgen doctor
Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned | |
| codex | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: sdf description: 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. license: MIT --- # SDF Provenance: maintained in [earthtojake/text-to-cad](https://github.com/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. ## Setup Run cadgen through the `cadgen` command its installation writes, so this skill's commands share one installation, and its engine server, with the CAD app's: - `cadgen` below means `cadgen +0.8.0` (`~/.local/bin/cadgen +0.8.0` where `~/.local/bin` is not on your PATH) - `python` below means `cadgen +0.8.0 run` If `cadgen` is not on your PATH, or it says 0.8.0 is not installed, run `uvx --no-config --managed-python --python 3.13 --from cadgen==0.8.0 cadgen doctor` once, outside any sandbox or with its permission: it installs cadgen, registers it, writes the `cadgen` command and starts the engine. With the CAD app's server running, nothing else needs the sandbox's permission: it starts the engine and holds it. Without it, a sandboxed shell cannot start the engine; when a command says no engine is running, run `cadgen server` outside the sandbox once. ## Core rules 1. Author `.sdf` XML directly and validate every created or modified file with `cadgen sdf validate` before reporting completion. 2. Identify the target consumer before editing: Gazebo/libsdformat version, another simulator, visualization-only tooling, model package, or world handoff. 3. Decide document kind: model-level SDF, world-level SDF, or model-in-world. Prefer model-level SDF for reusable robot/object exports. 4. Use SI units unless the target explicitly requires otherwise: meters, kilograms, seconds, radians. 5. Prefer `version="1.12"` for new outputs unless the target consumer constrains the version. 6. 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`. Use `references/design-ledger.md` and `references/llm-guardrails.md`. 7. Write `relative_to` / `expressed_in` explicitly on every nontrivial pose and axis. Implicit frame defaults are the top SDF failure mode. See `references/frame-semantics.md`. 8. 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). 9. When the robot already has a URDF, derive the SDF from it instead of re-authoring geometry; see `references/interoperability.md`. 10. Regenerate upstream geometry, mesh, robot-description, render, topology, or package assets with their owning workflows before editing SDF that references them. 11. After authoring, run available checks: bundled validation (which runs `gz sdf --check` itself whenever `gz` is on PATH), simulator load, joint motion, and plugin/sensor startup. 12. 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 model you create or change, and any model or file they ask to see. A file you export is a download: give its path, do not open it. Snapshots and validation don't replace this. Never screenshot the viewer to confirm your own work; review with `cadgen snapshot`. - If your tools include `cad_show` (your host may prefix it), call it with the model's id or the file's absolute path, and follow its description for when to call it again. The other tools depend on the host. A host that draws CAD cards or tabs (Claude Desktop, the Codex app) also has `cad_view`, which reads what the user selected, and `cad_screenshot`, which shows you what they see, both of a card or tab that is open, for when they ask about it. A text host (Claude Code in a terminal, `codex exec`) draws nothing: its `cad_show` opens the model's page in the user's browser and answers with the URL to give them, and it has no view to read. `cad_inspect`, `cad_snapshot` and `cad_export` are on every host. Call only the tools you have, and never say a card shows a model when your host drew none. - Otherwise give the user the page's link once: a model's page is the `view:` line its run prints. For a file, run the CAD Viewer, from any folder: ```bash cadgen viewer --json FILE [FILE ...] ``` The command ensures this installation's engine, registers each file and prints its page, `/<id>`, then exits. Read each file's `url` from `documents` in its one JSON line (never guess the port); the URL carries its token query. A page follows every later run of its model and every rewrite of its file, so share it once. Return that link to the user. If it fails to launch, say so. An `.sdf` you write is the model, not an export: show it. Review placement, reso
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
6e67aa70c1b3full audit observations/trust-audit/skill/earthtojake__sdf.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-27 | 6e67aa70c1b3 | SAFE | B | 89 | first audit |
Questions
What does the sdf — earthtojake/text-to-cad skill do?
Give your agent CAD superpowers.
Is sdf — earthtojake/text-to-cad safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can sdf — earthtojake/text-to-cad access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does sdf — earthtojake/text-to-cad work with?
Its documentation mentions claude-code and codex. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (6e67aa70c1b3), read on 2026-10-27. The repository is watched, and a new audit runs when it changes — this is the first audit.
Add this badge to your README
Shows this page's audit result and links back to it. It updates when the audit does.
[](https://modelsatlas.com/skills/earthtojake/sdf/)
Not your listing, or something out of date? Claim or update your listing.