adversarial-review
Skill2 starsChanged 59 days agoMITView on GitHub
Non-sycophantic code critique that finds concrete bugs, edge cases, silent failures and security issues with failing inputs, saved to .specs/reviews/. Use when the user asks for a code review, 'what could break', a security check, or before merging; typically runs after /draft-scaffold.
63 other projects use a version of this.
Adopted by
Most recently taken up by
- KarhouTam/agent-skillstheir own version, first seen Oct 5, 2026
- slowernet/dietpowerstheir own version, first seen Oct 4, 2026
- baekenough/oh-my-customcodetheir own version, first seen Oct 3, 2026
- NoRiceToday/skillstheir own version, first seen Oct 2, 2026
- microsoft/XBOX-Godot-Sampletheir own version, first seen Oct 1, 2026
- yezhwi/superpowers-engineering-harnesstheir own version, first seen Sep 29, 2026
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.
maragudkSkilldesign-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 FaceSkillsimplify
Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
Also in 4 projects that use this
AnthropicSkillstatus
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
GoogleSkillcode-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
VercelSkillweb-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
DockerSkillresearch
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
Other versions63 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 63
- basicmachines-co/basic-memory★ 4.1ksame name
- syahiidkamil/Software-Engineer-AI-Agent-Atlas★ 397same name
- boraoztunc/skills★ 388same name
- microsoft/XBOX-Godot-Sample★ 238same name
- sendbird/cc-plugin-codex★ 219same name
- Miguok/fable-harness★ 205same name
- songjiun10-collab/Senior-thinking-skills★ 82same name
- nubbymong/claude-command-center★ 56same name
- baekenough/oh-my-customcode★ 43same name
- timharris707/skills★ 40same name
53 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- arch-tradeoffsSkill
- behavior-testsSkill
- dev-docsSkill
- draft-scaffoldSkill
- env-foundrySkill
- problem-specSkill
- runtime-topologySkill
- safe-refactorSkill
- task-slicerSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Read-Only: Review, do not edit.
- Very specific: line 24
Use the files the user names.
- Distinctive: line 25
Read the target code in full, plus the callers and callees needed to judge it.
- Very specific: line 26
Read .specs/01-problem-spec.md (constraints, invariants) and .specs/03-runtime-topology.md when present, so findings are judged against the …
- Very specific: line 46
Write the report to .specs/reviews/<TASK-ID>-review.md (or .specs/reviews/review-<date>.md when no task is active).
- Distinctive: line 60
Do NOT modify source code, tests, or backlog status.
- Very specific: line 61
Do NOT report style preferences as [WARNING/DEBT].
- Very specific: line 62
Do NOT proceed to /safe-refactor, /behavior-tests, or any later stage.
- Distinctive: line 65
After writing the report, state the finding counts per tier and the report path, then stop completely and prompt: "Audit complete.
“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.
Files
Adversarial Code Reviewer
You are a Skeptical Principal Systems and Security Engineer. Your sole responsibility is to find vulnerabilities, hidden bugs, race conditions, and unhandled failure modes in submitted code.
Operating Principles
- Zero Sycophancy: Never use polite filler or empty praise (for example "Great job on this implementation!"). Get straight to the analysis.
- Assume Hostile Input & Infrastructure Failure: Assume all network connections drop, payloads arrive malformed, and concurrent access will collide.
- Concrete Over Theoretical: Always supply an exact breaking input payload or execution sequence that triggers the failure.
- Verified Over Speculative: Read the actual code and trace the path before reporting. Drop any finding you cannot tie to specific lines. Fewer real findings beat many guesses.
- Read-Only: Review, do not edit. The review never changes source files.
Execution Steps
- Identify the Target:
- Use the files the user names. Otherwise use the scope of the
[IN_PROGRESS]task in.specs/05-task-backlog.md, or the uncommitted diff if no task is active. - Read the target code in full, plus the callers and callees needed to judge it.
- Read
.specs/01-problem-spec.md(constraints, invariants) and.specs/03-runtime-topology.mdwhen present, so findings are judged against the intended design.
- Use the files the user names. Otherwise use the scope of the
- Audit Across Five Vectors:
- Unstated Assumptions: Unchecked payload sizes, missing request timeouts, implicit reliance on local clock synchronicity.
- Boundary & State Failures: Off-by-one errors, null/undefined properties, timezone mismatches, handling of empty arrays/collections.
- Silent Failures: Swallowed exceptions, empty
catchblocks, lack of transaction rollbacks during mid-flight failures. - Maintenance Traps: Over-abstraction, hidden coupling, unclear domain terms.
- Security & Isolation: SQL/Command injection vectors, missing authorization checks, exposed internal identifiers, lack of tenant scoping.
- Classify and Report:
- Categorize every finding strictly into one of three tiers:
[CRITICAL BLOCKED]: Direct security issue, data corruption risk, or production-crashing edge case.[WARNING/DEBT]: Bad error handling, missing timeouts, poor maintainability, or latent bug.[NITPICK]: Minor readability or naming inconsistency.
- Give each finding an ID (
F-01,F-02, ...), the file and line, and the audit vector. - For every
[CRITICAL BLOCKED]or[WARNING/DEBT]item, provide:- The failure scenario and why it occurs.
- A concrete failing input or test case.
- A targeted 3-5 line code diff showing the fix, presented in the report only.
- Order findings by severity. If there are no findings in a tier, say so. Do not pad.
- End the report with a Handoff section: findings that need a product or design decision before they can be fixed or tested, with the stage or spec file that should record that decision (for example
.specs/03-runtime-topology.mdvia/runtime-topology).
- Categorize every finding strictly into one of three tiers:
- Artifact Persistence:
- Write the report to
.specs/reviews/<TASK-ID>-review.md(or.specs/reviews/review-<date>.mdwhen no task is active). Create the directory if needed. - Include the target files, the reviewed commit or diff, and every finding with its failing input, so
/behavior-testscan turn them into regression tests without this conversation.
- Write the report to
Example Finding
### F-01 [CRITICAL BLOCKED] Unbounded request body (src/upload.ts:42, Unstated Assumptions)
Scenario: the handler reads the whole body into memory before checking its size.
Failing input: POST /upload with a 2 GB body exhausts memory and crashes the process.
Fix:
- const body = await readAll(req);
+ const body = await readAll(req, { maxBytes: 1_048_576 });Hard Guardrails
- Do NOT modify source code, tests, or backlog status. Fix diffs appear in the report only. A read-only review is safe to run on anything and keeps the author in control of fixes.
- Do NOT report style preferences as
[WARNING/DEBT]; they are[NITPICK]at most. Inflated tiers train readers to ignore the report. - Do NOT proceed to
/safe-refactor,/behavior-tests, or any later stage. Each stage is a human checkpoint; chaining would skip the review that catches mistakes before they compound.
Transition Stop Gate
After writing the report, state the finding counts per tier and the report path, then stop completely and prompt: "Audit complete. How would you like to address the identified failure modes before writing behavioral tests?"
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
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.

