adversarial-review
Skill3 starsChanged 36 days agoMITView on GitHub
Cross-model adversarial review of a change. Claude sends reviewers to Codex (`codex exec`), Codex sends them to Claude (`claude -p`), each attacking from a distinct lens (Skeptic / Architect / Minimalist), then a synthesized verdict with lead judgment. Read-only — produces a verdict, makes no changes. Use when asked for "adversarial review", "对手审查", "让 Codex/Claude 审一下", "交叉审查", or after a large diff, a finished plan phase, or a planning session when a second model's scrutiny is worth the cost.
111 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- moiz-73/glassboxtheir own version, first seen Nov 16, 2026
- Alexpechonov/claude-skillstheir own version, first seen Nov 16, 2026
- anton-abyzov/specwithcodetheir own version, first seen Nov 16, 2026
- Axect/skillstheir own version, first seen Nov 16, 2026
- magnusrodseth/dotfilestheir own version, first seen Nov 16, 2026
- lennoxsaint/Skillstheir own version, first seen Nov 15, 2026
Used with
Projects with it also use rethink, root-cause-analysis and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
fabioespindulaSkillrethink
Reframe a plan, idea, or decision before the user commits to it. Use when the user asks to rethink, step back, pressure-test, gut-check, decide, right-size, simplify, think bigger about, or evaluate a concrete plan or decision in product, strategy, technical architecture, career, life, company direction, or personal priorities. This skill improves decision quality before action: clarify the real question, challenge assumptions, compare alternatives, calibrate ambition, classify the operating mode, surface risks, and recommend a next move. Do not use for broad future exploration without a concrete decision; that belongs to a think-big or research-style skill.
Also in 3 projects that use this
MicrosoftSkillroot-cause-analysis
Use when a Regional Retail Manager asks I'm seeing unusual inventory movement at our Northwest stores. Can you help me understand what's happening?
Also in 3 projects that use this
anasahmed07Skillbetter-auth-best-practices
Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.
Also in 4 projects that use this
DockerSkillfix-issue
Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".
Also in 3 projects that use this
MicrosoftSkillpull-request
Write concise, focused pull request descriptions for Wassette — at most three sentences on the what and why, with an explicit note on any breaking public-API change and how users adapt. Use when opening or editing a Wassette pull request.
Also in 3 projects that use this
juriwiensSkillcodex-review
Run code review via Codex CLI
Also in 3 projects that use this
- +1 more from microsoft
Other versions111 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- mengxi-ream/read-frog★ 10k15% same
- FelipeAngeli/skills★ 212% same
Wrote their own version · 109
- PrefectHQ/fastmcp★ 29ksame name
- jlowin/fastmcp★ 29ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- basicmachines-co/basic-memory★ 4.6ksame name
- DanMcInerney/architect-loop★ 626same name
- deadlock-mod-manager/deadlock-mod-manager★ 617same name
- boraoztunc/skills★ 473same name
- syahiidkamil/Software-Engineer-AI-Agent-Atlas★ 404same name
- microsoft/XBOX-Godot-Sample★ 242same name
99 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- batch-commitSkill
- checkSkill
- code-reviewSkill
- goal-promptSkill
- healthSkill
- human-readableSkill
- huntSkill
- kaneo-workflowSkill
- learnSkill
- mobile-nativeSkill
- patch-auditSkill
- pruneSkill
- readSkill
- test-auditSkill
- thinkSkill
- uiSkill
- writeSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 100 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Read the repo's AGENTS.md / CLAUDE.md (and AGENTS.override.md if present).
- Distinctive: line 56
Use bounded waits so the user can receive progress.
- Very specific: line 64
If an output is missing or empty, read its .log and state the failure in the verdict — never silently skip a reviewer.
- Distinctive: line 66
Read each reviewer's output.
“Common” is measured: kept by at least 6 in 10 of the 100 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adversarial Review
Adapted from poteto/noodle for Claude Code and Codex. Spawn reviewers on the opposite model to challenge the work. The deliverable is a synthesized verdict — do NOT make changes.
Hard constraint: reviewers MUST run through the opposite vendor's CLI (codex exec or claude -p). Do not use your own subagents as reviewers — they run on your own model, which defeats the purpose. If the opposite CLI is missing or fails, stop and report that; do not quietly fall back to same-model review.
Step 1 — Load principles
Read the repo's AGENTS.md / CLAUDE.md (and AGENTS.override.md if present). Project rules there — architecture boundaries, contracts, migrations, authorization — are part of what reviewers judge against. Combine them with the principles below and pass the relevant ones to each reviewer.
- prove-it-works — "it compiles" or "tests pass" is not proof the goal works end to end. Claims need evidence.
- fix-root-causes — fixes belong at the source, not a special case, retry, guard, or fallback where the symptom showed up. The same bug elsewhere should be fixed too.
- serialize-shared-state-mutations — concurrent writers to shared state need an explicit ordering or ownership rule; late or stale callbacks must be rejected, not applied.
- boundary-discipline — validation at entry points; each component owns its responsibility; no business decisions leaking into transport/adapter layers.
- foundational-thinking — design serves the real goal and the actual data/access pattern, not an assumed one.
- redesign-from-first-principles — when a replacement lands, everything that belonged only to the old approach (code, config, env vars, docs, tests) is deleted in the same change.
- subtract-before-you-add — prefer deleting and simplifying over adding layers, flags, or options without a second concrete use.
- outcome-oriented-execution — the change should do what the user needs, no more; scope follows the problem, not the file list.
- cost-aware-delegation — watch token/context size, duplicate calls, startup latency, and expensive model use.
Step 2 — Determine scope and intent
Identify what to review from context (uncommitted diff, a branch vs its base, a commit range, a plan). State the intent — what the author is trying to achieve — explicitly before proceeding. Reviewers challenge whether the work achieves the intent well, not whether the intent is right.
Collect the confirmed review scope in a per-run directory under the operating system's temporary directory. Include staged, unstaged and relevant untracked content when the target is current work; a plain git diff can miss parts of it. Record the base and current revision, the intent, constraints and relevant surrounding files. Do not include unrelated work or credentials.
Choose the smallest set of independent lenses that can cover the actual risk: Skeptic for correctness, Architect for cross-boundary decisions, Minimalist for compensating complexity. File or line counts alone do not require more reviewers. Bound parallelism to available tools and resources.
Lens definitions: references/reviewer-lenses.md. Prompt template: references/reviewer-prompt.md. Write each prompt to $REVIEW_DIR/<lens>.prompt.md.
Step 3 — Spawn reviewers on the opposite model
Run from the repo root so reviewers can read surrounding code. All reviewers are read-only. Resolve REVIEW_DIR to the per-run directory above. Check that the opposite CLI is installed and its current help supports the intended flags. The commands below are POSIX-shell examples, not a requirement for a particular operating system or tool API. Use the environment's supported process/background execution and polling; do not assume a tool parameter named run_in_background exists.
If you are Claude — reviewers run on Codex:
codex exec -s read-only --skip-git-repo-check -o "$REVIEW_DIR/skeptic.md" - < "$REVIEW_DIR/skeptic.prompt.md" > "$REVIEW_DIR/skeptic.log" 2>&1Launch only the chosen lenses. Keep each process identifier, exit status and output path; use supported background execution when available, otherwise run sequentially.
If you are Codex — reviewers run on Claude:
claude -p --permission-mode plan --add-dir "$REVIEW_DIR" \
--allowedTools "Read Grep Glob Bash(git diff:*) Bash(git log:*) Bash(git show:*)" \
< "$REVIEW_DIR/skeptic.prompt.md" > "$REVIEW_DIR/skeptic.md" 2> "$REVIEW_DIR/skeptic.log"Use bounded waits so the user can receive progress. Parallel runs are optional; avoid one blocking shell wait for all reviewers. Missing CLI support or a failed process is missing review evidence, not a successful verdict.
Name outputs after the lens: skeptic.md, architect.md, minimalist.md.
Step 4 — Verify and synthesize
Record the actual CLI and model when available, process result and review scope. Confirm each requested output exists and has substantive content. Keep the final verdict or artifacts the user requested; clean up only this run's disposable prompts and logs.
If an output is missing or empty, read its .log and state the failure in the verdict — never silently skip a reviewer.
Read each reviewer's output. Check every high/medium finding against the actual code before accepting it — reviewers are adversarial by design and do hallucinate. Deduplicate overlapping findings and produce one verdict in the format in references/verdict-format.md.
Step 5 — Lead judgment
Apply your own judgment, using the stated intent, project rules, and principles above. For each finding, accept or reject with a one-line reason. Call out false positives, overreach, and style-as-substance.
Present the verdict in the user's language, following their communication preferences (conclusion first). The review itself makes no changes. If the same task already authorizes fixing accepted findings, continue that work after delivering the review result under the existing scope; otherwise stop at the verdict.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

