Skip to content
codex-validate-plan logo

Codex Plan Validation (via claude-delegator)

codex-validate-plan

Validate architecture/plan quality via claude-delegator (Plan Reviewer expert). Use after writing context.md for complex feature/refactor work.

SKILL.md

Full skill instructions

Codex Plan Validation (via claude-delegator)

When to use

  • complexity: complex
  • taskType: feature or refactor
  • context.md exists or was updated

Procedure

Step 1: Check MCP Availability (CRITICAL - Do This First)

Before any validation work, verify Codex MCP is available:

// Try a simple MCP call to check availability
try {
  mcp__codex__codex({
    prompt: "ping",
    sandbox: "read-only",
    cwd: process.cwd()
  })
  // If successful, MCP is available
} catch (error) {
  // MCP not available - proceed with Claude fallback
}

MCP Unavailable Conditions:

  • Tool not found / not registered
  • "quota exceeded", "rate limit", "API error", "unavailable"
  • Connection timeout
  • Any error response

Step 2-6: Validation Process

  1. Collect the path to context.md (default: {tasksRoot}/​{feature-name}/​context.md) and read its content

  2. Build delegation prompt using the 7-section format below

  3. If MCP is available (from Step 1):

    • Call mcp__codex__codex (include Plan Reviewer instructions in developer-instructions)
    • If successful, proceed to step 6
  4. If MCP is unavailable (from Step 1):

    • Claude directly performs the plan review following the Plan Reviewer guidelines below
    • Add note: "codex-fallback: Claude performed review directly (MCP unavailable)"
    • Follow the same MUST DO / MUST NOT DO criteria
  5. Summarize critical/​warning/​suggestion items and decide pass/​fail

  6. Per .claude/​docs/​guidelines/​document-memory-policy.md: Store full review in archives/​review-v{n}.md, keep only short summary in context.md

Delegation Format

Use the 7-section format:

TASK: Review implementation plan at [context.md path] for completeness and clarity.

EXPECTED OUTCOME: APPROVE/​REJECT verdict with specific feedback.

CONTEXT:
- Plan to review: [content of context.md]
- Goals: [what the plan is trying to achieve]
- Constraints: [project constraints]

MUST DO:
- Evaluate all 4 criteria (Clarity, Verifiability, Completeness, Big Picture)
- Simulate actually doing the work to find gaps
- Provide specific improvements if rejecting

MUST NOT DO:
- Rubber-stamp without real analysis
- Provide vague feedback
- Approve plans with critical gaps

OUTPUT FORMAT:
[APPROVE / REJECT]
Justification: [explanation]
Summary: [4-criteria assessment]
[If REJECT: Top 3-5 improvements needed]

Tool Call (When MCP Available)

mcp__codex__codex({
  prompt: "[7-section delegation prompt with full context]",
  "developer-instructions": "[contents of plan-reviewer.md]",
  sandbox: "read-only",  // Advisory mode
  cwd: "[current working directory]"
})

Claude Fallback (When MCP Unavailable)

When MCP is not available, Claude performs the validation directly:

  1. Apply the same 7-section format as a self-review checklist
  2. Evaluate all 4 criteria:
    • Clarity: Are the goals and steps clearly defined?
    • Verifiability: Can success be measured objectively?
    • Completeness: Are all necessary steps included?
    • Big Picture: Does it align with overall architecture?
  3. Output in the same format: APPROVE/​REJECT with justification
  4. Add note indicating fallback mode was used

Output (patch)

notes:
  - "codex-plan: [APPROVE/​REJECT], warnings=[count]"
  # If fallback was used:
  - "codex-fallback: Claude performed review directly (MCP unavailable)"

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View