claude-review-loop
Installation
SKILL.md
Repeat the following cycle on the current branch's changes against main (max 3 iterations):
- Review — Spawn a read-only Claude Code reviewer sub-agent over the diff (see the
claude-execskill for flag details):claude -p --no-session-persistence --permission-mode default \ --disallowedTools Bash,Edit,Write \ -- "Review the current branch's diff against main (git diff main...HEAD). Report only real defects — bugs, security issues, broken logic, missing edge cases. For each finding give file:line, severity, and a one-line fix. Skip style nitpicks and scope creep." - Triage — Review agent findings and keep only what you also deem noteworthy. Classify each as Fix (clear defects, must fix) or Skip (style, nitpicks, scope creep). Show a brief table before changing anything.
- Fix only the "Fix" items. Keep changes minimal.
- Verify with
npm run lintandnpm run test. Fix any regressions and repeat this step until all checks pass before continuing. - Re-review only the newly changed lines. Do not re-raise skipped items.
Stop when no "Fix" items remain or 3 iterations are reached. Print a summary of what was fixed and what was skipped.