OpenParable
Skip to content
← Back to skills

Review Loop

Testing & Quality
review-loop

Review 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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  1. Create session directory and determine target:
    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 ' '
    
    Store REVIEW_DIR and TARGET_BRANCH.

Iteration 1

  1. Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter1.md, TARGET BRANCH: ${TARGET_BRANCH}")
  2. Read ${REVIEW_DIR}/iter1.md
  3. 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

  1. Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter2.md, TARGET BRANCH: ${TARGET_BRANCH}")
  2. Read ${REVIEW_DIR}/iter2.md
  3. 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

  1. Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter3.md, TARGET BRANCH: ${TARGET_BRANCH}")
  2. Read ${REVIEW_DIR}/iter3.md
  3. 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

  1. Task(subagent_type="review-loop:local-reviewer", prompt="OUTPUT FILE: ${REVIEW_DIR}/iter4.md, TARGET BRANCH: ${TARGET_BRANCH}")
  2. Read ${REVIEW_DIR}/iter4.md
  3. 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

  1. If critical/major issues remain, continue to iteration 5
  2. Otherwise: git add -A && git commit -m "fix: review issues"
  3. Report summary. Do NOT merge.