agentleFS
NVlabsNVlabs/ASPIRE/.claude/skills/iterative-debugging/SKILL.md

iterative-debugging

Skill864 starsChanged 46 days agoApache-2.0View on GitHub

Run the baseline-free CaP iterative debugging (fix loop) pipeline on a user-supplied list of benchmark tasks: inspect one initial observed scene per task, generate task-level code, debug failures on development seeds using recorded run artifacts, validate on the held-out partition, grade the skill library against what actually worked, and promote only those patterns a verifier could reproduce the fix from.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to run a coordinated debugging campaign over any list of CaP benchmark tasks.

    line 14
  2. Very specific:

    No external baseline code or baseline output directory is used.

    line 15
  3. Very specific:

    Start perception services (scripts/supervise_services.sh) and a persistent coordinator session.

    line 27
  4. Very specific:

    Read docs/api-reference.md, docs/run-artifacts.md, and main-agent-prompt.md.

    line 29
  5. Very specific:

    Follow main-agent-prompt.md as coordinator.

    line 46
  6. Distinctive:

    When a task proposes skills, dispatch verifier-prompt.md on the same task.

    line 58
  7. Distinctive:

    Use clean-task-slate.md before reruns.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Iterative Debugging (Fix Loop)

For BEHAVIOR-1K (R1 Pro on Isaac Sim) use the sibling folder behavior/SKILL.md. It is a different protocol, not just different prompts: those tasks are long-horizon, so each seed grows its own policy one code block at a time, and the campaign freezes a skill library rather than a program. Everything below is for the tabletop benchmarks (LIBERO-Pro, Robosuite).

Use this skill to run a coordinated debugging campaign over any list of CaP benchmark tasks. No external baseline code or baseline output directory is used. Runs use the benchmark's own --init-mode (LIBERO: seeded, so development seeds 51–65 and the held-out partition are distinct scenes; Robosuite uses saved).

Setup

  1. Complete benchmark setup for the target embodiment (docs/libero-pro.md, or docs/robosuite.md), including the pinned environment (for LIBERO: scripts/bootstrap_libero.sh → .venv-libero) and SAM3 authentication.
  2. Export the benchmark environment variables (for LIBERO: LIBERO_CONFIG_PATH="$PWD/.libero", MUJOCO_GL=egl, PYOPENGL_PLATFORM=egl, EGL_PLATFORM=device, TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1).
  3. Start perception services (scripts/supervise_services.sh) and a persistent coordinator session.
  4. Read docs/api-reference.md, docs/run-artifacts.md, and main-agent-prompt.md.

Run Order

  1. Take the task list from the user (any set of (benchmark, suite, task_id) cases), write it to a JSON file (format in scripts/gen_progress.py), and initialize the campaign root: python3 .claude/skills/iterative-debugging/scripts/init_run.py --tasks <tasks.json>. This creates RUN_ROOT=outputs/runs/<stamp>/ (and points outputs/runs/LATEST at it) — every artifact of this campaign lives under it, one folder per task at $RUN_ROOT/<benchmark>/<suite>/task_<id>/. Generate progress with python3 .claude/skills/iterative-debugging/scripts/gen_progress.py. For Robosuite, append --dev-seeds $(seq 101 125) --unseen-seeds $(seq 126 130) --heldout-count 100 to initialization. LIBERO defaults remain development 51–65, unseen-check 66–80, and held-out 1–50. Read the assigned development seeds, unseen-check seeds, and HELDOUT_COUNT from campaign.json, preserving those settings when resuming.
  2. Follow main-agent-prompt.md as coordinator. You are also the curriculum: choose each round's tasks from what the library can currently teach, and record the decision in $RUN_ROOT/curriculum.md. Dispatch subagent-prompt.md once per pending task. Workers explore (skills/task-exploration.md), generate initial code, debug the assigned development seeds without reading external baseline outputs, and grade the skills they used in skill_report.json. Debugging is organized by failure mode rather than by seed, and every version is scored on all assigned development seeds. The selected program is then measured once on the assigned unseen-check seeds (LIBERO: 66–80; Robosuite: 126–130) before being handed over.
  3. The coordinator (not workers) runs the Stage 2 held-out evaluation (seeds 1–$HELDOUT_COUNT) for each stage1-done task with scripts/run_validation.py.
  4. When a task proposes skills, dispatch verifier-prompt.md on the same task. The verifier re-solves it from the skill library and the proposals alone — without the proposer's code — on the first few assigned development seeds (LIBERO: 51–55) within two attempts. Only verified proposals are promoted into skills/.
  5. Use clean-task-slate.md before reruns.
  6. Continue until every task has all $HELDOUT_COUNT held-out results, then run the phase-3 rerun sweep once: tasks that scored below threshold under a library that has since changed are re-run against the final library, into rerun_02/ beside the original attempt.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.