adversarial-review
Skill3 starsChanged 9 days agoMITView on GitHub
Use for an adversarial review or second opinion from a different agent CLI (Claude, Codex, Grok, Kimi, Pi, others) after non-trivial changes, plans or claims. Runs it headless and read-only to find bugs, holes and what you missed.
119 other projects use a version of this.
Adopted by
Most recently taken up by
- yukiyokotani/office-open-xml-viewertheir own version, first seen Nov 30, 2026
- ryanilano/ilano-skillstheir own version, first seen Nov 29, 2026
- awcameron/skillstheir own version, first seen Nov 29, 2026
- FuzulsFriend/adversarial-reviewtheir own version, first seen Nov 29, 2026
- Guz007/claude-code-os-plugintheir own version, first seen Nov 29, 2026
- johndelay/claude-context-starter-kittheir own version, first seen Nov 29, 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
jaydubya818Skillbabysit
Use when an authorized pull request needs ongoing CI and review follow-through.
Also in 3 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
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 3 projects that use this
juriwiensSkillcodex-review
Run code review via Codex CLI
Also in 3 projects that use this
- +1 more from microsoft
Other versions119 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 119
- PrefectHQ/fastmcp★ 29ksame name
- jlowin/fastmcp★ 29ksame name
- mengxi-ream/read-frog★ 11ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- basicmachines-co/basic-memory★ 4.8ksame name
- yukiyokotani/office-open-xml-viewer★ 891same name
- deadlock-mod-manager/deadlock-mod-manager★ 638same name
- DanMcInerney/architect-loop★ 626same name
- boraoztunc/skills★ 473same name
109 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 repository12 other files it gives its agents.
- agent-workdirSkill
- airgapSkill
- db-migrationsSkill
- delegateSkill
- docker-packagingSkill
- handoffSkill
- impeccableSkill
- run-validationSkill
- security-huntSkill
- ship-auditSkill
- skill-critiqueSkill
- web-perimeter-auditSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 106 edited versions we read keep these.
8
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
- Distinctive: line 8
Run a second agent from the shell to attack your work.
- Distinctive: line 10
Use it after a non-trivial change, plan, root-cause claim or design decision, before you report "done".
- Distinctive: line 20
If the user names a CLI, use it.
- Distinctive: line 25
No way to make it read-only → don't use it.
- Very specific: line 29
Write the brief to a file: $WORK/review-brief.md.
- Distinctive: line 65
Never put secrets, credentials, customer data or private hostnames in the brief.
- Distinctive: line 96
Check it against the real code or a real run.
- Distinctive: line 98
After fixing confirmed findings, rerun the affected checks.
- Distinctive: line 100
Run a second round only after substantial fixes, with a fresh brief.
“Common” is measured: kept by at least 6 in 10 of the 106 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
Run a second agent from the shell to attack your work. It looks for bugs, gaps, wrong assumptions, unhandled cases, and claims you did not prove. It is a reviewer, not an authority: you verify every finding before acting on it.
Use it after a non-trivial change, plan, root-cause claim or design decision, before you report "done". Skip it for one-liners.
1. Pick the reviewer
Prefer a CLI from a different vendor than you. A different model misses different things. The user's preference order is [review] reviewers in ${XDG_CONFIG_HOME:-$HOME/.config}/agent-skills/settings.toml: take the first installed CLI in that list that isn't you. No file or no key → codex, grok, claude, kimi, pi. A broken value → that default, and tell the user.
for c in claude codex grok kimi pi gemini opencode; do command -v "$c" >/dev/null && echo "$c"; doneIf the user names a CLI, use it. For a CLI not listed below:
- Find the one-shot flag:
<cli> --help | grep -iE 'print|prompt|exec|single|-p'. - Find how to make it read-only: a sandbox, a plan mode, a tool allowlist, or an agent profile that lists only read, search and list tools.
- Prove it before the real run: ask it to create a file and edit one, and check that nothing changed.
- No way to make it read-only → don't use it. Pick another CLI or tell the user. Never review a copy of the repo instead.
2. Write the brief
Write the brief to a file: $WORK/review-brief.md. $WORK is this task's dir under the agent work dir (the agent-workdir skill; default ~/agent-work/<project>/<date>-<topic>/). Fill in this template:
You are an adversarial reviewer. Another agent did the work below and believes it is correct.
Your job is to prove it wrong. Do not praise, summarize, or restate the work.
## Goal
<what the user asked for, in their words>
## What was done
<diff range or changed files, plan path, commands run; reference paths, don't paste whole files>
## Claims to attack
<each claim the agent makes: "X works because Y", "Z is the root cause", "tests cover W">
## Known gaps
<what the agent already knows is unverified>
## Find
- Bugs: wrong logic, edge cases, error paths, races, off-by-one, bad input at boundaries.
- Holes: requirements from the goal that are missing or only half done.
- Unproven claims: anything asserted but not shown by a test, a run, or the code.
- Surprises: inputs, environments or usage the author did not expect.
- Regressions: callers or behavior the change breaks elsewhere.
Read the code and run read-only commands to check before you report. A finding needs
evidence: file:line, a command and its output, or a concrete failing input.
## Output
One block per finding, worst first:
[critical|high|medium|low] file:line — the problem
Evidence: <what you read or ran>
Failure: <concrete input/state → wrong result>
End with "Not checked:" listing what you could not verify. No findings → say so plainly.Never put secrets, credentials, customer data or private hostnames in the brief. The reviewer is a cloud model. If the repo itself is sensitive, ask the user before sending it.
3. Run it headless and read-only
$REPO is the project root. $BRIEF is the brief file.
| CLI | Command |
| Claude Code | cd "$REPO" && claude -p --permission-mode plan "$(cat "$BRIEF")" |
| Codex | codex exec -s read-only -C "$REPO" -o "$WORK/review.md" - < "$BRIEF" |
| Grok | grok -p "$(cat "$BRIEF")" --cwd "$REPO" --tools read_file,grep,list_dir --max-turns 100 |
| Kimi Code | cd "$REPO" && kimi -p "$(cat "$BRIEF")" --agent-file "$WORK/kimi-reviewer.md" with the profile below. Without it, -p applies edits automatically, and it refuses --plan. |
| Pi | cd "$REPO" && pi -p --tools read,grep,find,ls --exclude-tools 'mcp__*,codemode' "$(cat "$BRIEF")" (--tools alone keeps MCP tools) |
The Grok binary may also be installed as agent. Kimi's read-only profile, $WORK/kimi-reviewer.md (only these tools exist for the session: no shell, no edits, no MCP, no subagents):
---
name: reviewer
description: Read-only adversarial reviewer
tools: Read, Grep, Glob
---
You are a read-only reviewer. You cannot change files or run commands.Save the output to $WORK/review.md. A whole-repo review can take 10 minutes or more, so run it in the background if your harness supports that, and keep working.
4. Triage
For each finding:
- Check it against the real code or a real run. Do not trust it, and do not dismiss it without checking.
- Mark it confirmed (fix it), rejected (one-line reason, with evidence), or needs the user (a scope or product decision).
- After fixing confirmed findings, rerun the affected checks.
Run a second round only after substantial fixes, with a fresh brief. Report to the user: reviewer CLI, confirmed and fixed, rejected with reasons, still open.
Common mistakes
| Mistake | Fix |
| Asking "is this good?" | Ask it to prove the work wrong, with evidence per finding. |
| Anchoring it on your conclusion | List claims to attack, not your reasoning for them. |
| Write access for a review | Read-only flags, or a throwaway worktree. |
| Pasting whole files | Give paths and the diff range; the reviewer can read the repo. |
| Applying findings unchecked | Verify each one; reviewers are confidently wrong too. |
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.

