sdf
Skill2 starsChanged 6 months agoMITView on GitHub
SDFormat/SDF model and world generation, validation, and simulator handoff. Use for `.sdf` files, SDFormat XML, Python `gen_sdf()` sources, models, worlds, links, joints, poses, frames, inertials, visual/collision geometry, mesh URIs, sensors, lights, physics, plugins, includes, Gazebo, CAD Explorer static SDF review, or simulator-specific metadata. Do not use for signed-distance-field geometry.
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- earthtojake/text-to-cadedited, first seen Oct 5, 2026
- saint0x/my-skillsedited, first seen Aug 29, 2026
- tlinedeep/claude-skillsedited, first seen Jun 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- earthtojake/text-to-cad★ 17k24% same
- saint0x/my-skills★ 137% same
- tlinedeep/claude-skills★ 026% 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 repository26 other files it gives its agents.
- harness/AGENTS.mdAGENTS.md
- harness/CLAUDE.mdCLAUDE.md
- auto-kinematicsSkill
- real-time-bom-costingSkill
- cadSkill
- camSkill
- competitor-benchmarkSkill
- regulatory-compliance-checkerSkill
- semantic-design-intent-memorySkill
- drawing-generatorSkill
- enterprise-vaultSkill
- esg-analyzerSkill
- exploded-viewSkill
- fastener-standard-enforcerSkill
- feaSkill
- multi-physics-cosimulationSkill
- patent-detectorSkill
- predictive-maintenanceSkill
- renderSkill
- scan-to-codeSkill
- sendcutsendSkill
- sketch-to-cadSkill
- srdfSkill
- step-partsSkill
- tolerance-stackup-analyzerSkill
- urdfSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 5 are common, 6 are distinctive, and 6 are very specific to this project.
5
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the deliverable is an SDFormat document or a Python gen_sdf() source.
- Very specific: line 14
Treat the Python file defining gen_sdf() as source of truth.
- Common: line 17
Use SI units unless the target explicitly requires otherwise: meters, kilograms, seconds, radians.
- Very specific: line 18
Prefer version="1.12" for new outputs unless the target consumer constrains the version.
- Common: line 20
Do not infer spatial transforms from visual impression alone.
- Distinctive: line 21
Prefer helper functions and named constants over large XML string literals.
- Very specific: line 24
After generation, run available checks: bundled validation, optional gz sdf --check, simulator load, joint motion, plugin/sensor startup, …
- Common: line 29
Use this skill for SDFormat outputs and generators.
- Distinctive: line 34
Read or create the design ledger.
- Very specific: line 35
Read references/frame-semantics.md before editing any <pose>, <frame>, joint axis, relative_to, expressed_in, nested scope, sensor frame, …
- Distinctive: line 37
Use optional builder helpers when they make the generated structure clearer.
- Distinctive: line 39
Treat bundled validation as a guardrail, not simulator proof.
- Common: line 40
Run target-consumer smoke tests when available.
- Very specific: line 41
After creating or modifying .sdf output, always hand the explicit generated path to $render when available.
- Distinctive: line 47
Run with the project or workspace Python environment.
- Distinctive: line 57
If the runtime supports optional external checking:
- Common: line 69
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
Use this skill when the deliverable is an SDFormat document or a Python gen_sdf() source. 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.
Core rules
- Treat the Python file defining
gen_sdf()as source of truth. Treat configured.sdffiles as generated artifacts unless the user explicitly asks for direct XML editing. - 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. Use
references/design-ledger.mdandreferences/llm-guardrails.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.
- Prefer helper functions and named constants over large XML string literals. Hidden numbers are a common SDF failure mode.
- Generate only explicit targets with
scripts/sdfor the repository's existing SDF launcher. Do not run directory-wide generation. - Regenerate upstream geometry, mesh, robot-description, render, topology, or package assets with their owning workflows before regenerating SDF that references them.
- After generation, run available checks: bundled validation, optional
gz sdf --check, simulator load, joint motion, plugin/sensor startup, and$renderhandoff when available. - Report assumptions, skipped checks, unresolved resource paths, and target-specific compatibility risks.
Scope
Use this skill for SDFormat outputs and generators. 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.
Workflow
- Locate the
gen_sdf()source and intended.sdfoutput. - Read or create the design ledger.
- Read
references/frame-semantics.mdbefore editing any<pose>,<frame>, joint axis,relative_to,expressed_in, nested scope, sensor frame, or plugin frame. - Edit the generator source, not generated XML.
- Use optional builder helpers when they make the generated structure clearer; raw ElementTree is still allowed.
- Regenerate the explicit target.
- Treat bundled validation as a guardrail, not simulator proof.
- Run target-consumer smoke tests when available.
- After creating or modifying
.sdfoutput, always hand the explicit generated path to$renderwhen available;$renderchecks/reuses a live viewer and returns a link. CAD Explorer does not execute SDF plugins or read file-authored motion metadata. - For visual feedback during generation review, prefer
$rendersnapshots over opening the viewer manually or using Playwright. Use still snapshots only; SDF review should not generate GIFs. - Report checks run, checks skipped, and assumptions.
Commands
Run with the project or workspace Python environment.
python scripts/sdf path/to/source.py
python scripts/sdf path/to/source.py -o path/to/output.sdf
python scripts/sdf path/to/a.py=out/a.sdf path/to/b.py=out/b.sdfPlain Python targets write sibling .sdf files beside their sources. -o / --output is valid only with one plain target. SOURCE.py=OUTPUT.sdf supports custom multi-target destinations.
If the runtime supports optional external checking:
python scripts/sdf path/to/source.py --gz-check auto
python scripts/sdf path/to/source.py --gz-check required
python scripts/sdf path/to/source.py --gz-check nevergz sdf --check is optional target-consumer validation. It should be reported as skipped when unavailable unless explicitly required.
Required report shape
When finishing an SDF task, include a compact report:
Generated: path/to/model.sdf from path/to/model.py
Checks run:
- bundled SDF validation: passed
- gz sdf --check: skipped, gz not installed
- simulator load: skipped, target simulator unavailable
- visual review: render viewer link returned; snapshot run/skipped
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.References
- Generation command:
references/gen-sdf.md - Generator contract:
references/generator-contract.md - SDF workflow:
references/sdf-workflow.md - Builder helpers:
references/builder-helpers.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:
references/interoperability.md - Examples:
references/examples.md - Runtime notes and current limitations:
references/implementation-notes.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.

