codex-review
Skill6 starsChanged 8 days agoMITView on GitHub
Use when you want an independent second opinion from Codex on a plan, a design spec or a code change, at a major checkpoint or before merging a non-trivial PR, when asked for a "codex review" or "second opinion", or when you are about to write a `codex exec` command or poll for Codex output by hand.
91 other projects use a version of this.
Adopted by
Most recently taken up by
- p-chan/agent-skillstheir own version, first seen Nov 8, 2026
- p-chan/skillstheir own version, first seen Nov 8, 2026
- juriwiens/skillstheir own version, first seen Nov 8, 2026
- ryanportfolio/winuse-mcptheir own version, first seen Nov 8, 2026
- fab-codes/agent-workflow-templatetheir own version, first seen Nov 8, 2026
- plannotator/dev-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use addskill, apply-firmware 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.
ryanportfolioSkilladdskill
Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.
Also in 6 projects that use this
ryanportfolioSkillapply-firmware
Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.
Also in 6 projects that use this
- +10 more from ryanportfolio
Other versions91 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 91
- 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
81 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 repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adding-an-add-to-claude-buttonSkill
- bd-to-br-migrationSkill
- codex-plan-reviewSkill
- debugging-kubernetes-rolloutsSkill
- debugging-nodejs-appsSkill
- de-sloppingSkill
- detect-overengineeringSkill
- evaluating-third-party-toolsSkill
- finding-latest-versionsSkill
- git-reconSkill
- humanizerSkill
- hyprland-luaSkill
- mining-claude-sessionsSkill
- minto-pyramidSkill
- nonstopSkill
- operating-frappe-on-kubernetesSkill
- presentation-blueprintSkill
- pr-fixSkill
- pr-landSkill
- prSkill
- watching-pr-bot-reviewsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 79 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run it with run_in_background: true.
- Distinctive: line 30
Commit before a diff review.
- Very specific: line 52
Read review.md. The exit status is a summary, not the review.
- Distinctive: line 53
Check each Critical and Major finding against the code or the plan.
- Distinctive: line 55
If you changed anything, commit and review the new HEAD.
- Very specific: line 70
If Codex rejects the pin as "not supported", the script runs once more with the model from ~/.codex/config.toml and prints a note.
“Common” is measured: kept by at least 6 in 10 of the 79 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
codex-review runs one read-only Codex review and prints a verdict. Hand-built codex exec lines kept failing in the same ways:
- stderr went to
/dev/null, so a crash read as an empty review; - the model pins went stale;
- agents ran
--helpto find the flags again; - sleep loops waited for the output.
Run it
Run it with run_in_background: true. A high-effort review takes several minutes, and you are told when it exits. Don't poll it and don't wrap it in a loop.
| To review | Command |
| An implementation plan | codex-review plan docs/plans/feature.md |
| A design spec | codex-review spec docs/specs/feature.md |
| This branch's commits | codex-review diff (origin/<default branch>...HEAD) |
| Other commits | codex-review diff main..HEAD (a single ref R means R..HEAD) |
| A PR | codex-review diff --pr 123, from a checkout of the PR branch |
| Your own prompt, as is | codex-review prompt prompt.md |
--context FILE(repeatable) adds what the work must meet: the spec for a diff, the constraints for a plan.--focus "..."says what to check hardest.- Commit before a diff review. Uncommitted changes are not in the diff.
codex-review --helphas the rest (--out,--timeout,--model,--effort,--dry-run).codex-reviewis on PATH where skillsync installed this skill. In a plugin install, call<this skill's base directory>/bin/codex-reviewby its full path, from the project directory.
Read the result
It prints the prompt, review and log paths, then a verdict:
verdict FINDINGS · critical 0 · major 1 · minor 3 · 6m12s
[MAJOR] The merge runs before the MERGED check| Exit | Meaning |
| 0 | No Critical or Major findings (prompt mode: Codex answered) |
| 1 | Critical or Major findings, or a review it could not parse |
| 2 | No usable review: Codex failed, timed out, or said it could not review |
| 3 | Usage error |
Then:
- Read
review.md. The exit status is a summary, not the review. - Check each Critical and Major finding against the code or the plan. Codex can be wrong.
- Fix the findings you confirmed. List the Minor ones in your report.
- If you changed anything, commit and review the new HEAD.
On exit 2, read the log tail it prints. Don't report "Codex found nothing".
Model
The pin is gpt-6-astra, checked on 2026-11-05 with codex-cli 0.166. CODEX_REVIEW_MODEL or --model overrides it.
| Model | Use |
gpt-6-astra | The pin. Frontier model, 272K context. |
gpt-6.1-sol | 500K context. Used on its own when the prompt passes 600,000 characters. |
gpt-6.1-terra, gpt-6-sol, gpt-5.6-* | Older or balanced models. Don't pin them. |
gpt-6-luna, gpt-5.6-luna | Fast and cheap. Too light for a review. |
If Codex rejects the pin as "not supported", the script runs once more with the model from ~/.codex/config.toml and prints a note. Then update the pin: codex debug models | jq -r '.models[] | select(.visibility=="list") | .slug'.
Common mistakes
| Mistake | What happens |
codex exec ... 2>/dev/null | A crash leaves an empty review, and the work goes on as if Codex agreed. |
A sleep loop that waits for review.md | Wasted turns. The background run tells you when it ends. |
| Exit 0 read as approval | Exit 0 means no Critical or Major findings were parsed. Read the review. |
| Reviewing uncommitted work | The review names no SHA, and the diff misses the edits. |
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.

