Plan Review Skill
Purpose
When the user runs
/plan-review {plan-file-path}
, start the "adversarial plan iteration" workflow:
I (Claude Code) ask Codex to perform a critical review of the specified plan.
I read the review produced by Codex and evaluate whether its suggestions are sound.
I revise the plan based on valid suggestions and write changes back to the original plan file.
If the review status is
NEEDS_REVISION
, I automatically ask Codex to review again.
Repeat until consensus is reached as
MOSTLY_GOOD
or
APPROVED
.
Usage
/plan-review plans/my-feature-plan.md
Session Reuse
After each Codex invocation, extract
session_id=xxx
from the script output and save it as the session ID for the current task. In later Codex calls for the same task, pass
--session CLAUDE.md
- User experience: interaction flow, error/loading states, i18n when relevant
- Security: authentication, authorization, data validation when relevant
Append the current review round to {review-file-path}, creating the file if it does not exist.
Separate rounds with --- and append new rounds at the end of the file. Use this format:
Round {N} — {YYYY-MM-DD}
Overall Assessment
{2-3 sentence overall assessment} Rating: {X}/10
Previous Round Tracking (R2+ only)
| # | Issue | Status | Notes |
|---|---|---|---|
| ### Issues | |||
| #### Issue 1 ({severity}): | |||
| Location: | |||
| {issue description} | |||
| Suggestion: | |||
| ... (at least 10 issues) | |||
| ### Positive Aspects | |||
| - ... | |||
| ### Summary | |||
| {Top 3 key issues} | |||
| Consensus Status: NEEDS_REVISION / MOSTLY_GOOD / APPROVED | |||
| Key principle: be a critical reviewer, not a yes-man. Every issue must be specific enough that someone knows how to revise the plan. | |||
| When the review file is created for the first time, add this header at the top: | |||
| # | |||
| Plan Review: | |||
| ** | |||
| Plan File | |||
| ** | |||
| : | |||
| ** | |||
| Reviewer | |||
| ** | |||
| : Codex | |||
| Step 3: Read the Review and Revise the Plan | |||
| After Codex finishes, I read the latest review round in the review file: | |||
| Evaluate each issue | |||
| raised by Codex one by one. | |||
| Adopt valid suggestions | |||
| and revise the plan file. | |||
| If rejecting an unreasonable suggestion, optionally note the reason briefly in the plan. | |||
| Update the original plan file directly | |||
| instead of creating a new file. | |||
| Step 4: Decide Whether to Continue Iterating | |||
| Use the | |||
| Consensus Status | |||
| provided by Codex: | |||
| Status | |||
| My Action | |||
| NEEDS_REVISION | |||
| Revise the plan, then automatically ask Codex to review again and return to Step 2 | |||
| MOSTLY_GOOD | |||
| Revise the plan, then tell the user the plan is mostly mature and ask whether another review round is needed | |||
| APPROVED | |||
| Tell the user the plan has passed review and is ready for implementation | |||
| Step 5: Wrap Up | |||
| After the iteration is complete, report the following to the user: | |||
| How many review rounds were completed | |||
| Which major areas were improved | |||
| The final plan file path | |||
| The review log file path | |||
| File Convention | |||
| One review file per plan: | |||
| reviews/{topic}-review.md | |||
| {topic} | |||
| is the plan file name without | |||
| .md | |||
| Append all rounds to the same file and separate them with | |||
| --- | |||
| Example: | |||
| plans/auth-refactor.md | |||
| -> | |||
| reviews/auth-refactor-review.md |