adversarial-review
Skill3 starsChanged 6 months agoMITView on GitHub
Run an independent audit gate before any fleet output lands. Use after agent-fleet-orchestration Stage 3 (or any multi-agent build) — before merge, before deploy, before the next phase. Frames the reviewer as an external adversary, not a helper; produces triaged findings with human triage for load-bearing blockers.
63 other projects use a version of this.
Adopted by
Most recently taken up by
- Linchi1997yeh/craftsman-suitetheir own version, first seen Oct 5, 2026
- 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
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 repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agent-fleet-orchestrationSkill
- harness-improveSkill
- paper-to-codeSkill
- robust-by-constructionSkill
- storozhSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Do NOT confirm. Do NOT hint.
- Distinctive: line 17
Every factual claim requires ≥2 confirmations: a code anchor (file:line or exact snippet) PLUS an external reference (spec, RFC, reference …
- Distinctive: line 19
Do NOT ask the reviewer to «confirm this is working» or «verify the implementation is correct» — those framings produce sycophancy.
- Distinctive: line 23
Run the reviewer across all dimensions in a single pass.
- Distinctive: line 37
When the reviewer encounters an unfamiliar pattern or needs external evidence:
- Distinctive: line 59
After fix: re-run the specific verification that the finding demanded (not a full re-review — targeted verification of the changed path).
“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-review: an independent audit gate, not a helper
BLUF: the dominant failure mode of post-build review is sycophancy — the reviewer treats «looks plausible» as confirmation, confirms what the author implied was correct, and produces approval theater. This skill makes that structurally impossible by framing the reviewer as an adversary whose job is to break the work, not bless it.
Stage 0 — frame the reviewer correctly
The reviewer is an independent external auditor (mental model: PhD architect encountering this code for the first time with no social obligation to the author). The instructions to the reviewer must include:
- Do NOT confirm. Do NOT hint. Do NOT ask leading questions. Do NOT soften.
- Your job is to find every way this system fails, is insecure, is brittle, or is wrong.
- «I could not find a problem in area X» is an admissible finding. «Everything looks good» is not.
- Every factual claim requires ≥2 confirmations: a code anchor (file:line or exact snippet) PLUS an external reference (spec, RFC, reference repo, web) OR an explicit «cannot verify without execution» with a stated reason.
Do NOT ask the reviewer to «confirm this is working» or «verify the implementation is correct» — those framings produce sycophancy. Ask: «find every blocker that would prevent this from working correctly in production.»
Stage 1 — audit dimensions (fixed; do not abbreviate)
Run the reviewer across all dimensions in a single pass. Skipping a dimension is only valid if explicitly stated with a reason.
| Dimension | What to look for |
| Concurrency / lifecycle | data races, leaked goroutines/threads, deadlocks, use-after-free, resources not GC-safe (closed by GC rather than owned lifecycle), subscriptions re-created per-event instead of once per session |
| Error handling | swallowed errors, false success (operation failed but caller sees success), missing propagation, error type that loses context |
| Isolation / security | credentials leaking across trust boundaries, over-privileged components, missing input validation at trust boundaries |
| Architecture & code smell | duplicated logic, reinvented wheels (stdlib or idiomatic library solves this), wrong layer (business logic in transport, I/O in domain), dead code with a live twin (two sources of truth) |
| Benchmark vs reference repos | compare idiom usage to 2–3 reference repos on the same problem; flag where this code diverges from the community's solved pattern |
| Tests-as-theatre | tests that always pass regardless of behavior, mocks that make the test vacuous, test coverage of the wrong layer |
| Robustness bar | every I/O and wait: is there a hard timeout/deadline? is there a forced unblock if the far side hangs? does the system degrade gracefully or panic? |
Stage 2 — problem-driven research register
When the reviewer encounters an unfamiliar pattern or needs external evidence:
- Register: «I did X, got problem Y — how is Y solved in industry?» (symptom → industrial pattern)
- Not: «how do I do X?» (that anchors on the author's solution, not the problem space)
This framing ensures the reviewer finds the canonical solution independently and can compare it to what was built, rather than rationalizing what was built.
Stage 3 — triage findings: do NOT auto-fix
After the audit:
- List findings by severity: blocker (prevents correct operation) / major (degrades reliability or security) / minor (code smell, maintainability).
- For each finding, hold a reasoned position:
- Agree-with-justification: state why this is a real defect + the code anchor that confirms it.
- Reject-as-false-positive-with-justification: state the reasoning and the evidence that rules out the defect.
- Load-bearing or disputed findings go to the human — do not auto-resolve them. The lead and developer decide together: fix, accept-with-rationale, or reject.
- Auto-fixing every finding to silence the reviewer is «slop-on-slop»: it destroys the audit trail and removes the human decision.
Stage 4 — fix and re-verify, not re-report
For agreed blockers that go to fix:
- The fix is a new agent run with the finding as the precise input (file:line, symptom, root cause, required behavior).
- After fix: re-run the specific verification that the finding demanded (not a full re-review — targeted verification of the changed path).
- A finding is closed when tool output (build, test, lint, static analysis) confirms the defect is gone — not when the fix agent says so.
Mirabilis example: the 2026-06-12 adversarial review of the mirabilis fleet output found 4 blockers:
- One-shot proxy lifecycle — the proxy server started once and was never restarted on reconnect; first-launch always failed. Fix: session-owned restart.
- Flock released by GC — an OS file lock (
flock) was held by a Go object with no explicit release; the GC could collect it mid-session, dropping the lock silently. Fix: explicit lifecycle with deferred close. - PTY handoff could deadlock the UI — a synchronous PTY size-change notification ran on the Bubble Tea render loop with no escape; a non-responsive terminal process could hang the entire UI. Fix: deadline on the handoff + goroutine with forced unblock.
- Dead-code attach with two sources of truth — an attach path existed in both the engine and the TUI layer; neither was canonical, neither was tested. Fix: remove one, make the other the single owner.
None of these were found by the implementation agents. All four were found by the independent adversarial reviewer. Human triage prioritized all four as blockers. Auto-fixing without triage would have resolved symptoms without understanding root causes.
Output contract
- Per-dimension findings (file:line anchors + external refs or «cannot verify without execution»). 2. Severity classification. 3. Reasoned position per finding (agree / reject-as-FP). 4. Human triage decisions on load-bearing/disputed items. 5. Targeted re-verification outputs for fixed blockers. BLUF at every stage.
Counter: for a trivial change touching one file with no cross-cutting concerns, a full multi-dimension audit is overhead — state the skipped dimensions and run at minimum the error-handling and robustness checks.
Provenance: distilled from the 2026-06-12 mirabilis adversarial review — an independent audit pass that found 4 production blockers missed by implementation agents, triaged with the human, and fixed with targeted verification. The anti-sycophancy framing follows the neuro-matrix critic role discipline; the ≥2-confirmation claim-typing follows the harness epistemic-boundary convention.
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.

