mujoco

mujoco is a skill for Claude Code, Codex from arpitg1304/robotics-agent-skills. It costs 242 tokens per session (5,777 once invoked), scanned A, original, Apache-2.0.

A guide to using MuJoCo, a physics simulator for creating virtual robots and environments. It covers MJCF and URDF model files, Python control loops, sensors, and rendering.

In plain words
What is it for?
Use it to create or fix robot scenes, import URDF models, write controllers, read sensors, render images, run batch simulations, and diagnose unstable motion.
Why use it?
Robot simulations can fail through incorrect models, contacts, controls, or rendering setup. This helps build, run, inspect, and debug those simulations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or fix robot scenes, import URDF models, write controllers, read sensors, render images, run batch simulations, and diagnose unstable motion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arpitg1304/robotics-agent-skills/mujoco
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add arpitg1304/robotics-agent-skills --skill mujoco
Clone the repo
git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mujoco

README.md
[![agentmods](https://agentmods.dev/badge/skills/arpitg1304/robotics-agent-skills/mujoco/github.svg)](https://agentmods.dev/skills/arpitg1304/robotics-agent-skills/mujoco)
Your own site
<a href="https://agentmods.dev/skills/arpitg1304/robotics-agent-skills/mujoco"><img src="https://agentmods.dev/badge/skills/arpitg1304/robotics-agent-skills/mujoco/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mujoco

Your own site · 80×15
<a href="https://agentmods.dev/skills/arpitg1304/robotics-agent-skills/mujoco"><img src="https://agentmods.dev/badge/skills/arpitg1304/robotics-agent-skills/mujoco.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 242 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,777 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00242 $0.05777
Opus 5.5 $0.00097 $0.02311
Sonnet 5.5 $0.00048 $0.01155
Haiku 4.5 $0.00024 $0.00578

Measured 10d ago against content hash 2a35b9d15a35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mujoco scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mujoco/SKILL.md · 346 lines

How it starts

The opening of the file, as written. The whole thing — 346 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MuJoCo Skill

Verified against MuJoCo 4.0.1, 2026-11-18. Examples were executed with mujoco==4.0.1, mujoco-mjx==4.0.1 (JAX 0.12.1, CPU), mujoco-warp==4.0.1 (Warp 1.19.0, CPU device) and gymnasium==1.4.0 on Python 3.12, macOS arm64.

MuJoCo moves fast (4.0.0 shipped 2026-11-06 with breaking changes; a new discrete integrator and speculative contacts landed in autumn 2026). Before relying on a detail that is not in this skill, check the installed docs: pip install mujoco bundles the Sphinx manual and Google's own agent skills under pathlib.Path(mujoco.__file__).parent / "doc" (doc/skills/python, rendering, accelerated, spec_editing, ...). Grep there for the literal .. _option-integrator:-style anchor of an attribute.

When to Use This Skill

  • Writing or fixing an MJCF scene: bodies, joints, actuators, sensors, defaults, keyframes
  • Converting a URDF to MJCF and making it simulate well
  • Writing a Python control loop, reading sensors, resetting episodes, saving state
  • Rendering RGB / depth / segmentation offscreen, including on headless Linux
  • Diagnosing exploding, jittering, sinking, tunneling or slipping simulations
  • Choosing between CPU MuJoCo, mujoco.batch, MJX and MuJoCo Warp for parallel rollouts
  • Identifying actuator gains, armature and friction from hardware logs; randomising model fields

Out of scope here: RL algorithms, reward design and sim-to-real theory (robot-reinforcement-learning); Isaac Sim / Isaac Lab (isaac-sim); LeRobot datasets and policies (lerobot, imitation-learning).

Ecosystem Map

Full component table and Menagerie model list: references/ecosystem.md.

  • Core: pip install mujoco (4.0.1), Python >= 3.11. Since 4.0 mujoco is a metapackage: mujoco-core (numpy only; headless servers, RL workers) + mujoco-studio + glfw/pyopengl.
  • CPU batch: from mujoco import batch, rollout; multi-threaded, float64, all solvers/plugins.
  • MJX (pip install mujoco-mjx, from mujoco import mjx): impl="jax" (default; any XLA device; differentiable) or impl="warp" (NVIDIA; not differentiable).
  • MuJoCo Warp (pip install mujoco-warp, import mujoco_warp as mjw): NVIDIA GPU, highest-throughput batches, PyTorch training; not differentiable.
  • MuJoCo Playground (pip install playground, 1.0.1): rewritten as PyTorch tasks on reaf-sim + MuJoCo Warp with RSL-RL training and real-robot deploy. The original JAX/MJX envs live in the repo's rss2025/ directory.
  • Menagerie: curated MJCF robots (pip install mujoco-menagerie); never hand-write a common arm. SO-101: robotstudio_so101/so101.xml. Some models ship *_mjx.xml variants.
  • dm_control 1.0.52 requires mujoco>=4.0.1; for new procedural models use mujoco.MjSpec, not PyMJCF. Gymnasium 1.4.0: *-v5 envs only; -v2/-v3 raise a mujoco-py error.
  • Viewers: mujoco.viewer (managed/passive) and MuJoCo Studio (python -m mujoco.studio.viewer --model=x.xml, --gfx=web), the successor of simulate.
  • 4.0 changes noted in this skill: metapackage split; saturated actuators contribute no implicit damping; the composite/cable plugin was removed (use 1D flexcomp); speculative contacts are new.

Read the full file on GitHub · 346 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 346 lines · 242 tokens per session scan A 2a35b9d15a35

Subscribe to this mod's changes

mujoco is a skill published in the GitHub repository arpitg1304/robotics-agent-skills (410 stars, last pushed 11d ago), licensed Apache-2.0. It adds 242 tokens to every session and 5,777 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-20.

Related

mujoco compared with skills from other repositories

mujoco next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mujocoarpitg1304/robotics-agent-skillsSkill41011d agoApache-2.0A242Claude Code, Codex
lab-hardware-cadK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA108Claude Code
opentrons-integrationK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA83Claude Code
pylabrobotK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA49Claude Code
pybammK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA70Claude Code, Codex
feaearthtojake/text-to-cadSkill28ktodayMITA109Claude Code, Codex
evaluating-cosmos-policyOrchestra-Research/AI-Research-SKILLsSkill15k1mo agoMITA51Claude Code