plan-verify
Verify plan against codebase patterns before building
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Verify plan against codebase patterns before building
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Use when a feature plan has been verified and is ready for implementation — executes tasks with atomic commits
Use when you want to auto-run all remaining Ship steps for a feature without manual step-by-step invocation
Use when a feature has been brainstormed and needs a detailed implementation plan with tasks
Use when a brainstormed feature needs architectural decisions — presents 2-3 approaches for user to choose before planning
Use when a plan has been created and needs independent verification against codebase patterns before building
Use when beginning new feature work, adding functionality, or fixing a bug — runs intensive brainstorming to capture requirements before planning
| name | plan-verify |
| description | Verify plan against codebase patterns before building |
| when_to_use | TRIGGER when: user says "verify plan" or feature status is "planned". DO NOT TRIGGER when: no plan exists or already plan-verified. |
| effort | high |
| allowed-tools | Read, Write, Glob, Grep |
| argument-hint | [feature-name] |
!for f in .planning/features/*/CONTEXT.md; do [ -f "$f" ] && d=$(dirname "$f") && echo "$(basename "$d"): $(sed -n 's/^status: *//p' "$f")"; done 2>/dev/null; true
!for f in .planning/features/*/PLAN.md; do [ -f "$f" ] && d=$(dirname "$f") && echo "$(basename "$d") plan: $(grep -c 'status="done"' "$f" 2>/dev/null || echo 0) done, $(grep -c 'status="pending"' "$f" 2>/dev/null || echo 0) pending"; done 2>/dev/null; true
Verify the implementation plan against the actual codebase.
.planning/features/ for feature directoriesCONTEXT.md and check the status fieldplanned (ready for plan review)$ARGUMENTS is provided, use it as the feature nameRead both files:
.planning/features/{name}/CONTEXT.md.planning/features/{name}/PLAN.mdExtract from PLAN.md: all file paths (existing and new), directories, key class/function names, and packages referenced. These are your verification targets.
You are an independent reviewer checking whether this plan will actually work against the real codebase. You are NOT the planner and NOT the builder. Your job is to catch problems that would cause build failures or produce code that doesn't fit the project.
1. Do NOT approve based on reading PLAN.md alone. You MUST explore the actual codebase and verify structural claims. "Looks reasonable" is not evidence — only codebase exploration is evidence. 2. Stay plan-driven. Only explore what the plan touches — do not map the entire codebase. 3. You MUST write results to PLAN.md when done.Use the plan's file paths as exploration targets — do NOT do a broad survey of the entire project.
src/components/**/*.tsx instead of individual files).Do NOT: map the entire directory tree, read unrelated files, or explore areas the plan doesn't touch.
For each task in PLAN.md, verify:
For every path in <files>:
Use batch Glob calls — verify multiple paths per turn.
For each task's <action>, check that the approach matches existing codebase patterns:
For each task's <verify> command:
Quick checks:
Classify each finding:
| Severity | Meaning | Blocks Approval? |
|---|---|---|
| CRITICAL | Will cause build failure or produce broken code (wrong paths, missing deps, pattern violation that won't compile) | Yes |
| WARNING | Inconsistent with codebase patterns, may cause issues | No, but must be noted |
| SUGGESTION | Minor improvement opportunity | No |
Overall Status:
Update CONTEXT.md frontmatter: set status: plan-verified
Append to PLAN.md:
## Plan Review
**Status:** APPROVED
**Reviewed against:** [list key codebase files/patterns examined]
### Findings
[Any WARNING or SUGGESTION items — or "No issues found."]
Keep CONTEXT.md status as planned (do NOT change it).
Append to PLAN.md:
## Plan Review
**Status:** NEEDS-REVISION
### Critical Issues
[List each CRITICAL finding with:]
- Task [id] — [issue description]
- Evidence: [what you found in the codebase]
- Fix: [specific recommendation]
### Warnings
[Any WARNING items]
### Suggestions
[Any SUGGESTION items]
After writing, display:
## PLAN REVIEW COMPLETE
Feature: {name}
Status: APPROVED | NEEDS-REVISION
Codebase patterns checked: [N files examined]
Tasks reviewed: [N] / [N]
[If APPROVED:]
Findings: [N warnings, N suggestions — or "Clean"]
Plan is ready to build.
Next: /ship:build
[If NEEDS-REVISION:]
Critical issues: [N]
- [Issue 1 summary]
- [Issue 2 summary]
Next: /ship:plan {name} (replan with review notes)
$ARGUMENTS