Model editing and kinematics
Use this sub-skill when a task changes a MuJoCo model before compilation,
needs a site pose converted to joint coordinates, or needs quaternion/vector
utility semantics. It is an operating guide, not an environment lifecycle,
renderer, reference-motion, or MJX-parity guide.
Route the request
- Identify the input model, the intended edit, the compile target, and the
expected cleanup behavior before touching the model.
- For a one-off XML edit, use
ModelEditor(model_path)and keep the edit in a
callable edit_fn(spec) -> None. For a reusable pure XML transformation,
use the XML helpers described in API reference.
- For inverse kinematics, name the target site and state whether position,
orientation, or both are constrained. Validate target shapes before calling
the solver.
- Prefer a bounded, non-rendering CPU smoke test. Use