OpenParable
Skip to content
← Back to skills

Codex Validate Plan

Testing & Quality
codex-validate-plan

Codex Validate Plan is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/quality/codex-validate-plan/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/codex-validate-plan, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Codex Plan Validation (via claude-delegator)

When to use

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

Procedure

  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. Try Codex first:
    • Call mcp__codex__codex (include Plan Reviewer instructions in developer-instructions)
    • If successful, proceed to step 5
  4. Fallback to Claude (if Codex unavailable):
    • Error conditions: "quota exceeded", "rate limit", "API error", "unavailable"
    • Claude directly performs the plan review following the Plan Reviewer guidelines below
    • Add note: "codex-fallback: Claude performed review directly"
  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

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]"
})

Output (patch)

notes:
  - "codex-plan: [APPROVE/REJECT], warnings=[count]"