agentleFS
selamy-labsselamy-labs/agent-skills/skills/adversarial-review/SKILL.md

adversarial-review

Skill0 starsChanged 5 months agoMITView on GitHub

Use before claiming a high-stakes artifact done, verified, or merged. Have an independent grader adversarially review it — prompted to refute and find reasons not to ship, not to bless — and iterate to an explicit ship-or-revise verdict.

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

Files
SKILL.md

Adversarial Review

The author is the worst judge of their own work — they review it with the same assumptions that produced it. Before you call a high-stakes artifact done, verified, or merged, hand it to an independent grader whose job is to refute it: find the reason it should not ship. What survives a genuine attempt to break it is far more trustworthy than what you blessed yourself.

Refute, don't bless

The grader's task is adversarial: "Here is a diff/artifact claimed ready. Find the strongest reasons NOT to ship it — bugs, missed cases, unsafe assumptions, unmet requirements. Default to REVISE if uncertain." A prompt that asks "does this look good?" gets a rubber stamp; a prompt that asks "why is this wrong?" gets the defects. Uncertainty is a REVISE, not a SHIP — a weak "seems fine" guards nothing.

Independence is the whole point

A grader that shares the author's context inherits the author's blind spots. Maximize independence:

  • Different context/model than the one that produced the artifact — not the author re-reading their own work.
  • Clean-room where possible: review the diff against an untouched checkout of the base, so the grader judges what actually changed, not the author's narrative about it.
  • Anti-reward-hack: the grader is graded on finding real defects, not on agreeing. It does not get to clear the artifact by restating its intent.

Explicit verdict, then iterate

The output is a decision, not a vibe: SHIP or REVISE, with the specific defects that drove it. REVISE → fix the named defects → re-review. Loop until a clean SHIP. Record the verdict with the artifact so "it was reviewed" is a fact, not a memory.

Scale to the stakes

Adversarial review costs an extra cycle; spend it where being wrong is expensive: live-money or financial changes, security/auth/permission edits, fleet-wide or irreversible infrastructure, data migrations, anything you cannot easily roll back. A typo fix does not need a tribunal. Match the rigor to the blast radius.

Make it standing, not ad-hoc

A review you remember to run is a review you will skip under pressure. Wire it to the boundary where the claim is made — before a done-mark, before opening the PR — with a hook or checklist gate, so the adversarial review is part of the definition of done rather than an optional courtesy. For higher assurance, use several independent graders with distinct lenses (correctness, security, does it actually reproduce) and require a majority to clear.

Where it fits

Adversarial review answers "is this actually right and safe to ship?" It pairs with two siblings: verify the real artifact (does the thing exist and behave in the closest-to-production form?) and process-aware done (never mark done on a proxy). Run the adversarial review, verify the real artifact it points at, then — and only then — claim done.

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.