Agent code review loop
Skill Amey-Thakur/AI-SKILLS/skills/multi-agent-teams/agent-code-review-loop
Plug-and-play skills and prompts for every AI coding agent
npx -y skills add Amey-Thakur/AI-SKILLS --skill agent-code-review-loopAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 18 days oldThe repository was created 18 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Run an author agent and a reviewer agent in a loop with a strict finding format, a mandatory verification pass, and a convergence rule that ends it. Use when you want agent-to-agent code review that improves the diff instead of spinning forever on style or re-flagging fixed issues.
SKILL.md
3.5 KB, as published. Nobody here has run it
Agent code review loop
Two agents reviewing code with no rules produce an endless argument: the reviewer invents nitpicks to look thorough, the author rewrites working code to appease it, and neither knows when to stop. A disciplined loop adds three constraints that end the spin: every finding must survive a verification pass, the author resolves each one on the record, and a convergence rule declares the loop over.
Roles
- Author (
backend-engineer-roleor the owning builder): defends and fixes the diff. - Reviewer (
code-review): files verified findings and audits the resolutions.
Method
- Reviewer states intent before judging a line. Restate the change's purpose in one sentence first, so a deliberate behavior is not reported as a bug and the author does not burn a round defending it.
- Fix the finding format. Every finding is
file:line, severity, one-line defect, failing scenario, suggested fix. Severity is blocker, major, minor, or nit. A finding with no location and no scenario is a question, and it is filed as one. - Require a verification pass. Before reporting, the reviewer constructs the concrete input or state that triggers the defect and the wrong result it produces. If it cannot build that scenario, the finding is dropped. This one rule kills invented nitpicks.
- Author resolves each finding explicitly. For every item: fixed, with the commit, or rebutted, with a reason. No silent drops. The resolution log is the artifact the next round reads, so nothing is lost between passes.
- Enforce the convergence rule. The loop ends when no blockers or majors remain open and the latest pass surfaced no new ones. Cap at three rounds; past that, escalate the disagreement to a human rather than iterate on taste.
- Forbid reopening without new evidence. A reviewer cannot re-raise a resolved finding unless it names a fresh failing scenario. This stops the loop from thrashing on the same line across rounds.
Run it
In Claude Code, run the author as one subagent and the reviewer as another, passing the diff and the findings list as files so each round reads the prior resolution log, not the whole chat. The orchestrator counts rounds and holds the convergence rule: it stops the loop on a clean pass or on the round cap. Keep severities honest, so a nit never blocks a merge and a blocker never slips through. To port, model the loop as a CrewAI hierarchical process with a review task, an AutoGen two-agent chat with a termination condition, or a LangGraph cycle whose conditional edge exits when open blockers reach zero.
Signals it works
- Every reported finding carries a concrete failing scenario, no bare opinions.
- The loop ends on the convergence rule, not on an agent giving up.
- No resolved finding reappears in a later round without fresh evidence.
Boundaries
This is line-level iteration between two agents on a diff; for multi-lens review
of a design use agent-design-review-panel, and for the ship gate use
agent-qa-gate. The loop improves the change in front of it and does not judge
whether the change should exist, a call that belongs to the author's charter and
the humans above it.