adversarial-review
Skill1 starsChanged 57 days agoMITView on GitHub
Runs a hostile review of a spec, plan, or code in a fresh subagent, then fixes what holds. Use when a spec, a plan, or implemented code needs review before the next step; also when asked to review code, hunt for bugs, audit a diff or branch, stress-test a PR before merging, or "tear this apart"; or to resume a paused review.
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
- 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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- brainstormSkill
- execute-planSkill
- find-root-causeSkill
- finish-branchSkill
- handle-feedbackSkill
- prove-doneSkill
- tddSkill
- triage-open-itemsSkill
- update-specSkill
- write-planSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
When you find something worth doing later that this work does not include, add it as an item to .dietpowers/trackers/open-items.md, …
- Very specific: line 19
If your partner asked to resume, follow ## Resuming in ${CLAUDE_PLUGIN_ROOT}/shared/trackers.md, then carry on from the step it leads to.
- Very specific: line 23
Create the tracker with Second pass: pending, and write every finding into it at once as an unchecked open item, so none is lost if the …
- Very specific: line 33
After a spec: "Continue with write-plan?" On yes, invoke the dietpowers:write-plan skill.
- Very specific: line 34
After a plan: "Continue with execute-plan?" On yes, invoke the dietpowers:execute-plan skill.
- Very specific: line 35
After code: "Continue to finishing?" On yes, invoke the dietpowers:prove-done skill.
- Distinctive: line 37
If your partner chooses to revise, make the changes and run this skill again on the revised work, as a new run with a new tracker.
“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
A reviewer that has not seen this conversation judges the work itself, not the reasoning that produced it. A reviewer will always find something, so a review ends when nothing blocking is open, not when the findings run out.
Ask your partner one question at a time, in plain text; do not use the AskUserQuestion tool, because some clients show only the tool's question and drop the text around it. Put what your partner needs to answer in the same message: the problem and why it matters, then the options, recommended first, each with a short bold label in words (never numbers or letters) and a one-line reason. End with a line naming those labels in the same order, such as Reply with **new PR**, **straight to main**, or **drop it**., and make the question the last thing in the message, after any tool use. Your partner may answer with an option, their own alternative, a question or an aside. Keep messages short: lead with the decision, then only the detail needed to answer it. Before a stretch of work that takes more than a moment, such as dispatching a reviewer, writing a spec or plan, or fixing findings, say in one line what you are about to do; after your partner answers, say what comes next before starting it.
When you find something worth doing later that this work does not include, add it as an item to .dietpowers/trackers/open-items.md, following ## Open items in ${CLAUDE_PLUGIN_ROOT}/shared/trackers.md, and say so in one line.
Commits follow two rules. Fixes in a code review follow the code-step rule: commit on the feature branch as you go; if you are on main, master or the plan's Base: branch, first ask once: "I'll create branch <name> for this work. Reply with yes or no.", and do no code work until a branch is agreed. Fixes in a spec or plan review follow the document rule: check the plan's Commits: line or your partner's earlier answer, and if neither settles it, ask once: "I'll work on branch <name>. May I commit the spec and plan to it as we go? Nothing is pushed or merged without asking. Reply with yes or no." Whatever the answer, move the work to that branch; never commit to main or master. If your partner declines, leave spec and plan edits on disk; the dietpowers:finish-branch skill proposes those commits at the end.
Record the review in a tracker, following ## Working directory and ## Tracker format in ${CLAUDE_PLUGIN_ROOT}/shared/trackers.md; replies to your questions follow its ## Replies.
- If your partner asked to resume, follow
## Resumingin${CLAUDE_PLUGIN_ROOT}/shared/trackers.md, then carry on from the step it leads to. - Pick the prompt file for the target from this skill's directory,
${CLAUDE_SKILL_DIR}:spec-reviewer.mdfor a spec (needsSPEC_FILE_PATH),plan-reviewer.mdfor a plan (PLAN_FILE_PATH,SPEC_FILE_PATH),code-reviewer.mdfor code (SPEC_AND_PLAN_PATHSor a one-paragraphREQUIREMENTS, andBASE_SHA=$(git merge-base HEAD <base>), with<base>from the plan'sBase:line, or ask). Do not read the prompt file yourself. The reviewer grades each finding. - Save all work to disk, and commit it: code always, a spec or plan if commits are approved. The reviewer reads the files on disk and git history, never this conversation.
- Dispatch a
general-purposesubagent whose whole prompt is: "Read${CLAUDE_SKILL_DIR}/<prompt file>and follow it," then the placeholder values. Run it on the same model as this session, and wait for its report before doing anything else. Send nothing else: never your session history, never a pasted diff. - Create the tracker with
Second pass: pending, and write every finding into it at once as an uncheckedopenitem, so none is lost if the session ends. Then check each finding against the files and record the evidence under Verified. - Decide which findings go to your partner. First read
${CLAUDE_PLUGIN_ROOT}/shared/making-recommendations.mdand follow it; if it cannot be read, say so once and carry on.- A minor finding that holds and has one reasonable fix: mark it
fixand tell your partner in one line, the finding and why it holds. Do not wait for a reply. - Every blocker and major finding, and any finding you want to reject, downgrade, or fix in more than one reasonable way, or whose fix changes the approved spec (in a spec review, the approved design): ask your partner, one at a time, most severe first. Offer options from fix as proposed, another fix, add to open items, leave here, won't fix and reject, recommended first, and end with
Reply with <options in bold>, or **pause**.Record the question under the item's Question before you ask. add to open items and leave here both set the item todeferred; add to open items also adds the finding as an open item. Review findings reach open items only through the add to open items answer; the open-items sentence above covers other later work you notice during a review. - You may raise a grade on your own; lower one only by asking.
- A minor finding that holds and has one reasonable fix: mark it
- Fix once no item is
open. For code, first recordFIX_BASE=$(git rev-parse HEAD)in the tracker if it has none, so the fix check sees every fix even when this step runs again. Fix thefixitems, most severe first. For code, start each fix with a test that reproduces the finding and fails, then make it pass, and commit it. A spec or plan under review is edited directly, and committed if commits are approved. When a fix to a plan or code would alter behavior the approved spec describes, invoke thedietpowers:update-specskill before making it. Mark each itemfixedwith what changed and the commit. If a fix cannot be made, set the item back toopenwith the evidence (what you tried, the failing output) and ask your partner about it. - Second pass. If nothing was fixed, set
Second pass: not run (nothing fixed). Otherwise dispatch one fix check the same way as step 3, reusing the tracker's reviewer values and addingFINDINGS(each fixed item's finding and fix) and, for code,FIX_BASE. Never send the tracker. When the report arrives, write all its findings asopenreview-2 items and setSecond pass: done (N findings)in the same write. Check them as in step 4's second sentence, then handle them as in steps 5 and 6, except that a finding that matches an item in this tracker is markedduplicate of Nand not asked unless it brings new evidence, in which case show the earlier decision with it. If the fix check fails or returns nothing usable, report it and setSecond pass: not run (<reason>). Never dispatch another review. - Report to your partner, leading with the outcome: what was fixed, deferred, marked won't fix and rejected, each with its reason, and anything still open. Nothing is appended to the spec or plan; the tracker is the record.
Terminal state: the review is done when no blocker or major item is open or fix. Ask whether to continue, recommending it only when no blocker or major item is deferred either, and end the question with Reply with **continue**, **revise**, or **stop**.
- After a spec: "Continue with write-plan?" On yes, invoke the
dietpowers:write-planskill. - After a plan: "Continue with execute-plan?" On yes, invoke the
dietpowers:execute-planskill. - After code: "Continue to finishing?" On yes, invoke the
dietpowers:prove-doneskill.
If your partner chooses to revise, make the changes and run this skill again on the revised work, as a new run with a new tracker. If they choose to stop, report what is on disk and what is uncommitted, and stop.
Depth: ${CLAUDE_PLUGIN_ROOT}/shared/trackers.md, ${CLAUDE_PLUGIN_ROOT}/shared/making-recommendations.md
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.

