Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

tune-mjcf调整 mjcf

Agent Skill

tune-mjcf 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

816

周安装

34

GitHub Stars

93

下载量

272
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tune-mjcf(调整 mjcf)
来源仓库:https://github.com/letta-ai/skills
仓库路径:skills/tune-mjcf
安装命令:
npx skills add https://github.com/letta-ai/skills --skill tune-mjcf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/skills --skill tune-mjcf

简介

有效的 MJCF 调整需要:

  • 首先分析——了解时间花在哪里
  • 系统测试 - 隔离每个参数的影响
  • 从失败中学习 - 使用负面结果来修剪搜索空间
  • 优先考虑正确性 - 永远不要为了速度而牺牲准确性
  • 知道何时停止——识别数学上不可能的目标
  • 每周安装量
  • 34
  • 存储库
  • 莱塔艾/技能
  • GitHub 之星
  • 93
  • 第一次看到
  • 2026 年 1 月 24 日
  • 安全审计
  • Gen Agent Trust Hub 通行证
  • 套接字通行证
  • 斯尼克通行证

SKILL.md

MuJoCo MJCF Model Tuning

Overview

This skill provides structured guidance for optimizing MuJoCo MJCF model files to achieve performance improvements while preserving simulation accuracy. The core challenge is balancing computational speed against numerical correctness, which requires systematic analysis rather than trial-and-error parameter tweaking.

Critical Principles

Correctness Before Speed

Always prioritize accuracy requirements over speed targets. A fast but incorrect simulation is worthless. Before any optimization:

  1. Understand the exact accuracy requirements (tolerance thresholds)
  2. Establish a baseline for correctness verification
  3. Test accuracy AFTER every parameter change
  4. Never submit a solution that fails accuracy tests, even if it meets speed targets

Systematic Profiling First

Before modifying any parameters, identify WHERE computational time is actually spent:

  1. Determine if the bottleneck is solver iterations, contact resolution, forward dynamics, or plugin computation
  2. Test with minimal parameter changes to isolate performance factors
  3. Use early results to understand which parameters actually affect runtime

Key insight: If reducing solver iterations produces perfect accuracy but no speedup, solver iterations are NOT the bottleneck. Do not continue optimizing that parameter.

Optimization Workflow

Step 1: Analyze the Reference Model

Thoroughly examine the MJCF file to understand:

  • What physical systems are being simulated (robots, cables, soft bodies, etc.)
  • What plugins or extensions are in use
  • Default values for all performance-relevant parameters
  • The complexity of the model (number of bodies, contacts, constraints)

Step 2: Establish Baselines

Before any optimization:

  1. Run the reference model to establish baseline timing
  2. Document the exact accuracy metric being used for comparison
  3. Understand what state variables are being compared and at what tolerance

Step 3: Identify True Bottlenecks

Test each potential optimization category independently to find actual bottlenecks:

Solver Parameters:

  • Test iterations="1" with default timestep
  • If accuracy is perfect but no speedup occurs, solver iterations are not the bottleneck

Jacobian Computation:

  • Test jacobian="sparse" or jacobian="dense"
  • If accuracy is perfect but no speedup occurs, Jacobian computation is not the bottleneck

Integration:

  • Test different integrators (Euler, RK4, implicit, implicitfast)
  • Note: Integrator choice affects BOTH accuracy and speed

Timestep:

  • This is often the most impactful but also most dangerous parameter
  • Larger timesteps = faster simulation but reduced accuracy
  • The relationship is often non-linear and model-dependent

Step 4: Apply Pattern Recognition

After initial tests, recognize patterns:

  • If even tiny timestep increases (1%) fail accuracy tests, the model is timestep-sensitive
  • If solver changes don't affect speed, the model is not solver-bound
  • If multiple approaches fail, the optimization target may be mathematically impossible

Step 5: Know When to Stop

Recognize when optimization is not viable:

  • If your evidence shows that achieving the speed target requires accuracy compromises beyond tolerance, stop
  • Do not submit a known-failing configuration
  • Report that the optimization target cannot be met under the given constraints

Parameter Categories

Timestep (timestep)

