agentleFS
patfornapatforna/core-skills/skills/review-loop/SKILL.md

review-loop

Skill0 starsChanged 5 months agoMITView on GitHub

Iterative review-until-convergence loop for any artifact. Each round introduces external signal (different model, tool output, new evidence) — pure self-reflection is prohibited. TRIGGER when: user says "review loop", "iterate until convergence", "converge on", "keep reviewing", "review-loop". DO NOT TRIGGER when: single-pass review, trivial changes, casual "refine this" editing requests.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use motion-design, polish and 8 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.
  • soilmassSkill

    motion-design

    Create animations and motion graphics using industry standards. Use when asked to animate UI elements, create video content, implement transitions, or build motion systems. Implements W3C Design Tokens, Material Design 3 baseline, and Lottie specification compliance.

    Also in 5 projects that use this

  • HK-hubSkill

    polish

    Performs a final quality pass fixing alignment, spacing, consistency, and micro-detail issues before shipping. Use when the user mentions polish, finishing touches, pre-launch review, something looks off, or wants to go from good to great.

    Also in 3 projects that use this

  • GoogleSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.

    Also in 4 projects that use this

  • GoogleSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 5 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 4 projects that use this

  • MicrosoftSkill

    council

    Convene the persona panel — six orthogonal review lenses — on a target. Cold independent fan-out, debate-to-consensus, synthesized verdict with recorded dissent and a roster manifest.

    Also in 3 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the review. For each finding:

    line 40
  2. Distinctive:

    If converged → deliver. If not → return to Step 2.

    line 66
  3. Distinctive:

    Early exit: If Round 1 review finds no substantive issues, stop.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 47 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

Usage

/core-skills:review-loop <artifact> [goal or review criteria]

Goal

Iteratively improve $ARGUMENTS through review cycles until convergence.

The Rule That Matters Most

Every round must introduce information the author didn't have. A different model reviewing in fresh context. Test/lint/backtest output. New search results. If the only input is the author re-reading its own work, the round is net negative — models change correct answers to incorrect ones more often than they fix errors. If you cannot introduce external signal, stop iterating.

Protocol

Step 1 — Anchor

Define the Problem Anchor: what is this artifact supposed to achieve? State as a concrete success criterion. Carry it verbatim through every round. Feedback that would change the goal is drift — reject it explicitly.

Step 2 — Review

Re-state the Problem Anchor before reviewing.

Get review from an external source. Options, in order of preference:

  1. Different model — Codex, Gemini, or a context-separated background subagent (fresh context, not same session)
  2. Tool execution — run tests, linters, type checkers, backtests
  3. Evidence retrieval — search for sources, check claims

The reviewer receives the artifact, the Problem Anchor, and an adversarial mandate: "Find what's wrong. Be specific — cite locations and explain why it matters. Do not confirm quality."

Step 3 — Address with Pushback

Read the review. For each finding:

  • Accept — incorporate the fix
  • Reject: drift — finding would change the goal, not improve the artifact. Cite the Problem Anchor.
  • Reject: evidence — finding is based on a misread. Cite the specific code/data/reasoning that makes it wrong.
  • Reject: disproportionate — fix adds complexity that outweighs the issue.

"I disagree" without evidence is not valid pushback. When you produced the artifact being reviewed, evaluate findings against the Problem Anchor and pushback criteria — not your prior assessment of your own work.

Record each finding and its disposition in a markdown table:

#Reviewer claimResponseOutcome

Outcome is accepted or rejected with a one-line reason. For rejections: factually wrong (evidence), would drift from the Problem Anchor (drift), or costs more than it's worth (disproportionate). When a finding is partially accepted, split into two rows. When valid but already addressed, record as accepted: already present, no change needed.

Include this table in the delivered artifact or present it with the delivery summary.

Step 4 — Convergence Check

Stop when ALL three hold:

  1. No new substantive feedback — reviewer found nothing new (cosmetic or style-only feedback doesn't count)
  2. No drift from the Problem Anchor
  3. Hard cap not exceeded — default 5 rounds (user can override)

If converged → deliver. If not → return to Step 2. Use a different review lens each round to avoid re-running the same check.

Early exit: If Round 1 review finds no substantive issues, stop. Don't iterate for the sake of iterating.

Step 5 — Deliver

Present the final artifact with:

  • Rounds completed and what changed in each
  • Any rejected feedback worth noting (so the user can override)
  • Unresolved disagreements

Anti-Patterns

Self-review without external signal. The single strongest finding in the literature. Self-correction without external signal degrades quality across all benchmarks. Every round MUST introduce new information.

Unlimited rounds. Meaningful improvement concentrates in rounds 1-2. After round 3, models entrench and semantic compression erodes nuance. Respect the hard cap.

Sycophantic review. Agents default to agreement — sycophancy collapses loops into premature false convergence. Every reviewer gets an explicit adversarial mandate. Convergence from a polite reviewer is not real convergence.

Score-only convergence. Scores aren't calibrated across rounds or reviewers. Use the conjunctive check: no-new-feedback AND no-drift AND hard-cap. All three, not any one.

Fallback

Try: primary model → secondary model → context-separated background subagent (fresh context). Never fail because an external model is down.

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.