Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

robot-simulation

FreeNo executable scriptsNot checked

Writes and reviews robot and world descriptions (URDF, SRDF, MJCF) for ROS, MoveIt and MuJoCo. Use to generate a robot description or a MuJoCo scene from a…

earthtojakeby earthtojake★ 27,943 GitHub stars

About this skill

Robots and worlds for simulation and motion planning

A robot is described for its consumers in XML: a URDF for its structure (ROS, RViz, robot_state_publisher), an SRDF beside it for MoveIt's planning semantics, and an MJCF for MuJoCo. There are two routes to one:

  • Generate it from CAD. A text-to-cad model that holds the mechanism, materials and named frames is the source of truth: cad model export writes the URDF or MJCF, with frames, limits, masses, inertias and meshes exact from the kernel. The file is regenerated, never edited.
  • Author it by hand. A robot with no CAD model here, an SRDF (always), a MuJoCo scene, or a file that already exists: the XML is the source of truth. The risk is not XML syntax but frames, axis signs, units, mesh scale, inertials and planning semantics: a file can pass every check and still place a joint in the wrong spot.

Start with the task

Task Start with Reference
A URDF or MJCF from a CAD model The model's declarations, then cad model export <id> robot.xml or .urdf Generate from CAD, from CAD
Collision shapes, joint dynamics, actuators for MuJoCo A MuJoCo function, run with cad run The MuJoCo function, MuJoCo environment
A robot from a vendor's STEP Read it, group parts into links, find each axis, declare, export From a vendor STEP
A MuJoCo scene: several robots, objects, a world spec() for each piece, composed with MuJoCo's own MjSpec MuJoCo environment
Tune a MuJoCo model's physics cad mujoco check's model-health findings, one parameter at a time Tuning, MJCF checks
A URDF by hand The .urdf and its ledger, then cad urdf validate Authoring (frames and signs, the ledger), checks
MoveIt groups, end effectors, states, collision pairs A .srdf beside the URDF, then cad srdf validate Authoring (end effectors, disabled collisions, the ledger), checks
An MJCF by hand robot.xml and a scene.xml that includes it, then cad mujoco check Authoring, checks
Link meshes for a hand-written file One mesh per link, in the link's frame Meshes
Mass, centre of mass, inertia Materials on the CAD parts; else a formula or a script, never intuition Inertials
A four-bar in the viewer <tcad:four_bar> on the derived URDF joint Four-bar
See the robot or a pose cad urdf snapshot, cad srdf snapshot; an MJCF in MuJoCo Studio Snapshots
Work across formats, or convert a URDF to MJCF Which file owns what Interoperability

Setup

Written for cad==0.11.21. Before first use in a chat, run cad --version. If it fails, or cad is missing or older than 0.11.12, run uv tool install --force cad. If it is older than the release this skill was written for, run cad update.

If cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin: https://github.com/earthtojake/text-to-cad A project written for an earlier version may need changes; the migration guides say what: https://github.com/earthtojake/text-to-cad/tree/main/docs/migrations

MuJoCo (cad mujoco check, cad run mujoco-studio, a script that imports mujoco) and CoACD (decompose()) are fetched by cad the first time they are needed, about 20 MB and 4 MB; nothing to install. cad <command> --help is the complete, current interface.

Generate from CAD

The model says what is true of the machine, in its body (the cad skill's kinematics reference covers the mechanism itself), and the export writes each format from it:

In the model Says Written as
build123d joints, connected Links, joints, and each joint's range around the as-built pose, which is zero Bodies and joints; links and joints
mechanism_state(...) Named poses; name one home MJCF keys (URDF has none)
gear_pair, rack_and_pinion_pair A follower joint on its leader <equality><joint>; <mimic>
part.material, mass(), point_mass() Density, a measured total, a lump the CAD leaves out Exact <inertial>s
frame(part, name, location) A tool point, a mount, a sensor A site; an empty link
body(part, name) A part kept as its own body A child body; a link on a fixed joint
limits(assembly, joint, effort=, velocity=) The drive's datasheet limits actuatorfrcrange; <limit>
`
Full SKILL.md on GitHub

Install robot-simulation in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

LICENSEagents/openai.yamlreferences/from-a-vendor-step.mdreferences/from-cad.mdreferences/guardrails.mdreferences/inertials.mdreferences/interoperability.mdreferences/meshes.mdreferences/mjcf-authoring.mdreferences/mjcf-checks.mdreferences/mujoco-environment.mdreferences/snapshots.mdreferences/srdf-authoring.mdreferences/srdf-checks.mdreferences/urdf-authoring.mdreferences/urdf-checks.mdreferences/urdf-four-bar.md

FAQ

What does the robot-simulation skill do?

Writes and reviews robot and world descriptions (URDF, SRDF, MJCF) for ROS, MoveIt and MuJoCo. Use to generate a robot description or a MuJoCo scene from a CAD model's joints, or to write, edit or check a .urdf, .srdf or MJCF .xml by hand. Not for the CAD part itself, which the cad skill makes, and it runs no simulation.

How do I install the robot-simulation skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the robot-simulation skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare robot-simulation with