adversarial-code-reviewer

Reviews code adversarially to find bugs, security holes, race conditions, and silent failures.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/rpmcdougall/claude-skills --skill adversarial-code-reviewer-rpmcdougall
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: adversarial-code-reviewer
Source: https://github.com/rpmcdougall/claude-skills/tree/main/skills/adversarial-code-reviewer
Command: npx skills add https://github.com/rpmcdougall/claude-skills --skill adversarial-code-reviewer-rpmcdougall

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Standard code reviews often miss critical defects because reviewers balance politeness with critique. This Skill performs a deliberately hostile review that assumes code is broken until proven otherwise, surfacing bugs, security vulnerabilities, and silent failures before they reach production. ## Core Features & Use Cases - Three-Pass Attack Protocol: Scans attack surfaces (inputs, outputs, trust boundaries, concurrency), then hunts bugs across input abuse, state corruption, failure modes, security, and logic errors, and finally targets silent failures like swallowed errors and stale caches. - Severity-Ranked Findings: Outputs findings grouped as Critical, High, Medium, and Nits, each with location, trigger scenario, impact, and a concrete fix. - Use Case: Before merging a payment-processing PR, ask for an adversarial review to uncover race conditions on shared state, injection vectors in request handling, and retry logic that re-executes non-idempotent operations. ## Quick Start Ask the assistant to adversarially review the code in your current diff and report every bug, security hole, and silent failure it can find.

Frequently Asked Questions about adversarial-code-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get an adversarial code review of my pull request?▼

Ask the reviewer to tear apart or red team your code, providing the diff or files to examine. It runs a three-pass protocol covering attack surfaces, bug hunting, and silent failures, then returns severity-ranked findings with concrete fixes.

What kinds of bugs does adversarial code review find?▼

It targets input abuse cases, race conditions and TOCTOU bugs, swallowed errors, injection vectors like SQL and XSS, authentication and authorization gaps, off-by-one errors, and silent failures such as stale caches and non-idempotent retries.

How are adversarial review findings structured?▼

Findings are grouped into Critical, High, Medium, and Nits severity tiers. Each finding includes the file and line location, a direct statement of what is wrong, a concrete trigger scenario, the production impact, and a specific fix.

When should I use adversarial review instead of a normal code review?▼

Use it before merging security-sensitive or high-risk changes, when you want hostile scrutiny rather than balanced feedback. It is not suited for style guidance or mentoring, since it deliberately skips encouragement and focuses only on defects.

Does adversarial review work with any programming language?▼

Yes, the review protocol is language-agnostic, covering universal concerns like nil handling, concurrency, injection, and error swallowing. Language-specific issues such as integer overflow or type coercion are addressed where relevant to the code under review.