๐ค AI Agent Skill#
MotrixSim ships an Agent Skill for AI coding assistants such as Claude Code and Codex. Once installed, when you ask your assistant to write, debug, or review a MotrixSim Python program or an MJCF XML model, it resolves API signatures and MJCF attributes from the official versioned documentation instead of guessing from model memory. This greatly reduces mistakes in API names, parameters, and XML tags.
Installation#
The motrixsim skill is distributed through the open-source npx skills tool, using a GitHub repository as its source. Install it with the following steps:
Prepare the prerequisites: install Node.js (which provides the
npxcommand), and have an AI coding assistant that supports Agent Skills, such as Claude Code or Codex.(Optional) List the skills available in the repository:
npx skills add Motphys/agent-skills --list
Install the motrixsim skill:
npx skills add Motphys/agent-skills --skill motrixsim
Note
During installation, npx skills lets you choose which detected assistant to install into; the skill is written to that assistantโs config directory, for example ~/.claude/skills/ for Claude Code or ~/.agents/skills/ for Codex.
Usage#
You do not need to invoke the skill manually after installation. The assistant reads the skill description and activates it automatically when your task matches โwriting, debugging, or reviewing a MotrixSim Python program or MJCF modelโ.
Just describe what you want as usual, for example:
โWrite a MotrixSim Python script that loads
scene.xmland steps the simulation 500 timesโโAdd a hinge joint and a position actuator to this MJCF for meโ
โThis MotrixSim code throws an error, check my API usageโ
Once active, the skill will:
Locate the official docs matching the target version
Read the API / MJCF index first, then the specific documentation block
Generate the script or model using the exact names and constraints from the docs
Run a minimal validation when dependencies are available
Note
The skill relies on the documentation in Motphys/motrixsim-agent-docs, organized by MotrixSim version. If the matching version is missing locally, the skill fetches the corresponding tag from that repository; when the exact version does not exist, it picks the closest version not exceeding the target and reports the version mismatch.