/review-loop:review-loopfrom review-loop
Runs a review, fix and re-review loop on a diff until it is approved, using built-in /code-review for the first pass and a findings file so later rounds check only what was flagged. Use when a finished change needs review plus fixes ("review and fix until clean", "loop review on this branch") or flagged findings must be fixed and re-verified.
Ships in review-loop. 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.
Review a change, fix exactly what was flagged, and re-review only that, for at most three rounds. A findings file carries state between rounds, so no one re-reads the whole diff or re-argues settled points.
Not for writing plans (planning), a read-only review with no fixes (/code-review alone, or second-opinion for another model family), or executing a multi-slice plan (implement-plan), each if installed.
Three roles, kept apart so the reviewer never edits and never grades its own fixes:
/code-review.coder if installed, otherwise general-purpose), or yourself for a one-line fix.reviewer if installed, otherwise general-purpose).Pick a slug for the change and keep findings in <scratchpad>/review-<slug>.md, in the session scratchpad directory. You write round 1 from the /code-review output; the re-reviewers append later rounds. Format:
# Review <slug>
Target: main...HEAD
## Round 1 (HEAD <sha>, /code-review high)
- F1 | high | src/auth.py:42 | Token compared with ==, not constant-time.
- F2 | low | src/auth.py:90 | Unused import.
- F3 | dismissed | src/db.py:12 | Claimed missing close; the context manager closes it.
VERDICT: CHANGES REQUIRED
high, medium, low, or dismissed with the reason), path:line, and a claim a fixer can act on without asking.## Round N, restate each original ID as fixed, open or dismissed, and add new IDs only for regressions the fixes caused.VERDICT: APPROVED or VERDICT: CHANGES REQUIRED./code-review. Invoke the code-review skill with an effort level and the target, for example high for the working tree or high main for a branch. Pick medium for a small change, high by default, xhigh for security, data or concurrency work. Do not pass --fix: fixes go through the fixer so each one maps to an ID./code-review reports nothing, write VERDICT: APPROVED, stop and report.dismissed with the reason, and keep the rest. If none remain, the verdict is APPROVED.git diff <previous sha>), append ## Round N and end with a verdict. Start a new subagent every round: a reused one anchors on its earlier verdict.APPROVED, stop. Otherwise triage the new round (step 3) and go back to step 4.CHANGES REQUIRED, stop and report the open IDs, what each round changed, and your read on why they persist. Repeated failure usually means a subjective finding or an unclear spec, which is the user's call.Run the re-review and the fixer as subagents so their file reads stay out of your context. If no subagents are available, do the fixes yourself and run /code-review again on the fix diff as the re-review, then reconcile its output with the open IDs.
State the final verdict, rounds used, IDs fixed, IDs still open, the checks the fixer ran, and the findings file path. List dismissed findings with the reason.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin review-loop