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
- wufei-png/skillstheir own version, first seen Oct 7, 2026
- ignaval/skillstheir own version, first seen Oct 1, 2026
- mayankasthana/applymatetheir own version, first seen Oct 1, 2026
- brian-bell/agent-skillstheir own version, first seen Sep 26, 2026
- mmnto-ai/totemtheir own version, first seen Sep 25, 2026
- mthines/agent-skillstheir own version, first seen Sep 25, 2026
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.
QredenceSkillpolish
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
DockerSkillresearch
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
AWSSkilltdd
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
AWSSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- sangrokjung/claude-forge★ 847same name
- ntorga/agent-starter-kit★ 146same name
- 9thLevelSoftware/legion★ 78same name
- microsoft/Trieste★ 53same name
- agentcrew-academy/harness-starter-kit★ 39same name
- mmnto-ai/totem★ 17same name
- managoat/fountain★ 16same name
- mthines/agent-skills★ 13same name
- EternallLight/tgc-skills★ 9same name
- 200iqlabs/shared-skills★ 4same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- branch-reviewSkill
- c-extensions-with-bocpySkill
- commenting-c-and-pythonSkill
- finalize-prSkill
- multi-perspective-planSkill
- testing-message-queueSkill
- testing-with-bocSkill
- thinking-in-bocSkill
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
- Distinctive: line 14
After implementing a non-trivial change
- Distinctive: line 34
Ask the user what to review if not already specified.
- Very specific: line 45
If a specific lens is requested (e.g., correctness-lens, security-lens, adversarial-lens, etc.), use that named lens agent operating in …
- Very specific: line 77
Use the Explore subagent for read-only review of code.
- Distinctive: line 83
After the reviewer returns:
- Distinctive: line 87
If the reviewer found no issues, report that explicitly.
- Distinctive: line 88
Ask the user which findings to address.
- Distinctive: line 92
Ask for clarification on any finding
- Distinctive: line 101
If a fix is non-trivial or ambiguous, ask the user for guidance rather than guessing.
- Distinctive: line 106
After fixes are applied, ask the user:
- Distinctive: line 111
If the user wants another pass → go to step 2 with the updated target.
- Distinctive: line 112
If the user is satisfied → exit the loop.
- Distinctive: line 119
Do not auto-fix without approval: Always present findings and wait for the user to decide which to address.
- Distinctive: line 121
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) …
- Distinctive: line 124
Keep the loop bounded: If the reviewer returns only low-severity findings on two consecutive passes, suggest exiting the loop.
“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.
Files
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:
| Severity | Meaning |
| critical | Correctness bug, security vulnerability, or data loss risk. Must fix. |
| high | Likely bug, race condition, or significant design flaw. Should fix. |
| medium | Code smell, unclear logic, missing edge case, or maintainability concern. Recommended fix. |
| low | Style 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:
- List all findings grouped by severity.
- For each finding, include the reviewer's suggested remediation.
- If the reviewer found no issues, report that explicitly.
- 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:
- Implement the suggested fix (or an alternative if the user provides one).
- 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.
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
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.

