Review Loop
Testing & Qualityreview-loopReview Loop is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Run exactly 4 review-fix iterations using subagents
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/quality/review-loop/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/review-loop, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Review Loop Checklist
Execute steps IN ORDER. Do not skip steps.
CRITICAL: Do NOT fix code directly. ALWAYS spawn Task agents for fixes.
Setup
- Create session directory and determine target:
Store REVIEW_DIR and TARGET_BRANCH.REVIEW_DIR="/tmp/review-loop-$(date +%s)-$$" mkdir -p "$REVIEW_DIR" echo "Session dir: $REVIEW_DIR" # Target branch gh pr view --json baseRefName -q .baseRefName 2>/dev/null || \ git branch -a --contains HEAD^ --no-contains HEAD | head -1 | tr -d ' '
Iteration 1
Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter1.md, TARGET BRANCH: ${TARGET_BRANCH}")Read ${REVIEW_DIR}/iter1.md- For EACH issue, spawn a separate agent (do NOT fix inline):
Task(subagent_type="general-purpose", description="Fix: <summary>", prompt="Fix <issue> in <file>:<line>")
Iteration 2
Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter2.md, TARGET BRANCH: ${TARGET_BRANCH}")Read ${REVIEW_DIR}/iter2.md- For EACH issue, spawn a separate agent (do NOT fix inline):
Task(subagent_type="general-purpose", description="Fix: <summary>", prompt="Fix <issue> in <file>:<line>")
Iteration 3
Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter3.md, TARGET BRANCH: ${TARGET_BRANCH}")Read ${REVIEW_DIR}/iter3.md- For EACH issue, spawn a separate agent (do NOT fix inline):
Task(subagent_type="general-purpose", description="Fix: <summary>", prompt="Fix <issue> in <file>:<line>")
Iteration 4
Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter4.md, TARGET BRANCH: ${TARGET_BRANCH}")Read ${REVIEW_DIR}/iter4.md- For EACH issue, spawn a separate agent (do NOT fix inline):
Task(subagent_type="general-purpose", description="Fix: <summary>", prompt="Fix <issue> in <file>:<line>")
Completion
- If critical/major issues remain, continue to iteration 5
- Otherwise:
git add -A && git commit -m "fix: review issues" - Report summary. Do NOT merge.