adversarial-reviewer
Adversarial code review that breaks the self-review monoculture. Use when you want a genuinely critical review of recent changes, before merging a PR, or when you suspect Claude is being too agreeable about code quality. Forces perspective shifts through hostile reviewer personas
Supply asset profile
Coding and developer agents
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
Maintenance
fresh
Pushed today
Risk
Needs review
Permission surface may require sandboxing
GitHub quality
25K
91/100 Quality · 83/100 Trust
Coverage tags
Review notes
Permission surface may require sandboxing · Quality score needs review
Agent adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Human review before install
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 3.5K forks
Maintenance
Pushed today
License
MIT
Install
npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
Install safety
standard package or runtime install path
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Review before production
- Quality score needs review
- Permission surface needs review: shell or command execution, filesystem or document access
- Permission surface: shell or command execution, filesystem or document access
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- Security and compliance workflows
- Claude Code teams
- teams that value GitHub adoption signals
- Inspect risky files
Suited agents
Install decision
- Command
- npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
- Policy
- review
- Human review
- yes
Trust and risk
- Trust
- 75/100
- Audit
- 88/100
- Risk level
- Needs review
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Install command
npx skills add alirezarezvani/claude-skills --skill adversarial-reviewerDo not use when
- teams that need a vendor-supported SLA
- high-compliance environments without internal security review
- No OpenAgentSkill engagement data yet
- High-risk permission hints: Shell or command execution, Secrets or environment access
- Permission surface may require sandboxing
Agent safety v2
44/100 · Avoid automatic install
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Shell or command execution
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
high
Secrets or environment access
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
- High-risk permission hints: Shell or command execution, Secrets or environment access
- Permission surface may require sandboxing
Install targets
Install this skill in your agent workflow
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install alirezarezvani-adversarial-reviewerAgent resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20adversarial-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20adversarial-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/alirezarezvani-adversarial-reviewer/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
Task: Use adversarial-reviewer in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20adversarial-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/alirezarezvani-adversarial-reviewer/install
Install command: npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/alirezarezvani-adversarial-reviewer/install
LLM text format
/api/skills/alirezarezvani-adversarial-reviewer/install?format=text
Find alternatives
/api/skills/search?q=adversarial-reviewer&limit=3
Agent prompt
Use adversarial-reviewer for this task. Review https://www.openagentskill.com/api/skills/alirezarezvani-adversarial-reviewer/install, then install with: npx skills add alirezarezvani/claude-skills --skill adversarial-reviewerRegistry metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/alirezarezvani-adversarial-reviewer
LLM text
/api/registry/manifest/alirezarezvani-adversarial-reviewer?format=text
Install alias
/api/registry/install/alirezarezvani-adversarial-reviewer
Recommend
/api/registry/recommend?task=Use%20adversarial-reviewer%20in%20an%20agent%20workflow&limit=3
Agent fit
Security and compliance
Use-case tags
Platforms
Claude Code
Audit report
Needs review · 88/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Primary pick for Security and compliance
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Security and compliance
Trust label
Production-ready
Install path
Command ready
Use when
- Security and compliance workflows
- Claude Code teams
- teams that value GitHub adoption signals
Evidence
- 24,795 GitHub stars
- recent repository activity
- install command or GitHub repo available
- 91/100 quality profile
review first
- No OpenAgentSkill engagement data yet
Implementation path
- 1Install it in a sandbox agent and run one Security and compliance task end to end.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Trust profile
Sandbox only
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 3.5K forks; issue activity unavailable in current metadata
Recent maintenance
PASSPushed today
License clarity
PASSMIT
Good signals
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Large GitHub adoption signal
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- Quality score needs review
- Permission surface needs review: shell or command execution, filesystem or document access
- Permission surface: shell or command execution, filesystem or document access
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Excellent candidate for agent workflows
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Use this skill in these scenarios
Reduce risk
Security and compliance
I need my agent to scan a project for security risks and summarize what needs attention.
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Investigate faster
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Add it to a complete workflow
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
Research report agent
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Ingest, retrieve, and cite
RAG knowledge base
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Overview
--- name: "adversarial-reviewer" description: "Adversarial code review that breaks the self-review monoculture. Use when you want a genuinely critical review of recent changes, before merging a PR, or when you suspect Claude is being too agreeable about code quality. Forces perspective shifts through hostile reviewer personas that catch blind spots the author's mental model shares with the reviewer." tier: "STANDARD" category: "Engineering / Code Quality" dependencies: "None (prompt-only, no external tools required)" author: "ekreloff" version: "2.9.0" license: "MIT" ---
# Adversarial Code Reviewer
## Description
Adversarial code review skill that forces genuine perspective shifts through three hostile reviewer personas (Saboteur, New Hire, Security Auditor). Each persona MUST find at least one issue — no "LGTM" escapes. Findings are severity-classified and cross-promoted when caught by multiple personas.
## Features
- **Three adversarial personas** — Saboteur (production breaks), New Hire (maintainability), Security Auditor (OWASP-informed) - **Mandatory findings** — Each persona must surface at least one issue, eliminating rubber-stamp reviews - **Severity promotion** — Issues caught by 2+ personas are promoted one severity level - **Self-review trap breaker** — Concrete techniques to overcome shared mental model blind spots - **Structured verdicts** — BLOCK / CONCERNS / CLEAN with clear merge guidance
## Usage
``` /adversarial-review # Review staged/unstaged changes /adversarial-review --diff HEAD~3 # Review last 3 commits /adversarial-review --file src/auth.ts # Review a specific file ```
## Examples
### Example: Reviewing a PR Before Merge
``` /adversarial-review --diff main...HEAD ```
Produces a structured report with findings from all three personas, deduplicated and severity-ranked, ending with a BLOCK/CONCERNS/CLEAN verdict.
## Problem This Solves
When Claude reviews code it wrote (or code it just read), it shares the same mental model, assumptions, and blind spots as the author. This produces "Looks good to me" reviews on code that a fresh human reviewer would flag immediately. Users report this as one of the top frustrations with AI-assisted development.
This skill forces a genuine perspective shift by requiring you to adopt adversarial personas — each with different priorities, different fears, and different definitions of "bad code."
## Table of Contents
1. [Quick Start](#quick-start) 2. [Review Workflow](#review-workflow) 3. [The Three Personas](#the-three-personas) 4. [Severity Classification](#severity-classification) 5. [Output Format](#output-format) 6. [Anti-Patterns](#anti-patterns) 7. [When to Use This](#when-to-use-this)
## Quick Start
``` /adversarial-review # Review staged/unstaged changes /adversarial-review --diff HEAD~3 # Review last 3 commits /adversarial-review --file src/auth.ts # Review a specific file ```
## Review Workflow
### Step 1: Gather the Changes
Determine what to review based on invocation:
- **No arguments:** Run `git diff` (unstaged) + `git diff --cached` (staged). If both empty, run `git diff HEAD~1` (last commit). - **`--diff <ref>`:** Run `git diff <ref>`. - **`--file <path>`:** Read the entire file. Focus review on the full file rather than just changes.
If no changes are found, stop and report: "Nothing to review."
### Step 2: Read the Full Context
For every file in the diff: 1. Read the **full file** (not just the changed lines) — bugs hide in how new code interacts with existing code. 2. Identify the **purpose** of the change: bug fix, new feature, refactor, config change, test. 3. Note any **project conventions** from CLAUDE.md, .editorconfig, linting configs, or existing patterns.
### Step 3: Run All Three Personas
Execute each persona sequentially. Each persona MUST produce at least one finding. If a persona finds nothing wrong, it has not looked hard enough — go back and look again.
**IMPORTANT:** Do not soften findings. Do not hedge. Do not say "this might be fine but..." — either it's a problem or it isn't. Be direct.
### Step 4: Deduplicate and Synthesize
After all three personas have reported: 1. Merge duplicate findings (same issue caught by multiple personas). 2. Promote findings caught by 2+ personas to the next severity level. 3. Produce the final structured output.
## The Three Personas
### Persona 1: The Saboteur
**Mindset:** "I am trying to break this code in production."
**Priorities:** - Input that was never validated - State that can become inconsistent - Concurrent access without synchronization - Error paths that swallow exceptions or return misleading results - Assumptions about data format, size, or availability that could be violated - Off-by-one errors, integer overflow, null/undefined dereferences - Resource leaks (file handles, connections, subscriptions, listeners)
**Review Process:** 1. For each function/method changed, ask: "What is the worst input I could send this?" 2. For each external call, ask: "What if this fails, times out, or returns garbage?" 3. For each state mutation, ask: "What if this runs twice? Concurrently? Never?" 4. For each conditional, ask: "What if neither branch is correct?"
**You MUST find at least one issue. If the code is genuinely bulletproof, note the most fragile assumption it relies on.**
---
### Persona 2: The New Hire
**Mindset:** "I just joined this team. I need to understand and modify this code in 6 months with zero context from the original author."
**Priorities:** - Names that don't communicate intent (what does `data` mean? what does `process()` do?) - Logic that requires reading 3+ other files to understand - Magic numbers, magic strings, unexplained constants - Functions doing more than one thing (the name says X but it also does Y and Z) - Missing type information that forces the reader to trace through call chains - Inconsistency with surrounding code style or project conventions - Tests that test implementation details instead of behavior - Comments that describe *what* (redundant) instead of *why* (useful)
**Review Process:** 1. Read each changed function as if you've never seen the codebase. Can you understand what it does from the name, parameters, and body alone? 2. Trace one code path end-to-end. How many files do you need to open? 3. Check: would a new contributor know where to add a similar feature? 4. Look for "the author knew something the reader won't" — implicit knowledge baked into the code.
**You MUST find at least one issue. If the code is crystal clear, note the most likely point of confusion for a newcomer.**
---
### Persona 3: The Security Auditor
**Mindset:** "This code will be attacked. My job is to find the vulnerability before an attacker does."
**OWASP-Informed Checklist:**
| Category | What to Look For | |----------|-----------------| | **Injection** | SQL, NoSQL, OS command, LDAP — any place user input reaches a query or command without parameterization | | **Broken Auth** | Hardcoded credentials, missing auth checks on new endpoints, session tokens in URLs or logs | | **Data Exposure** | Sensitive data in error messages, logs, or API responses; missing encryption at rest or in transit | | **Insecure Defaults** | Debug mode left on, permissive CORS, wildcard permissions, default passwords | | **Missing Access Control** | IDOR (can user A access user B's data?), missing role checks, privilege escalation paths | | **Dependency Risk** | New dependencies with known CVEs, pinned to vulnerable versions, unnecessary transitive dependencies | | **Secrets** | API keys, tokens, passwords in code, config, or comments — even "temporary" ones |
**Review Process:** 1. Identify every trust boundary the code crosses (user input, API calls, database, file system, environment variables). 2. For each boundary: is input validated? Is output sanitized? Is the principle of least privilege followed? 3. Check: could an authenticated user escalate privileges through this change? 4. Check: does this change expose any new attack surface?
**You MUST find at least one issue. If the code has no security surface, note the closest thing to a security-relevant assumption.**
## Severity Classification
| Severity | Definition | Action Required | |----------|-----------|-----------------| | **CRITICAL** | Will cause data loss, security breach, or production outage. Must fix before merge. | Block merge. | | **WARNING** | Likely to cause bugs in edge cases, degrade performance, or confuse future maintainers. Should fix before merge. | Fix or explicitly accept risk with justification. | | **NOTE** | Style issue, minor improvement opportunity, or documentation gap. Nice to fix. | Author's discretion. |
**Promotion rule:** A finding flagged by 2+ personas is promoted one level (NOTE becomes WARNING, WARNING becomes CRITICAL).
## Output Format
Structure your review as follows:
```markdown ## Adversarial Review: [brief description of what was reviewed]
**Scope:** [files reviewed, lines changed, type of change] **Verdict:** BLOCK / CONCERNS / CLEAN
### Critical Findings [If any — these block the merge]
### Warnings [Should-fix items]
### Notes [Nice-to-fix items]
### Summary [2-3 sentences: what's the overall risk profile? What's the single most important thing to fix?] ```
**Verdict definitions:** - **BLOCK** — 1+ CRITICAL findings. Do not merge until resolved. - **CONCERNS** — No criticals but 2+ warnings. Merge at your own risk. - **CLEAN** — Only notes. Safe to merge.
## Anti-Patterns
### What This Skill is NOT
| Anti-Pattern | Why It's Wrong | |-------------|---------------| | "LGTM, no issues found" | If you found nothing, you didn't look hard enough. Every change has at least one risk, assumption, or improvement opportunity. | | Cosmetic-only findings | Reporting only whitespace/formatting while missing a null dereference is worse than no review at all. Substance first, style second. | | Pulling punches | "This might possibly be a minor concern..." — No. Be direct. "This will throw a NullPointerException when `user` is undefined." | | Restating the diff | "This function was added to handle authentication" is not a finding. What's WRONG with how it handles authentication? | | Ignoring test gaps | New code without tests is a finding. Always. Tests are not optional. | | Reviewing only the changed lines | Bugs live in the interaction between new code and existing code. Read the full file. |
### The Self-Review Trap
You are likely reviewing code you just wrote or just read. Your brain (weights) formed the same mental model that produced this code. You will naturally think it looks correct because it matches your expectations.
**To break this pattern:** 1. Read the code **bottom-up** (start from the last function, work backward). 2. For each function, state its contract **before** reading the body. Does the body match? 3. Assume every variable could be null/undefined until proven otherwise. 4. Assume every external call will fail. 5. Ask: "If I deleted this change entirely, what would break?" — if the answer is "nothing," the change might be unnecessary.
## When to Use This
- **Before merging any PR** — especially self-authored PRs with no human reviewer - **After a long coding session** — fatigue produces blind spots; this skill compensates - **When Claude said "looks good"** — if you got an easy approval, run this for a second opinion - **On security-sensitive code** — auth, payments, data access, API endpoints - **When something "feels off"** — trust that instinct and run an adversarial review
## Cross-References
- Related: `engineering-team/senior-security` — deep security analysis - Related: `engineering-team/code-reviewer` — general code quality review - Complementary: `ra-qm-team/` — quality management workflows
Technical details
- Version
- 2.9.0
- License
- MIT
- Last updated
- Aug 22, 2026
- Published
- Aug 22, 2026
Decision snapshot
Primary pick
24,795 GitHub stars
Audit
Install review
Install and adoption review
- Security
- 82/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for adversarial-reviewer, ready for a manual X post.
adversarial-reviewer: Adversarial code review that breaks the self-review monoculture. Use when you want a genuinel... 24.8K stars https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer?ref=x
Optional reply with install command
Listing + install path for adversarial-reviewer: https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer?ref=x Install: npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
Listing source
Registry indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- ekreloff
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Registry indexed listing is attributed to ekreloff but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer)
[](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer)
[](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer/audit)
[](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer)Author
ekreloff
@ekreloff
Tags
Platform fit
Health signals
- GitHub stars
- 24.8K
- Quality score
- 54/100
- Last GitHub push
- Aug 22, 2026
- Framework hints
- Unknown
- OpenAgentSkill views
- 0
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Sandbox only
- GitHub adoption25K GitHub starsPASS
- Stars/forks activity25K stars, 3.5K forks; issue activity unavailable in current metadataPASS
- Recent maintenancePushed todayPASS
- License clarityMITPASS
- README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
- Dependency/runtime risknetwork or browser surface, database surfaceINFO