# Code review loop

> Code review loop is an open-source agent skill for developer tools. Runs bounded, evidence-based code reviews of a diff against its stated intent. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/code-review-loop
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** code-review-loop
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through reviewing a fixed diff in three passes: correctness first, then blast radius across callers, persisted data and public contracts, and finally code quality, which is only reported when it affects future correctness. The agent is asked to establish the base ref and the intended behavior before reading the changes, and to treat deviations from that intent or from invariants the surrounding code relies on as the findings that matter.

Findings are ranked by severity using a separate severity ladder and checked against a claim-verification step before they are written down. Each recommended change must name the file, line and a concrete failing scenario. The reviewer produces a findings package and a recommendation, while the accept or request-changes decision and any task status change stay with the controlling workflow.

On later iterations the skill limits re-review to the delta and anything it invalidates, and each earlier finding is closed as fixed, disputed or accepted as residual. The loop stops once no finding above an agreed severity floor survives verification. It expects a diff, its base reference and a statement of intent, and it references two companion skills, review-severity-ladder and claim-verification, which are not included in this folder.

## When your agent uses it

> Use when reviewing a fixed diff against stated intent across correctness, blast radius, and maintainability, then returning severity-ranked, verified findings through bounded re-review iterations. The reviewer reports findings and a recommendation; the controller owns the accept/request-changes decision.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/code-review-loop)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/code-review-loop)

## Features

- **Three-pass review:** Checks correctness, then blast radius, then quality, in that fixed order.
- **Intent-anchored findings:** Measures changes against the stated intent and surrounding invariants rather than personal style.
- **Severity-ranked output:** Orders findings by severity and ties the recommendation to that ranking.
- **Verified claims:** Requires each finding to be validated before it is reported.
- **Bounded re-review:** Re-checks only the delta and affected areas, closing each prior finding explicitly.
- **Reviewer-controller split:** Leaves the accept or request-changes decision and task status to the controlling workflow.

## Good for

- Review this pull request diff against the ticket's stated goal
- Check whether a change breaks callers or stored data elsewhere in the codebase
- Re-review only the fixes made after my last round of review comments
- Produce a severity-ranked list of defects with file and line references

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/code-review-loop` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-review-loop &&
cp -R "$tmp/.agents/skills/code-review-loop" ~/.claude/skills/code-review-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-review-loop` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-review-loop` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-review-loop &&
cp -R "$tmp/.agents/skills/code-review-loop" ~/.agents/skills/code-review-loop &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-review-loop` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-review-loop` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-review-loop &&
cp -R "$tmp/.agents/skills/code-review-loop" ~/.cursor/skills/code-review-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-review-loop` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/code-review-loop
```

Or copy the folder to `~/.gemini/skills/code-review-loop` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-review-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-review-loop &&
cp -R "$tmp/.agents/skills/code-review-loop" ~/.copilot/skills/code-review-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-review-loop` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/code-review-loop` into your agent's skills folder as `code-review-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the agent need to start a review?

It needs the exact diff, its base ref and the stated intent of the change. The skill says a review without a fixed base is not reproducible.

### Does the skill approve or reject pull requests?

No. The reviewer reports findings and a recommendation, and the controlling workflow owns the accept or request-changes decision and any task status change.

### How does the review end?

It stops when no finding above the agreed severity floor survives verification, rather than when the reviewer runs out of things to say.

### Does Code review loop include scripts?

No. The folder contains only the SKILL.md file with no scripts, and it depends on two referenced skills that are not part of this folder.

### How do I install Code review loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-review-loop to use it in all your projects, or to .claude/skills/code-review-loop in one project.

### Does Code review loop run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code review loop?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Code review loop?

The closest alternatives to Code review loop are Review, Code review expert, Project review, Code review checklist and Code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Review](https://ai-powered.com/skills/review-jasgujral): Review is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Code review checklist](https://ai-powered.com/skills/code-review-checklist): Code review checklist is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [Review changes](https://ai-powered.com/skills/review-changes): Review changes is an open-source agent skill for developer tools.
- [Code review edho ferdian](https://ai-powered.com/skills/code-review-edho-ferdian): Code review edho ferdian is an open-source agent skill for developer tools.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-review-loop
