adversarial-review
Skill0 starsChanged 39 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.
104 other projects use a version of this.
Adopted by
Most recently taken up by
- revisit-studies/studytheir own version, first seen Nov 9, 2026
- ozt88/skillstheir own version, first seen Nov 8, 2026
- selamy-labs/agent-skillstheir own version, first seen Nov 8, 2026
- kellen-miller/skillstheir own version, first seen Nov 8, 2026
- leinardi/adversarial-review-looptheir own version, first seen Nov 8, 2026
- artberri/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use rethink, root-cause-analysis and 10 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.
fabioespindulaSkillrethink
Reframe a plan, idea, or decision before the user commits to it. Use when the user asks to rethink, step back, pressure-test, gut-check, decide, right-size, simplify, think bigger about, or evaluate a concrete plan or decision in product, strategy, technical architecture, career, life, company direction, or personal priorities. This skill improves decision quality before action: clarify the real question, challenge assumptions, compare alternatives, calibrate ambition, classify the operating mode, surface risks, and recommend a next move. Do not use for broad future exploration without a concrete decision; that belongs to a think-big or research-style skill.
Also in 3 projects that use this
MicrosoftSkillroot-cause-analysis
Use when a Regional Retail Manager asks I'm seeing unusual inventory movement at our Northwest stores. Can you help me understand what's happening?
Also in 3 projects that use this
anasahmed07Skillbetter-auth-best-practices
Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.
Also in 4 projects that use this
DockerSkillfix-issue
Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".
Also in 3 projects that use this
MicrosoftSkillpull-request
Write concise, focused pull request descriptions for Wassette — at most three sentences on the what and why, with an explicit note on any breaking public-API change and how users adapt. Use when opening or editing a Wassette pull request.
Also in 3 projects that use this
juriwiensSkillcodex-review
Run code review via Codex CLI
Also in 3 projects that use this
- +2 more from microsoft
Other versions104 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 104
- PrefectHQ/fastmcp★ 28ksame name
- jlowin/fastmcp★ 28ksame name
- mengxi-ream/read-frog★ 10ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- basicmachines-co/basic-memory★ 4.5ksame name
- DanMcInerney/architect-loop★ 626same name
- deadlock-mod-manager/deadlock-mod-manager★ 584same name
- boraoztunc/skills★ 454same name
- syahiidkamil/Software-Engineer-AI-Agent-Atlas★ 404same name
94 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 93 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 93 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.

