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

adversarial-review

Skill238 starsChanged 2 months 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 consensus issues, then rerun until no new consensus issues remain. Surface disputed findings to the user for a judgment call instead of auto-fixing them. Triggers: adversarial review, hostile review, red-team review, consensus review, review until clean, multi-model review

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use design-doc, simplify and 6 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.
  • maragudkSkill

    design-doc

    For when you're asked to write a design doc or specification, especially after a brainstorm or feature design session.

    Also in 3 projects that use this

  • Hugging FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 4 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 6 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 18

    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 28
  5. Distinctive:

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

    line 31
  6. Distinctive:

    After fixing consensus issues, rerun the same two-family review loop on the updated diff.

    line 32
  7. Distinctive:

    Stop when both review passes find no new high-signal issues, or when only disputed findings remain.

    line 33
  8. Distinctive:

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

    line 38
  9. Distinctive:

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

    line 39
  10. Distinctive:

    Ask each reviewer for:

    line 48
  11. Distinctive:

    If consensus issues exist:

    line 56
  12. Distinctive:

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

    line 58
  13. Distinctive:

    run the narrowest existing validation that proves the fix

    line 59
  14. Distinctive:

    Run the two-family review again on the new diff.

    line 60
  15. Distinctive:

    If both reviewers find nothing new, stop and say so plainly.

    line 65
  16. Distinctive:

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

    line 66
  17. Distinctive:

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

    line 67
  18. Distinctive:

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

    line 68
  19. Distinctive:

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

    line 70
  20. Very specific:

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

    line 84

“Common” is measured: kept by at least 6 in 10 of the 56 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.
  • Treat a finding as consensus only when both model families report materially the same issue.
  • 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.
  • After fixing consensus issues, rerun the same two-family review loop on the updated diff.
  • Stop when both review passes find no new high-signal issues, or when only disputed findings remain.

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 the two-family review again on the new diff.
  7. Repeat until no new consensus issues remain.

Synthesis rules

  • If both reviewers find nothing new, stop and say so plainly.
  • 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.
  • End only when the loop stabilizes, then present the disputed remainder for the user.

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.