Impact: High on both speed and accuracy Risk: High - affects integration error

Guidelines:

  • Doubling timestep roughly halves simulation time but squares integration error
  • Test in small increments (e.g., 1%, 2%, 5%)
  • If 1% increase fails accuracy, larger increases will definitely fail
  • Binary search is appropriate only if you have evidence the solution space exists

Solver Settings

iterations: Maximum solver iterations per step tolerance: Convergence tolerance for solver ls_iterations: Line search iterations

Guidelines:

  • Reducing iterations helps only if solver is actually iterating to maximum
  • Test with iterations=1 first to determine if solver is the bottleneck
  • Tolerance changes often have minimal speed impact

Integrator (integrator)

Options: Euler, RK4, implicit, implicitfast

Guidelines:

  • Euler is fastest but least accurate
  • RK4 is more accurate but slower
  • implicit/implicitfast are for stiff systems
  • Integrator choice cannot compensate for timestep discretization error

Jacobian (jacobian)

Options: dense, sparse, auto

Guidelines:

  • sparse is faster for large systems with few contacts
  • dense is faster for small systems or many contacts
  • Test both before assuming benefit

Common Pitfalls

Fixation on Single Parameter

Repeatedly trying variations of the same parameter (e.g., different timestep values) when evidence shows that parameter cannot achieve the goal. If timestep=0.00202 fails accuracy, timestep=0.003 will fail worse.

Conflating Solver and Integration Accuracy

Solver accuracy (iterations, tolerance) affects constraint satisfaction. Integration accuracy (timestep, integrator) affects state trajectory. These are mathematically independent - better solver settings cannot compensate for timestep discretization error.

Ignoring Negative Results

When a test shows "no speedup" or "accuracy failure," this is valuable information. Use it to prune the search space rather than trying minor variations of the same approach.

Missing Model-Specific Properties

Some models have special characteristics:

  • Plugin computations (cables, soft bodies) may dominate runtime
  • Contact-heavy simulations may be solver-bound
  • High-frequency dynamics require small timesteps regardless of other settings

Investigate these properties before assuming generic optimizations will work.

Trial-and-Error Without Learning

Each test should inform a hypothesis. After 5-10 tests, patterns should be clear:

  • What parameters actually affect speed
  • What parameters affect accuracy
  • What tradeoff relationships exist

If patterns are not emerging, step back and reconsider the approach.

Verification Strategy

Accuracy Verification

  1. Run optimized model for the required simulation duration
  2. Compare final state against reference state
  3. Check ALL state variables against tolerance (not just position)
  4. Verify at multiple time points if possible

Speed Verification

  1. Measure wall-clock time, not simulation time
  2. Run multiple trials to account for variance
  3. Ensure measurement includes full simulation, not just physics stepping

Combined Verification

Always verify BOTH accuracy AND speed before considering a solution complete. Meeting one requirement while failing the other is a failed solution.

Decision Tree

START
  |
  v
Analyze model structure and identify potential bottlenecks
  |
  v
Run baseline tests for each parameter category independently
  |
  +---> Solver changes give speedup with good accuracy?
  |       YES --> Optimize solver parameters
  |       NO  --> Solver is not the bottleneck
  |
  +---> Timestep increases maintain accuracy?
  |       YES --> Binary search for optimal timestep
  |       NO at even 1% increase --> Timestep optimization not viable
  |
  +---> Alternative integrators help?
  |       YES --> Use better integrator
  |       NO  --> Model requires current integrator
  |
  v
If no viable optimization path found:
  --> Report that target cannot be achieved
  --> Do NOT submit a failing configuration

Summary

Effective MJCF tuning requires:

  1. Profile first - understand where time is spent
  2. Test systematically - isolate each parameter's effect
  3. Learn from failures - use negative results to prune search space
  4. Prioritize correctness - never sacrifice accuracy for speed
  5. Know when to stop - recognize mathematically impossible targets

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.36%
按下载量换算77

Gemini CLI

25.82%
按下载量换算70

Antigravity

17.05%
按下载量换算46

windsurf

14.01%
按下载量换算38

OpenCode

7.97%
按下载量换算22

Codex

4.07%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills