agentleFS
revisit-studiesrevisit-studies/study/.agents/skills/review-loop/SKILL.md

review-loop

Skill46 starsChanged 44 days agoBSD-3-ClauseView on GitHub

Repeatedly review and fix local work on a pull request branch with independent adversarial reviewers, stopping when the change is correct and minimal or a bounded review limit requires human judgment. Use when the user asks for a review loop or iterative adversarial review and implementation.

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 10 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

  • +4 more from google

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If no confirmed in-scope issue remains, stop successfully.

    line 19

“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

Improve an authorized change's correctness while keeping its scope and implementation minimal. Use $adversarial-review for independent, read-only reviews and $implement for confirmed fixes. This skill authorizes neither pushing nor merging.

Establish the review state

Read repository instructions and identify the objective, acceptance criteria, PR base and remote head, local branch and commits, and in-scope staged, unstaged, and untracked changes. Review the complete local result stacked on the PR branch, including fixes not yet pushed. Preserve unrelated work. Record the local state before each reviewer handoff so findings can be tied to the version reviewed.

Run the bounded loop

Allow at most three fresh independent reviewers, with up to three fix-and-recheck cycles per reviewer: at most nine cycles across the run. A fresh reviewer starts a new review round through $adversarial-review. Following up with the same reviewer does not start a new round. Unused cycles do not carry into another round. If a reviewer still has a confirmed concern after its third recheck, stop for human review rather than starting another reviewer round.

  1. Give the fresh reviewer the current local state and a self-contained handoff. Do not pass prior reviewers' conclusions as facts. Independently verify each finding against the reviewed state. Reject stale, duplicate, unsupported, out-of-scope, or merely stylistic requests that would add churn without improving the current requirements.
  2. If no confirmed in-scope issue remains, stop successfully. Otherwise use $implement to address the confirmed issues with the smallest clear fix and meaningful validation. Keep changes local while review concerns remain.
  3. Follow up with that same reviewer on the new local state, specifically whether its confirmed concerns are resolved correctly and minimally and whether the fixes caused regressions. Independently verify any new claim. If a concern remains and the fix-and-recheck limit allows it, fix and ask the same reviewer again.
  4. Once that reviewer has no confirmed concern, start the next fresh round unless three fresh rounds have run. A clean fresh round ends the loop. If the third fresh reviewer finds issues, address them within that reviewer's three-cycle budget and have it recheck; then stop for human review rather than spawning a fourth reviewer.

Do not keep changing code to satisfy unsupported or pedantic preferences. If reviewers disagree about a substantive issue, resolve it from the code and acceptance criteria when possible; otherwise stop and ask for human judgment. Never treat silence, an unavailable reviewer, or an unverified claim as reviewer satisfaction.

Stop and report

Stop when a fresh reviewer finds no confirmed issue, a reviewer uses its third fix-and-recheck cycle without resolving its concerns, the third review round ends, or a substantive disagreement cannot be resolved. At a limit, report remaining findings by severity, the evidence and suggested code-grounded resolution for each, validation performed, and whether further objections appear to be pedantic churn. Call out any remaining P0 or P1 issue explicitly; do not declare the change ready while one remains.

Keep local checks distinct from remote PR checks. Do not push until a fresh round is clean or the user has reviewed and authorized the result at the limit, even if the last reviewer accepted its fixes. After a successful loop, complete only delivery steps already authorized by the user; never infer permission to approve or merge. Report unpushed local changes clearly.

Escalate early to a human

The limits are ceilings, not targets. Stop before reaching them when a verified finding shows that the PR's overall approach cannot meet the objective through focused, in-scope fixes; resolving it would require a broad redesign, a changed requirement or contract, or a material expansion of the PR. Also stop when several reasonable fixes have different user-visible or operational tradeoffs that the request does not settle, or when a P0/P1 issue cannot be corrected safely within the authorized scope. Do not spend remaining cycles making local patches around a known architectural problem.

Verify the reviewer's claim against the code before escalating. Explain the root issue, affected behavior, severity, why a focused fix is insufficient, and the smallest viable options with a recommended path. State which local changes and checks are complete and what remains unpushed. Continue routine fixes autonomously when the code and acceptance criteria already determine a safe resolution.

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.