From development-skills
Review an implementation plan with OpenAI Codex before coding, getting a second opinion on assumptions and approach.
How this skill is triggered — by the user, by Claude, or both
Slash command
/development-skills:codex-plan-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Ask Codex to review an implementation plan against the actual codebase before implementation begins.
Ask Codex to review an implementation plan against the actual codebase before implementation begins.
Use the XML-block template below. Each block is optional — drop any block that does not fit the task, but keep the order stable so Codex sees a predictable structure.
Gather first:
Template:
<task>
Review the following implementation plan against this repository.
Read the referenced source files before evaluating.
Assess whether the plan will correctly achieve its stated goal without breaking existing behavior.
Plan:
<PLAN_TEXT>
Files to inspect first:
<FILE_LIST>
Specific questions:
<EVALUATION_QUESTIONS>
</task>
<grounding_rules>
Ground every concern in code you have actually read from this repository.
Do not invent file names, function signatures, or behaviors.
If a point is an inference rather than a verified fact, label it as such.
</grounding_rules>
<structured_output_contract>
Return:
1. verdict — one of: approve / approve with conditions / reject
2. findings ordered by severity, each tagged [P1/P2/P3] with file:line where applicable
3. supporting evidence for each finding (quoted code or exact file reference)
4. open questions you could not resolve from the repository alone
Keep the output compact. Do not restate the plan.
</structured_output_contract>
<dig_deeper_nudge>
Beyond the first obvious concern, check for:
- format or type mismatch between producers and consumers the plan touches
- branching logic that conflates distinct inputs or failure modes
- missing validation at API or module boundaries
- inconsistency between the plan and existing patterns in this codebase
- **dead-on-arrival public surface**: for each new parameter / field / method the plan adds, identify whether any current code path BRANCHES on its value (matches / reorders / validates / dispatches). Tautological consumers — `Clone`, accessors that just expose the field, constructors that just store it — do not count. If no branching consumer exists, the symbol's contract depends on consumer code that is not yet aligned, and the plan should either bring that consumer into scope or defer the symbol. This is the "contract closure" axis: a plan can be locally closed (mechanism fits) yet contract-empty (semantic meaning depends on outside).
</dig_deeper_nudge>
<missing_context_gating>
Do not guess project constraints, YAGNI scope, or stakeholder intent.
If a finding depends on such context, list it under open questions instead of findings.
</missing_context_gating>
<verification_loop>
Before finalizing, verify that each finding is material (would cause incorrect behavior or a real regression) and anchored in code you actually read.
Drop speculative or stylistic nits.
</verification_loop>
Block selection rationale:
grounding_rules: plan review drifts into invented code otherwisestructured_output_contract: forces a shape that maps directly to the triage step in §3dig_deeper_nudge: without it Codex tends to stop at the first plausible concernmissing_context_gating: redirects scope/YAGNI speculation into open questions instead of findingsverification_loop: trims speculative nits before they reach the useraction_safety: plan review is read-onlycompleteness_contract: one pass is sufficient; the plan is smallcodex exec "<prompt>" < /dev/null -o /tmp/codex-plan-review.md
Important:
< /dev/null to prevent stdin hanging in background/automated contexts-o to capture output to a file for reliable retrievalCodex evaluates the plan against the code it reads, but lacks project context (design decisions, scope constraints, YAGNI boundaries). Apply the same triage discipline as /codex-review:
Present the triage to the user, not the raw output.
If actionable findings exist, revise the plan in the conversation and re-present to the user for approval. Re-run Codex on the revised plan only when the revision meaningfully invalidates the prior verdict — e.g., switching to an alternative approach, invariant promotion (a symptom-level finding turned out to require an invariant-level rewrite), or scope shift. This is the triage author's call: Codex returns incremental judgments on the plan as presented, not fundamental-vs-incremental classifications of subsequent revisions, so its verdict label is not a proxy for this decision. Pure in-scope condition incorporation or a single P2 / P3 patch does not warrant re-running. See research Step 3.5 for a caller-imposed loop using this trigger.
dig_deeper_nudge extension above) dead-on-arrival public surface — symbols whose contracts have no current branching consumerThe user makes these calls, not Codex. The research Step 3.4 (Contract reachability check) is the upstream check that catches contract-closure failures via mechanical grep on the plan body itself; codex-plan-review's extension above provides a redundant code-side check, but it is not a substitute for Step 3.4.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub ultimatile/development-skills --plugin development-skills