agentleFS
kellen-millerkellen-miller/skills/adversarial-review/SKILL.md

adversarial-review

Skill2 starsChanged 4 months agoMITView on GitHub

Use when plans, implementation diffs, docs, migrations, tests, or other work products need an independent critique before execution, finalization, or acceptance; especially for complex, high-risk, security-sensitive, production, data, billing, auth, or architecture changes.

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

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 8

    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
  1. Distinctive:

    Run one fresh reviewer against a compact artifact packet for the boundary the caller selected.

    line 14
  2. Distinctive:

    When invoked standalone without parent workers, the current agent owns boundary selection, evidence verification, bounded fixes, …

    line 22
  3. Distinctive:

    Use a suitable reviewer from a different provider when either a native or external mechanism is available.

    line 42
  4. Distinctive:

    Use a fresh isolated session from the same provider only after recording that no suitable different-provider mechanism exists or that an …

    line 44
  5. Distinctive:

    Use the current authoring session only as a last resort.

    line 49
  6. Distinctive:

    Do not launch a same-provider reviewer before completing and recording the cross-provider inventory.

    line 51
  7. Distinctive:

    Start with the selected worktree, work item, diff, validation evidence, known risks, and explicit compatibility requirements.

    line 62
  8. Very specific:

    If there is no work item, store it under .agent/adversarial/ or return it inline when the repository has no suitable artifact directory.

    line 84
  9. Distinctive:

    Treat every finding as a claim.

    line 130

“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

Core Contract

Run one fresh reviewer against a compact artifact packet for the boundary the caller selected. Use a reviewer from a different provider than the author whenever a suitable native or external mechanism is available. Cross-provider review is the default requirement, not a soft preference. Keep the reviewer read-only: the main agent verifies each claim against repository or runtime evidence, directs implementers to fix valid findings, integrates the changes, and accepts the result.

When invoked standalone without parent workers, the current agent owns boundary selection, evidence verification, bounded fixes, integration, and acceptance; the independent reviewer remains read-only. Before plan approval, honor an explicitly requested plan review. If the caller has not selected a review, use a planning packet only when architecture, security, data, migration, or other consequential design risk warrants critique; UI scope alone does not require one. One completed review is the default for a selected boundary. A focused follow-up is allowed only when concrete changed evidence introduces new risk or invalidates the prior conclusion; review that changed surface and new evidence instead of repeating the full review. Do not spawn nested reviewers by default. Critical risk may increase capability or reasoning effort, but does not by itself add reviewers.

Reviewer Selection

  1. Determine the author provider when exposed by the runtime.
  2. Discover native provider-aware subagents, then read references/provider-reviewers.md and inventory its installed external adapters before selecting a fallback. Absence from the native subagent picker does not establish that another provider is unavailable.
  3. Use a suitable reviewer from a different provider when either a native or external mechanism is available.
  4. Use a fresh isolated session from the same provider only after recording that no suitable different-provider mechanism exists or that an available mechanism failed its bounded availability check or review invocation.
  5. Otherwise use another fresh reviewer available in the current provider and record reduced independence.
  6. Use the current authoring session only as a last resort.

Do not launch a same-provider reviewer before completing and recording the cross-provider inventory. If one is launched prematurely, stop it before it returns a completed status and continue with the cross-provider path; an interrupted launch does not consume the selected review event.

Record unavailable evidence or provider capacity. Missing cross-provider capacity is not automatically blocking for standard or elevated work; the caller decides whether critical work requires a waiver.

Scope And Inputs

Start with the selected worktree, work item, diff, validation evidence, known risks, and explicit compatibility requirements. Expand to adjacent repositories, web, browser, or MCP evidence only when a concrete claim requires it, and record the expansion. Keep the review read-only.

Give the reviewer a compact launch packet:

  • goal, constraints, non-goals, and success criteria
  • paths to produced artifacts
  • relevant diffs, commits, or git status --short
  • validation commands and results
  • known open questions, skipped checks, and residual risks
  • explicit compatibility requirements, if any
  • for implementation review, the planning artifacts and prior review findings

Store output near the work item when possible:

.agent/work/<slug>/adversarial/plan-review.md
.agent/work/<slug>/adversarial/implementation-review.md

If there is no work item, store it under .agent/adversarial/ or return it inline when the repository has no suitable artifact directory.

Compatibility Policy

Backwards compatibility is not a default virtue. Do not ask reviewers to preserve old names, legacy output shapes, aliases, shims, dual paths, migration scaffolding, or deprecation wrappers unless the review packet names an explicit public contract, production data constraint, rollout requirement, or user instruction. Flag unnecessary compatibility scaffolding as code noise when it makes the result worse.

Findings Contract

Report only issues that could change the plan, implementation, validation, or release decision. Include severity, artifact/path, evidence, impact, and the next fix or check. Do not reward issue count and do not report nits merely to produce findings.

End with:

---ADVERSARIAL_REVIEW_STATUS---
AUTHOR_PROVIDER: <provider | unknown>
REVIEWER_PROVIDER: <provider | unknown>
REVIEWER_MODEL: <model | unknown>
INDEPENDENCE: cross_provider | fresh_same_provider | fresh_unknown | current_session
ISSUES_FOUND: <number>
CRITICAL_COUNT: <number>
HIGH_COUNT: <number>
MEDIUM_COUNT: <number>
LOW_COUNT: <number>
CONFIDENCE: HIGH | MEDIUM | LOW
BLOCKING: true | false
SUMMARY: <one line>
---END_ADVERSARIAL_REVIEW_STATUS---

The review prompt must prohibit file mutations, external-system changes, pushes, pull requests, and state-changing commands. It must limit Bash to inspection commands. Confirm the saved review contains the exact status delimiter before accepting it. Keep available streaming output with the review when possible as an audit trail.

Handling Findings

Treat every finding as a claim. The main agent verifies it, directs implementers to fix valid bounded issues, updates planning artifacts when intent or risk changes, rejects unsupported compatibility requests, integrates the verified changes, reruns relevant validation, and records the disposition. Request a focused follow-up only under the changed-evidence rule in Core Contract; do not repeat a full review merely because findings were critical or the implementer made a fix.

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.