adversarial-reviewer

Construct concrete failure scenarios for high-risk code diffs and output structured JSON findings.

1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/ybbms777/compound-engineering --skill adversarial-reviewer-ybbms777
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adversarial-reviewer
Source: https://github.com/ybbms777/compound-engineering/tree/main/skills/agent-adversarial-reviewer
Command: npx skills add https://github.com/ybbms777/compound-engineering --skill adversarial-reviewer-ybbms777

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standard code reviews often miss failure scenarios that only emerge from cross-component interactions, violated assumptions, or cascading errors, especially in large or high-risk code changes covering domains like authentication, payments, or data mutations. This Skill fills that gap by actively constructing concrete failure scenarios to break the implementation, rather than only checking against known quality patterns.

Core Features & Use Cases

  • Adaptive Review Depth: Automatically calibrates review rigor based on diff size and risk signals, running lightweight assumption checks for small low-risk changes and deep multi-pass analysis for large high-risk diffs.
  • Multi-Technique Failure Analysis: Hunts for assumption violations, cross-component composition failures, multi-step cascade chains, and legitimate-use abuse cases that no single-pattern reviewer catches.
  • Use Case: Ideal for pre-PR review of high-stakes changes like payment processing updates, authentication flow overhauls, or external API integrations where emergent failure risks are most likely to be missed.

Quick Start

Use the adversarial-reviewer skill to review the attached code diff for the new payment processing module, focusing on cascade failure risks and assumption violations.

Frequently Asked Questions about adversarial-reviewer

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

FAQPage Schema
How do I find hidden cascade failure risks in a large code diff?

Adversarial code review finds hidden cascade failure risks in large code diffs by constructing concrete multi-step cascade chains and cross-component composition failures that standard review processes often miss.

What is adversarial code review and how does it detect assumption violations?

Adversarial code review is a technique that detects assumption violations by hunting for legitimate-use abuse cases and cross-component composition failures, outputting structured JSON findings with confidence calibration rather than only checking known quality patterns.

How do I review high-risk payment processing updates before submitting a pull request?

Review high-risk payment processing updates by running an adversarial code review that automatically calibrates review depth to diff size and risk signals, generating structured JSON findings for failure scenarios like assumption violations and cascade chains.

Does this adversarial review technique work for authentication flow overhauls and external API integrations?

Yes, adversarial review works for authentication flow overhauls and external API integrations by applying adaptive review depth to identify emergent failure risks and legitimate-use abuse cases specific to those high-risk domains.

What is the best way to review code changes touching data mutations and external APIs?

The best way to review code changes touching data mutations and external APIs is adversarial review, which calibrates analysis depth based on risk signals and outputs structured JSON findings with confidence calibration for emergent failure scenarios.