agentleFS
dagarre00dagarre00/claude-code-template/.agents/skills/adversarial-review/SKILL.md

adversarial-review

Skill1 starsChanged 3 months agoMITView on GitHub

Worker-side. How the read-only adversary reviews a diff — the category sweep, severity vocabulary, reporting floor and report format; the conductor's side is finding-disposition. Trigger on "adversarial review", "review the diff", "red team the change", "second model".

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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 1

    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. Very specific:

    Verify before asserting: read the test before claiming it asserts nothing.

    line 25
  2. Distinctive:

    Don't pad the count; two honest findings beat twelve.

    line 40

“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 — the sweep

You review a small diff — usually one Behavior case — that is embedded in your prompt, against the wiki. You raise findings; you never fix them.

The category sweep

Work them in order, at full depth. Correctness is where most findings are; concurrency, durability and security are where the incidents are.

#CategoryLook for
1correctnessWrong branch, off-by-one, silent None/nil, swallowed exception, an error path that returns success, a Behavior case not actually implemented
2concurrencyShared mutable state, non-atomic read-modify-write, check-then-act, unawaited work, lock ordering, assumed single-threading
3durabilityPartial write with no rollback, lost update, unbounded retry, non-idempotent handler, migration with no down path, data written before it is validated
4securityUnvalidated input crossing a trust boundary, injection (SQL/shell/template), a secret in code or log, missing authz on a new path, unsafe deserialization
5architectureAn import pointing outward across architecture.md § Layers (domain or application reaching an adapter, infrastructure, or a framework type); business rules in a controller, handler or repository; a concrete dependency constructed outside the composition root; a change to the architecture rules or their check
6test-integrityA test asserting nothing, a tautology, a mock so wide the real boundary is untested, a test that would pass without the implementation, a [x] case with no test
7otherDead code, a stale wiki claim in the same diff, a misleading name, a comment contradicting the code

Verify before asserting: read the test before claiming it asserts nothing; grep for callers before claiming a path is unreachable. An unverified finding is confidence: low or dropped. Score against the spec and the declared layers, never against taste.

Severity (closed) and the reporting floor

Severity has procedural consequences — critical/major interrupt the human — so grade accurately.

SeverityMeaningWrite-up
criticalData corruption, secret exposure, or wrong result on a normal pathFull, with a concrete failure scenario
majorWrong result on an edge path; a test that does not test its Behavior; a dependency that breaks the layer ruleFull, with a concrete failure scenario
minorReal but contained — poor error message, narrow missing validationOne line: claim and location
nitStyle, naming, commentNot itemised — one tally line
  • The floor governs write-up, never depth of sweep. A critical in a category you skipped is a failed review.
  • Unsure between critical and major → major, saying why it might be higher. Unsure whether something is a nit → it is a minor.
  • Don't pad the count; two honest findings beat twelve.

Report format

# Findings — <slug>

**Commit:** <sha from git rev-parse HEAD>
**Scope:** <commit range reviewed>
**Checked:** <one line per category swept, so a clean pass is reviewable>

## F1 — critical — correctness — <one-line claim>

**Where:** `path/to/file.py:42`
**What's wrong:** <2–3 sentences, mechanism not vibes>
**Failure scenario:** <concrete inputs/state/interleaving → wrong output or crash>
**Confidence:** high | medium | low

## F2 — minor — security — <claim> — `path:line`

Nits: 3 (naming ×2, stale comment ×1)

## Out of scope

- <pre-existing problems outside the diff>

Nothing above nit → say so explicitly, with the Checked: lines. A gotcha or ADR a finding implies is named inside that finding.

Re-review round: you are given the range of the fix commits only. Confirm each fix, accept or contest each rejection once, and stop — no re-scan of the original diff, no new lines of attack that were open in round one.

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.