review-loop

A repeated code-review process that runs four read-only reviewers with different focuses: correctness, adversarial checks, API design, and test quality. It repeats rounds until all reviewers agree or the review budget ends.

In plain words
What is it for?
Use it to review substantial pull requests, compare findings across reviewers, fix accepted issues, and decide when the change is ready to ship.
Why use it?
It catches different kinds of problems that one review may overlook and gives the team a defined stopping rule for a pull request.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/spxrogers/agentsync/review-loop
Any agent
npx skills add spxrogers/agentsync --skill review-loop
Clone the repo
git clone --depth 1 https://github.com/spxrogers/agentsync

Made for: Claude Code, Codex.

Per session 199 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,187 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00199 $0.06187
Opus 5 $0.00100 $0.03093
Sonnet 5 $0.00040 $0.01237
Haiku 4.5 $0.00020 $0.00619

Measured 2d ago against content hash 6fe35b10ad16, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/review-loop/SKILL.md · 546 lines

How it starts

The opening of the file, as written. The whole thing — 546 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Review loop

A four-lens adversarial review pattern, iterated until the team converges or a budgeted number of rounds elapses. Use it when the user wants the bar set high on both correctness and polish — substantive PRs where a single review pass would miss the second-order issues four lenses catch independently.

Loop logic:

for round in 1..N:                          # N defaults to 5
  launch 4 READ-ONLY agents IN PARALLEL: correctness, adversarial, api-design, test-rigor
  wait for all 4 to report                  # they report; they never edit
  synthesize findings (convergent vs single-reviewer; rank by severity)
  if every reviewer says "CLEAN — ship it":
    stop                                    # full convergence
  if every finding this round is NIT severity (no BLOCKER/ISSUE anywhere):
    ask the user: stop here, or spend one more round?   # see Step 5
  if severity has trended down for 2 rounds straight and neither stop
     condition above has fired: ask the user ONCE — stop, or continue to budget?
  audit each finding yourself               # reviewers are wrong sometimes
  fix every accepted finding                # MAIN SESSION ONLY — see below
  commit + push
end
report final status

The single-writer rule — non-negotiable

The four reviewers are READ-ONLY. The main session is the only process that edits the worktree. Reviewers produce reports; the main session audits them, decides what to accept, and makes every change itself.

This is not a style preference. Four agents editing one worktree in parallel corrupts it, and the failure modes are quiet:

  • A reviewer leaves a probe file behind (zz_probe_test.go), and the package stops compiling for everyone — including the next round's reviewers, who then report a "build failure" that is really litter.
  • A reviewer break-verifies by mutating a source file and doesn't restore it. The mutation is now indistinguishable from the main session's in-flight work. In one real run a reviewer's stream-swap sat in root.go long enough that it was nearly committed; it was caught only because a test written minutes later happened to fail on it.
  • A reviewer notices another reviewer's litter and helpfully runs git checkout -- <file> to clean up. That silently discarded the main session's uncommitted fix to the same file, which surfaced later as an unexplained build break.

Read the full file on GitHub · 546 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 546 lines · 199 tokens per session scan A 6fe35b10ad16

Subscribe to this mod's changes

review-loop is a skill published in the GitHub repository spxrogers/agentsync (9 stars, last pushed 1mo ago), licensed MIT. It adds 199 tokens to every session and 6,187 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

AI SDK Documentation

This skill should be used when working with Vercel AI SDK, AI Gateway, streamText, generateText, generateObject, streamObject, tool calling, or AI SDK providers. Also relevant for "ai-sdk", "@ai-sdk/" packages, or questions about AI SDK patterns, configuration, and best practices.

malob/nix-config · 68 tokens

nvim-install

Install Neovim and stand up the nvim-fredrik config in the Claude Code web sandbox (the cloud environment), where no Neovim exists. Use this before testing any Neovim config change in a web session, e.g. checking out a PR branch that touches nvim-fredrik and observing its runtime behavior. Installs Neovim via Nix from…

fredrikaverpil/dotfiles · 132 tokens

refine-plan

Iteratively refine development plans using TDD methodology. Ensures plans are clear, actionable, and include red-green-refactor cycles with proper test coverage.

coder/coder · 34 tokens

todoist-cli

Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the td CLI. Use when the user wants to view, create, update, complete, or organize Todoist items, or mentions tasks, inbox, today, upcoming, projects, labels, or filters.

joshukraine/dotfiles · 68 tokens

qa-triage-batch

Fan out /qa-triage across a queue of qa-labeled reports in parallel, reconcile them across reports to cluster shared root causes, present one consolidated decision gate, and — on approval — create the resulting tech issues.

joshukraine/dotfiles · 52 tokens

value-prop-that-converts

Write a developer value proposition that is specific, provable, and free of puffery. Use when the messaging leans on "powerful," "better," "seamless," or "best-in-class," when claims have no proof, or when the same line is supposed to reach both the developer and the buyer.

AIDevGTM/gtm-cofounder · 72 tokens