/general:codex-adversarial-review [base-ref | a..b | commit | focus text]from General
Run an adversarial second-opinion review of the current code changes with OpenAI Codex (codex exec in a fresh read-only session), then verify every finding against the code before reporting it. Use it at the end of a work session, once the code changes are complete and before they are committed, and whenever the user asks for a second opinion on a diff. Requires the Codex CLI, logged in.
Ships in General. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Have an independent model attack the change, then judge its claims yourself.
$ARGUMENTS
If the line above still reads $ARGUMENTS literally, the scope is whatever the user wrote alongside the skill mention. Map it to script flags like this:
| User wrote | Run with |
|---|---|
| nothing | no scope flag (auto: uncommitted changes if the tree is dirty, otherwise commits not on the main branch) |
a branch or ref such as main, origin/develop | --base <ref> |
a range such as abc123..HEAD | --range <a>..<b> |
| a single commit sha | --commit <sha> |
| anything else (for example "the retry logic", "auth changes") | --focus "<text>", scope stays auto |
Combinations are fine: main the migration becomes --base main --focus "the migration".
Run this at the end of a work session, after the code changes are complete and before committing them, as a last check that nothing shipped broken. Use the auto scope then: the script reviews the uncommitted changes, or the branch's commits if the tree is clean. Skip it when the session produced no code changes (documentation or configuration only) and say so instead. The user can also start it at any time with an explicit scope.
When the wrap-up skill from the same plugin closes the session, it runs this review as its first step; do not run it a second time after that.
A reviewer who wrote or watched the code being written shares its blind spots. The Codex session started by this skill has no conversation history, is told to assume the change is broken, and must back every claim with a file, a line, and a failure scenario. That setup deliberately produces false positives alongside real bugs. The value of the exercise comes from step 3, where you check each claim against the code instead of forwarding it.
${CLAUDE_SKILL_DIR}/scripts/run_review.sh with the flags from the table (in Codex, the script lives next to this file under scripts/). It prints progress on stderr and, on success, FINDINGS_FILE=<path> followed by the JSON on stdout. Codex typically needs two to eight minutes, so give the command the longest timeout you can (in Claude Code, pass a 600000 ms timeout or run it in the background) and do not kill it early. Exit code 2 means nothing to review or bad flags, 3 means the Codex CLI is missing or logged out, 4 means Codex ran but failed. Report those plainly instead of retrying blindly.
When this skill runs inside Codex itself, the nested codex exec needs network access; if the sandbox blocks it, rerun the command with approval rather than giving up.severity, claim, failure_scenario, evidence, and confidence. Also read reviewed, which says what Codex did and did not look at.reviewed so the user can judge the depth. Keep the raw JSON path in the report for reference.wrap-up skill runs this review, its step 1 says which verdicts to fix; follow that instead.run_review.sh [--uncommitted | --base <ref> | --range <a>..<b> | --commit <sha>]
[--focus <text>] [--model <name>] [--effort low|medium|high|xhigh]
[--out <file>] [--dry-run]
--dry-run prints the exact prompt and command without calling Codex; use it when debugging scope detection. The reviewer instructions live in references/review-prompt.md and the output shape in references/findings.schema.json; edit those, not the script, to change what Codex looks for.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/ask-until-clearCarry out the task given as the argument, but ask the user about every unclear, doubtful, or ambiguous point first, and keep asking in rounds until nothing is left to guess. Only the user can start this skill; it is never selected automatically./wrap-upClose a work session in three steps - run the codex-adversarial-review skill on the session's code changes, verify its findings and fix the confirmed ones, remove from TODO.md the tasks this session finished, and record in TODO.md anything left undone or deferred. Use it when the work the user asked for is complete and before the session's final commit, and whenever the user asks to wrap up, finish up, or close out the session.npx claudepluginhub k-ymmt/skills --plugin general