codex-review
Skill0 starsChanged 3 months agoMITView on GitHub
Run an independent Codex code review using GPT-5.6 Sol with xhigh reasoning. Use when user says "codex review", "cross-model review", "run codex on this", or as part of a multi-reviewer panel. Collects git diff + changed files, sends to Codex CLI, returns structured findings.
- Installs packages
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
- Smirnov-Labs/claude-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
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 repository6 other files it gives its agents.
- claude-plan-reviewSkill
- claude-reviewSkill
- claude-strategy-reviewSkill
- codex-plan-reviewSkill
- codex-strategy-reviewSkill
- persona-registrySkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 79 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Check what the user wants reviewed:
- Distinctive: line 66
IMPORTANT: Do NOT include any of Claude's reasoning, planning notes, or prior review comments in the Codex prompt.
- Distinctive: line 70
Read the Codex output. It will be structured as:
- Distinctive: line 83
When Codex review runs alongside a Claude panel (personas such as Architect, CTO, and Red Team — or any personas specified for the goal):
- Very specific: line 122
Authentication error: Run codex login to authenticate with OpenAI
- Distinctive: line 124
Empty output: Check that there are actual changes to review (git diff HEAD should show content)
“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
Independent cross-model code review using OpenAI Codex (GPT-5.6 Sol, xhigh reasoning). Run from inside Claude Code to get a second opinion from a different model family, optionally alongside Claude-side persona reviewers.
Why This Exists
Codex reviews from a different model family than Claude, which means different blind spots. It does NOT see Claude's planning notes or prior review comments — only the code and diff. This anti-anchoring property is what makes the ensemble valuable.
Instructions
Step 1: Determine Review Scope
Check what the user wants reviewed:
- If
$ARGUMENTScontains a file path or directory: Review that specific path - If
$ARGUMENTScontains "pr" or "branch": Review all changes on the current branch vs main - If
$ARGUMENTSis empty: Review all uncommitted changes (staged + unstaged) - If
$ARGUMENTScontains "panel": Review all changes since the last commit on main
Step 2: Collect the Diff and Changed Files
# For uncommitted changes:
DIFF=$(git diff HEAD)
CHANGED_FILES=$(git diff HEAD --name-only | grep '\.py$')
# For branch changes:
DIFF=$(git diff main...HEAD)
CHANGED_FILES=$(git diff main...HEAD --name-only | grep '\.py$')
# For specific path:
DIFF=$(git diff HEAD -- "$PATH")
CHANGED_FILES="$PATH"Optional (requires the Serena MCP server — not part of this kit): if Serena is installed and there are more than 15 changed files, you can use it to build a focused review package instead of sending full files:
get_symbols_overviewfor each changed filefind_symbolwithinclude_body=Truefor changed symbols onlyfind_referencing_symbolsfor each changed symbol (1 level deep)- Package the symbol bodies + caller context as the review content
Without Serena, the script below simply sends the diff (and full file contents for small change sets).
Step 3: Run the Codex Review
Execute the review script, passing the diff and file contents via stdin:
~/.claude/skills/codex-review/scripts/codex_review.shThe script handles:
- Assembling diff + file content
- Piping to
codex exec -m gpt-5.6-sol -c model_reasoning_effort=xhigh - Passing the structured review prompt
IMPORTANT: Do NOT include any of Claude's reasoning, planning notes, or prior review comments in the Codex prompt. Codex must form its own independent judgment.
Step 4: Parse and Present Findings
Read the Codex output. It will be structured as:
## Codex Review — Verdict: <PASS / CONDITIONAL PASS / FAIL>
| Finding | Severity | File:Line | Description |
|---------|----------|-----------|-------------|Present this to the user as-is. If running as part of the full review panel, this output feeds into the Panel Synthesis step where Claude merges all four reviewer outputs.
Step 5: Panel Synthesis (if running with full panel)
When Codex review runs alongside a Claude panel (personas such as Architect, CTO, and Red Team — or any personas specified for the goal):
- Agreement matrix: Findings flagged by 2+ reviewers → bump severity (high confidence)
- Disagreements: Findings where reviewers conflict → flag for human judgment
- Codex-only findings: Issues only Codex caught → highlight as "cross-model catch"
- Deduplicated findings table: Single table with source column showing which reviewer(s) flagged each issue
Codex Review Dimensions
The review prompt instructs Codex to evaluate these dimensions:
| Dimension | What Codex Checks |
| API correctness | Do imported functions/methods exist and are they used correctly? |
| Logic errors | Off-by-one, wrong operators, swapped arguments, incorrect conditionals |
| Data contracts | Column names, field paths, enum values match their sources |
| Edge cases | Empty inputs, None propagation, division by zero, NaN/Inf handling |
| Silent failures | Swallowed exceptions, missing logging, default returns hiding errors |
| Security | Path traversal, injection, secrets in code, unsafe deserialization |
Examples
# Review uncommitted changes
/codex-review
# Review a specific file
/codex-review src/scoring/engine.py
# Review current branch vs main
/codex-review branch
# Review all changes since the last commit on main (panel scope)
/codex-review panelTroubleshooting
- "codex: command not found": Install Codex CLI:
npm install -g @openai/codex - Authentication error: Run
codex loginto authenticate with OpenAI - Timeout on large diffs: For very large diffs, raise
CODEX_TIMEOUT, narrow the scope to a path/branch, or (if Serena is installed) pre-build a symbol-only review package as described in Step 2 - Empty output: Check that there are actual changes to review (
git diff HEADshould show content)
Intent and focus (automatic)
Derive these from the user's request — they should not need to set anything. From how they phrase the
ask, infer intent and focus and pass them via CODEX_INTENT / CODEX_FOCUS. For example,
"codex-review this branch, focus on the auth logic and skip style" ->
CODEX_INTENT="auth change" CODEX_FOCUS="auth logic, skip style".
The text is appended to the prompt as author framing, never as another reviewer's findings. A guardrail still surfaces every CRITICAL/HIGH finding even when it falls outside the focus.
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.

