adversarial-review
Skill0 starsChanged 5 months agoMITView on GitHub
Run an independent three-lens adversarial review (Omission/Coverage, Correctness, Consistency) on a high-stakes deliverable before it ships or is declared done -- a ticket set, doc, escalation summary, review, audit evidence, or any customer/auditor/leadership/legal-facing output. Spawns fresh-context reviewers (NOT same-session self-review, which is blind to its own gaps), anti-leniency prompted, and returns a triaged, append-only audit log. Use whenever output is externally-facing, or a "done/complete/fully addressed" claim is being made on consequential work.
119 other projects use a version of this.
Adopted by
Most recently taken up by
- yukiyokotani/office-open-xml-viewertheir own version, first seen Nov 30, 2026
- ryanilano/ilano-skillstheir own version, first seen Nov 29, 2026
- awcameron/skillstheir own version, first seen Nov 29, 2026
- FuzulsFriend/adversarial-reviewtheir own version, first seen Nov 29, 2026
- Guz007/claude-code-os-plugintheir own version, first seen Nov 29, 2026
- kendrick/skillstheir own version, first seen Nov 29, 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
jaydubya818Skillbabysit
Use when an authorized pull request needs ongoing CI and review follow-through.
Also in 3 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
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
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 versions119 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 119
- PrefectHQ/fastmcp★ 29ksame name
- jlowin/fastmcp★ 29ksame name
- mengxi-ream/read-frog★ 11ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- basicmachines-co/basic-memory★ 4.8ksame name
- yukiyokotani/office-open-xml-viewer★ 891same name
- deadlock-mod-manager/deadlock-mod-manager★ 638same name
- DanMcInerney/architect-loop★ 626same name
- boraoztunc/skills★ 473same name
109 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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compact-recoverySkill
- new-projectSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 106 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Do NOT gate on "do I feel uncertain" -- the failure mode is the worker not knowing it should be uncertain.
- Distinctive: line 71
If tier is MEDIUM/LOW (LIGHT), run the three lenses yourself as a checklist and skip to Phase 4.
- Distinctive: line 111
Stop when a pass returns no new REAL findings, or at a set budget with residuals logged OPEN.
“Common” is measured: kept by at least 6 in 10 of the 106 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 (Three-Lens Gate)
The one idea: same-context self-review is near-worthless for completeness and confident-wrong failures -- the gap is invisible from inside the process that produced it. So this gate is structurally independent (fresh context, ideally a different model), unconditionally triggered (never gated on how confident the worker feels -- confidence is exactly what's unreliable), and split into three blind lenses so no single angle is the only check.
This file is the runnable procedure; the rationale and honest limits are stated inline below.
Requires Claude Code — the gate works by spawning independent subagents, which Cowork / Claude Desktop / the web app can't do. The reviewer agent definition ships next to this file as adversarial-reviewer.md; copy it to ~/.claude/agents/ (it must exist before the session starts — agent types do not hot-load mid-session).
When to run
This gate is DESIGNED to fire automatically, without discretion, when ANY is true (caveat: that auto-firing is not yet mechanically enforced — nothing wires it to a hook or rule, so today it depends on the operator invoking it; see Honest limits):
- Output is destined for a customer, auditor, leadership, legal, or any external party.
- A completion claim ("done," "fully addressed," "no further tickets needed," or equivalent) is being made on high-stakes work.
- The work asserts a fact that will close/merge/collapse scope, or something is about to be committed durably (ticket created, doc shared, comm sent).
Do NOT gate on "do I feel uncertain" -- the failure mode is the worker not knowing it should be uncertain. Audience/stakes condition met => the gate fires.
For MEDIUM/LOW-risk internal-only work, a single lighter self-checklist pass (the three lenses run as a checklist, same session) is acceptable instead of the full independent version.
Tier configuration (cost vs. rigor)
Three tiers, keyed to the --tier value: LIGHT (med/low, internal), FULL (high), and ESCALATION (escalation, operator-invoked — see below). Default is LIGHT; ANY structural trigger from "When to run" — external audience, a completion claim on high-stakes work, OR a durable commit — forces FULL, regardless of whether the item otherwise looked MEDIUM or internal. ESCALATION is never auto-selected; a human opts in via --tier escalation.
All three tiers run deterministic checks FIRST. Offload every reducible claim to code, not model reasoning — grep/read/API answers "was the diff read / does the PR link exist / does the closing comment say X / what is the field's granularity" more reliably than any model, at near-zero cost. Only genuine-judgment claims go to an LLM. This is the single biggest cost saver.
LIGHT tier (--tier med/low, internal) | FULL tier (--tier high: customer / auditor / leadership / legal, or a consequential completion/commit) | |
| Deterministic checks | Yes — the main event | Yes — first, before spending any agent tokens |
| Reviewers | None — one self-checklist pass (same session runs the 3 lenses as a checklist) | 3 independent fresh-context agents, one per lens |
| Model | Haiku 4.5, or self | reviewers Sonnet 5; synthesis = invoking (usually Opus 4.8) session — opinionated default; change it |
| Effort | n/a — Haiku 4.5 supports NO effort levels (effort is inapplicable to it); low/medium only applies on the self path if the session model supports effort | reviewers high; synthesis high (see effort mechanism below) |
| Passes | 1 | 1 full three-lens pass; + a second consistency-only pass after fixes IF the first pass found a REAL defect (per Phase 5) |
| Rough cost | ~$0.02 or less (deterministic checks are free) | ~$0.40–1.00 per run (3× Sonnet 5 @ high + Opus 4.8 synthesis) |
ESCALATION tier (--tier escalation) — see full config below. It is not a separate table column: it inherits FULL's structure (deterministic-checks-first, the 3-lens agent structure, and the same pass rule) and upgrades model → Opus 4.8, effort → max, adds majority-vote refutation. So everything in the FULL column applies to ESCALATION unless the config paragraph below overrides it.
Cost basis (verified against the Claude API reference + Claude Code docs — pricing moves, so re-check before relying on it): per-1M-token pricing — Haiku 4.5 $1/$5, Sonnet 5 $3/$15, Opus 4.8 $5/$25, Fable 5 $10/$50. Effort is "a behavioral signal, not a strict token budget," so per-run figures are estimates (grounded in ~50–60k tokens/reviewer), not guarantees. Documented effort guidance: high is the minimum for intelligence-sensitive work and the quality/efficiency sweet spot; max = correctness over cost (docs caution: max can overthink / show diminishing returns — use only when evals show headroom); low = subagents/simple tasks. Gotcha (verified vs code.claude.com/docs/en/model-config): Haiku 4.5 supports NO effort levels at all — it is absent from the docs' effort-support table ("Models not listed here do not support effort"), so effort is inapplicable to it, NOT "capped at high" as an earlier draft (and an upstream research pass) wrongly claimed. This error was caught by the gate's own ESCALATION-tier dogfood. The FULL-tier config is evidence-backed as the cost-effective sweet spot — a FULL-tier run is roughly a dollar or less (ESCALATION is far more — see below), so the audience-based trigger (not a weaker model) is what controls spend.
Effort mechanism (how to actually get the tier's effort — high for FULL, max for ESCALATION): reasoning effort is NOT a per-invocation parameter on the plain Agent tool (only model is) — a one-off spawn takes whatever effort the session is at, because effort inherits from the session (which itself falls back to the model default — high on Sonnet 5 / Opus 4.8 — when nothing else is set). To guarantee reviewers run at the target effort (high for FULL, max for ESCALATION), use any of: (a) ensure the invoking session is at that effort — inherited automatically (e.g. a global effortLevel in settings.json; note max is session-only per the docs, so this path can't persist max); (b) an agent type with the target effort: in its frontmatter — guarantees it regardless of session, but the agent type must exist BEFORE the session starts; it does NOT hot-load mid-session; or (c) a Workflow agent({model, effort}) call — the reliable way to hit max. Do NOT assume a plain spawn is "low" (it may already be high), and do NOT assume an agent type is high without the explicit effort: field.
ESCALATION tier — ENABLED. For the rare highest-stakes items where being wrong is catastrophic: legal/regulatory filings, contractual or financial commitments, board/investor/CEO-facing output, or irreversible external actions. Trigger is operator-invoked, NOT self-assessed — the human designates an item escalation via --tier escalation; a self-assessed "this one feels important" is exactly the calibration failure this whole effort exists to kill, so escalation is opt-in by the human, layered on top of the automatic FULL trigger. Config (defaults chosen by Claude — flip any): reviewers Opus 4.8 at max (max = "correctness over cost"), cross-model where feasible, plus majority-vote refutation (3 independent skeptics per load-bearing claim; kill the claim only if ≥2 refute); synthesis on Opus 4.8 at max. Rough cost ~$6–9/run (MEASURED on a real run: 15 Opus 4.8 @ max agents — 3 lenses + 4 findings × 3 skeptics — for ~642k tokens ≈ ~$7; an earlier ~$1–2 estimate was understated ~4× because max effort plus the majority-vote fan-out multiply both agent count and thinking depth). Opt-up (documented, not default): swap reviewers to Fable 5 for the genuinely hardest reasoning — ~2× cost and minutes of added latency; use only when Opus@max demonstrably isn't enough.
Usage
/adversarial-review <artifact-path>
/adversarial-review <artifact-path> --requirements <frozen-capture-path> --sources <path,path> --tier high|med|low|escalation<artifact-path>-- the deliverable under review.--requirements-- the frozen requirement set (Phase 0 capture / facts ledger). If omitted, ASK for it or identify it before proceeding: omissions cannot be detected without the frozen list of what was required.--sources-- primary sources the artifact makes claims about (repo, tickets, live system, citation URLs), so correctness is checked against ground truth, not the artifact's own summary.--tier--high|med|low|escalation. Defaults tohigh(FULL) if any structural trigger above is met, elselow/med(LIGHT).escalationis never auto-selected — a human must pass it explicitly to invoke the catastrophic-stakes tier (see Tier configuration).
What this skill does
Phase 1 -- Establish inputs (do not skip)
Confirm you have all four, or get them before launching:
- The artifact under review.
- The frozen requirement set (source of truth for "what was required").
- The primary sources for fact-checking.
- A statement of what tools/access the reviewers have vs. lack (require findings tagged by evidence tier: live-tested / diff-read / doc-read / third-party-comment -- not a flat "confirmed").
If tier is MEDIUM/LOW (LIGHT), run the three lenses yourself as a checklist and skip to Phase 4. If HIGH (FULL) or ESCALATION, continue to Phase 2.
Phase 2 -- Launch the three lenses (independent, concurrent, fresh context)
Spawn three separate subagents, one per lens -- do NOT merge them (blind spots differ by lens; merging reintroduces a single point of failure). Reviewer model + effort are set BY TIER (see Tier configuration): FULL → Sonnet 5 at high; ESCALATION → Opus 4.8 at max. Independence of context is the primary lever; cross-model is a bonus. Each prompt MUST open with the anti-leniency frame below -- out-of-the-box QA talks itself into approving. Ensure reviewers run at the tier's effort per the "Effort mechanism" note above (session-inherited, an agent type's frontmatter effort:, or a Workflow agent({model, effort}) call); if using an agent type, confirm it is registered — it must pre-exist the session, it does not hot-load mid-session.
ESCALATION only — majority-vote refutation stage. After the three lenses return, for each load-bearing (REAL) finding spawn 3 independent Opus 4.8 @ max skeptics prompted to REFUTE it; a finding survives only if fewer than 2 refute. Do NOT silently drop the refuted ones — carry the FULL set (survivors AND the ≥2-refuted "killed" findings, each with its vote count) into Phase 3, which records ALL of them: survivors get their normal orchestrator verdict; killed findings are logged as visible discards (verdict false-alarm, noted "killed by majority-vote"). This keeps the majority-vote stage consistent with Phase 3's "record ALL findings, discards visible" rule. (The fan-out is what makes ESCALATION ~$6–9/run.)
Prompt template (fill the bracketed lens-specific parts):
You are an adversarial [OMISSION / CORRECTNESS / CONSISTENCY] auditor. A colleague produced the artifact below and believes it is complete and correct. You are biased toward agreeing -- RESIST that. Assume at least one [missing deliverable / confidently-wrong claim / internal contradiction] exists, and find it. Start by hunting for the worst defect, not by validating the good parts. Do NOT praise the artifact and do NOT report what it did well -- report only defects. If after genuine effort you find nothing in your lens, say so plainly rather than inventing a nitpick -- but you must genuinely try first. [Artifact path. Frozen requirement set. Primary sources. Tool-access statement.] [Lens method, below.] Return findings most-severe-first. For each: defect | evidence (quote the artifact AND the ground-truth source) | severity (REAL / minor / defensible) | your evidence tier. Your final message IS the result -- no preamble.
Lens A -- OMISSION / COVERAGE. Build a coverage matrix: one row per required deliverable, extracted verbatim from the frozen requirement set and source artifacts, NOT from the artifact's own summary (summarizing is where deliverables vanish). Per row: FULLY / PARTIALLY / NOT addressed + what's absent. A row with no producing step is a gap that lights up mechanically. Also hunt: collapsed sub-bullets; an adjacent problem solved via a new mechanism while the original ask is silently treated as done; in-scope artifacts never reviewed; any required section with far less depth.
Lens B -- CORRECTNESS. Assume >=1 confidently-wrong claim and >=1 bad load-bearing assumption exist; find them. Verify each factual claim against its PRIMARY source (read the diff; read the closing comment; state the field's granularity; fetch the citation). Name the single assumption the main conclusion rests on and argue the strongest case it's wrong. On any visible mismatch, generate the alternative hypothesis ("this is a different fix entirely") before rationalizing past it. Flag stale claims (a state that has since changed) and fabricated/misattributed citations.
Lens C -- CONSISTENCY / EDIT-REGRESSION. Check the artifact against itself -- especially valuable after multi-spot edits. Every "we no longer think X": does any residual sentence still assert X? Every "see section N": does N still say that? Every count ("four gaps," "27 items"): consistent everywhere, and does the enumeration actually contain it? BLUF <-> body <-> summary drift.
Phase 3 -- Orchestrator synthesis (your obligations -- do not skip)
- Independently re-verify the sharpest findings before acting. Acting on an unverified "correction" is how regressions happen. Pull the primary source yourself.
- Re-tag each finding as "orchestrator-confirmed" (you re-checked) vs. "relayed at reviewer's word." State it explicitly.
- Triage and record ALL findings — assign each an orchestrator VERDICT: REAL / partially-fair / false-alarm / non-finding (a distinct axis from the reviewer's own severity tag of REAL/minor/defensible; the audit log records the orchestrator verdict). Record discards too, so the discard is visible. Reviewers err in BOTH directions (an over-skeptical reviewer can flag correct work as wrong); verify both ways.
- Blast-radius on every confirmed wrong-fact: enumerate every place it was restated or relied on, fix each, re-derive downstream conclusions. Do not fix only the instance you were shown.
Phase 4 -- Write the append-only audit log
Append one dated block to the artifact's own audit log (or a sibling <artifact>.audit.md if the artifact must stay unedited). Never edit past blocks; supersede by reference.
## Adversarial gate run -- [DATE]
Artifact: [path] · Trigger: [condition met] · Reviewers: [models/agents]
| # | Finding | Lens | Verdict (REAL / partially-fair / false-alarm / non-finding) | Confirmed or relayed | Status (fixed / OPEN / explained) |
|---|---------|------|----------------------------------------------|----------------------|-----------------------------------|
OPEN items (carried, not silently dropped): [each with the specific action it needs]
Meta-note: [what this run reveals about the process itself]Phase 5 -- Stopping condition
- HIGH-stakes: run at least one full three-lens pass. If it surfaces ANY confirmed REAL omission or correctness defect, run a second pass after fixing (consistency-lens-only is fine if fixes were localized) -- because fixes introduce new drift.
- Stop when a pass returns no new REAL findings, or at a set budget with residuals logged OPEN.
- Never report "complete." Report "N passes run, M findings, K OPEN."
Honest limits (state these; do not oversell)
- Reduces the blind spot; does not eliminate it. Cannot catch a deliverable that never made the frozen requirement set -- mitigate with verbatim-from-source extraction and a domain-knowledgeable human.
- Still depends on the orchestrator triaging correctly -- a wrong triage re-opens the failure. The human catch on the highest-stakes work does not go away.
- Costs three fresh agents per pass plus synthesis -- justified by the audience-based trigger (high-stakes only), not by running on everything.
- The "automatic, no discretion" trigger is NOT yet mechanically enforced. Nothing (no hook, no CLAUDE.md rule) fires it on its own; today it relies on the operator remembering to invoke it — the gate's own biggest open gap.
Model / cost policy
Policy — the per-tier settings in "Tier configuration" above are authoritative; this is only the summary: LIGHT uses Haiku 4.5 / self; FULL uses Sonnet 5 reviewers with the invoking (usually Opus 4.8) session synthesizing; ESCALATION uses Opus 4.8 @ max reviewers plus majority-vote. Across tiers, prefer a peer/stronger reviewer model than the worker where budget allows -- information-asymmetric verification breaks self-confirmation bias (literature-backed; not proven by the transcripts this was developed against, which were same-model).
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.

