Mujoco Python 标志

Mujoco Python

社区
eust-w
mujoco-python

MuJoCo Python (`import mujoco`) simulation lifecycle (MjSpec, MjModel, MjData), stepping (mj_step, mj_step1, mj_step2, mj_forward), named access (data.body, model.geom), bind(), multi-threaded CPU batch simulation (mujoco.batch.Batch, mujoco.rollout), optimization and system ID (mujoco.minimize, mujoco.sysid, mjd_transitionFD), contact/touch sensors, sensordata, keyframe resets, integrators, mju_ spatial math (quaternions, poses), and energy diagnostics. Use only for MuJoCo Python physics simulation, MjModel/MjData state access, MuJoCo CPU batching, stepping loops, and MuJoCo sensors/sysid. Don't use for custom non-MuJoCo Python/NumPy/C++ ODE or rigid-body simulators, custom finite-difference sysid, or general spatial math without `mujoco`, nor for spec editing (mujoco-spec-editing), deformable flex/cloth/cable modeling (mujoco-deformables), rendering (mujoco-rendering), GPU/TPU (mujoco-accelerated), parity (mujoco-parity), or GUI/viewers (mujoco-gui, mujoco-studio).

概览

发布者eust-w
代码仓库open-robotics-plugin
技能名称mujoco-python
星标数
245
复刻数
0
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 eust-w 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Mujoco Python AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/eust-w/open-robotics-plugin/tree/main/skills/mujoco-python
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/eust-w/open-robotics-plugin.git /tmp/open-robotics-plugin
mkdir -p .claude/skills
cp -r /tmp/open-robotics-plugin/skills/mujoco-python .claude/skills/mujoco-python
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Mujoco Python,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Mujoco Python。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Mujoco Python 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

MuJoCo Python: Simulation, Sensors & Math

[!TIP]

