adversarial-review

Run adversarial code review on changed source files and verify with py_compile.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/antonyfmunoz/OS --skill adversarial-review-antonyfmunoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adversarial-review
Source: https://github.com/antonyfmunoz/OS/tree/main/skills/developer/adversarial_review
Command: npx skills add https://github.com/antonyfmunoz/OS --skill adversarial-review-antonyfmunoz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces the risk of shipping faulty implementations by running a two-model adversarial review cycle before code changes are accepted as complete.

Core Features & Use Cases

  • Two-model adversarial review orchestration: Claude Code generates, Codex reviews adversarially, and Claude Code synthesizes stronger output.
  • Governed “critical before done” gating: Treats CRITICAL findings as blocking and requires verification passes before marking complete.
  • Safety-aware execution fallbacks: Notes instability when Codex execution is unavailable and provides a single-model adversarial pass alternative.
  • Targeted integration point: Leverages adversarial_code_review() in model_router.py for the review workflow.

Quick Start

Run the adversarial review for the changed file by invoking the adversarial_code_review() helper on its full contents and then fix all CRITICAL issues before compiling and importing the module to verify it passes.

Frequently Asked Questions about adversarial-review

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

FAQPage Schema
What is an adversarial code review and how does it prevent defective code?

An adversarial code review prevents defective code by orchestrating a two-model cycle where one generates code and another critically reviews it. This process treats critical findings as blocking, requiring fixes before completion.

How do I validate Python code changes before merging a pull request?

To validate Python code changes before merging, run an adversarial review on changed files, address all critical findings, and verify the module by running py_compile and import checks to ensure a safe completion state.

Can I run an adversarial review if the secondary model router is unavailable?

If the secondary model router is unavailable, you can still run an adversarial review using a safety-aware execution fallback. The workflow notes the instability and provides a single-model adversarial pass alternative.

Does pre-merge validation support gating developer agent implementation steps?

Pre-merge validation supports gating developer agent implementation steps by enforcing quality over speed. It requires orchestrating the adversarial review logic and passing compilation checks before marking an implementation complete.

What is the best way to use LLM orchestration for critical code flaw detection?

The best way to use LLM orchestration for critical code flaw detection is a two-model adversarial cycle. One model generates the code, another reviews it adversarially, and the first synthesizes a stronger output to catch critical flaws.

When should I not use an adversarial review workflow for source files?

You should not use an adversarial review workflow when development speed matters more than code quality. The process enforces strict critical-before-done gating and requires compilation verification, intentionally slowing down completion.