codex-review
Skill0 starsChanged 18 days agoMITView on GitHub
Get a second-model code review from OpenAI Codex on work Claude wrote, using the codex@openai-codex plugin. Commits a checkpoint first, picks plain vs adversarial review, never co-edits files with a running Codex job, and verifies every Codex finding against the code before fixing anything. Use when the user says "codex review", "have Codex review this", "get a second opinion from Codex", "review before shipping/deploying/merging", "adversarial review", "pressure-test this change", or before any production deploy of code Claude wrote. Also use to review code that Codex wrote (Claude becomes the reviewer).
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 75 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
If the script is missing or setup is not ready, stop and tell the user to run /codex:setup.
- Distinctive: line 32
Run git status --short and git branch --show-current.
- Distinctive: line 72
Treat Codex output as a list of suspicions, not a list of fixes.
- Distinctive: line 79
Never fix a finding you haven't confirmed.
- Distinctive: line 90
Ask before fixing unless the user already said "review and fix".
- Very specific: line 93
If the fixes are non-trivial, run one more review --base <checkpoint sha> on the fix commit only.
- Very specific: line 97
When Codex wrote the code (via /codex:rescue or the codex:codex-rescue agent):
- Distinctive: line 99
Before the rescue, make the checkpoint commit (rule 1).
- Very specific: line 100
After Codex finishes, review git diff <checkpoint sha> yourself: correctness, scope creep (files Codex touched that it shouldn't have), …
- Distinctive: line 101
Use the same verdict table.
- Very specific: line 106
Don't enable the review gate (/codex:setup --enable-review-gate) as part of this skill.
“Common” is measured: kept by at least 6 in 10 of the 75 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
Codex Review
A cross-model code review. One model writes the code, and the other reviews it. A model reviewing its own work repeats its own blind spots, so this skill never treats self-review as the check.
Three rules (never skip)
- Commit before any handoff to Codex. A checkpoint commit records exactly what existed before Codex touched anything. Any later change then shows up in
git diffand can be reverted. - Never edit the same files as a running Codex job. While Codex works in the background, either work on a different area of the code or wait. If Codex needs to write code, put it on its own git worktree.
- Cross-model review only. Codex reviews code Claude wrote. Claude reviews code Codex wrote (see "Reverse direction" below).
Requirements
- The
codex@openai-codexplugin is installed, and/codex:setupreports"ready": true. - The project is a git repo.
- Locate the companion script (its folder is versioned, so do not hardcode the version):
CODEX_COMPANION="$(ls -d ~/.claude/plugins/cache/openai-codex/codex/*/ | sort -V | tail -1)scripts/codex-companion.mjs"If the script is missing or setup is not ready, stop and tell the user to run /codex:setup.
Workflow
Step 1: Checkpoint
- Run
git status --shortandgit branch --show-current. - If there are uncommitted changes:
- On a feature branch, commit them with a normal message about the work, and say you did.
- On
main/master, or on a branch the user hasn't approved, ask before committing. Offer to create a branch first. - For a public repo, show the file list and get a yes before committing. A commit there is publication.
- Record the review base, the commit the review compares against:
- On a feature branch, use the default branch (
main). - On
main, use the last commit before this session's work (e.g.HEAD~N, or the SHA fromgit log). Confirm it with the user if unclear.
- On a feature branch, use the default branch (
The plugin's --base <ref> reviews everything from the merge-base of <ref> and HEAD up to HEAD, so committed work is fully covered.
Step 2: Pick the review type
First apply the task-triage skill's QA section: re-score Impact from the actual diff. Impact 1 to 20 needs no Codex review (say so and stop); 46 to 70 gets review; 71 to 100 gets adversarial-review. End the report with the Triage check: line.
| Situation | Command | Notes |
| Routine change, normal code quality check | review | Not steerable; takes no focus text |
| Before a production deploy, or a risky area (auth, data loss, payments, PHI, migrations, retries, race conditions) | adversarial-review + focus text | Questions the design itself, not just details |
| Both | Run review first, then adversarial-review on the riskiest part |
Focus text must be specific. Good examples: "look for race conditions in the webhook handler and question the retry design", "check whether any Supabase query can leak another tenant's rows". Too vague: "find bugs".
Step 3: Run it
Size the change with git diff --shortstat <base>...HEAD. Run 1 or 2 files in the foreground. Run anything larger, or of unclear size, in the background (the plugin's own recommendation, since reviews of changes spanning several files are slow).
# foreground
node "$CODEX_COMPANION" review --wait --base <base>
node "$CODEX_COMPANION" adversarial-review --wait --base <base> <focus text>
# background: use Bash with run_in_background: true
node "$CODEX_COMPANION" review --background --base <base>While a background review runs, do not edit files in the reviewed diff (rule 2). Reviews are read-only, but editing the same files mid-review makes the findings stale. Check progress with /codex:status and get the output with /codex:result.
Step 4: Verify every finding
Treat Codex output as a list of suspicions, not a list of fixes. For each finding:
- Open the cited file and line, and read the surrounding code.
- Classify it:
- CONFIRMED: you can describe the concrete input or state that triggers the failure.
- PLAUSIBLE: it might be real, but needs a test or runtime check to settle.
- FALSE POSITIVE: say why (e.g. "guarded on line 40", "this path is unreachable").
- Never fix a finding you haven't confirmed.
Report to the user as a table:
| # | File:line | Codex finding | Verdict | Why |
Show the raw Codex output first or link it (/codex:result), then the table, so the user can see what Codex actually said versus your judgment.
Step 5: Fix confirmed issues only
- Ask before fixing unless the user already said "review and fix".
- Fix CONFIRMED issues only. List PLAUSIBLE ones with a suggested check.
- Fixes go in a separate commit from the checkpoint, so the review diff and the fix diff stay distinguishable.
- If the fixes are non-trivial, run one more
review --base <checkpoint sha>on the fix commit only. Stop after that round. Don't loop.
Reverse direction: Claude reviews Codex's work
When Codex wrote the code (via /codex:rescue or the codex:codex-rescue agent):
- Before the rescue, make the checkpoint commit (rule 1). Record its SHA.
- After Codex finishes, review
git diff <checkpoint sha>yourself: correctness, scope creep (files Codex touched that it shouldn't have), deleted tests, and weakened assertions. - Use the same verdict table. Commit Codex's work only after it passes.
Cost and usage guardrails
- Codex usage counts against the user's ChatGPT plan limits. Don't review trivial edits (typos, copy changes, config tweaks).
- Don't enable the review gate (
/codex:setup --enable-review-gate) as part of this skill. The plugin warns it can loop and drain usage. Turning it on is the user's call. - One adversarial pass per risk area is enough. Don't run the same review twice hoping for different results.
- Codex has none of Claude's connectors (CRM, email, docs). This skill is for code only.
Quick routine
checkpoint commit → review (or adversarial-review on a specific risk) --base <base>
→ verify each finding → fix confirmed only, in a separate commit → shipOther versions83 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 83
- ClickHouse/ClickHouse★ 51ksame name
- chaseai-yt/claudex-loop★ 3.2ksame name
- morethanwords/tweb★ 2.7ksame name
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- ThibautBaissac/rails_ai_agents★ 665same name
- ai-analyst-lab/ai-analyst★ 304same name
- Sateezg/codex-bridge★ 248same name
- sd0xdev/sd0x-dev-flow★ 192same name
- sd0xdev/sd0x-harness★ 192same name
73 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.
Used alongsideProjects with it also use addskill, astra-fullreview and 9 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.
ryanportfolioSkilladdskill
Create, import, update, or install repository or personal skills; includes runtime ownership, resources, and discovery validation.
Also in 5 projects that use this
ryanportfolioSkillastra-fullreview
Full multi-agent Codex review on gpt-6-astra at medium reasoning. Same verified lifecycle as codex-fullreview. Use for /astra-fullreview or 'full Astra review with sub-reviewers'.
Also in 5 projects that use this
yogsoth-aiSkilldare
DARE v4 is the product-level orchestrator for a research run. It turns a user request into a controlled sequence of North Star crystallization, executable specification, and phase-by-phase execution.
Also in 5 projects that use this
alexaka1Skillcodex-implementation
Ask Codex CLI (gpt-5.6-sol) to implement scoped code changes in the current repository, then have Claude inspect the resulting diff and verification. This is how gpt-5.6-sol is invoked for implementation work. Use when the user asks Claude to delegate implementation to Codex or gpt-5.6-sol, when the model-selection rubric routes the work to gpt-5.6-sol, or when a bounded task would benefit from another coding agent producing a patch.
Also in 4 projects that use this
- +7 more from ryanportfolio
In this repository31 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- chief-of-staffSkill
- conference-prepSkill
- doc-conversion-qaSkill
- eligibility-checkSkill
- fact-checkSkill
- google-adsSkill
- icp-researchSkill
- linkedin-carousel-builderSkill
- mac-performance-triageSkill
- meeting-followupSkill
- meeting-prepSkill
- mobile-auditSkill
- one-pager-builderSkill
- ops-metricsSkill
- pmf-pulseSkill
- post-conference-fupSkill
- post-conference-insightsSkill
- postmortemSkill
- prior-auth-review-skillSkill
- product-insightsSkill
- seoSkill
- site-reviewSkill
- solum-health-brandSkill
- task-triageSkill
- team-feedbackSkill
- uscis-petition-reviewSkill
- weekly-retroSkill
- weekly-reviewSkill
- win-lossSkill
- x-healthcare-postsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

