agentleFS
MicrosoftKnown publishermicrosoft/bocpy/.github/skills/review-loop/SKILL.md

review-loop

Skill198 starsChanged 6 months agoMITView on GitHub

Iterative review loop with subagent reviewer. Use when: reviewing code changes, reviewing plans, auditing implementations, validating fixes, running code review, performing quality checks, or when /review is invoked. Spawns a fresh subagent to review a user-specified target, reports severity-tagged findings, applies approved fixes, and repeats until the user is satisfied.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use polish, research and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • QredenceSkill

    polish

    Run a final Figma Design or Figma Make quality pass that refines spacing, alignment, typography, color consistency, component state coverage, copy consistency, accessibility basics, and visual coherence without changing the underlying concept. Use when a UI is close and needs launch-ready finish rather than redesign. Not for Figma Sites publish readiness (site-launch-checklist) or Dev Mode handoff preparation (dev-handoff-prep).

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After implementing a non-trivial change

    line 14
  2. Distinctive:

    Ask the user what to review if not already specified.

    line 34
  3. Very specific:

    If a specific lens is requested (e.g., correctness-lens, security-lens, adversarial-lens, etc.), use that named lens agent operating in …

    line 45
  4. Very specific:

    Use the Explore subagent for read-only review of code.

    line 77
  5. Distinctive:

    After the reviewer returns:

    line 83
  6. Distinctive:

    If the reviewer found no issues, report that explicitly.

    line 87
  7. Distinctive:

    Ask the user which findings to address.

    line 88
  8. Distinctive:

    Ask for clarification on any finding

    line 92
  9. Distinctive:

    If a fix is non-trivial or ambiguous, ask the user for guidance rather than guessing.

    line 101
  10. Distinctive:

    After fixes are applied, ask the user:

    line 106
  11. Distinctive:

    If the user wants another pass → go to step 2 with the updated target.

    line 111
  12. Distinctive:

    If the user is satisfied → exit the loop.

    line 112
  13. Distinctive:

    Do not auto-fix without approval: Always present findings and wait for the user to decide which to address.

    line 119
  14. Distinctive:

    Verify critical findings: If the reviewer flags a critical or high issue, attempt to verify it (e.g., by running tests or tracing the code) …

    line 121
  15. Distinctive:

    Keep the loop bounded: If the reviewer returns only low-severity findings on two consecutive passes, suggest exiting the loop.

    line 124

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review Loop

Iteratively review a target (code or plan) using a fresh subagent reviewer, present findings, apply fixes, and repeat until the user approves.

When to Use

  • After implementing a non-trivial change
  • Validating a plan before execution
  • Auditing code for correctness, style, or security issues
  • Any time you want an independent second opinion on work in progress

Severity Levels

Findings are tagged with one of four severities:

SeverityMeaning
criticalCorrectness bug, security vulnerability, or data loss risk. Must fix.
highLikely bug, race condition, or significant design flaw. Should fix.
mediumCode smell, unclear logic, missing edge case, or maintainability concern. Recommended fix.
lowStyle nit, naming suggestion, minor improvement. Fix at discretion.

Procedure

1. Identify the Review Target

Ask the user what to review if not already specified. The target can be:

  • One or more source files (by path)
  • A plan (in session memory or conversation)
  • A diff or set of changes
  • A specific function, class, or module

Gather the full content of the target so it can be passed to the reviewer.

2. Spawn Reviewer Subagent

If a specific lens is requested (e.g., correctness-lens, security-lens, adversarial-lens, etc.), use that named lens agent operating in review mode. Otherwise, use a generic reviewer.

Launch a subagent with the following prompt structure:

You are a code reviewer performing a thorough review of the following target. Your job is to find bugs, design flaws, security issues, and quality problems.

Review target: {include the full content of the target here}

Additional context: {include relevant surrounding code, tests, or specifications the reviewer needs to understand the target}

Instructions:

  • Review the target for correctness, security, performance, readability, and adherence to project conventions.
  • For each issue found, report it in this exact format:

    [SEVERITY] Short title

    • Location: file path and line number (or plan step)
    • Problem: what is wrong and why it matters
    • Suggestion: concrete fix or remediation

    where SEVERITY is one of: critical, high, medium, low.

  • If you find no issues, state explicitly that the target looks correct.
  • Do NOT fabricate issues. Only report genuine problems.
  • Order findings by severity (critical first).

Use the Explore subagent for read-only review of code. If the reviewer needs to run tests or execute code to verify a finding, note that as an unverified finding and let the main agent handle verification.

3. Present Findings

After the reviewer returns:

  1. List all findings grouped by severity.
  2. For each finding, include the reviewer's suggested remediation.
  3. If the reviewer found no issues, report that explicitly.
  4. Ask the user which findings to address. The user may:
    • Approve all fixes
    • Select specific findings to fix
    • Dismiss findings they disagree with
    • Ask for clarification on any finding

4. Apply Fixes

For each approved finding:

  1. Implement the suggested fix (or an alternative if the user provides one).
  2. Briefly confirm each fix as it is applied.

If a fix is non-trivial or ambiguous, ask the user for guidance rather than guessing.

5. Check Exit Condition

After fixes are applied, ask the user:

All approved fixes have been applied. Should I run another review pass, or are we done?

  • If the user wants another pass → go to step 2 with the updated target.
  • If the user is satisfied → exit the loop.

Guidelines

  • Fresh context per pass. Each reviewer subagent starts with no memory of previous passes. This prevents anchoring bias and ensures new eyes on the updated code.
  • Do not auto-fix without approval. Always present findings and wait for the user to decide which to address.
  • Verify critical findings. If the reviewer flags a critical or high issue, attempt to verify it (e.g., by running tests or tracing the code) before presenting it to the user. Mark unverified findings as such.
  • Keep the loop bounded. If the reviewer returns only low-severity findings on two consecutive passes, suggest exiting the loop.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.