agentleFS
naingthetnaingthet/agent-skills/skills/fleet-review-loop/SKILL.md

fleet-review-loop

Skill1 starsChanged 3 months agoMITView on GitHub

Run a fleet of work agents across N jobs, then drive each to done with rounds of adversarial reviewers until they meet an agreed bar. Use when asked to "fan out and review until clean", "review loop", "iterate until reviewers are happy", "build this with a review loop", or to parallelize work that then needs to survive scrutiny before merge.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    Before spawning anything, put these to the user in one batch, each with its default visible, so they can accept the whole set in one word …

    line 23
  2. Distinctive:

    Write the agreed parameters somewhere every agent can read, and put the convergence bar verbatim in every reviewer prompt.

    line 37
  3. Distinctive:

    When a fix genuinely spans two agents' territory, have the one who owns the *signature* make the change and report the new signature rather …

    line 48
  4. Distinctive:

    Prove it, do not reason about it: If there is a database, a service, or a test harness, tell them to use it and reproduce the failure.

    line 68
  5. Distinctive:

    Read every finding and decide.

    line 81
  6. Distinctive:

    Verify it is gone from both the registry and the disk rather than assuming the removal succeeded.

    line 100
  7. Distinctive:

    If the rounds are not converging, meaning the same class of finding recurs or counts stay flat across three rounds, stop looping and tell …

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Fleet with a review loop

You are the orchestrator. You spawn workers, spawn reviewers, triage findings, verify fixes, and decide when it is done. You do not do the bulk implementation yourself. You do own the hardest or riskiest slice, because that is the one you must not misjudge when a reviewer disputes it.

The loop per job: work, review, triage, fix, review, until the bar is met.

Everything runs inside one harness. Use your harness's own subagents. Do not try to spawn agents in a second tool or a second provider.

Set the parameters first

Loops go wrong when the bar is implicit. A reviewer told to be adversarial always finds something, so a loop with no agreed stopping condition does not stop.

Before spawning anything, put these to the user in one batch, each with its default visible, so they can accept the whole set in one word or change the two they care about. Do not ask them one at a time, and do not re-ask mid-loop.

ParameterDefaultWhy you might change it
Convergence barNo P1 or P2 findings remain. Report P3 nits, do not fix them.Raise it to "fix nits too" for code you will not revisit. Lower it to "P1 only" for a hotfix.
Review styleIncremental. The same reviewer resumes each round.Fresh reviewers read the code from scratch each round and never see their own prior findings. They catch what the incumbent has normalized, and they cost more.
Round capThree rounds, or fewer if the bar is met.Raise it for security-sensitive work. Lower it when you need a merge today.
Reviewer lensesTwo or three per round, each with a distinct lens.More lenses for a broad diff. One lens when the risk is concentrated.
PR shapeOne PR per finding cluster, split by file ownership and risk.One branch when the slices are trivially small or genuinely inseparable.
Model splitWorkers and reviewers use the same model as you.A cheaper worker with a stronger reviewer trades throughput for judgment.
Job partitionYou propose the split by file ownership.Ask when the partition is not obvious from the request.

Write the agreed parameters somewhere every agent can read, and put the convergence bar verbatim in every reviewer prompt. A reviewer who does not know the bar files nits as P1, and your triage load triples for nothing.

Partition by file ownership, always

This is the single thing that makes parallel workers safe. Before spawning, decide which files each agent owns, and tell every agent explicitly what it may not touch and who owns it. Overlapping writers silently clobber each other, and you do not notice until the build breaks in a file nobody admits to editing.

When a fix genuinely spans two agents' territory, have the one who owns the signature make the change and report the new signature rather than editing across the line. The other agent adapts. Message agents mid-flight when scope shifts.

Writing the review prompt

Include all of this:

  • How to get the code. Fetch and check out the branch under review, detached.
  • What changed and why. Point at the commits and the design notes. A reviewer without intent reports deliberate decisions as defects.
  • The convergence bar, in the user's words. State which severities you act on and which you only want listed.
  • The lens. Give each reviewer a distinct one, such as runtime and concurrency, data and schema, or API and authorization. Otherwise three agents find the same thing.
  • Round 2 and later framing. "Prior rounds found N defects, all fixed. Verify those fixes are genuinely correct, not just present, and find what was missed."
  • Permission to find nothing. State that "No findings." is valid and expected, and that a speculative finding actively harms the merge decision. Without this the loop cannot terminate.
  • Prove it, do not reason about it. If there is a database, a service, or a test harness, tell them to use it and reproduce the failure. A reproduced finding is worth an order of magnitude more than a plausible one, and it arrives pre-triaged.
  • Known-weak spots. Name the parts you are least sure of. Reviewers spend effort where you point them.
  • Output format. File and line, severity, a concrete failure scenario with inputs, and a specific fix. Add a CHECKED section, one line per thing verified correct, so later rounds do not relitigate settled ground.
  • Where to write findings. An absolute path, one file per reviewer, such as .../review/round2/concurrency.md. Do not scrape a terminal. Then watch for the files.

Triage: you are the judge, not a router

Read every finding and decide. Implement what is valid. Push back, in writing, on what is not, with evidence rather than opinion. Check whether a claimed regression already exists on the base branch before you accept that you caused it.

A wrong fix is worse than the original bug, so never change code only to satisfy a reviewer you think is wrong. Record the disagreement in your report to the user.

Verify their claims yourself

Workers and reviewers both report success optimistically. Before you believe "all green," run the gates yourself: the linter, the full test suite, integration tests against real infrastructure, and the build. Do this after every round, and after any rebase.

Watch specifically for a fix that introduces a fresh instance of the bug class it was closing. This is common, and reviewers catch it, which is why round 2 exists.

Clean up as you go

Tear down each reviewer's workspace as soon as its findings file lands, not at the end. Verify it is gone from both the registry and the disk rather than assuming the removal succeeded. Do the same for scratch branches, containers, and databases you spun up.

Knowing when to stop

Track findings per round by severity. The signal is severity trending down, not count reaching zero. A round that goes from 25 findings to 20 is fine if round 1 was P1-heavy and round 2 is mostly P2 tail risk. Stop when the agreed bar is met.

If the rounds are not converging, meaning the same class of finding recurs or counts stay flat across three rounds, stop looping and tell the user. That is a design problem, not a review problem, and more rounds do not fix it.

Report at the end: what each round found, what you fixed, what you pushed back on and why, what is verified, and what is not verified. Never let "reviewers came back clean" imply end-to-end validation you did not perform.

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.