From engineering
Run an OpenAI Codex code review on the current branch's changes against a base, extract findings, fix confirmed P0/P1 issues, and commit. Useful after a batch of work for a structured second opinion before shipping.
How this skill is triggered — by the user, by Claude, or both
Slash command
/engineering:codex-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a Codex code review on the current branch's recent changes, evaluate findings critically, and fix any that are confirmed bugs at or above the requested severity threshold.
Run a Codex code review on the current branch's recent changes, evaluate findings critically, and fix any that are confirmed bugs at or above the requested severity threshold.
which codex || npx @openai/codex --version
If neither resolves, stop and tell the user the OpenAI Codex CLI isn't installed. Install instructions: npm i -g @openai/codex.
codex review --base <ref> needs a base that actually differs from HEAD. Check the current branch first:
git branch --show-current
git status --short
--base main directly.--base main — pick the last natural review boundary instead. Reasonable picks:
git merge-base main origin/main if multiple commits are ahead of origingit log --oneline -20 and pick a sensible boundary)--uncommitted instead of --base.Confirm the scope with the user before kicking off if the diff is >50 files / >5,000 LOC — large reviews take longer and waste credit on noise.
npx @openai/codex review --base <ref> 2>&1 | tail -250
Codex emits progress logs and then a final review block that starts with codex and lists [Pn] Title — file:line findings. Read the whole tail; the actual findings are usually at the very end.
For every P0 / P1 finding (or whatever the requested threshold is):
Common false positives:
After any code change:
pnpm --filter <package> typecheck # or repo's equivalent
pnpm --filter <package> test
pnpm exec biome check --write <files> # or repo's formatter/linter
Don't git add until typecheck + tests pass. If a fix fails CI locally, debug it before committing — never commit broken code to land a review.
If anything was fixed:
git add <files>
git commit -m "fix: address P1 issues from Codex review"
Keep the commit narrow — only the review fixes. If you discovered unrelated issues, file them as TODOs or follow-up tasks rather than bundling them in.
Always report:
If no findings or all P2 below threshold, say so explicitly so the user knows the review completed cleanly — silence is ambiguous.
Don't run this on tiny changes (typo fixes, single-line tweaks) — the review overhead isn't worth it. Use it after substantial work: a sprint, a refactor, a multi-file feature, anything you'd want a second pair of eyes on before shipping.
npx claudepluginhub goldenberry-so/pace --plugin engineeringGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.