codex-validate-plan
Validate architecture/plan quality via claude-delegator (Plan Reviewer expert). Use after writing context.md for complex feature/refactor work.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Codex Plan Validation (via claude-delegator)
When to use
-
complexity:complex -
taskType:featureorrefactor -
context.mdexists or was updated
Procedure
- Collect the path to context.md (default:
{tasksRoot}/{feature-name}/context.md) and read its content - Build delegation prompt using the 7-section format below
-
Try Codex first:
- Call
mcp__codex__codex(include Plan Reviewer instructions in developer-instructions) - If successful, proceed to step 5
- Call
-
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"
- Summarize critical/warning/suggestion items and decide pass/fail
-
Per
.claude/docs/guidelines/document-memory-policy.md: Store full review inarchives/review-v{n}.md, keep only short summary incontext.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]"
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!