# Code review agent

> Code review agent is an open-source agent skill for developer tools. Reviews a diff or PR read-only, checking standards and spec separately. 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/ivy00johns/Skill-Madness/tree/main/skills/roles/code-review-agent
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** code-review-agent
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill performs a read-only code review of a diff, pull request, or set of files. It runs two independent checks: a Standards pass against the repository's documented conventions and a built-in code-smell baseline, and a Spec pass that checks whether the change implements the originating issue or contract completely and without extras. The two verdicts are reported side by side rather than merged into one score.

When no files are pasted, the skill locates the change itself from the working tree, the staged diff, or the pull request. It stops early if the scope is empty or if no spec can be found, and it marks the Spec check as not run rather than guessing. Every finding must cite a file and line that the reviewer actually read. The review report lists issues with severity, the responsible agent, and a commendations section for good patterns.

The skill is designed for a contract-first multi-agent build. It reads a contracts folder when one is present and can consult a project wiki for intended architecture, but it also works as a standalone review of any files. It relies on read and search tools plus shell access for git history, and it is explicitly invoked rather than triggered automatically.

## When your agent uses it

> Review a diff, PR or files on two separate axes: Standards (repo conventions and a code-smell baseline) and Spec (does it implement the issue or contract). Finds the change itself (working tree, staged diff or PR) when none is pasted. Read-only. Use for any code-review request. Trigger on "review this diff", "review this PR", "code review", "does this follow our conventions".

## What it can access

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

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/code-review-agent)
- [Asks for: Read, Write, Grep, Glob, Bash, Agent](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/roles/code-review-agent/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/roles/code-review-agent)

## Features

- **Two-axis review:** Checks standards and spec independently and reports each verdict side by side.
- **Standards baseline:** Applies the repository's documented conventions plus a built-in code-smell checklist.
- **Spec conformance:** Compares the change against the originating issue or contract for gaps and unrequested additions.
- **Automatic change discovery:** Finds the working tree, staged diff, or pull request when no files are provided.
- **Read-only operation:** Reports issues without modifying code, routing fixes to the owning agent.
- **Structured report:** Produces a markdown report with severity, file and line references, and commendations.

## Good for

- Review my current staged changes before I commit
- Review this pull request against the linked issue
- Check whether this diff follows our repo conventions
- Audit these files for code smells and error-handling gaps
- Confirm the implementation matches the integration contract

## Install

### Claude Code

This skill ships in the `skill-madness` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

Or copy only this skill to `~/.claude/skills/code-review-agent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-review-agent &&
cp -R "$tmp/skills/roles/code-review-agent" ~/.claude/skills/code-review-agent &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-review-agent &&
cp -R "$tmp/skills/roles/code-review-agent" ~/.agents/skills/code-review-agent &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-review-agent &&
cp -R "$tmp/skills/roles/code-review-agent" ~/.cursor/skills/code-review-agent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-review-agent` 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/ivy00johns/Skill-Madness.git --path skills/roles/code-review-agent
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-review-agent &&
cp -R "$tmp/skills/roles/code-review-agent" ~/.copilot/skills/code-review-agent &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/roles/code-review-agent` into your agent's skills folder as `code-review-agent`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What triggers Code review agent?

It is explicitly invoked for a read-only review and is not spawned by the orchestrator. Trigger phrases include "review this diff", "review this PR", "code review", and "does this follow our conventions".

### Does Code review agent change my code?

No. The skill is read-only and reports issues for the owning agent or user to fix.

### What happens if no spec can be found?

The Spec lane is marked NOT RUN, and only the Standards review is reported.

### Which tools does Code review agent use?

It is granted Read, Write, Grep, Glob, Bash, and Agent. Bash is used for git diff and log to resolve scope, and Agent spawns the two review lanes.

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

Copy the skill folder from GitHub to ~/.claude/skills/code-review-agent to use it in all your projects, or to .claude/skills/code-review-agent in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Code review agent 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 agent?

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 agent?

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

## Where this comes from

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

## Alternatives

- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code 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.
- [Code review](https://ai-powered.com/skills/code-review-martinffx): Code review is an open-source agent skill for developer tools.
- [Code review loop](https://ai-powered.com/skills/code-review-loop): Code review loop 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.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-jasgujral): Review 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-agent
