codex-review-plan
Skill17 starsChanged 3 months agoMITView on GitHub
Use after drafting an implementation or research plan (in plan mode, or a ~/.claude/plans/ file) to get a second-opinion review from Codex against the actual codebase, then critically incorporate the feedback. Makes the Claude Code plan better via cross-model review. Trigger phrases include "send the plan to Codex", "have Codex review this plan", "get a second opinion on the plan".
In this repository14 other files it gives its agents.
- codex-bridgeSkill
- overleafSkill
- plan-debateSkill
- power-firstSkill
- referee-panelSkill
- refresh-pipelineSkill
- review-codex-planSkill
- robustness-batterySkill
- spec-curve-sweepSkill
- stata-preflightSkill
- sync-overleafSkill
- tableSkill
- verify-claimsSkill
- verify-numbers-pipelineSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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 27
Compose the prompt: Use the *review template* from codex-bridge, with the plan text inside the <PLAN>…</PLAN> block.
- Very specific: line 37
Summarize: Read $OUT (kept in the temp file).
- Very specific: line 45
Revise + report: Update the plan file with the accepted changes.
- Distinctive: line 54
If Codex returns nothing useful or errors, say so plainly.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
codex-review-plan (Claude → Codex)
Send a Claude-authored plan to Codex for an adversarial review against the real codebase, then critically fold in the good points. Use it right after drafting a plan and before committing to it.
Mechanics (wrapper, prompt template, timeout, output rules) live in the
codex-bridge skill — read it first.
Workflow
- Resolve the plan. In priority order:
- The active plan-mode plan file in
~/.claude/plans/(the one for this session; if ambiguous, the most recently modified*.md). - Else a file path the user provided.
- Else pasted plan text → write to a temp file.
- The active plan-mode plan file in
- Resolve the target project dir (the codebase the plan is about). Infer
from the plan's content (a referenced project path); else use cwd.
--skip-git-repo-checkhandles non-repo research dirs. - Compose the prompt. Use the review template from
codex-bridge, with the plan text inside the<PLAN>…</PLAN>block. Write it to a temp prompt file. - Call Codex via the wrapper, with a long Bash timeout (~600000 ms):
For a quick pass, appendOUT=/tmp/codex-plan-review-$$.md bash ~/.claude/skills/codex-bridge/codex-exec.sh "$PROJECT_DIR" "$OUT" < "$PROMPT_FILE"-c model_reasoning_effort=high. - Summarize. Read
$OUT(kept in the temp file). Summarize the key points in ≤10 lines in chat. Don't paste the whole review. - Incorporate critically. Invoke
superpowers:receiving-code-reviewand follow it: evaluate each point on its merits, accept the valid ones, and push back — with reasons — on anything wrong or inapplicable. No performative agreement; verify against the code before changing the plan. - Revise + report. Update the plan file with the accepted changes. Report,
briefly: what changed, and what you rejected and why. Note the path to the
full review (
$OUT).
Notes
- Plan mode: this is meant to run during plan mode. The
codex execBash call will prompt for permission once; editing the plan file is already allowed. - Codex runs read-only — it cannot modify your files.
- If Codex returns nothing useful or errors, say so plainly; don't fabricate a review.
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.

