Skip to content
Skills Library
AI & agents · Review & audit

adversarial-workflow

/adversarial-workflow

This skill should be used when the user asks about "adversarial review", "codex review loop", "plan review with codex", "dual-agent review", or discusses using multiple AI agents for code review.

Licence
MIT
Last repository change
23.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

This skill should be used when the user asks about "adversarial review", "codex review loop", "plan review with codex", "dual-agent review", or discusses using multiple AI agents for code review.

Triggers from the description

adversarial reviewcodex review loopplan review with codexdual-agent review
Original author description

This skill should be used when the user asks about "adversarial review", "codex review loop", "plan review with codex", "dual-agent review", or discusses using multiple AI agents for code review.

How it works

  1. Available Commands
  2. Convergence Protocol
  3. Artifact Storage
  4. Customization
Original SKILL.md headings · 59 lines, 351 words
SKILL.md preview
---
name: adversarial-workflow
description: >
  This skill should be used when the user asks about "adversarial review",
  "codex review loop", "plan review with codex", "dual-agent review",
  or discusses using multiple AI agents for code review.
---

# Adversarial Review Workflow

This project has an adversarial review plugin that orchestrates iterative review loops between Claude Code and OpenAI Codex CLI.

## Available Commands

### `/adversarial-plan <task description>`
Creates an implementation plan with adversarial review:
1. Claude analyzes the codebase and writes a detailed implementation plan
2. Codex reviews the plan critically as a senior staff engineer
3. Claude revises based on feedback
4. Loop continues until Codex approves or max iterations (20) reached
5. **Pauses for user approval** before any implementation

### `/adversarial-review`
Runs adversarial code review on current changes:
1. Captures git diff of all changes
2. Codex reviews the code for bugs, security issues, performance, and style
3. Claude autonomously fixes any critical issues found
4. Loop continues until Codex approves or max iterations (20) reached
5. No pause — fixes are applied automatically

## Convergence Protocol

Codex ends every review with exactly one of:
- **`APPROVED`** — no blocking issues, work is acceptable
- **`NEEDS_REVISION`** — blocking issues listed that must be addressed

Convergence typically happens in 2-3 iterations. The 20-iteration limit is a safety backstop.

## Artifact Storage

All artifacts are saved to `.adversarial-review/<session-slug>/` in the project root. Each run of `/adversarial-plan` or `/adversarial-review` creates a new session directory with a unique slug, so previous sessions are preserved.

A `latest` symlink at `.adversarial-review/latest` always points to the most recent session. This is used by `/adversarial-review` to find `plan_final.md` from a prior planning session.

```
.adversarial-review/
  latest -> abcd-efgh-ijkl/
  abcd-efgh-ijkl/           # planning session
    plan_v1.md, plan_v2.md, ...
    review_v1.md, review_v2.md, ...
    plan_final.md
  mnop-qrst-uvwx/           # code review session
    diff_for_review.md
    code_review_v1.md, code_review_v2.md, ...
```

You may want to add `.adversarial-review/` to your project's `.gitignore`.

## Customization

Plugin files are installed to the Claude Code plugin cache. To customize, fork the repo and point your marketplace at your fork, or edit files in the cache directly (changes will be overwritten on update).

- **Iteration limit**: Currently hardcoded to 20 in the command files (`commands/adversarial-plan.md`, `commands/adversarial-review.md`)
- **Review prompts**: Customize what Codex evaluates by editing `scripts/codex-review.sh`
- **Review types**: The script supports `plan` (architectural review) and `code` (code change review) types

Versions

The database has no other skills named adversarial-workflow.

Database snapshot: 13.11.2026 · package version fbcaa1ae1966 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100codex-review
    Run Codex code review with Claude's independent double-check. Use when asked \"codex review\", \"review my code with codex\", or wants Codex to review code changes. For adversarial review use /codex-adversarial.
  • 100codex-review
    Guides codex-review plugin workflows. Use when the user asks to review a plan or implementation with Codex, mentions codex-review, asks about review status or findings, or needs help with plan resolution or inline plans.
  • 100codex-plan-review
    Adversarial review of a draft plan, spec, or ticket breakdown by Codex running GPT 6 Astra (read-only). Use after drafting a spec or tickets and before publishing them, or whenever a plan should be challenged before work starts.
  • 100codex-review
    Run a bounded adversarial review of an existing implementation plan: Claude revises PLAN.md while Codex critiques it read-only in one persistent session. Use for /codex-review, "Codex review my plan", or high-stakes plans involving auth, schema, concurrency, migrations, or…
  • 100adversarial-review
    Brief, carry out or act on an independent adversarial review. Use before committing a slice, to recheck a fix round, when you are briefed as the reviewer, and when the owner asks for a drift review of architecture, design or standards.
  • 90ai-adversarial-loop
    Coordinate a multi-round debate between two agents until the code is clean. adversarial-reviewer (the critic) assumes everything is wrong; fixer implements fixes or disputes them with evidence. They exchange findings through a shared thread file, and each keeps its memory across…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.