AGENT SKILL

robotwin

Use RoboTwin bimanual manipulation simulation, data, task authoring, and XPolicyLab policy-evaluation workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
robotwin
license
MIT
metadata
{ "disco-role": "operating" }
description
Use RoboTwin bimanual manipulation simulation, data, task authoring, and XPolicyLab policy-evaluation workflows.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

RoboTwin

Use this repo skill when a user asks about RoboTwin 2.0, dual-arm/bimanual manipulation simulation, RoboTwin task configs/classes, demonstration data collection, XPolicyLab-format trajectories, or XPolicyLab policy evaluation for RoboTwin.

Start here

  1. If the user already has a RoboTwin workspace, work there. If not, use the bundled workspace bootstrapper to materialize a pinned public workspace and public assets without depending on the construction checkout.
  2. Check setup before long runs: Python 3.10/3.11, NumPy 1.x ABI, SAPIEN/MPLib/Open3D/PyTorch dependencies, downloaded assets, and initialized XPolicyLab submodule when evaluating policies.
  3. Route to the smallest sub-skill below. Return here for cross-cutting install, assets, provenance, and global troubleshooting.

Sub-skill routes

User intent Read
Understand Base_Task, task classes, SAPIEN scene setup, action helpers, robot/camera configs, render smoke, or planning failures simulation-core
Download pre-collected data, collect demonstrations, validate XPolicyLab HDF5, understand data layouts, or convert legacy raw episodes data-pipeline
Configure XPolicyLab local/remote policy evaluation, scheduler dry-runs, policy-server pools, result logs, or qpos/endpose action adapter shapes policy-eval
Add or modify tasks/configs/language templates, expand episode instructions, or reason about credential-bound LLM/code-generation utilities task-authoring

Cross-cutting references

Bundled runtime entry points

  • scripts/robotwin_workspace.py: self-contained bootstrapper for pinned public workspaces, asset/data download, collection dispatch, and evaluation dispatch.
  • scripts/check_robotwin_prereqs.py: read-only environment and workspace probe for dry-run validation before any mutating workflow.

High-level workflows

Prepare a workspace

  1. If starting from scratch, run the bundled workspace bootstrapper to create a pinned public RoboTwin checkout.
  2. Create an isolated Python 3.10/3.11 environment.
  3. Install the simulation/data/eval dependencies with numpy==1.26.4; avoid Python 3.13 for current compiled dependencies.
  4. Download and extract RoboTwin assets before importing envs or running tasks.
  5. Run a SAPIEN render smoke.
  6. For policy evaluation, initialize XPolicyLab or use the bootstrapper's bootstrap --with-xpolicylab path before working on adapter workflows.

Collect or inspect data

  1. Use data-pipeline to choose pre-collected data vs self-collection.
  2. Use simulation-core if collection fails during task initialization, actor creation, rendering, or planning.
  3. Validate HDF5 schema before feeding data to training or LeRobot conversion.
  4. If you only need a standalone workspace or public asset/data acquisition flow, the bundled bootstrapper can create it without any original checkout.

Evaluate a policy

  1. Initialize XPolicyLab and confirm the policy adapter exists.
  2. Use policy-eval for local scheduler or remote server/client commands.
  3. Run dry-runs and synthetic action-shape checks before full rollout.
  4. Use data-pipeline for dataset layout questions and simulation-core for environment/task failures.

Do not assume

  • Do not assume RoboTwin is pip-installable as a normal package; this source revision has no setup.py or pyproject.toml.
  • Do not import top-level envs before assets are present; cluttered-object metadata is read during import.
  • Do not treat the empty or uninitialized XPolicyLab directory as a usable policy stack; initialize the submodule first.
  • Do not run large downloads, long collection, policy rollouts, or credentialed LLM generation unless the user asks for those side effects.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351