agentleFS
MicrosoftKnown publishermicrosoft/XBOX-Godot-Sample/.github/skills/adversarial-review/SKILL.md

adversarial-review

Skill240 starsChanged 28 days agoMITView on GitHub

Run a multi-model adversarial review loop over the current diff or requested scope. Use one Claude-family reviewer and one GPT-family reviewer in parallel, fix only high-confidence in-scope consensus issues, then verify those fixes once. Surface disputed or scope-expanding findings to the user instead of auto-fixing them. Triggers: adversarial review, hostile review, red-team review, consensus review, review until clean, multi-model review

104 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • fabioespindulaSkill

    rethink

    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

  • MicrosoftSkill

    root-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

  • anasahmed07Skill

    better-auth-best-practices

    Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

    Also in 4 projects that use this

  • DockerSkill

    fix-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

  • MicrosoftSkill

    pull-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

  • juriwiensSkill

    codex-review

    Run code review via Codex CLI

    Also in 3 projects that use this

  • +2 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 20 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 93 edited versions we read keep these.

  • 20

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always use two model families in each review round:

    line 20
  2. Very specific:

    Prefer the task tool with agent_type: "code-review" and explicit model overrides for the review passes.

    line 23
  3. Distinctive:

    Keep findings high-signal: bugs, contract drift, validation gaps, unsafe assumptions, resource lifetime issues, concurrency issues, and doc …

    line 25
  4. Distinctive:

    Treat a finding as consensus only when both model families report materially the same issue.

    line 30
  5. Distinctive:

    Do not auto-fix disputed, speculative, or low-confidence findings.

    line 34
  6. Distinctive:

    Prefer removing an unnecessary claim or simplifying the design over adding machinery to defend it.

    line 35
  7. Distinctive:

    Default to one initial review round and one verification round limited to the accepted fixes and regressions they introduced.

    line 37
  8. Distinctive:

    Stop after verification. Surface unrelated new findings and design decisions without fixing them automatically.

    line 39
  9. Distinctive:

    Default to the current diff when the user does not specify a narrower scope.

    line 44
  10. Distinctive:

    If the user names files, a subsystem, a commit range, or a PR, review only that scope.

    line 45
  11. Distinctive:

    Ask each reviewer for:

    line 54
  12. Distinctive:

    If consensus issues exist:

    line 62
  13. Distinctive:

    update nearby tests, docs, or spec text when the fix changes behavior or closes contract drift

    line 64
  14. Distinctive:

    run the narrowest existing validation that proves the fix

    line 65
  15. Distinctive:

    Run one two-family verification pass limited to the accepted fixes and their regressions.

    line 66
  16. Distinctive:

    Stop. Report any remaining issues.

    line 67
  17. Distinctive:

    If only one reviewer finds an issue, do not auto-fix it.

    line 72
  18. Distinctive:

    If the reviewers describe the same root cause with different wording, treat that as consensus.

    line 73
  19. Distinctive:

    If the reviewers disagree on severity, keep the issue disputed unless the code or validation evidence clearly resolves it.

    line 74
  20. Distinctive:

    When surfacing disputed findings, include the deciding evidence the user would need to check.

    line 76
  21. Very specific:

    Start with two parallel code-review agents using Claude and GPT families.

    line 90
  22. Distinctive:

    Stop after the verification round and present the disputed or out-of-scope remainder.

    line 94

“Common” is measured: kept by at least 6 in 10 of the 93 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adversarial Review Skill

You are the repo-local adversarial-review skill. Your job is to pressure-test a change with two different model families, converge on the issues both families agree are real, fix the safe ones, and leave the disputed calls to the user.

Core rules

  • Always use two model families in each review round:
    • one Claude-family model
    • one GPT-family model
  • Prefer the task tool with agent_type: "code-review" and explicit model overrides for the review passes.
  • Keep findings high-signal: bugs, contract drift, validation gaps, unsafe assumptions, resource lifetime issues, concurrency issues, and doc or spec drift.
  • Ignore style-only or cosmetic feedback.
  • State the agreed requirements and trust model before launching reviewers. Require a reachable failure, code or test evidence, and a smallest-fix direction for each finding.
  • Treat a finding as consensus only when both model families report materially the same issue. Consensus is corroboration, not permission to expand the requirements.
  • Fix only consensus issues that are concrete, local, and unlikely to depend on product-direction choices.
  • Do not auto-fix disputed, speculative, or low-confidence findings.
  • Prefer removing an unnecessary claim or simplifying the design over adding machinery to defend it. Preserve agreed safety requirements.
  • Default to one initial review round and one verification round limited to the accepted fixes and regressions they introduced. Additional rounds require explicit user direction.
  • Stop after verification. Surface unrelated new findings and design decisions without fixing them automatically; do not reopen explicitly deferred findings without new evidence.

Default scope

  • Default to the current diff when the user does not specify a narrower scope.
  • If the user names files, a subsystem, a commit range, or a PR, review only that scope.
  • Preserve unrelated user changes in a dirty worktree.

Review loop

  1. Define the scope and the exact files or diff under review.
  2. Launch two review agents in parallel with the same review prompt:
    • Claude family: prefer claude-sonnet-4.6 when available.
    • GPT family: prefer gpt-5.4 when available.
  3. Ask each reviewer for:
    • only high-signal findings
    • affected files and line anchors when possible
    • why the issue matters
    • a short fix direction
  4. Merge the findings:
    • collapse duplicates
    • mark each one as consensus or disputed
  5. If consensus issues exist:
    • fix them directly
    • update nearby tests, docs, or spec text when the fix changes behavior or closes contract drift
    • run the narrowest existing validation that proves the fix
  6. Run one two-family verification pass limited to the accepted fixes and their regressions.
  7. Stop. Report any remaining issues; ask before another round or a scope-expanding fix.

Synthesis rules

  • Verification checks the accepted fixes, not whether the entire change is beyond criticism.
  • If only one reviewer finds an issue, do not auto-fix it. Surface it as disputed.
  • If the reviewers describe the same root cause with different wording, treat that as consensus.
  • If the reviewers disagree on severity, keep the issue disputed unless the code or validation evidence clearly resolves it.
  • When surfacing disputed findings, include the deciding evidence the user would need to check.

Output format

Use this structure:

  1. Scope
  2. Consensus issues fixed
  3. Remaining disputed findings
  4. Validation or docs follow-ups
  5. Stop condition

Example execution pattern

  • Start with two parallel code-review agents using Claude and GPT families.
  • Synthesize the overlap into a consensus list.
  • Fix the consensus list in one coherent batch.
  • Re-run the same two-agent review on the updated diff.
  • Stop after the verification round and present the disputed or out-of-scope remainder.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.