Official MuJoCo documentation (doc/*.rst): Read short chapters like ../../programming/simulation.rst (.. _Simulation:) and ../../overview.rst directly when in a MuJoCo checkout; for large reference files like ../../python.rst (.. _PyStructs:, .. _PyNamed:, .. _PyBatch:, .. _PySysid:), ../../modeling.rst (.. _CTuning:), ../../computation/index.rst (.. _Pipeline:, .. _geIntegrators:, .. _geChoosingTimestepIntegrator:), ../../XMLreference.rst, and ../../APIreference/functions.rst, grep the literal .. _Label: anchor. Outside a checkout, the same doc/*.rst tree ships offline in pip install mujoco at pathlib.Path(mujoco.__file__).parent / 'doc'; otherwise fetch https://mujoco.readthedocs.io/en/latest/<path>.html (or /en/stable/ for released pages; functions.rst renders inside APIreference/APIfunctions.html, and Sphinx anchors lowercase the label, e.g. .. _PyBatch: → #pybatch) and browse repo paths (../../../, python/*.ipynb) under https://github.com/google-deepmind/mujoco/tree/main/.

Related skills:

  • mujoco-spec-editing — Procedural model editing and composing scenes with MjSpec.
  • mujoco-deformables — Deformable <flexcomp>, <flex>, and <skin> modeling (rods, cloth, and 3D FEM soft bodies).
  • mujoco-rendering — Offscreen image rendering, cameras, depth, and segmentation.
  • mujoco-accelerated — GPU/TPU physics simulation with MJX (JAX) and MJWarp (CUDA).
  • mujoco-parity — Cross-engine physics parity comparison against MJWarp and MJX.
  • mujoco-studio — Interactive viewers, Studio viewer apps, and plugin architecture.

[!CAUTION]

  • NEVER use mj_name2id, model.name2id, or raw integer indexing (e.g., data.qpos[0], data.xpos[body_id]) to look up elements by name. Always use named access (data.body('name').xpos) or bind() instead.
  • Do not use dm_control / PyMJCF lookup patterns. model.find('body', 'name'), .find_body(), and physics.named do not exist in MuJoCo 3.x. Use direct accessors: .body('name'), .geom('name') etc. on MjSpec, MjModel, and MjData.

1. Compilation Lifecycle: MjSpec → MjModel → MjData

MuJoCo models follow a three-stage lifecycle:

text
MjSpec  ──spec.compile()──▶  MjModel  ──MjData(model)──▶  MjData
  │                             │                            │
  │  (mutable blueprint)        │  (compiled, mostly frozen) │ (simulation state)
  │                             │                            │
  └── spec.recompile(m, d) ─────┴────────────────────────────┘
  1. MjSpec: Mutable data structure defining the simulation elements and hierarchy.
  2. MjModel: Compiled, optimized physics model containing constant and precomputed parameters. Structural changes require recompilation.
  3. MjData: Dynamic simulation state (positions, velocities, forces, contacts, diagnostic buffers).

Python Lifecycle

python
import mujoco

# 1. Build or load spec
spec = mujoco.MjSpec()
body = spec.worldbody.add_body(name='pendulum', pos=[0, 0, 1])
body.add_geom(type=mujoco.mjtGeom.mjGEOM_SPHERE, size=[0.1])
body.add_joint(name='hinge', type=mujoco.mjtJoint.mjJNT_HINGE, axis=[0, 1, 0])

# 2. Compile to model and instantiate data
model = spec.compile()
data = mujoco.MjData(model)
mujoco.mj_forward(model, data)

# 3. Dynamic recompilation (preserves existing state)
body2 = spec.worldbody.add_body(name='ball2', pos=[1, 0, 1])
body2.add_geom(size=[0.1])
body2.add_freejoint()
model, data = spec.recompile(model, data)  # Always reassign return values

C++ Lifecycle

cpp
#include <mujoco/mujoco.h>

// 1. Create or load spec (or: mj_parseXML(filename, nullptr, error, sizeof(error)))
mjSpec* spec = mj_makeSpec();
mjsBody* world = mjs_findBody(spec, "world");
mjsBody* body = mjs_addBody(world, nullptr);
mjsGeom* geom = mjs_addGeom(body, nullptr);
geom->type = mjGEOM_SPHERE;
geom->size[0] = 0.1;

// 2. Compile to model and create data
mjModel* model = mj_compile(spec, nullptr);
if (!model) {
  printf("%s\n", mjs_getError(spec));
}
mjData* data = mj_makeData(model);

// 3. Step or evaluate
mj_forward(model, data);

// 4. Clean up allocated resources
mj_deleteData(data);
mj_deleteModel(model);
mj_deleteSpec(spec);

Loading and Serializing

python
# Direct model loading from file or string
model = mujoco.MjModel.from_xml_path('model.xml')
model = mujoco.MjModel.from_xml_string(xml_str)
model = mujoco.MjModel.from_binary_path('model.mjb')  # Precompiled binary format

# Loading mutable spec from file or string
spec = mujoco.MjSpec.from_file('model.xml')
spec = mujoco.MjSpec.from_string(xml_str)

# Serialization
xml_string = spec.to_xml()
spec.encode('model.xml', model)

[!CAUTION]

mujoco.load_model_from_path does not exist in MuJoCo 3.x. Use mujoco.MjModel.from_xml_path(path) or mujoco.MjSpec.from_file(path). For ready-to-run models, check ../../../model/ (humanoid/humanoid.xml, tendon_arm/arm26.xml, car/car.xml), ../../../test/engine/testdata/, and MuJoCo Menagerie (models.rst, .. _Menagerie:).

2. Accessing State: Named Access & bind()

1. Named Access (on MjModel and MjData)

In Python, access elements by calling the element-type accessor with the element name:

python
# Reading state
torso_pos = data.body('torso').xpos      # NumPy view (3,)
knee_angle = data.joint('knee').qpos     # Shape depends on joint type
ball_size = model.geom('ball').size      # NumPy view (3,)

# Writing controls and state
data.actuator('motor').ctrl = 1.0        # Writable view
data.joint('knee').qpos = 0.5

Supported element accessors: body, geom, joint (alias jnt), site, camera (alias cam), light, mesh, skin, texture (alias tex), material (alias mat), pair, equality (alias eq), tendon (alias ten), actuator, sensor, numeric, text, tuple, keyframe (alias key).

[!WARNING]

Named access returns views, not copies. In a simulation loop, modifying the simulation changes the array in-place. If logging or storing history, always call .copy():

python
# ❌ WRONG — all history items will point to the same final state
history.append(data.body('torso').xpos)

# ✅ RIGHT — records distinct coordinates
history.append(data.body('torso').xpos.copy())

2. bind() (Bridges MjSpec elements → MjModel / MjData)

When building models programmatically with MjSpec, use bind() to map spec element handles directly to compiled data:

python
geom = spec.worldbody.add_geom(name='ball', size=[0.1])
joint = spec.worldbody.add_joint(name='hinge', type=mujoco.mjtJoint.mjJNT_HINGE)
model = spec.compile()
data = mujoco.MjData(model)

# Read through bind
radius = model.bind(geom).size[0]
ball_pos = data.bind(geom).xpos

# Write through bind — always use .set()
data.bind(joint).set('qpos', 0.5)

# Bind lists of spec elements in batch
joints = [spec.joint('j1'), spec.joint('j2')]
joint_angles = data.bind(joints).qpos

3. Simulation Stepping & Execution Pipeline

Stepping Pipeline (mj_step vs mj_step1 / mj_step2)

  • mj_step(model, data): Advances the simulation by one timestep (model.opt.timestep). It computes kinematics, forces, collision constraints, accelerations, and numerical integration in one full pass.
  • Split Stepping (mj_step1 + mj_step2): Used when custom controller forces or external computations depend on the current kinematic state:
python
# 1. Advance position kinematics and sensor computations
mujoco.mj_step1(model, data)

# 2. Apply control torques or external forces based on current kinematics
data.ctrl[:] = compute_feedback_control(data.qpos, data.qvel)
data.qfrc_applied[:] = compute_external_forces(data)

# 3. Complete dynamic acceleration and integration
mujoco.mj_step2(model, data)

Sensor and Kinematic Initialization (mj_forward)

Before reading sensors or positions at time zero, call mj_forward() instead of mj_step(). mj_forward evaluates kinematics and sensor outputs from the current state without advancing simulation time:

python
# ✅ RIGHT — initialize sensors and kinematics at t=0
mujoco.mj_forward(model, data)
initial_obs = data.sensordata.copy()

# Advance physics
for _ in range(num_steps):
  mujoco.mj_step(model, data)

Keyframe Resets & Restoring State

Use keyframes to reset configurations reliably:

python
# Python: reset to named keyframe
key_id = model.key('home').id
mujoco.mj_resetDataKeyframe(model, data, key_id)
mujoco.mj_forward(model, data)  # Recompute kinematics and sensors

In C++:

cpp
int key_id = mj_name2id(m, mjOBJ_KEY, "home");
if (key_id >= 0) {
  mj_resetDataKeyframe(m, d, key_id);
  mj_forward(m, d);
}

Integrators & Numerical Stability

Configured via model.opt.integrator (full equations and timestep/integrator selection notes in computation/index.rst, .. _geIntegrators: and .. _geChoosingTimestepIntegrator:, modeling.rst, .. _CTuningGlobal:, and XMLreference.rst, .. _option-integrator:):

  • mjINT_IMPLICITFAST (recommended): Velocity-implicit (damping, kv, fluid drag, free-body gyroscopic forces) via symmetric Cholesky at ~Euler cost.
  • mjINT_IMPLICIT: Adds asymmetric Coriolis/centripetal velocity derivatives (LU factorization) for rapidly spinning multi-link chains.
  • mjINT_EULER (legacy default): Semi-implicit Euler; implicit in joint damping only.
  • mjINT_RK4: 4th-order Runge-Kutta (4 evaluations/step) for smooth, energy-conserving systems.
  • mjINT_DISCRETE (candidate replacement in trial): Also implicit in position (stiff springs, position servos kp, <flex> <elasticity>, and their coupling with contacts; implicit/implicitfast are velocity-implicit only — see mujoco-deformables).

4. Contact & Force Sensing: Declarative Sensors

Why data.contact Should NOT Be Used for Observations

data.contact is a variable-length buffer that changes size and ordering every timestep based on active collision pairs:

python
# ❌ WRONG — variable size and non-deterministic order break ML policies
for c in data.contact:
  if c.geom1 == target_id:
    force = ...

Declarative Contact Sensors

<contact> sensors (see XMLreference.rst, .. _sensor-contact:) declaratively filter contacts, reduce them to a fixed number of slots, and write deterministic vectors directly into data.sensordata:

xml
<sensor>
  <!-- Detect contacts between gripper and object: fixed 3 slots -->
  <contact name="grip_contact"
           body1="gripper" body2="object"
           num="3" data="found force normal"
           reduce="maxforce"/>

  <!-- Net wrench on an entire body -->
  <contact name="object_net"
           body1="object"
           data="force torque"
           reduce="netforce"/>
</sensor>

Reading contact sensors in Python:

python
contact_data = data.sensor('grip_contact').data  # Always fixed length

Touch Sensors for Scalar Normal Force

For scalar surface contact forces (e.g., fingertips), use touch sensors (XMLreference.rst, .. _sensor-touch:) attached to a site. Make sure the site is large enough to encompass the geom:

python
site = body.add_site(name='fingertip', pos=[0, 0, 0.05], size=[0.02])
spec.add_sensor(
    name='touch_sensor',
    type=mujoco.mjtSensor.mjSENS_TOUCH,
    objname=site.name,
    objtype=mujoco.mjtObj.mjOBJ_SITE,
)

5. Spatial Mathematics (mju_ Library)

MuJoCo provides an optimized spatial mathematics library under the mju_ namespace in both C++ and Python.

[!IMPORTANT]

MuJoCo quaternions are scalar-first: [w, x, y, z]. SciPy and ROS use scalar-last: [x, y, z, w]. Swizzle components when converting:

python
# MuJoCo -> SciPy/ROS
scipy_quat = mj_quat[[1, 2, 3, 0]]

# SciPy/ROS -> MuJoCo
mj_quat = scipy_quat[[3, 0, 1, 2]]

Quaternion Operations

python
res = np.zeros(3)
mujoco.mju_rotVecQuat(res, vec, quat)         # Rotate vector by quaternion

quat = np.zeros(4)
mujoco.mju_mat2Quat(quat, mat9)               # Flat (9,) rotation matrix → quaternion
mujoco.mju_quat2Mat(mat9, quat)               # Quaternion → flat (9,) matrix
mujoco.mju_axisAngle2Quat(quat, axis, angle)  # Axis-angle → quaternion
mujoco.mju_euler2Quat(quat, euler, 'xyz')     # Euler angles → quaternion
mujoco.mju_mulQuat(res_q, q1, q2)             # Compose quaternions (q1 * q2)
mujoco.mju_negQuat(res_q, quat)               # Quaternion conjugate (inverse)
mujoco.mju_quatZ2Vec(quat, vec)               # Quaternion rotating Z-axis to vector

Pose Operations

python
# Compose poses (pos1/quat1 then pos2/quat2)
mujoco.mju_mulPose(pos_res, quat_res, pos1, quat1, pos2, quat2)

# Invert pose
mujoco.mju_negPose(pos_res, quat_res, pos, quat)

# Transform 3D point by pose
mujoco.mju_trnVecPose(res, pos, quat, vec)

6. Energy & Diagnostics

MuJoCo can continuously compute total mechanical energy to diagnose simulation stability:

python
# Enable energy monitoring
model.opt.enableflags |= mujoco.mjtEnableBit.mjENBL_ENERGY

mujoco.mj_step(model, data)
potential_energy = data.energy[0]
kinetic_energy = data.energy[1]
total_energy = potential_energy + kinetic_energy

In passive, unforced, undamped systems, total_energy must remain constant. Growing energy indicates numerical integration instability (requiring smaller timesteps, or implicitfast if large damping or other velocity-dependent forces are the cause). Before stiffening contacts to mask instability, inspect the paused model at t = 0 in Studio/simulate for initial penetrations, visual/collision geom mismatches, concave collision meshes replaced by convex hulls (.. _coChecking:), implausible CAD/URDF inertia boxes, and degree/radian mismatches (compiler/angle defaults to "degree"). For priority-ordered speed-fidelity tuning, diagnosing divergence, non-SI unit mistakes (millimeter/gram meshes), island sleeping, speculative CCD, or fluid drag, read modeling.rst (.. _CTuning:, .. _CTuningDefaults:, .. _CTuningGlobal:, .. _CTuningModel:), overview.rst (.. _Clarifications:, .. _Divergence:, .. _Units:, .. _Soft:), computation/index.rst (.. _Solver:, .. _Sleeping:), programming/simulation.rst (.. _siSleep:), computation/speculative.rst, and computation/fluid.rst.

7. CPU Batching (mujoco.batch & mujoco.rollout), Optimization & Backends

Stateful Multi-Threaded CPU Batching (mujoco.batch.Batch)

For vectorized RL stepping, closed-loop controllers, subset resets, and per-simulation domain randomization on CPU across a native C++ thread pool (GIL released, bit-identical to serial MjData stepping, and supporting all CPU solvers/plugins), use mujoco.batch.Batch (python.rst, .. _PyBatch:, wrapping C mjb_* in APIreference/functions.rst, .. _Batchedsimulation:):

python
from mujoco import batch

# Pass persistent=True if the model uses sleep, IPC, or stateful plugins
b = batch.Batch(model, nsim=1024, nthread=8)
qpos, ctrl, xpos = b.bind('qpos'), b.bind('ctrl'), b.bind('xpos')

# Named views slice (nsim, ...) and expand per-sim model fields
hinge_qpos = b.joint('hinge').qpos           # (1024, 1)
b.body('pendulum').mass = per_sim_masses     # Domain randomization
b.set_const()                                # Recompute derived model constants

for _ in range(1000):
  ctrl[:] = policy(qpos, xpos)
  b.step()                                   # Or b.step(ids=active_ids)

Stateless Trajectory Rollouts, Optimization & System ID

  • Open-loop trajectory rollouts (mujoco.rollout): When rolling out fixed control sequences (nbatch, nstep, ncontrol) from initial_state in one call, use mujoco.rollout.rollout (python.rst, .. _PyRollout:, and python/rollout.ipynb) or b.rollout(...).
  • Finite-difference derivatives & LQR (mjd_transitionFD): Compute linearized $A, B, C, D$ transition matrices with mujoco.mjd_transitionFD (APIreference/functions.rst, .. _Derivatives-api:, and python/LQR.ipynb).
  • Nonlinear least-squares & System ID (mujoco.minimize, mujoco.sysid): Use mujoco.minimize.least_squares (python.rst, .. _PyMinimize:, and python/least_squares.ipynb) for box-constrained QP optimization (mju_boxQP), and mujoco.sysid (pip install mujoco[sysid]; see python.rst, .. _PySysid:, modeling.rst, .. _CTuningSysid:, python/mujoco/sysid/README.md, and python/mujoco/sysid/sysid.ipynb) for fitting inertias, friction/damping, actuator gains, and delays to hardware logs over batched rollouts.

Compute Backend Comparison

FeatureC++ Engine (Default)MJX (JAX)MJWarp (CUDA)
Importimport mujoco (mujoco.batch, mujoco.rollout)from mujoco import mjximport mujoco_warp as mjw
Primary UseReal-time control, interactive tools, CPU batch RL/MPC, full solver supportDifferentiable physics, large batch RLHigh-throughput batch rollouts
HardwareCPU (single or multi-threaded)GPU / TPUNVIDIA GPU
Precisionfloat64 (or float32 with -DmjUSESINGLE / --@mujoco//:single_precision)float32float32
SolversNewton, CG, PGS, noslipNewton, CGNewton, CG
PluginsAll pluginsNot supportedSDF only

For GPU and TPU execution patterns (and RL frameworks like mujoco_playground and reaf-sim), refer to mujoco-accelerated; for cross-engine physics comparison, refer to mujoco-parity.

8. Common Gotchas & Best Practices

  1. Computed fields are read-only: Fields like data.xpos, data.xmat, and data.xquat are output buffers. Never assign to them directly; change inputs (data.qpos, data.ctrl) and call mj_forward() or mj_step().
  2. Duplicate names are forbidden: Spec element names must be unique within each element type.
  3. Orientation keywords are mutually exclusive: When adding geoms, bodies, or sites, provide only one of quat, euler, axisangle, xyaxes, or zaxis.
  4. Euler sequences: Lowercase characters denote intrinsic rotations ('xyz'), uppercase denote extrinsic rotations ('XYZ').
  5. Coordinate convention: +Z is up, gravity is [0, 0, -9.81].
  6. Repeating controls with nstep: Calling mj_step(model, data, nstep=N) repeats the current control across N steps. For dynamic feedback control, step one timestep at a time.

9. Key References

Documentation

Notebooks, Models & Ecosystem

常见问题

Mujoco Python AI 技能有什么作用?

MuJoCo Python (`import mujoco`) simulation lifecycle (MjSpec, MjModel, MjData), stepping (mj_step, mj_step1, mj_step2, mj_forward), named access (data.body, model.geom), bind(), multi-threaded CPU batch simulation (mujoco.batch.Batch, mujoco.rollout), optimization and system ID (mujoco.minimize, mujoco.sysid, mjd_transitionFD), contact/touch sensors, sensordata, keyframe resets, integrators, mju_ spatial math (quaternions, poses), and energy diagnostics. Use only for MuJoCo Python physics simulation, MjModel/MjData state access, MuJoCo CPU batching, stepping loops, and MuJoCo sensors/sysid....

为什么在 TypingMind 中使用 Mujoco Python?

因为您只需安装一次,就能搭配任何模型使用。Mujoco Python 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Mujoco Python?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/eust-w/open-robotics-plugin/tree/main/skills/mujoco-python。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Mujoco Python?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Mujoco Python 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Mujoco Python 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Mujoco Python AI 技能免费吗?

是的。eust-w 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