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.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cap-tool-usageSkill
- manipulation-tasksSkill
- evosearchSkill
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
- Distinctive: line 14
Use this skill to run a coordinated debugging campaign over any list of CaP benchmark tasks.
- Very specific: line 15
No external baseline code or baseline output directory is used.
- Very specific: line 27
Start perception services (scripts/supervise_services.sh) and a persistent coordinator session.
- Very specific: line 29
Read docs/api-reference.md, docs/run-artifacts.md, and main-agent-prompt.md.
- Very specific: line 46
Follow main-agent-prompt.md as coordinator.
- Distinctive: line 58
When a task proposes skills, dispatch verifier-prompt.md on the same task.
- Distinctive: line 62
Use clean-task-slate.md before reruns.
≈ “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.
Files
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
- Complete benchmark setup for the target embodiment (
docs/libero-pro.md, ordocs/robosuite.md), including the pinned environment (for LIBERO:scripts/bootstrap_libero.sh→.venv-libero) and SAM3 authentication. - 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). - Start perception services (
scripts/supervise_services.sh) and a persistent coordinator session. - Read
docs/api-reference.md,docs/run-artifacts.md, and main-agent-prompt.md.
Run Order
- 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 createsRUN_ROOT=outputs/runs/<stamp>/(and pointsoutputs/runs/LATESTat it) — every artifact of this campaign lives under it, one folder per task at$RUN_ROOT/<benchmark>/<suite>/task_<id>/. Generate progress withpython3 .claude/skills/iterative-debugging/scripts/gen_progress.py. For Robosuite, append--dev-seeds $(seq 101 125) --unseen-seeds $(seq 126 130) --heldout-count 100to 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 fromcampaign.json, preserving those settings when resuming. - 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 perpendingtask. 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 inskill_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. - The coordinator (not workers) runs the Stage 2 held-out evaluation (seeds 1–$HELDOUT_COUNT) for
each
stage1-donetask with scripts/run_validation.py. - 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
verifiedproposals are promoted into skills/. - Use clean-task-slate.md before reruns.
- 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.
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
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.

