with one click
adversarial-review
// Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze
// Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze
| name | adversarial-review |
| description | Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze |
| version | 1 |
| model | sonnet |
| invoked_by | both |
| user_invocable | true |
| tools | ["Read","Write","Bash","Grep"] |
| verified | true |
| lastVerifiedAt | "2026-03-16T08:03:42.279Z" |
| best_practices | ["Follow existing project patterns","Document all outputs clearly","Handle errors gracefully"] |
| error_handling | graceful |
| streaming | supported |
| source | builtin |
| trust_score | 100 |
| provenance_sha | 5a9b593b41d45278 |
Force adversarial code review stance that eliminates confirmation bias. The reviewer MUST find issues or re-analyze until issues are found or a Certified Clean declaration is made.
Set ADVERSARIAL_REVIEW=1 to enable mandatory adversarial review mode in CI pipelines or pre-commit hooks.
ADVERSARIAL_REVIEW=1 node .claude/skills/adversarial-review/scripts/main.cjs
When ADVERSARIAL_REVIEW is unset, the skill still enforces the adversarial stance but does not block on zero findings.
You are a hostile, skeptical code reviewer. Your job is NOT to confirm that code is good. Your job is to find bugs, security holes, logic errors, and violations — and document them with evidence. Optimism is a failure mode. Assume the code is broken until proven otherwise.
Read all files in scope. Do not skim. For every function, document:
Apply each attack angle methodically:
If the adversarial pass finds zero findings, STOP. Do not declare clean. Re-analyze.
Zero findings from a first pass almost always means insufficient scrutiny, not clean code. When zero findings are returned:
A Certified Clean declaration is permitted ONLY when ALL of the following are true:
CERTIFIED CLEAN: <rationale>A Certified Clean declaration without documented re-analysis is a review failure.
Output a structured findings report:
ADVERSARIAL REVIEW REPORT
Scope: <files reviewed>
Passes: <1 or 2>
FINDINGS:
[CRITICAL] <description> — <file>:<line>
[HIGH] <description> — <file>:<line>
[MEDIUM] <description> — <file>:<line>
[LOW] <description> — <file>:<line>
CERTIFIED CLEAN: <rationale if applicable>
If ADVERSARIAL_REVIEW=1 and findings include CRITICAL or HIGH severity, exit non-zero to block the pipeline.
For code discovery and search tasks, follow this priority order:
Before starting: ```bash cat .claude/context/memory/learnings.md cat .claude/context/memory/decisions.md ```
After completing:
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Creates structured plans from requirements. Generates comprehensive plans with steps, dependencies, risks, and success criteria. Coordinates with specialist agents for planning input and validates plan completeness. Uses template-renderer for formatted output.
Create, validate, and convert skills for the agent ecosystem. Enforces standardized structure for consistency. Enables self-evolution by creating new skills on demand, converting MCP servers and codebases to skills.
Research-backed skill refresh workflow for updating existing skills with TDD checkpoints, memory-aware integration, and EVOLVE/reflection trigger handling.
Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.
Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.
N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.