← ClaudeAtlas

planlisted

Send the current plan to OpenAI Codex CLI for iterative review. Claude and Codex go back-and-forth until Codex approves the plan.
LuD1161/codex-review-skill · ★ 7 · AI & Automation · score 64
Install: claude install-skill LuD1161/codex-review-skill
# Codex Plan Review (Iterative) 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. --- ## When to Invoke - When the user runs `/codex-review:plan` during or after plan mode - When the user wants a second opinion on a plan from a different model ## Agent Instructions When invoked, perform the following iterative review loop: ### Step 1: Generate Session ID Generate a unique ID to avoid conflicts with other concurrent Claude Code sessions: ```bash REVIEW_ID=$(uuidgen | tr '[:upper:]' '[:lower:]' | head -c 8) ``` Use this for all temp file paths: `/tmp/claude-plan-${REVIEW_ID}.md` and `/tmp/codex-review-${REVIEW_ID}.md`. ### Step 2: Capture the Plan 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). 1. Write the full plan content to `/tmp/claude-plan-${REVIEW_ID}.md` 2. If there is no plan in the current context, ask the user what they want reviewed ### Step 3: Initial Review (Round 1) Run Codex CLI in non-interactive mode to review the plan: ```bash codex exec \ -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