원클릭으로
codex-review
Send the current plan to OpenAI Codex CLI for iterative review. Claude and Codex go back-and-forth until Codex approves the plan.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Send the current plan to OpenAI Codex CLI for iterative review. Claude and Codex go back-and-forth until Codex approves the plan.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | codex-review |
| description | Send the current plan to OpenAI Codex CLI for iterative review. Claude and Codex go back-and-forth until Codex approves the plan. |
| user_invocable | true |
Send the current implementation plan to OpenAI Codex for review. Claude revises the plan based on Codex's feedback and re-submits until Codex approves. Max 5 rounds.
/codex-review during or after plan modeWhen invoked, perform the following iterative review loop:
Generate a unique ID to avoid conflicts with other concurrent Claude Code sessions:
REVIEW_ID=$(tr -dc 'a-z0-9' </dev/urandom | head -c 8)
Use this for all temp file paths: /tmp/claude-plan-${REVIEW_ID}.md and /tmp/codex-review-${REVIEW_ID}.md.
Write the current plan to the session-scoped temporary file. The plan is whatever implementation plan exists in the current conversation context (from plan mode, or a plan discussed in chat).
/tmp/claude-plan-${REVIEW_ID}.mdRun Codex CLI in non-interactive mode to review the plan:
codex exec \
-m gpt-5.3-codex \
-s read-only \
-o /tmp/codex-review-${REVIEW_ID}.md \
"Review the implementation plan in /tmp/claude-plan-${REVIEW_ID}.md. Focus on:
1. Correctness - Will this plan achieve the stated goals?
2. Risks - What could go wrong? Edge cases? Data loss?
3. Missing steps - Is anything forgotten?
4. Alternatives - Is there a simpler or better approach?
5. Security - Any security concerns?
Be specific and actionable. If the plan is solid and ready to implement, end your review with exactly: VERDICT: APPROVED
If changes are needed, end with exactly: VERDICT: REVISE"
Capture the Codex session ID from the output line that says session id: <uuid>. Store this as CODEX_SESSION_ID. You MUST use this exact ID to resume in subsequent rounds (do NOT use --last, which would grab the wrong session if multiple reviews are running concurrently).
Notes:
-m gpt-5.3-codex as the default model (configured in ~/.codex/config.toml). If the user specifies a different model (e.g., /codex-review o4-mini), use that instead.-s read-only so Codex can read the codebase for context but cannot modify anything.-o to capture the output to a file for reliable reading./tmp/codex-review-${REVIEW_ID}.md## Codex Review — Round N (model: gpt-5.3-codex)
[Codex's feedback here]
Based on Codex's feedback:
/tmp/claude-plan-${REVIEW_ID}.md with the revised version.### Revisions (Round N)
- [What was changed and why, one bullet per Codex issue addressed]
Resume the existing Codex session so it has full context of the prior review:
codex exec resume ${CODEX_SESSION_ID} \
"I've revised the plan based on your feedback. The updated plan is in /tmp/claude-plan-${REVIEW_ID}.md.
Here's what I changed:
[List the specific changes made]
Please re-review. If the plan is now solid and ready to implement, end with: VERDICT: APPROVED
If more changes are needed, end with: VERDICT: REVISE" 2>&1 | tail -80
Note: codex exec resume does NOT support -o flag. Capture output from stdout instead (pipe through tail to skip startup lines). Read the Codex response directly from the command output.
Then go back to Step 4 (Read Review & Check Verdict).
Important: If resume ${CODEX_SESSION_ID} fails (e.g., session expired), fall back to a fresh codex exec call with context about the prior rounds included in the prompt.
Once approved (or max rounds reached):
## Codex Review — Final (model: gpt-5.3-codex)
**Status:** Approved after N round(s)
[Final Codex feedback / approval message]
---
**The plan has been reviewed and approved by Codex. Ready for your approval to implement.**
If max rounds were reached without approval:
## Codex Review — Final (model: gpt-5.3-codex)
**Status:** Max rounds (5) reached — not fully approved
**Remaining concerns:**
[List unresolved issues from last review]
---
**Codex still has concerns. Review the remaining items and decide whether to proceed or continue refining.**
Remove the session-scoped temporary files:
rm -f /tmp/claude-plan-${REVIEW_ID}.md /tmp/codex-review-${REVIEW_ID}.md
Round 1: Claude sends plan → Codex reviews → REVISE?
Round 2: Claude revises → Codex re-reviews (resume session) → REVISE?
Round 3: Claude revises → Codex re-reviews (resume session) → APPROVED
Max 5 rounds. Each round preserves Codex's conversation context via session resume.
gpt-5.3-codex. Accept model override from the user's arguments (e.g., /codex-review o4-mini)npm install -g @openai/codex