urdf
Skill2 starsChanged 6 months agoMITView on GitHub
URDF robot description generation and default generation-time validation. Use when creating, editing, regenerating, inspecting, or debugging `.urdf` files, Python `gen_urdf()` sources, robot links, joints, limits, inertials, visual/collision geometry, mesh references, frame conventions, or generated robot-description artifacts. Use the SRDF skill for MoveIt2 semantic groups and IK/path-planning semantics; use the render skill for local MoveIt2 server controls; use the CAD skill for STEP/STL/3MF/DXF/GLB outputs.
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★ 17k13% same
- saint0x/my-skills★ 120% same
- tlinedeep/claude-skills★ 014% 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
- sdfSkill
- sendcutsendSkill
- sketch-to-cadSkill
- srdfSkill
- step-partsSkill
- tolerance-stackup-analyzerSkill
The file
We split this skill into the rules it gives an agent
11 rules. 3 are common, 4 are distinctive, and 4 are very specific to this project.
3
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 8
Use this skill for URDF robot-description outputs.
- Very specific: line 12
Treat the Python source that defines gen_urdf() as the source of truth.
- Very specific: line 15
Before writing or changing URDF XML, establish the robot's frame, joint, geometry, unit, and assumption ledger.
- Very specific: line 16
Use URDF frame semantics exactly.
- Common: line 17
Do not infer spatial transforms, mesh units, handedness, axes, or joint signs from vague prose.
- Distinctive: line 18
Prefer simple, auditable generator code over clever XML construction.
- Common: line 25
Read or create the design ledger before editing frames, origins, axes, mesh scale, limits, or inertials.
- Distinctive: line 29
When geometry or mesh references depend on changed CAD or exported mesh outputs, regenerate those explicit artifacts with the owning CAD or …
- Very specific: line 30
After creating or modifying a .urdf, always hand the explicit generated path to $render when available.
- Distinctive: line 32
When available, run a consumer smoke test appropriate to the target: RViz display, robot_state_publisher tree, Gazebo/Ignition loading, or …
- Distinctive: line 37
Run with the Python environment for the project or workspace.
“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
URDF
Use this skill for URDF robot-description outputs. Treat URDF work as constrained kinematic modeling, not just XML writing. The main correctness risks are frame placement, joint-axis semantics, unit consistency, mesh scale, inertial data, and generated-artifact drift.
Core Rules
- Treat the Python source that defines
gen_urdf()as the source of truth. Treat configured.urdffiles as generated artifacts. - Generate only explicit URDF targets. Do not regenerate unrelated CAD, mesh, render, SRDF, SDF, or simulator artifacts from this skill.
- The
scripts/urdfgenerator validates generated URDFs by default. Do not use or document a separatevalidatecommand. - Before writing or changing URDF XML, establish the robot's frame, joint, geometry, unit, and assumption ledger. See
references/design-ledger.md. - Use URDF frame semantics exactly. Joint origins, link frames, joint axes, and visual/collision/inertial origins use different reference frames. See
references/frame-semantics.md. - Do not infer spatial transforms, mesh units, handedness, axes, or joint signs from vague prose. Use CAD transforms, dimensioned drawings, measured values, existing source data, or explicit documented assumptions.
- Prefer simple, auditable generator code over clever XML construction. Keep constants named by physical meaning, not by arbitrary numbers.
- For physical links, model
inertial,visual, andcollisionseparately when the target consumer needs them. Frame-only links may intentionally omit mass and geometry.
Workflow
- Identify the
gen_urdf()Python source and target.urdfoutput. - Identify target consumers: RViz, robot_state_publisher, Gazebo/Ignition, MoveIt, a real robot driver, or another simulator.
- Read or create the design ledger before editing frames, origins, axes, mesh scale, limits, or inertials.
- Edit the generator source, not generated URDF XML.
- Regenerate only explicit targets with
scripts/urdf. - Let generation-time validation fail fast on XML, graph, joint, geometry, mesh-reference, and inertial problems.
- When geometry or mesh references depend on changed CAD or exported mesh outputs, regenerate those explicit artifacts with the owning CAD or mesh workflow, then regenerate the affected URDF target.
- After creating or modifying a
.urdf, always hand the explicit generated path to$renderwhen available;$renderchecks/reuses a live viewer and returns a link. - For visual feedback during generation review, prefer
$rendersnapshots over opening the viewer manually or using Playwright. Use still snapshots only; URDF review should not generate GIFs. - When available, run a consumer smoke test appropriate to the target: RViz display, robot_state_publisher tree, Gazebo/Ignition loading, or MoveIt model loading.
- Report remaining assumptions, unchecked spatial data, skipped
$renderhandoff/viewer checks, and validation/smoke-test gaps.
Commands
Run with the Python environment for the project or workspace. The URDF generator and lightweight validator use only the Python standard library; downstream consumers such as RViz, Gazebo, or MoveIt may need their own runtime packages.
From this skill directory, the launcher shape is:
python scripts/urdf path/to/source.py
python scripts/urdf path/to/source.py -o path/to/robot.urdf
python scripts/urdf path/to/a.py=out/a.urdf path/to/b.py=out/b.urdfPlain Python targets write a sibling .urdf beside the source. -o/--output is valid only with one plain target. Use SOURCE.py=OUTPUT.urdf pairs for custom multi-target destinations.
Relative source targets and CLI output overrides are resolved from the current working directory. When running from outside this skill directory, prefix the launcher path so target files still resolve from the intended workspace.
The launcher executes only gen_urdf() and validates the generated URDF output. It does not provide a separate validation-only command.
References
- Design ledger:
references/design-ledger.md - Frame semantics:
references/frame-semantics.md - URDF generator contract:
references/generator-contract.md - URDF generation command:
references/gen-urdf.md - URDF edit workflow:
references/urdf-workflow.md - Generation-time validation expectations:
references/validation.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.

