/do-it:iterate-fixfrom do-it
Applies root-cause fixes after a REVISE verdict or a red gate. Enforces discipline: no symptom fixes, no test-softening. Triggered by /iterate or the Ralph loop.
Ships in do-it. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
House voice: ${CLAUDE_PLUGIN_ROOT}/references/voice.md.
| Trigger | Issue list | Scope |
|---|---|---|
A red gate (build-loop Step 6, contract §5): tests, typecheck, lint, security-check.sh, or a verify-report.sh refutation | the build subagent's summary block, the real command output, and the refutation text | the one task that failed |
| A REVISE verdict | the highest-numbered .do-it/changes/<change-id>/review-*.json | only the blocking_tasks the reviewers named |
At review_cadence: per-feature nothing reviews one task, so a red gate is the only per-task signal there is.
skills/review-work/SKILL.md Step 3 owns the verdict actions (PASS, REVISE, REJECT). This skill handles a
REVISE and a red gate only.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
When a test caught the bug, fix the code. Do not fix the test.
After a review: read the highest-numbered .do-it/changes/<change-id>/review-*.json. The caller passes you
its absolute main-tree path. Its blocking_tasks set the scope. Work its findings in this order · BLOCKER
· MAJOR · MINOR · CRITERION-FAIL. Touch only those tasks' files. To edit the rest because you are "already in
there" invalidates the review that just passed them.
A finding that carries "refuted": true met a skeptic and did not survive. Skip it. It sits in the file as
evidence, not as work.
Do you run in a worktree, or did nobody hand you a path? .do-it/ does not merge across worktrees, so the
sidecar is simply not there. Do not fall back to progress.md. The ### Review — block records counts, not
findings, and to invent an issue from a count is worse than a stop. Ask the caller for the path, or for the
inlined findings.
After a red gate: read the failing command's real output · test names · type errors · lint rules ·
security-check.sh findings · the REFUTED: lines from scripts/verify-report.sh. No review sidecar exists.
Do not invent one.
A verify-report.sh refutation is about the commit, not about the code · no test file in the diff · more
than one commit since the task's base · a sha that does not exist. Fix the commit. Write the missing test, or
squash the task's work into one commit. Never run the verifier again with a different base to make it pass.
A [BLOCK] security finding means a credential sits in the diff. Remove it. Move the value to the environment
or the secret store. Tell the user clearly that the credential needs a rotation. To delete it from the
working tree does not un-leak a value that anyone ever committed or pushed.
fix: [{change-id}/{task-id}] {root cause}, under
_meta.json.commit_convention. Generic: edit the artifact, and surface a structural change beyond the listed
issues first.When a test caught the bug, the fix goes into the production code. Refuse .skip. Refuse an edit to the
expectation that makes it match the code. Refuse a mock of the failing dependency. A test that asserts the
wrong thing is a separate fix, in a separate commit. Tell the user first.
The real problem lives in another task or another change. Then stop the iteration. Add a follow-up task to that
change's tasks.md, or propose a new change folder. Note the dependency in its proposal.md. Append the
discovery to progress.md. Then tell the user: "Iteration on {change-id}/{task-id} surfaced a dependency on
{other}. Recorded in {where}. Run /do-it:build for it first."
progress.md### Iteration — {change-id}/{task-id}
**Issues:** {from the review or the gate}
**Root causes:** {one line each}
**Fixes:** {one line each} — {commit}
**Verified:** {what you ran}
**Discoveries:** {promoted to tasks.md, or a new change — omit when none}
After a red gate: run the failing command again, and the other gates (typecheck_cmd, lint_cmd,
test_cmd, security-check.sh). All green: someone may check the box, and the loop continues. Still red after
this second honest try: PAUSE with a stop report, and do not grind.
After a REVISE: the fix is itself unreviewed, so a review runs again. It is the narrow one —
skills/review-work/SKILL.md Step 3d: one lens over {fix-base}..HEAD, scoped to the blocking tasks.
Report which files you touched, so the loop thread can apply Step 3d's escalation rule. When your fix reached a
file outside the blocking tasks, say so. That escalates to the full two-lens review.
In the loop: run Step 3d that same turn. Two consecutive REVISE verdicts on one feature: PAUSE with a stop
report, and route to /do-it:grill. Interactively: tell the user to run /do-it:review {change-id}.
// eslint-disable, # nosec, @ts-ignore, or do-it:allow-secret used to turn a gate green.// TODO: fix this properly later. When it is not the proper fix, keep investigating.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iterate-fix, root-cause-fix, review-fix, red-gate, code-quality
npx claudepluginhub flyingwebie/skills --plugin do-it13 skills in this plugin
/build-loopExecute Do-it tasks. Reads .do-it/specs/ (current truth) and .do-it/changes/ (proposals), picks the next buildable band, builds under TDD discipline (software) or acceptance-driven (generic), respects the UI-first layer gate, and keeps the loop memo current. Product review runs per feature; optional knowledge maintenance never blocks code-first delivery. Triggered by /do-it:build or an autonomous loop each iteration.
/designEmit the compact design state the build loop consumes: tokens, the F0 foundation manifest, and per-entity contracts. Narrative design docs defer to --full.
/do-itRun the Do-it spec-driven MVP workflow in Codex. Use for PRD, brownfield mapping, config migration, grilling, design, preview, building, review, iteration, project status, retrospectives, or autonomous delivery./grillAdversarially challenge a spec-layer artifact — PRD, change proposal, or design system — before code exists. Hunts gaps, contradictions, ambiguity, scope creep. Triggered by /do-it:grill or "challenge the PRD", "poke holes".
/llm-wikiMaintain docs/ as an optional LLM Wiki. Direct Pass/Query always work; automatic passes run only when project knowledge maintenance enables them.
/loop-runnerSet up and explain Do-it's autonomous drivers — /do-it:loop (Claude Code's native loop, deterministic stop via scripts/loop-guard.sh) and /do-it:ralph (the legacy in-session Stop hook that re-feeds the iteration contract). Preflight, settings resolution, the stop report, and stop semantics for both. Adapted from anthropics/claude-code's ralph-wiggum plugin over snarktank/ralph's prompt-as-program discipline.
Other plugins' skills for the same job