protomotions
Use this skill for ProtoMotions 3 humanoid simulation, motion-learning, retargeting, simulator-backend, training, inference, and deployment workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- protomotions
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use this skill for ProtoMotions 3 humanoid simulation, motion-learning, retargeting, simulator-backend, training, inference, and deployment workflows.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-and-config.md4.1 KB
- 参考文档references/install-and-backends.md3.6 KB
- 参考文档references/quick-reference.md3.4 KB
- 参考文档references/repo-provenance.md3.5 KB
- 参考文档references/repo-routing-metadata.json512 B
- 参考文档references/troubleshooting.md5.7 KB
- 脚本scripts/inspect_protomotions_install.py4.3 KB
03 SKILL.md 正文
ProtoMotions
Use this repo skill when a task involves ProtoMotions 3 (protomotions), a Python framework for GPU-accelerated humanoid and character simulation, motion imitation, retargeting, reinforcement-learning experiments, and G1 deployment workflows.
Fast routing
- Install/import/backend issue: read
sub-skills/installation-and-backends/SKILL.md, thenreferences/troubleshooting.mdif assets or simulator imports fail. - Simulator, robot, terrain, scene, or tutorial-style construction: read
sub-skills/simulator-foundations/SKILL.md. - Training, inference, experiment configs, checkpoints, domain randomization, SLURM, or GPC/PEFT: read
sub-skills/training-and-experiments/SKILL.md. - MotionLib, AMASS/PHUMA/SEED/Kimodo data conversion, PyRoki retargeting, contacts, FPS, or motion filters: read
sub-skills/retargeting-and-motion-data/SKILL.md. - ONNX export, standalone MuJoCo deployment, G1 real-robot integration, custom robots, MJCF/USD, or tracker input semantics: read
sub-skills/deployment-and-robots/SKILL.md.
What to know before acting
- ProtoMotions intentionally uses separate environments per simulator backend. Do not install all extras into one environment.
- IsaacGym and IsaacLab must be imported before importing
torch; useprotomotions.utils.simulator_imports.import_simulator_before_torch()in custom scripts. - The wheel/package ships Python modules and most robot assets, but examples, checkpoints, MotionLib data, and some conversion helpers are source-checkout assets. A source checkout with Git LFS is required for packaged examples or pretrained artifacts.
- SMPL/SMPL-H body-model assets are intentionally excluded from built distributions. Use a complete licensed asset tree and set
PROTOMOTIONS_ASSET_ROOTwhen those assets are missing. resolved_configs.ptandresolved_configs_inference.ptare the source of truth for trained runs; YAML sidecars are human-readable only.- Cross-simulator transfer is not automatic. It is expected mainly for policies explicitly trained with transfer-oriented domain randomization, especially the documented G1 deployment tracker.
Minimal install and inspection checks
After selecting a backend environment, run:
protomotions info --json
protomotions train-agent --help
protomotions inference-agent --help
For a Python smoke without starting a simulator:
from protomotions.robot_configs.factory import robot_config
from protomotions.simulator.factory import get_simulator_config_class
from protomotions.components.motion_lib import MotionLibConfig
print(robot_config("g1").number_of_actions)
print(get_simulator_config_class("mujoco").__name__)
print(MotionLibConfig().motion_file)
The bundled script scripts/inspect_protomotions_install.py performs the same checks and emits JSON.
Repo-level references
references/quick-reference.md: compact command, object, and file-artifact cheat sheet.references/install-and-backends.md: backend environment choices and simulator compatibility summary.references/cli-and-config.md: train/inference CLI conventions and resolved-config lifecycle.references/troubleshooting.md: cross-cutting failures for imports, assets, data, checkpoints, simulator backends, and deployment.references/repo-provenance.md: source commit, version, evidence paths, and verification baseline for this generated skill.references/repo-routing-metadata.json: structured scenario metadata used by repo-skill import tooling.
Safety and scope boundaries
- Treat full training, simulator rollout, PyRoki retargeting, ONNX deployment, IsaacLab conversion, and real-robot control as hardware/data-dependent operations. Prefer parser/import/config checks before long runs.
- Do not run real-robot commands without explicit human authorization and an emergency-stop plan.
- Do not mutate a user's existing backend environment without permission; create a separate backend-specific environment when dependencies conflict.
- When using a package-only install, do not assume source-checkout examples or large Git LFS assets are present.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).