# Adversarial review

> Adversarial review is an open-source agent skill for developer tools. Stress-tests a code diff with blind reviewer subagents that hunt for real bugs. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/vpaivag/skills/tree/main/skills/adversarial-review
- **Repository:** https://github.com/vpaivag/skills
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** adversarial-review
- **Collection:** https://github.com/vpaivag/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Adversarial Review is a Claude Code skill for reviewing a set of code changes. Instead of reviewing its own work, the agent runs the review in a fresh session and spawns two or more reviewer subagents that see only the diff, with instructions to assume the code is broken and find concrete failure paths. Their suspected defects are then checked against the full source files, so speculative findings are dropped before anything is reported.

The workflow has the agent collect the diff from a branch, pull request, or uncommitted changes, fan out reviewers with different emphases such as memory and resources, logic and edge cases, or contract mismatches, and verify each finding by naming the file, the triggering input or state, and the wrong outcome. The report lists confirmed findings with suggested fixes and notes dropped false positives. The skill does not edit code, commit, or push unless the user asks for a fix pass afterward.

It expects a git repository with a diff to review and a Claude Code environment that can spawn subagents. Reviewer prompts are written to stay diff-only, so the skill is meant for code just written or changes a user wants stress-tested.

## When your agent uses it

> Adversarial code review of a diff using split-context subagents — separate reviewer agents each get ONLY the diff and are told to assume the code is wrong and find the reasons it breaks, findings are then verified against the real code to drop false positives, and reported (fixes applied only on request). Use this whenever the user asks for an adversarial review, wants a diff or set of changes stress-tested for bugs, says "tear this apart", "assume it's broken", "poke holes in this", "find what's wrong with these changes", "red-team this code", or wants a skeptical second pass on code that was just written — even if they don't say the word "adversarial".

## What it can access

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

- [Instructions only, no scripts](https://github.com/vpaivag/skills/tree/HEAD/skills/adversarial-review)
- [License: MIT](https://github.com/vpaivag/skills/tree/HEAD/skills/adversarial-review)

## Features

- **Blind reviewer subagents:** Two or more reviewers run in parallel and see only the diff, without the author's intent.
- **Finding verification:** Each suspected defect is checked against the real code before it reaches the report.
- **Split-context workflow:** The review runs in a separate session from the one that wrote the code to avoid author bias.
- **Severity-ordered report:** Confirmed findings are listed with file, trigger, outcome, and a suggested fix.
- **Fix on request only:** Code is left untouched until the user asks for a fixer pass after reviewing the findings.

## Good for

- Stress-test my branch for bugs before I open a pull request
- Find what's wrong with these uncommitted changes
- Red-team the code I just wrote
- Give this diff a skeptical second pass
- Poke holes in the changes in this PR

## Install

### Claude Code

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

```sh
/plugin marketplace add vpaivag/skills
/plugin install skills@vpaivag
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/adversarial-review` 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/vpaivag/skills.git --path skills/adversarial-review
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/vpaivag/skills.git
```

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

## FAQ

### When does the skill trigger?

When the user asks for an adversarial review, wants a diff stress-tested for bugs, or requests a skeptical second pass on code just written, using phrases such as "tear this apart" or "red-team this code".

### Can Adversarial review run in the same session that wrote the code?

No. The skill stops and asks the user to re-run it in a fresh session pointed at the diff, unless the diff was not authored in that session.

### Does Adversarial review change my code?

No. It reports verified findings by default and only applies fixes after the user explicitly asks for the fixer pass.

### What does the review get as input?

Reviewers receive only the diff and the language and file paths, not the plan, the PR description, or the author's reasoning.

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

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

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

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Adversarial review?

The closest alternatives to Adversarial review are Interrogate, Code review, Adversarial code review, Code review loop and Doubt driven development.

## Where this comes from

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

## Alternatives

- [Interrogate](https://ai-powered.com/skills/interrogate): Interrogate 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.
- [Adversarial code review](https://ai-powered.com/skills/adversarial-code-review): Adversarial code review is an open-source agent skill for security.
- [Code review loop](https://ai-powered.com/skills/code-review-loop): Code review loop is an open-source agent skill for developer tools.
- [Doubt driven development](https://ai-powered.com/skills/doubt-driven-development): Doubt driven development 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.
- [Doubt driven development](https://ai-powered.com/skills/doubt-driven-development-ajyadav013-2): Doubt driven development is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kzytateishi): Code review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/adversarial-review
