← text-to-cadCONTENT HISTORY

Update to text-to-cad

Snapshot Nov 29, 2026 · 06:11 UTC · version 0.11.19

Collection source: downloaded plugin package.

WHAT CHANGED

Instructions updated for robot-simulation

Skill instructions — Now says: `cad==0.11.19`. 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`....

Observed in instructions or declared skills. Runtime behavior has not been tested.

Save text-to-cad and check future changes in Following.

Up to 3 plugins free · no card required.

All fields and original values.

Skill instructions

Before

Nov 27, 2026 · 19:13 UTC

`cad==0.11.18`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than 0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists.

After

Nov 29, 2026 · 06:11 UTC

`cad==0.11.19`. 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`.

Compare saved observations

Download comparison JSON

SKILL.md text changes

− removed · + added

--- before
+++ after
@@ -40,8 +40,9 @@
 
 ## Setup
 
-Written for `cad==0.11.18`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than
-0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists.
+Written for `cad==0.11.19`. 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
Full technical diff · 1 changed fields

changed /skill_md_contents

BEFORE
"---\nname: robot-simulation\ndescription: 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.\nlicense: MIT\nmetadata:\n  repository: earthtojake/text-to-cad\n---\n\n# Robots and worlds for simulation and motion planning\n\nA robot is described for its consumers in XML: a URDF for its structure (ROS, RViz,\nrobot_state_publisher), an SRDF beside it for MoveIt's planning semantics, and an MJCF for MuJoCo.\nThere are two routes to one:\n\n- **Generate it from CAD.** A text-to-cad model that holds the mechanism, materials and named frames\n  is the source of truth: `cad model export` writes the URDF or MJCF, with frames, limits, masses,\n  inertias and meshes exact from the kernel. The file is regenerated, never edited.\n- **Author it by hand.** A robot with no CAD model here, an SRDF (always), a MuJoCo scene, or a file\n  that already exists: the XML is the source of truth. The risk is not XML syntax but frames, axis\n  signs, units, mesh scale, inertials and planning semantics: a file can pass every check and still\n  place a joint in the wrong spot.\n\n## Start with the task\n\n| Task | Start with | Reference |\n| --- | --- | --- |\n| A URDF or MJCF from a CAD model | The model's declarations, then `cad model export <id> robot.xml` or `.urdf` | [Generate from CAD](#generate-from-cad), [from CAD](references/from-cad.md) |\n| Collision shapes, joint dynamics, actuators for MuJoCo | A MuJoCo function, run with `cad run` | [The MuJoCo function](#the-mujoco-function), [MuJoCo environment](references/mujoco-environment.md) |\n| A robot from a vendor's STEP | Read it, group parts into links, find each axis, declare, export | [From a vendor STEP](references/from-a-vendor-step.md) |\n| A MuJoCo scene: several robots, objects, a world | `spec()` for each piece, composed with MuJoCo's own `MjSpec` | [MuJoCo environment](references/mujoco-environment.md#the-scene-in-code) |\n| Tune a MuJoCo model's physics | `cad mujoco check`'s model-health findings, one parameter at a time | [Tuning](references/mujoco-environment.md#tuning), [MJCF checks](references/mjcf-checks.md) |\n| A URDF by hand | The `.urdf` and its ledger, then `cad urdf validate` | [Authoring](references/urdf-authoring.md) (frames and signs, the ledger), [checks](references/urdf-checks.md) |\n| MoveIt groups, end effectors, states, collision pairs | A `.srdf` beside the URDF, then `cad srdf validate` | [Authoring](references/srdf-authoring.md) (end effectors, disabled collisions, the ledger), [checks](references/srdf-checks.md) |\n| An MJCF by hand | `robot.xml` and a `scene.xml` that includes it, then `cad mujoco check` | [Authoring](references/mjcf-authoring.md), [checks](references/mjcf-checks.md) |\n| Link meshes for a hand-written file | One mesh per link, in the link's frame | [Meshes](references/meshes.md) |\n| Mass, centre of mass, inertia | Materials on the CAD parts; else a formula or a script, never intuition | [Inertials](references/inertials.md) |\n| A four-bar in the viewer | `<tcad:four_bar>` on the derived URDF joint | [Four-bar](references/urdf-four-bar.md) |\n| See the robot or a pose | `cad urdf snapshot`, `cad srdf snapshot`; an MJCF in MuJoCo Studio | [Snapshots](references/snapshots.md) |\n| Work across formats, or convert a URDF to MJCF | Which file owns what | [Interoperability](references/interoperability.md) |\n\n## Setup\n\nWritten for `cad==0.11.18`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than\n0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists.\n\nIf cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:\nhttps://github.com/earthtojake/text-to-cad\nA project written for an earlier version may need changes; the migration guides say what:\nhttps://github.com/earthtojake/text-to-cad/tree/main/docs/migrations\n\nMuJoCo (`cad mujoco check`, `cad run mujoco-studio`, a script that imports `mujoco`) and CoACD\n(`decompose()`) are fetched by `cad` the first time they are needed, about 20 MB and 4 MB; nothing to\ninstall. `cad <command> --help` is the complete, current interface.\n\n## Generate from CAD\n\nThe model says what is true of the machine, in its body (the `cad` skill's kinematics reference\ncovers the mechanism itself), and the export writes each format from it:\n\n| In the model | Says | Written as |\n| --- | --- | --- |\n| build123d joints, connected | Links, joints, and each joint's range around the as-built pose, which is zero | Bodies and joints; links and joints |\n| `mechanism_state(...)` | Named poses; name one `home` | MJCF keys (URDF has none) |\n| `gear_pair`, `rack_and_pinion_pair` | A follower joint on its leader | `<equality><joint>`; `<mimic>` |\n| `part.material`, `mass()`, `point_mass()` | Density, a measured total, a lump the CAD leaves out | Exact `<inertial>`s |\n| `frame(part, name, location)` | A tool point, a mount, a sensor | A site; an empty link |\n| `body(part, name)` | A part kept as its own body | A child body; a link on a fixed joint |\n| `limits(assembly, joint, effort=, velocity=)` | The drive's datasheet limits | `actuatorfrcrange`; `<limit>` |\n| `link(part_or_assembly, name)` | A link's name (`base_link`) | Body and link names |\n| `free(assembly)` | Not bolted to the world | `<freejoint>`; a floating root |\n\n```python\nfrom cad.build123d import body, frame, free, limits, link, mass, point_mass\n\nframe(palm, \"tcp\", bd.Pos(0, 0, 65))   # mm, in the palm's own frame\nbody(camera, \"camera\")                 # fixed to the palm, a body of its own\nlimits(root, \"left\", effort=2, velocity=1.5)   # N*m, rad/s: the servo's datasheet\npoint_mass(palm, 120, bd.Pos(0, 0, 20), name=\"motor\")   # g, mm in the palm's own frame\nmass(palm, 410)                        # g: the palm as weighed, its motor included\nlink(palm, \"base_link\")                # the palm's link, named as ROS names a base\nfree(root)                             # on a mobile base: not bolted to the world\n```\n\n```bash\ncad run src/gripper.py\ncad model ranges \"$ID\"                                       # stops where the parts meet, to write into the joints\ncad model export \"$ID\" sim/gripper.xml\ncad model export \"$ID\" description/gripper.urdf --zero home\n```\n\n`$ID` is the `id:` line the run printed; the suffix picks the format, and meshes are written beside\nthe file. Each export says what it wrote (links, joints, total mass, couplings, frames, keys) with a\nwarning for anything left out: read it first, since a mass of 0 or a missing joint is a model to fix.\nAn MJCF export also writes a `scene.xml` beside it once (floor, light), which is yours to edit.\n[From CAD](references/from-cad.md) has each declaration in full, joint ranges, the zero pose and\n`--zero`.\n\n- **Never edit a generated file.** A frame, limit, mass or mesh is changed in the model; a collision\n  shape, damping or actuator in the MuJoCo function; a floor or solver setting in the scene.\n- **The kernel cannot know intent**: check that each joint's positive motion is the one meant\n  (`cad model snapshot \"$ID\" out.png --pose <state>`) and that the collision shapes suit the physics.\n\n### The MuJoCo function\n\nA plain export holds no chosen collision shape, joint dynamics or actuator: each part collides as its\nown mesh's convex hull, and nothing drives the joints. Those are a simulation's choices, made in a\nplain Python function beside the model that turns the robot into a `mujoco.MjSpec`, edits it with\nMuJoCo's own API and returns it:\n\n```python\n# src/gripper_mujoco.py\nimport mujoco\nfrom cad.mujoco import collisions, fit, save, spec\n\nfrom gripper import gripper\n\n\ndef gripper_mujoco() -> mujoco.MjSpec:\n    s = spec(gripper())\n    for part in (\"palm\", \"left\", \"right\"):\n        fit(s, part, \"box\")                        # the kernel's box of the part's exact solid\n    for geom in collisions(s, \"left\") + collisions(s, \"right\"):\n        geom.friction = [1.1, 0.005, 0.0001]       # sliding, torsional, rolling\n    left = s.joint(\"left\")\n    left.armature = 0.002                          # kg*m^2\n    left.damping = [0.1, 0, 0]                     # N*m*s/rad, a 3-vector in MuJoCo 4\n    grip = s.add_actuator(name=\"grip\", target=\"left\", trntype=mujoco.mjtTrn.mjTRN_JOINT)\n    grip.set_to_position(kp=20, dampratio=1, inheritrange=True)\n    return s\n\n\nif __name__ == \"__main__\":\n    save(gripper_mujoco(), \"sim/gripper.xml\")\n```\n\n```bash\ncad run src/gripper_mujoco.py\ncad mujoco check sim/scene.xml\n```\n\n`spec`, `fit`, `decompose`, `collisions`, `parts` and `save` are the only helpers; they name a part by\nits label path, as `cad model inspect` prints it. Everything else is MuJoCo's API. `save` writes the\nfile with its meshes, and a `scene.xml` where there is none, then prints the check's warnings, what\nthe model collides as and its contact excludes: read them against the choices the function made. This\nfile replaces the plain export ([MuJoCo environment](references/mujoco-environment.md#the-mujoco-function)).\n\n## Author by hand\n\nFor a robot that has a CAD model here, generate the URDF or MJCF and author only what it does not\ncarry: the SRDF, a MuJoCo scene. Each format owns one thing:\n\n- **URDF**: physical structure. Links, joints, geometry, inertials, limits, mimic joints.\n- **SRDF**: MoveIt semantics over a valid URDF. Groups, group states, end effectors, disabled\n  collision pairs. It pairs with its URDF by colocation and robot name alone: same folder, same\n  `<robot name>`, exactly one such URDF.\n- **MJCF**: a MuJoCo model. Bodies, joints, geoms, default classes, actuators, equalities and\n  keyframes, in one file or a `scene.xml` that includes the robot's.\n- **Meshes** belong to the CAD workflow: one per link, exported in that link's frame. A wrong export\n  is fixed there, never with a URDF origin or an MJCF body position.\n\nWhat holds for every format:\n\n- Name the consumers first (RViz, robot_state_publisher, MoveIt, a driver, MuJoCo), and how strict\n  each is.\n- Keep a ledger of the modeled facts (frames, joints, geometry, units, assumptions and where each\n  came from) as a comment block at the top of a hand-written file, updated in the same edit.\n- Units are SI: metres, kilograms, seconds, radians. An MJCF says `<compiler angle=\"radian\"/>`, since\n  MuJoCo's default is degrees.\n- Transforms, axes, joint signs, mesh units and inertia tensors come from a source (CAD, a drawing, a\n  datasheet, a measurement, a formula or script), never from prose or how a picture looks. An\n  assumption is stated as one ([guardrails](references/guardrails.md)).\n- Names are shared identifiers: SRDF groups, controllers and TF read the URDF's link and joint names,\n  so a rename updates every consumer in the same task, and any URDF edit re-runs `cad srdf validate`\n  on the SRDF beside it.\n\nThe trap in each format, and where its contract is:\n\n- **URDF**: most errors are frame errors. A joint's `<origin>` is the parent-link-frame transform to\n  the joint frame at zero, the child link frame coincides with the joint frame, `<axis>` is in the\n  joint frame, and `visual`, `collision` and `inertial` origins are each in the link frame\n  ([frames and signs](references/urdf-authoring.md#frames-and-signs)).\n- **SRDF**: the failure is a plausible file with the wrong group, tool link, default state or\n  collision matrix. Extract the URDF's link and joint table and copy every name from it; derive groups\n  from its topology and disabled collisions from evidence\n  ([authoring](references/srdf-authoring.md)).\n- **MJCF**: units and defaults. Angles are degrees unless the compiler line says radians (a keyframe's\n  `qpos` is radians regardless), and a geom or joint inherits from its default class. Split the robot\n  from its world, and clear every model-health warning before tuning physics\n  ([authoring](references/mjcf-authoring.md)).\n\n## Check each change\n\n```bash\ncad urdf validate path/to/robot.urdf\ncad urdf validate path/to/robot.urdf --packages robot_description=/path/to/pkg\ncad srdf validate path/to/robot.srdf --strict\ncad mujoco check path/to/scene.xml\ncad mujoco check path/to/scene.xml --strict --json\ncad urdf snapshot path/to/robot.urdf review.png --pose '{\"shoulder_pitch\": 30}'\ncad srdf snapshot path/to/robot.srdf review.png --pose arm/ready\ncad run mujoco-studio --model path/to/scene.xml\n```\n\n| Change | Check it with |\n| --- | --- |\n| A CAD model's mechanism or declarations | Run it, export again (or run its MuJoCo function again), validate the file; `cad model snapshot` at each mechanism state first, where the joint signs show |\n| A MuJoCo function or a scene script | Run it and read what `save` printed, then `cad mujoco check` on the scene |\n| Any `.urdf` | `cad urdf validate` until clean; `check_urdf` when installed; `cad srdf validate` on an SRDF beside it |\n| A joint origin, axis, sign or limit | Every movable joint moved through its limits, in the viewer or in snapshots at `--pose` values. Only this catches a flipped sign |\n| A mesh, its scale or placement | A snapshot: about 1000x too large or small is a `scale` bug |\n| An inertial | The [sanity gates](references/inertials.md#sanity-gates) |\n| Any `.srdf` | `cad srdf validate`, which cross-checks every name, chain, state and pair against the URDF; named states in a snapshot |\n| Any MJCF | `cad mujoco check`: MuJoCo's own compile, the model-health checks, what collides and the contact excludes |\n| MuJoCo physics | One parameter changed, checked, and run in MuJoCo Studio against the baseline ([tuning](references/mujoco-environment.md#tuning)) |\n| A ROS or MoveIt consumer | Its own load where available: RViz, the TF tree, MoveIt Setup Assistant |\n\n- A check validates one file and collects every finding (severity, code, location, hint). `--strict`\n  fails on warnings, `--json` prints the result as one object, and the exit status is 1 for a file\n  that fails and 2 for a command refused.\n- A snapshot's `--pose` takes degrees (metres for a slide), though the files hold radians.\n- No `cad` command draws an MJCF. `cad run mujoco-studio` serves MuJoCo Studio's web viewer for the\n  person, reloading as the file changes; it listens on every network interface with no\n  authentication, so it is for this computer or a trusted network.\n- A clean check is a guardrail, not proof: it cannot show that an axis matches the robot, that mesh\n  units match `scale`, that a planning group suits the task or that a gain is right. Report which\n  checks ran, which were skipped, and the assumptions made\n  ([report shape](references/guardrails.md#the-report)).\n\n## Show the model\n\nShow the person each model you create or change as soon as its first run succeeds, and any model\nor file they ask to see. A model's page is the `view:` line its run prints, and a file's is the `url`\nthat `cad viewer --json FILE [FILE ...]` prints for it (never guess the port). Show it with\nthe first of these you have:\n\n1. `cad_show` among your tools (your host may prefix it): call it with the model's id or the file's\n   absolute path; its description says the rest.\n2. A tool that opens a page in the app's own browser pane, not in the person's own browser (in the\n   Claude desktop app, the Browser pane's `preview_start` with the page's `url`, or its `navigate`):\n   open the page there yourself, and give the person the link as well.\n3. Neither: give the person the link, to open in their browser.\n\nThe page follows every run of the model. A file you export is a download: give its path. Showing is\nfor the person: to check your own work, review with `cad <type> snapshot`, never a screenshot\nof the page. If it fails to launch, say so.\n\nAn MJCF is the exception: the viewer and `cad_show` do not open one. Show the person the CAD\nmodel it was generated from, and for the MJCF itself run `cad run mujoco-studio --model FILE` and\ngive them the URL it prints.\n"
AFTER
"---\nname: robot-simulation\ndescription: 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.\nlicense: MIT\nmetadata:\n  repository: earthtojake/text-to-cad\n---\n\n# Robots and worlds for simulation and motion planning\n\nA robot is described for its consumers in XML: a URDF for its structure (ROS, RViz,\nrobot_state_publisher), an SRDF beside it for MoveIt's planning semantics, and an MJCF for MuJoCo.\nThere are two routes to one:\n\n- **Generate it from CAD.** A text-to-cad model that holds the mechanism, materials and named frames\n  is the source of truth: `cad model export` writes the URDF or MJCF, with frames, limits, masses,\n  inertias and meshes exact from the kernel. The file is regenerated, never edited.\n- **Author it by hand.** A robot with no CAD model here, an SRDF (always), a MuJoCo scene, or a file\n  that already exists: the XML is the source of truth. The risk is not XML syntax but frames, axis\n  signs, units, mesh scale, inertials and planning semantics: a file can pass every check and still\n  place a joint in the wrong spot.\n\n## Start with the task\n\n| Task | Start with | Reference |\n| --- | --- | --- |\n| A URDF or MJCF from a CAD model | The model's declarations, then `cad model export <id> robot.xml` or `.urdf` | [Generate from CAD](#generate-from-cad), [from CAD](references/from-cad.md) |\n| Collision shapes, joint dynamics, actuators for MuJoCo | A MuJoCo function, run with `cad run` | [The MuJoCo function](#the-mujoco-function), [MuJoCo environment](references/mujoco-environment.md) |\n| A robot from a vendor's STEP | Read it, group parts into links, find each axis, declare, export | [From a vendor STEP](references/from-a-vendor-step.md) |\n| A MuJoCo scene: several robots, objects, a world | `spec()` for each piece, composed with MuJoCo's own `MjSpec` | [MuJoCo environment](references/mujoco-environment.md#the-scene-in-code) |\n| Tune a MuJoCo model's physics | `cad mujoco check`'s model-health findings, one parameter at a time | [Tuning](references/mujoco-environment.md#tuning), [MJCF checks](references/mjcf-checks.md) |\n| A URDF by hand | The `.urdf` and its ledger, then `cad urdf validate` | [Authoring](references/urdf-authoring.md) (frames and signs, the ledger), [checks](references/urdf-checks.md) |\n| MoveIt groups, end effectors, states, collision pairs | A `.srdf` beside the URDF, then `cad srdf validate` | [Authoring](references/srdf-authoring.md) (end effectors, disabled collisions, the ledger), [checks](references/srdf-checks.md) |\n| An MJCF by hand | `robot.xml` and a `scene.xml` that includes it, then `cad mujoco check` | [Authoring](references/mjcf-authoring.md), [checks](references/mjcf-checks.md) |\n| Link meshes for a hand-written file | One mesh per link, in the link's frame | [Meshes](references/meshes.md) |\n| Mass, centre of mass, inertia | Materials on the CAD parts; else a formula or a script, never intuition | [Inertials](references/inertials.md) |\n| A four-bar in the viewer | `<tcad:four_bar>` on the derived URDF joint | [Four-bar](references/urdf-four-bar.md) |\n| See the robot or a pose | `cad urdf snapshot`, `cad srdf snapshot`; an MJCF in MuJoCo Studio | [Snapshots](references/snapshots.md) |\n| Work across formats, or convert a URDF to MJCF | Which file owns what | [Interoperability](references/interoperability.md) |\n\n## Setup\n\nWritten for `cad==0.11.19`. Before first use in a chat, run `cad --version`. If it fails, or `cad` is missing or older\nthan 0.11.12, run `uv tool install --force cad`. If it is older than the release this skill was written for, run\n`cad update`.\n\nIf cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:\nhttps://github.com/earthtojake/text-to-cad\nA project written for an earlier version may need changes; the migration guides say what:\nhttps://github.com/earthtojake/text-to-cad/tree/main/docs/migrations\n\nMuJoCo (`cad mujoco check`, `cad run mujoco-studio`, a script that imports `mujoco`) and CoACD\n(`decompose()`) are fetched by `cad` the first time they are needed, about 20 MB and 4 MB; nothing to\ninstall. `cad <command> --help` is the complete, current interface.\n\n## Generate from CAD\n\nThe model says what is true of the machine, in its body (the `cad` skill's kinematics reference\ncovers the mechanism itself), and the export writes each format from it:\n\n| In the model | Says | Written as |\n| --- | --- | --- |\n| build123d joints, connected | Links, joints, and each joint's range around the as-built pose, which is zero | Bodies and joints; links and joints |\n| `mechanism_state(...)` | Named poses; name one `home` | MJCF keys (URDF has none) |\n| `gear_pair`, `rack_and_pinion_pair` | A follower joint on its leader | `<equality><joint>`; `<mimic>` |\n| `part.material`, `mass()`, `point_mass()` | Density, a measured total, a lump the CAD leaves out | Exact `<inertial>`s |\n| `frame(part, name, location)` | A tool point, a mount, a sensor | A site; an empty link |\n| `body(part, name)` | A part kept as its own body | A child body; a link on a fixed joint |\n| `limits(assembly, joint, effort=, velocity=)` | The drive's datasheet limits | `actuatorfrcrange`; `<limit>` |\n| `link(part_or_assembly, name)` | A link's name (`base_link`) | Body and link names |\n| `free(assembly)` | Not bolted to the world | `<freejoint>`; a floating root |\n\n```python\nfrom cad.build123d import body, frame, free, limits, link, mass, point_mass\n\nframe(palm, \"tcp\", bd.Pos(0, 0, 65))   # mm, in the palm's own frame\nbody(camera, \"camera\")                 # fixed to the palm, a body of its own\nlimits(root, \"left\", effort=2, velocity=1.5)   # N*m, rad/s: the servo's datasheet\npoint_mass(palm, 120, bd.Pos(0, 0, 20), name=\"motor\")   # g, mm in the palm's own frame\nmass(palm, 410)                        # g: the palm as weighed, its motor included\nlink(palm, \"base_link\")                # the palm's link, named as ROS names a base\nfree(root)                             # on a mobile base: not bolted to the world\n```\n\n```bash\ncad run src/gripper.py\ncad model ranges \"$ID\"                                       # stops where the parts meet, to write into the joints\ncad model export \"$ID\" sim/gripper.xml\ncad model export \"$ID\" description/gripper.urdf --zero home\n```\n\n`$ID` is the `id:` line the run printed; the suffix picks the format, and meshes are written beside\nthe file. Each export says what it wrote (links, joints, total mass, couplings, frames, keys) with a\nwarning for anything left out: read it first, since a mass of 0 or a missing joint is a model to fix.\nAn MJCF export also writes a `scene.xml` beside it once (floor, light), which is yours to edit.\n[From CAD](references/from-cad.md) has each declaration in full, joint ranges, the zero pose and\n`--zero`.\n\n- **Never edit a generated file.** A frame, limit, mass or mesh is changed in the model; a collision\n  shape, damping or actuator in the MuJoCo function; a floor or solver setting in the scene.\n- **The kernel cannot know intent**: check that each joint's positive motion is the one meant\n  (`cad model snapshot \"$ID\" out.png --pose <state>`) and that the collision shapes suit the physics.\n\n### The MuJoCo function\n\nA plain export holds no chosen collision shape, joint dynamics or actuator: each part collides as its\nown mesh's convex hull, and nothing drives the joints. Those are a simulation's choices, made in a\nplain Python function beside the model that turns the robot into a `mujoco.MjSpec`, edits it with\nMuJoCo's own API and returns it:\n\n```python\n# src/gripper_mujoco.py\nimport mujoco\nfrom cad.mujoco import collisions, fit, save, spec\n\nfrom gripper import gripper\n\n\ndef gripper_mujoco() -> mujoco.MjSpec:\n    s = spec(gripper())\n    for part in (\"palm\", \"left\", \"right\"):\n        fit(s, part, \"box\")                        # the kernel's box of the part's exact solid\n    for geom in collisions(s, \"left\") + collisions(s, \"right\"):\n        geom.friction = [1.1, 0.005, 0.0001]       # sliding, torsional, rolling\n    left = s.joint(\"left\")\n    left.armature = 0.002                          # kg*m^2\n    left.damping = [0.1, 0, 0]                     # N*m*s/rad, a 3-vector in MuJoCo 4\n    grip = s.add_actuator(name=\"grip\", target=\"left\", trntype=mujoco.mjtTrn.mjTRN_JOINT)\n    grip.set_to_position(kp=20, dampratio=1, inheritrange=True)\n    return s\n\n\nif __name__ == \"__main__\":\n    save(gripper_mujoco(), \"sim/gripper.xml\")\n```\n\n```bash\ncad run src/gripper_mujoco.py\ncad mujoco check sim/scene.xml\n```\n\n`spec`, `fit`, `decompose`, `collisions`, `parts` and `save` are the only helpers; they name a part by\nits label path, as `cad model inspect` prints it. Everything else is MuJoCo's API. `save` writes the\nfile with its meshes, and a `scene.xml` where there is none, then prints the check's warnings, what\nthe model collides as and its contact excludes: read them against the choices the function made. This\nfile replaces the plain export ([MuJoCo environment](references/mujoco-environment.md#the-mujoco-function)).\n\n## Author by hand\n\nFor a robot that has a CAD model here, generate the URDF or MJCF and author only what it does not\ncarry: the SRDF, a MuJoCo scene. Each format owns one thing:\n\n- **URDF**: physical structure. Links, joints, geometry, inertials, limits, mimic joints.\n- **SRDF**: MoveIt semantics over a valid URDF. Groups, group states, end effectors, disabled\n  collision pairs. It pairs with its URDF by colocation and robot name alone: same folder, same\n  `<robot name>`, exactly one such URDF.\n- **MJCF**: a MuJoCo model. Bodies, joints, geoms, default classes, actuators, equalities and\n  keyframes, in one file or a `scene.xml` that includes the robot's.\n- **Meshes** belong to the CAD workflow: one per link, exported in that link's frame. A wrong export\n  is fixed there, never with a URDF origin or an MJCF body position.\n\nWhat holds for every format:\n\n- Name the consumers first (RViz, robot_state_publisher, MoveIt, a driver, MuJoCo), and how strict\n  each is.\n- Keep a ledger of the modeled facts (frames, joints, geometry, units, assumptions and where each\n  came from) as a comment block at the top of a hand-written file, updated in the same edit.\n- Units are SI: metres, kilograms, seconds, radians. An MJCF says `<compiler angle=\"radian\"/>`, since\n  MuJoCo's default is degrees.\n- Transforms, axes, joint signs, mesh units and inertia tensors come from a source (CAD, a drawing, a\n  datasheet, a measurement, a formula or script), never from prose or how a picture looks. An\n  assumption is stated as one ([guardrails](references/guardrails.md)).\n- Names are shared identifiers: SRDF groups, controllers and TF read the URDF's link and joint names,\n  so a rename updates every consumer in the same task, and any URDF edit re-runs `cad srdf validate`\n  on the SRDF beside it.\n\nThe trap in each format, and where its contract is:\n\n- **URDF**: most errors are frame errors. A joint's `<origin>` is the parent-link-frame transform to\n  the joint frame at zero, the child link frame coincides with the joint frame, `<axis>` is in the\n  joint frame, and `visual`, `collision` and `inertial` origins are each in the link frame\n  ([frames and signs](references/urdf-authoring.md#frames-and-signs)).\n- **SRDF**: the failure is a plausible file with the wrong group, tool link, default state or\n  collision matrix. Extract the URDF's link and joint table and copy every name from it; derive groups\n  from its topology and disabled collisions from evidence\n  ([authoring](references/srdf-authoring.md)).\n- **MJCF**: units and defaults. Angles are degrees unless the compiler line says radians (a keyframe's\n  `qpos` is radians regardless), and a geom or joint inherits from its default class. Split the robot\n  from its world, and clear every model-health warning before tuning physics\n  ([authoring](references/mjcf-authoring.md)).\n\n## Check each change\n\n```bash\ncad urdf validate path/to/robot.urdf\ncad urdf validate path/to/robot.urdf --packages robot_description=/path/to/pkg\ncad srdf validate path/to/robot.srdf --strict\ncad mujoco check path/to/scene.xml\ncad mujoco check path/to/scene.xml --strict --json\ncad urdf snapshot path/to/robot.urdf review.png --pose '{\"shoulder_pitch\": 30}'\ncad srdf snapshot path/to/robot.srdf review.png --pose arm/ready\ncad run mujoco-studio --model path/to/scene.xml\n```\n\n| Change | Check it with |\n| --- | --- |\n| A CAD model's mechanism or declarations | Run it, export again (or run its MuJoCo function again), validate the file; `cad model snapshot` at each mechanism state first, where the joint signs show |\n| A MuJoCo function or a scene script | Run it and read what `save` printed, then `cad mujoco check` on the scene |\n| Any `.urdf` | `cad urdf validate` until clean; `check_urdf` when installed; `cad srdf validate` on an SRDF beside it |\n| A joint origin, axis, sign or limit | Every movable joint moved through its limits, in the viewer or in snapshots at `--pose` values. Only this catches a flipped sign |\n| A mesh, its scale or placement | A snapshot: about 1000x too large or small is a `scale` bug |\n| An inertial | The [sanity gates](references/inertials.md#sanity-gates) |\n| Any `.srdf` | `cad srdf validate`, which cross-checks every name, chain, state and pair against the URDF; named states in a snapshot |\n| Any MJCF | `cad mujoco check`: MuJoCo's own compile, the model-health checks, what collides and the contact excludes |\n| MuJoCo physics | One parameter changed, checked, and run in MuJoCo Studio against the baseline ([tuning](references/mujoco-environment.md#tuning)) |\n| A ROS or MoveIt consumer | Its own load where available: RViz, the TF tree, MoveIt Setup Assistant |\n\n- A check validates one file and collects every finding (severity, code, location, hint). `--strict`\n  fails on warnings, `--json` prints the result as one object, and the exit status is 1 for a file\n  that fails and 2 for a command refused.\n- A snapshot's `--pose` takes degrees (metres for a slide), though the files hold radians.\n- No `cad` command draws an MJCF. `cad run mujoco-studio` serves MuJoCo Studio's web viewer for the\n  person, reloading as the file changes; it listens on every network interface with no\n  authentication, so it is for this computer or a trusted network.\n- A clean check is a guardrail, not proof: it cannot show that an axis matches the robot, that mesh\n  units match `scale`, that a planning group suits the task or that a gain is right. Report which\n  checks ran, which were skipped, and the assumptions made\n  ([report shape](references/guardrails.md#the-report)).\n\n## Show the model\n\nShow the person each model you create or change as soon as its first run succeeds, and any model\nor file they ask to see. A model's page is the `view:` line its run prints, and a file's is the `url`\nthat `cad viewer --json FILE [FILE ...]` prints for it (never guess the port). Show it with\nthe first of these you have:\n\n1. `cad_show` among your tools (your host may prefix it): call it with the model's id or the file's\n   absolute path; its description says the rest.\n2. A tool that opens a page in the app's own browser pane, not in the person's own browser (in the\n   Claude desktop app, the Browser pane's `preview_start` with the page's `url`, or its `navigate`):\n   open the page there yourself, and give the person the link as well.\n3. Neither: give the person the link, to open in their browser.\n\nThe page follows every run of the model. A file you export is a download: give its path. Showing is\nfor the person: to check your own work, review with `cad <type> snapshot`, never a screenshot\nof the page. If it fails to launch, say so.\n\nAn MJCF is the exception: the viewer and `cad_show` do not open one. Show the person the CAD\nmodel it was generated from, and for the MJCF itself run `cad run mujoco-studio --model FILE` and\ngive them the URL it prints.\n"
Full snapshot data
{
  "description": "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.",
  "included_files": [
    {
      "relative_path": "LICENSE",
      "size_in_bytes": 1074
    },
    {
      "relative_path": "agents/openai.yaml",
      "size_in_bytes": 410
    },
    {
      "relative_path": "references/from-a-vendor-step.md",
      "size_in_bytes": 22765
    },
    {
      "relative_path": "references/from-cad.md",
      "size_in_bytes": 9935
    },
    {
      "relative_path": "references/guardrails.md",
      "size_in_bytes": 3461
    },
    {
      "relative_path": "references/inertials.md",
      "size_in_bytes": 9673
    },
    {
      "relative_path": "references/interoperability.md",
      "size_in_bytes": 5784
    },
    {
      "relative_path": "references/meshes.md",
      "size_in_bytes": 5812
    },
    {
      "relative_path": "references/mjcf-authoring.md",
      "size_in_bytes": 5472
    },
    {
      "relative_path": "references/mjcf-checks.md",
      "size_in_bytes": 8158
    },
    {
      "relative_path": "references/mujoco-environment.md",
      "size_in_bytes": 22008
    },
    {
      "relative_path": "references/snapshots.md",
      "size_in_bytes": 4333
    },
    {
      "relative_path": "references/srdf-authoring.md",
      "size_in_bytes": 6932
    },
    {
      "relative_path": "references/srdf-checks.md",
      "size_in_bytes": 3345
    },
    {
      "relative_path": "references/urdf-authoring.md",
      "size_in_bytes": 5711
    },
    {
      "relative_path": "references/urdf-checks.md",
      "size_in_bytes": 4703
    },
    {
      "relative_path": "references/urdf-four-bar.md",
      "size_in_bytes": 3110
    }
  ],
  "name": "robot-simulation",
  "skill_md_contents": "---\nname: robot-simulation\ndescription: 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.\nlicense: MIT\nmetadata:\n  repository: earthtojake/text-to-cad\n---\n\n# Robots and worlds for simulation and motion planning\n\nA robot is described for its consumers in XML: a URDF for its structure (ROS, RViz,\nrobot_state_publisher), an SRDF beside it for MoveIt's planning semantics, and an MJCF for MuJoCo.\nThere are two routes to one:\n\n- **Generate it from CAD.** A text-to-cad model that holds the mechanism, materials and named frames\n  is the source of truth: `cad model export` writes the URDF or MJCF, with frames, limits, masses,\n  inertias and meshes exact from the kernel. The file is regenerated, never edited.\n- **Author it by hand.** A robot with no CAD model here, an SRDF (always), a MuJoCo scene, or a file\n  that already exists: the XML is the source of truth. The risk is not XML syntax but frames, axis\n  signs, units, mesh scale, inertials and planning semantics: a file can pass every check and still\n  place a joint in the wrong spot.\n\n## Start with the task\n\n| Task | Start with | Reference |\n| --- | --- | --- |\n| A URDF or MJCF from a CAD model | The model's declarations, then `cad model export <id> robot.xml` or `.urdf` | [Generate from CAD](#generate-from-cad), [from CAD](references/from-cad.md) |\n| Collision shapes, joint dynamics, actuators for MuJoCo | A MuJoCo function, run with `cad run` | [The MuJoCo function](#the-mujoco-function), [MuJoCo environment](references/mujoco-environment.md) |\n| A robot from a vendor's STEP | Read it, group parts into links, find each axis, declare, export | [From a vendor STEP](references/from-a-vendor-step.md) |\n| A MuJoCo scene: several robots, objects, a world | `spec()` for each piece, composed with MuJoCo's own `MjSpec` | [MuJoCo environment](references/mujoco-environment.md#the-scene-in-code) |\n| Tune a MuJoCo model's physics | `cad mujoco check`'s model-health findings, one parameter at a time | [Tuning](references/mujoco-environment.md#tuning), [MJCF checks](references/mjcf-checks.md) |\n| A URDF by hand | The `.urdf` and its ledger, then `cad urdf validate` | [Authoring](references/urdf-authoring.md) (frames and signs, the ledger), [checks](references/urdf-checks.md) |\n| MoveIt groups, end effectors, states, collision pairs | A `.srdf` beside the URDF, then `cad srdf validate` | [Authoring](references/srdf-authoring.md) (end effectors, disabled collisions, the ledger), [checks](references/srdf-checks.md) |\n| An MJCF by hand | `robot.xml` and a `scene.xml` that includes it, then `cad mujoco check` | [Authoring](references/mjcf-authoring.md), [checks](references/mjcf-checks.md) |\n| Link meshes for a hand-written file | One mesh per link, in the link's frame | [Meshes](references/meshes.md) |\n| Mass, centre of mass, inertia | Materials on the CAD parts; else a formula or a script, never intuition | [Inertials](references/inertials.md) |\n| A four-bar in the viewer | `<tcad:four_bar>` on the derived URDF joint | [Four-bar](references/urdf-four-bar.md) |\n| See the robot or a pose | `cad urdf snapshot`, `cad srdf snapshot`; an MJCF in MuJoCo Studio | [Snapshots](references/snapshots.md) |\n| Work across formats, or convert a URDF to MJCF | Which file owns what | [Interoperability](references/interoperability.md) |\n\n## Setup\n\nWritten for `cad==0.11.19`. Before first use in a chat, run `cad --version`. If it fails, or `cad` is missing or older\nthan 0.11.12, run `uv tool install --force cad`. If it is older than the release this skill was written for, run\n`cad update`.\n\nIf cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:\nhttps://github.com/earthtojake/text-to-cad\nA project written for an earlier version may need changes; the migration guides say what:\nhttps://github.com/earthtojake/text-to-cad/tree/main/docs/migrations\n\nMuJoCo (`cad mujoco check`, `cad run mujoco-studio`, a script that imports `mujoco`) and CoACD\n(`decompose()`) are fetched by `cad` the first time they are needed, about 20 MB and 4 MB; nothing to\ninstall. `cad <command> --help` is the complete, current interface.\n\n## Generate from CAD\n\nThe model says what is true of the machine, in its body (the `cad` skill's kinematics reference\ncovers the mechanism itself), and the export writes each format from it:\n\n| In the model | Says | Written as |\n| --- | --- | --- |\n| build123d joints, connected | Links, joints, and each joint's range around the as-built pose, which is zero | Bodies and joints; links and joints |\n| `mechanism_state(...)` | Named poses; name one `home` | MJCF keys (URDF has none) |\n| `gear_pair`, `rack_and_pinion_pair` | A follower joint on its leader | `<equality><joint>`; `<mimic>` |\n| `part.material`, `mass()`, `point_mass()` | Density, a measured total, a lump the CAD leaves out | Exact `<inertial>`s |\n| `frame(part, name, location)` | A tool point, a mount, a sensor | A site; an empty link |\n| `body(part, name)` | A part kept as its own body | A child body; a link on a fixed joint |\n| `limits(assembly, joint, effort=, velocity=)` | The drive's datasheet limits | `actuatorfrcrange`; `<limit>` |\n| `link(part_or_assembly, name)` | A link's name (`base_link`) | Body and link names |\n| `free(assembly)` | Not bolted to the world | `<freejoint>`; a floating root |\n\n```python\nfrom cad.build123d import body, frame, free, limits, link, mass, point_mass\n\nframe(palm, \"tcp\", bd.Pos(0, 0, 65))   # mm, in the palm's own frame\nbody(camera, \"camera\")                 # fixed to the palm, a body of its own\nlimits(root, \"left\", effort=2, velocity=1.5)   # N*m, rad/s: the servo's datasheet\npoint_mass(palm, 120, bd.Pos(0, 0, 20), name=\"motor\")   # g, mm in the palm's own frame\nmass(palm, 410)                        # g: the palm as weighed, its motor included\nlink(palm, \"base_link\")                # the palm's link, named as ROS names a base\nfree(root)                             # on a mobile base: not bolted to the world\n```\n\n```bash\ncad run src/gripper.py\ncad model ranges \"$ID\"                                       # stops where the parts meet, to write into the joints\ncad model export \"$ID\" sim/gripper.xml\ncad model export \"$ID\" description/gripper.urdf --zero home\n```\n\n`$ID` is the `id:` line the run printed; the suffix picks the format, and meshes are written beside\nthe file. Each export says what it wrote (links, joints, total mass, couplings, frames, keys) with a\nwarning for anything left out: read it first, since a mass of 0 or a missing joint is a model to fix.\nAn MJCF export also writes a `scene.xml` beside it once (floor, light), which is yours to edit.\n[From CAD](references/from-cad.md) has each declaration in full, joint ranges, the zero pose and\n`--zero`.\n\n- **Never edit a generated file.** A frame, limit, mass or mesh is changed in the model; a collision\n  shape, damping or actuator in the MuJoCo function; a floor or solver setting in the scene.\n- **The kernel cannot know intent**: check that each joint's positive motion is the one meant\n  (`cad model snapshot \"$ID\" out.png --pose <state>`) and that the collision shapes suit the physics.\n\n### The MuJoCo function\n\nA plain export holds no chosen collision shape, joint dynamics or actuator: each part collides as its\nown mesh's convex hull, and nothing drives the joints. Those are a simulation's choices, made in a\nplain Python function beside the model that turns the robot into a `mujoco.MjSpec`, edits it with\nMuJoCo's own API and returns it:\n\n```python\n# src/gripper_mujoco.py\nimport mujoco\nfrom cad.mujoco import collisions, fit, save, spec\n\nfrom gripper import gripper\n\n\ndef gripper_mujoco() -> mujoco.MjSpec:\n    s = spec(gripper())\n    for part in (\"palm\", \"left\", \"right\"):\n        fit(s, part, \"box\")                        # the kernel's box of the part's exact solid\n    for geom in collisions(s, \"left\") + collisions(s, \"right\"):\n        geom.friction = [1.1, 0.005, 0.0001]       # sliding, torsional, rolling\n    left = s.joint(\"left\")\n    left.armature = 0.002                          # kg*m^2\n    left.damping = [0.1, 0, 0]                     # N*m*s/rad, a 3-vector in MuJoCo 4\n    grip = s.add_actuator(name=\"grip\", target=\"left\", trntype=mujoco.mjtTrn.mjTRN_JOINT)\n    grip.set_to_position(kp=20, dampratio=1, inheritrange=True)\n    return s\n\n\nif __name__ == \"__main__\":\n    save(gripper_mujoco(), \"sim/gripper.xml\")\n```\n\n```bash\ncad run src/gripper_mujoco.py\ncad mujoco check sim/scene.xml\n```\n\n`spec`, `fit`, `decompose`, `collisions`, `parts` and `save` are the only helpers; they name a part by\nits label path, as `cad model inspect` prints it. Everything else is MuJoCo's API. `save` writes the\nfile with its meshes, and a `scene.xml` where there is none, then prints the check's warnings, what\nthe model collides as and its contact excludes: read them against the choices the function made. This\nfile replaces the plain export ([MuJoCo environment](references/mujoco-environment.md#the-mujoco-function)).\n\n## Author by hand\n\nFor a robot that has a CAD model here, generate the URDF or MJCF and author only what it does not\ncarry: the SRDF, a MuJoCo scene. Each format owns one thing:\n\n- **URDF**: physical structure. Links, joints, geometry, inertials, limits, mimic joints.\n- **SRDF**: MoveIt semantics over a valid URDF. Groups, group states, end effectors, disabled\n  collision pairs. It pairs with its URDF by colocation and robot name alone: same folder, same\n  `<robot name>`, exactly one such URDF.\n- **MJCF**: a MuJoCo model. Bodies, joints, geoms, default classes, actuators, equalities and\n  keyframes, in one file or a `scene.xml` that includes the robot's.\n- **Meshes** belong to the CAD workflow: one per link, exported in that link's frame. A wrong export\n  is fixed there, never with a URDF origin or an MJCF body position.\n\nWhat holds for every format:\n\n- Name the consumers first (RViz, robot_state_publisher, MoveIt, a driver, MuJoCo), and how strict\n  each is.\n- Keep a ledger of the modeled facts (frames, joints, geometry, units, assumptions and where each\n  came from) as a comment block at the top of a hand-written file, updated in the same edit.\n- Units are SI: metres, kilograms, seconds, radians. An MJCF says `<compiler angle=\"radian\"/>`, since\n  MuJoCo's default is degrees.\n- Transforms, axes, joint signs, mesh units and inertia tensors come from a source (CAD, a drawing, a\n  datasheet, a measurement, a formula or script), never from prose or how a picture looks. An\n  assumption is stated as one ([guardrails](references/guardrails.md)).\n- Names are shared identifiers: SRDF groups, controllers and TF read the URDF's link and joint names,\n  so a rename updates every consumer in the same task, and any URDF edit re-runs `cad srdf validate`\n  on the SRDF beside it.\n\nThe trap in each format, and where its contract is:\n\n- **URDF**: most errors are frame errors. A joint's `<origin>` is the parent-link-frame transform to\n  the joint frame at zero, the child link frame coincides with the joint frame, `<axis>` is in the\n  joint frame, and `visual`, `collision` and `inertial` origins are each in the link frame\n  ([frames and signs](references/urdf-authoring.md#frames-and-signs)).\n- **SRDF**: the failure is a plausible file with the wrong group, tool link, default state or\n  collision matrix. Extract the URDF's link and joint table and copy every name from it; derive groups\n  from its topology and disabled collisions from evidence\n  ([authoring](references/srdf-authoring.md)).\n- **MJCF**: units and defaults. Angles are degrees unless the compiler line says radians (a keyframe's\n  `qpos` is radians regardless), and a geom or joint inherits from its default class. Split the robot\n  from its world, and clear every model-health warning before tuning physics\n  ([authoring](references/mjcf-authoring.md)).\n\n## Check each change\n\n```bash\ncad urdf validate path/to/robot.urdf\ncad urdf validate path/to/robot.urdf --packages robot_description=/path/to/pkg\ncad srdf validate path/to/robot.srdf --strict\ncad mujoco check path/to/scene.xml\ncad mujoco check path/to/scene.xml --strict --json\ncad urdf snapshot path/to/robot.urdf review.png --pose '{\"shoulder_pitch\": 30}'\ncad srdf snapshot path/to/robot.srdf review.png --pose arm/ready\ncad run mujoco-studio --model path/to/scene.xml\n```\n\n| Change | Check it with |\n| --- | --- |\n| A CAD model's mechanism or declarations | Run it, export again (or run its MuJoCo function again), validate the file; `cad model snapshot` at each mechanism state first, where the joint signs show |\n| A MuJoCo function or a scene script | Run it and read what `save` printed, then `cad mujoco check` on the scene |\n| Any `.urdf` | `cad urdf validate` until clean; `check_urdf` when installed; `cad srdf validate` on an SRDF beside it |\n| A joint origin, axis, sign or limit | Every movable joint moved through its limits, in the viewer or in snapshots at `--pose` values. Only this catches a flipped sign |\n| A mesh, its scale or placement | A snapshot: about 1000x too large or small is a `scale` bug |\n| An inertial | The [sanity gates](references/inertials.md#sanity-gates) |\n| Any `.srdf` | `cad srdf validate`, which cross-checks every name, chain, state and pair against the URDF; named states in a snapshot |\n| Any MJCF | `cad mujoco check`: MuJoCo's own compile, the model-health checks, what collides and the contact excludes |\n| MuJoCo physics | One parameter changed, checked, and run in MuJoCo Studio against the baseline ([tuning](references/mujoco-environment.md#tuning)) |\n| A ROS or MoveIt consumer | Its own load where available: RViz, the TF tree, MoveIt Setup Assistant |\n\n- A check validates one file and collects every finding (severity, code, location, hint). `--strict`\n  fails on warnings, `--json` prints the result as one object, and the exit status is 1 for a file\n  that fails and 2 for a command refused.\n- A snapshot's `--pose` takes degrees (metres for a slide), though the files hold radians.\n- No `cad` command draws an MJCF. `cad run mujoco-studio` serves MuJoCo Studio's web viewer for the\n  person, reloading as the file changes; it listens on every network interface with no\n  authentication, so it is for this computer or a trusted network.\n- A clean check is a guardrail, not proof: it cannot show that an axis matches the robot, that mesh\n  units match `scale`, that a planning group suits the task or that a gain is right. Report which\n  checks ran, which were skipped, and the assumptions made\n  ([report shape](references/guardrails.md#the-report)).\n\n## Show the model\n\nShow the person each model you create or change as soon as its first run succeeds, and any model\nor file they ask to see. A model's page is the `view:` line its run prints, and a file's is the `url`\nthat `cad viewer --json FILE [FILE ...]` prints for it (never guess the port). Show it with\nthe first of these you have:\n\n1. `cad_show` among your tools (your host may prefix it): call it with the model's id or the file's\n   absolute path; its description says the rest.\n2. A tool that opens a page in the app's own browser pane, not in the person's own browser (in the\n   Claude desktop app, the Browser pane's `preview_start` with the page's `url`, or its `navigate`):\n   open the page there yourself, and give the person the link as well.\n3. Neither: give the person the link, to open in their browser.\n\nThe page follows every run of the model. A file you export is a download: give its path. Showing is\nfor the person: to check your own work, review with `cad <type> snapshot`, never a screenshot\nof the page. If it fails to launch, say so.\n\nAn MJCF is the exception: the viewer and `cad_show` do not open one. Show the person the CAD\nmodel it was generated from, and for the MJCF itself run `cad run mujoco-studio --model FILE` and\ngive them the URL it prints.\n"
}

SHA-256 of public snapshot: 95c744c10bd75e6dcea0efa15b266e7a0807b1aa80d7422cf673969437245552