Skip to content
Skill

Adversarial review

Stress-tests a code diff with blind reviewer subagents that hunt for real bugs

Adversarial review is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Adversarial review

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".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (9 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

gemini skills install https://github.com/vpaivag/skills.git --path skills/adversarial-review

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Adversarial review 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.

More from vpaivag/skills

  1. Turns a coding task into a reviewed, executable plan suite before any code is written

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Trims a repo's CLAUDE.md into a lean index with topic docs under /docs

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Checks a PR or diff against the request it was meant to deliver, item by item

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Drafts standalone Linear issues and sub-issues that a dev or coding agent can pick up

    • Open source
    • 5 GitHub stars
    • Productivity
  5. Walks a newcomer through an unfamiliar codebase and sets a practice task

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Drafts a Linear project from related features, with milestones and issue handoff

    • Open source
    • 5 GitHub stars
    • Productivity