AGENT SKILL

setup-and-diagnostics

Set up and diagnose the rl-mpc-locomotion Python, CUDA, Isaac Gym, submodule, MPC extension, solver, configuration, asset, and checkpoint dependencies without claiming unavailable backend support.

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

01 前言 Front Matter

name
setup-and-diagnostics
license
MIT
metadata
{ "disco-role": "operating" }
description
Set up and diagnose the rl-mpc-locomotion Python, CUDA, Isaac Gym, submodule, MPC extension, solver, configuration, asset, and checkpoint dependencies without claiming unavailable backend support.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Setup and diagnostics

Use this sub-skill when the task is to prepare the project, explain a failed installation, or decide whether a controller, training, or simulation command is runnable. It is deliberately diagnostic and read-only by default. It does not replace the detailed operating routes owned by the sibling skills.

Boundary and status vocabulary

  • Ready means the named probe passed in the current Python environment.
  • Optional means a package or device is only needed for a selected workflow.
  • Blocked means an external required capability was not proven; do not convert a GPU or PyTorch pass into an Isaac Gym pass.
  • Failed means a required package, source prerequisite, path, or version is inconsistent and needs repair.

The supported baseline is the Python 3.8-era environment described in installation and classified in the dependency matrix. The repository handoff verified PyTorch 1.10 with CUDA 11.3, an A100 CUDA allocation, package imports, rsl_rl, mpc_osqp, and pip check. Isaac Gym Preview 4 was unavailable, so RL and simulation remain an explicit required-backend block until the external SDK is supplied and imported.

First response: safe probes

Run these commands from this installed sub-skill directory. They use only the bundled scripts and the active Python environment; they do not require a construction checkout:

python scripts/check_environment.py --pip-check
python scripts/check_mpc_extension.py --strict

When a current project copy is available, validate its configuration/assets and native layout explicitly:

python scripts/validate_config.py --repo-root /path/to/current/project-copy
python scripts/check_mpc_extension.py --repo-root /path/to/current/project-copy --check-submodules --strict

The first two commands perform package diagnostics without requiring a source checkout. The configuration validator requires either --repo-root or an absolute --config path because it must not guess a checkout. The first environment probe is advisory about Isaac Gym. Add --require-isaacgym --strict only when the requested operation is RL or simulation. These probes do not launch Hydra, a viewer, a gamepad reader, or a long training run.

Installation route

Use a current public package or repository copy supplied by the user. Keep paths to that copy explicit and do not depend on files in this skill bundle:

  1. Obtain the project package/repository and initialize its declared native dependencies according to its public installation instructions. Confirm the pinned revisions in the dependency matrix when a source copy is being checked.
  2. Create the isolated environment from the supplied project's environment specification (Python 3.8, PyTorch 1.10.0, CUDA toolkit 11.3, NumPy 1.20-era packages, Hydra/OmegaConf, inputs, and the older pip/setuptools constraints).
  3. Before installing rsl_rl, print Torch and CUDA versions. Install the user-supplied RSL-RL repository editable without dependency resolution: python -m pip install --no-deps -e /path/to/rsl_rl-repository. Its broad torch>=1.4.0 requirement otherwise permits a resolver to replace the pinned Torch stack.
  4. Install the current project copy through its public packaging metadata, for example python -m pip install -e /path/to/current/project-copy. Then run the bundled extension probe and python -m pip check.
  5. Install Isaac Gym Preview 4 separately, using its authorized distribution instructions, only when simulation or RL is requested. Re-run the strict backend probe; CUDA availability alone is insufficient.

Do not use an unbounded editable install for RSL-RL, vendor a replacement solver, run system package-manager commands, or use sudo as a recovery step. The complete order, optional solver policy, and recovery choices are in the linked references.

Diagnostic routing

  • Native controller import or solver-extension issue: use mpc-control, after this sub-skill's environment and extension checks.
  • Hydra task, policy, training, or checkpoint issue: use rl-training; this sub-skill only validates paths and prerequisites.
  • Viewer, PhysX, terrain, asset loading, or simulation issue: use isaac-gym-simulation, but preserve the Isaac Gym block if the SDK cannot be imported.
  • General entry-point selection: return to the root router.

Decision gates

Before running a long command, record the requested mode (MPC, Policy, training, or simulation), robot/task, device, checkpoint, and whether a physical gamepad is available. A gamepad is optional for the controller CLI when --disable-gamepad is used, but the small inputs package remains part of the import environment because the launcher imports its reader module.

For MPC/Min, a passing CPU package and extension check is sufficient to continue to the controller route. For Policy, validate the checkpoint and Torch device, then route to both mpc-control and rl-training; no policy claim is valid without its checkpoint. For training or simulation, require isaacgym, CUDA device visibility, matching assets, and the requested config. Use headless=True to remove viewer requirements, not the Isaac Gym requirement.

Safe recovery

Prefer a fresh isolated environment when a resolver changed Torch or an old native build is mixed with a new checkout. Preserve the pinned order, rerun pip check, and rebuild only through the explicit editable-install command for the user-supplied project copy. Treat missing Isaac Gym as a stop for RL/simulation, not as an invitation to patch imports or substitute a different simulator. Read troubleshooting before changing versions.

Bundled checks

  • scripts/check_environment.py: package imports, distribution versions, Torch/CUDA device probe, optional package inventory, and optional pip check.
  • scripts/check_mpc_extension.py: installed native package symbols, optional current-project layout, optional recorded submodule commit checks, and opt-in editable build.
  • scripts/validate_config.py: supplied YAML shape, supplied task configs and assets when a current project copy is available, configured CUDA intent, and explicit checkpoint paths.

All scripts support --help, use stable exit behavior (0 for advisory reports, 2 for strict gates), and avoid deleting files or starting the simulator. Their detailed output interpretation is in the references.

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