skills/codex-review/SKILL.md
Independent gpt-5.6 diff review via the Codex CLI, normal or steerable adversarial with JSON findings. Use before shipping nontrivial changes.
npx skillsauth add bjornmelin/dev-skills codex-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Independent gpt-5.6 review of local changes through the Codex CLI. Read-only - never lets Codex modify the repo. Works identically from the main loop, subagents, and workflow stages (no plugin runtime required).
Reviews run on gpt-5.6-sol (MODELS.md: code review = Sol) - pin BOTH the model
(-m gpt-5.6-sol) and the effort (-c model_reasoning_effort="medium", or
"high" for consequential/cross-cutting diffs) on every command below rather
than inheriting CLI defaults. For codex review, -m is a GLOBAL flag and must
come before the subcommand. Paths written as <skill-dir> mean this skill's
base directory (provided when the skill is invoked).
/review inside Codex.codex -m gpt-5.6-sol -c model_reasoning_effort="medium" review --uncommitted # staged + unstaged + untracked
codex -m gpt-5.6-sol -c model_reasoning_effort="medium" review --base main # branch vs base
codex -m gpt-5.6-sol -c model_reasoning_effort="medium" review --commit <sha> # a single commit
run_in_background: true; the
harness notifies on completion (no polling needed).cd && chains (keeps the RTK hook inert).references/adversarial-prompt.md: fill {{TARGET_LABEL}}
(e.g. "diff vs main"), {{USER_FOCUS}} (focus text or "general adversarial pass"),
{{REVIEW_COLLECTION_GUIDANCE}} (usually: "Collect the diff yourself with git; read
changed files fully."), and {{REVIEW_INPUT}} (either the diff inline, or an
instruction to run git diff <base>...HEAD). Write it to the scratchpad.- reads the
prompt from stdin; a plain < file redirect keeps the command pipe-free):codex exec -m gpt-5.6-sol -c model_reasoning_effort="medium" -s read-only --cd <repo> --output-schema <skill-dir>/references/review-output.schema.json --output-last-message <scratchpad>/codex-adversarial-<ts>.json - < <scratchpad>/prompt.md
verdict (approve | needs-attention), findings[]
(severity, title, body, file, line_start/line_end, confidence 0–1, recommendation),
next_steps[].codex resume if deeper follow-up
is wanted.Always pin effort explicitly - sol's vendor default is low. Per MODELS.md:
"medium" (Sol worker) is the standard review tier; "high" (Sol lead) for
consequential or cross-cutting diffs. Never xhigh or ultra. If a Sol-high
review still leaves material doubt, escalate per MODELS.md: Fable resolves the
hard part inline, or one independent gpt-5.6-terra "max" adversarial pass.
References adapted from openai/codex-plugin-cc (Apache-2.0; see references/NOTICE and the full license text in references/LICENSE).
development
Pre-PR multi-model review, parallel opus and codex exec adversarial lanes, then adversarial verification of merged findings. Read-only. Use before shipping nontrivial diffs.
development
Delegate implementation, investigation, or bulk work to gpt-5.6 codex via pinned codex exec. Use for clear-spec builds, migrations, debugging, or any task MODELS.md routes to codex.
development
Adversarial pre-mortem: imagine the plan failed, work backwards to surface risky assumptions + irreversible bets, then harden them. Proactively offer it (after the current request; confirm first) before a hard-to-reverse or one-way-door call (API, schema, framework, a hire), an all-upside plan, or unvalidated assumptions. Also on request.
documentation
Batch-grill a plan or design round by round: whole settled frontier per round, recommended answers + close-call scores, ADRs + a glossary via domain-modeling, /pre-mortem handoff on irreversible calls.