[IMPORTANT] Use TaskCreate to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
Prerequisites: MUST READ .claude/skills/shared/understand-code-first-protocol.md before executing.
.claude/skills/shared/double-round-trip-review-protocol.md — Mandatory two-round review enforcement
Critical Purpose: Ensure quality — no flaws, no bugs, no missing updates, no stale content. Verify both code AND documentation.
External Memory: For complex or lengthy work (research, analysis, scan, review), write intermediate findings and final results to a report file in plans/reports/ — prevents context loss and serves as deliverable.
Evidence Gate: MANDATORY IMPORTANT MUST — every claim, finding, and recommendation requires file:line proof or traced evidence with confidence percentage (>80% to act, <80% must verify first).
OOP & DRY Enforcement: MANDATORY IMPORTANT MUST — flag duplicated patterns that should be extracted to a base class, generic, or helper. Classes in the same group or suffix (ex *Entity, *Dto, *Service, etc...) MUST inherit a common base (even if empty now — enables future shared logic and child overrides). Verify project has code linting/analyzer configured for the stack.
Quick Summary
Goal: Auto-review implementation plans for validity, correctness, and best practices before proceeding (AI self-review, not user interview).
Workflow:
- Resolve Plan — Use $ARGUMENTS path or active plan from
## Plan Context
- Read Files — plan.md + all phase-*.md files, extract requirements/steps/files/risks
- Evaluate Checklist — Validity (summary, requirements, steps, files), Correctness (specific, paths, no conflicts), Best Practices (YAGNI/KISS/DRY, architecture), Completeness (risks, testing, success, security)
- Score & Classify — PASS (all Required + ≥50% Recommended), WARN (all Required + <50% Recommended), FAIL (any Required fails)
- Output Result — Status, checks passed, issues, recommendations, verdict
Key Rules:
- PASS: Proceed to implementation
- WARN: Proceed with caution, note gaps
- FAIL: STOP - must fix before proceeding, list specific issues
- Constructive: Focus on implementation-blocking issues, not pedantic details
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Your mission
Perform automatic self-review of an implementation plan to ensure it's valid, correct, follows best practices, and identify anything needing fixes before proceeding.
Key distinction: This is AI self-review (automatic), NOT user interview like /plan-validate.
Plan Resolution
- If
$ARGUMENTS provided -> Use that path
- Else check
## Plan Context section -> Use active plan path
- If no plan found -> Error: "No plan to review. Run /plan first."
Workflow
Step 1: Read Plan Files
Read the plan directory:
plan.md - Overview, phases list, frontmatter
phase-*.md - All phase files
- Extract: requirements, implementation steps, file listings, risks
Step 2: Evaluate Against Checklist
Validity (Required - all must pass)
Correctness (Required - all must pass)
Best Practices (Required - all must pass)
Completeness (Recommended - ≥50% should pass)
Step 3: Score and Classify
| Status |
Criteria |
Action |
| PASS |
All Required pass, ≥50% Recommended |
Proceed to implementation |
| WARN |
All Required pass, <50% Recommended |
Proceed with caution, note gaps |
| FAIL |
Any Required check fails |
STOP - must fix before proceeding |
Step 4: Output Result
## Plan Review Result
**Status:** PASS | WARN | FAIL
**Reviewed:** {plan-path}
**Date:** {current-date}
### Summary
{1-2 sentence summary of plan quality}
### Checks Passed ({X}/{Y})
#### Required ({X}/{Y})
- ✅ Check 1
- ✅ Check 2
- ❌ Check 3 (if failed)
#### Recommended ({X}/{Y})
- ✅ Check 1
- ⚠️ Check 2 (missing)
### Issues Found
- ❌ FAIL: {critical issue requiring fix}
- ⚠️ WARN: {minor issue, can proceed}
### Recommendations
1. {specific fix 1}
2. {specific fix 2}
### Verdict
{PROCEED | REVISE_FIRST | BLOCKED}
Round 2: Focused Re-Review (MANDATORY)
Protocol: .claude/skills/shared/double-round-trip-review-protocol.md
After completing Round 1 checklist evaluation, execute a second full review round:
- Re-read the Round 1 verdict and checklist results
- Re-evaluate ALL checklist items — do NOT rely on Round 1 memory
- Challenge Round 1 PASS items: "Is this really PASS? Did I verify with evidence?"
- Focus on what Round 1 typically misses:
- Implicit assumptions that weren't validated
- Missing acceptance criteria coverage
- Edge cases not addressed in the artifact
- Cross-references that weren't verified
- Update verdict if Round 2 found new issues
- Final verdict must incorporate findings from BOTH rounds
Next Steps
- If PASS: Announce "Plan review complete. Proceeding with next workflow step."
- If WARN: Announce "Plan review complete with warnings. Proceeding - consider addressing gaps."
- If FAIL: List specific issues. Do NOT proceed. Ask user to fix or regenerate plan.
IMPORTANT Task Planning Notes (MUST FOLLOW)
- Always plan and break work into many small todo tasks using
TaskCreate
- Always add a final review todo task to verify work quality and identify fixes/enhancements
- MANDATORY FINAL TASKS: After creating all planning todo tasks, ALWAYS add these two final tasks:
- Task: "Run /plan-validate" — Trigger
/plan-validate skill to interview the user with critical questions and validate plan assumptions
- Task: "Run /plan-review" — Trigger
/plan-review skill to auto-review plan for validity, correctness, and best practices
Important Notes
- Be constructive, not pedantic - focus on issues that would cause implementation problems
- WARN is acceptable for missing optional sections
- FAIL only for genuinely missing required content
- If plan is simple and valid, quick review is fine
Skill Interconnection (MANDATORY — ask user)
MANDATORY IMPORTANT MUST after completing this skill, use AskUserQuestion to recommend:
- "/plan-validate (Recommended)" — Interview user to confirm plan assumptions
- "/cook" or "/code" — If plan is approved and ready for implementation
- "Skip, continue manually" — user decides
Closing Reminders
MANDATORY IMPORTANT MUST break work into small todo tasks using TaskCreate BEFORE starting.
MANDATORY IMPORTANT MUST validate decisions with user via AskUserQuestion — never auto-decide.
MANDATORY IMPORTANT MUST add a final review todo task to verify work quality.
1---2name: plan-review-63description: [Planning] Auto-review plan for validity, correctness, and best practices before implementation4---5
6> **[IMPORTANT]** Use `TaskCreate` to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
7
8**Prerequisites:** **MUST READ** `.claude/skills/shared/understand-code-first-protocol.md` before executing.
9
10- `.claude/skills/shared/double-round-trip-review-protocol.md` — Mandatory two-round review enforcement
11
12> **Critical Purpose:** Ensure quality — no flaws, no bugs, no missing updates, no stale content. Verify both code AND documentation.
13
14> **External Memory:** For complex or lengthy work (research, analysis, scan, review), write intermediate findings and final results to a report file in `plans/reports/` — prevents context loss and serves as deliverable.
15
16> **Evidence Gate:** MANDATORY IMPORTANT MUST — every claim, finding, and recommendation requires `file:line` proof or traced evidence with confidence percentage (>80% to act, <80% must verify first).
17
18> **OOP & DRY Enforcement:** MANDATORY IMPORTANT MUST — flag duplicated patterns that should be extracted to a base class, generic, or helper. Classes in the same group or suffix (ex *Entity, *Dto, \*Service, etc...) MUST inherit a common base (even if empty now — enables future shared logic and child overrides). Verify project has code linting/analyzer configured for the stack.
19
20## Quick Summary
21
22**Goal:** Auto-review implementation plans for validity, correctness, and best practices before proceeding (AI self-review, not user interview).
23
24**Workflow:**
25
261. **Resolve Plan** — Use $ARGUMENTS path or active plan from `## Plan Context`
272. **Read Files** — plan.md + all phase-\*.md files, extract requirements/steps/files/risks
283. **Evaluate Checklist** — Validity (summary, requirements, steps, files), Correctness (specific, paths, no conflicts), Best Practices (YAGNI/KISS/DRY, architecture), Completeness (risks, testing, success, security)
294. **Score & Classify** — PASS (all Required + ≥50% Recommended), WARN (all Required + <50% Recommended), FAIL (any Required fails)
305. **Output Result** — Status, checks passed, issues, recommendations, verdict
31
32**Key Rules:**
33
34- **PASS**: Proceed to implementation
35- **WARN**: Proceed with caution, note gaps
36- **FAIL**: STOP - must fix before proceeding, list specific issues
37- **Constructive**: Focus on implementation-blocking issues, not pedantic details
38
39**Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).**
40
41## Your mission
42
43Perform automatic self-review of an implementation plan to ensure it's valid, correct, follows best practices, and identify anything needing fixes before proceeding.
44
45**Key distinction**: This is AI self-review (automatic), NOT user interview like `/plan-validate`.
46
47## Plan Resolution
48
491. If `$ARGUMENTS` provided -> Use that path
502. Else check `## Plan Context` section -> Use active plan path
513. If no plan found -> Error: "No plan to review. Run /plan first."
52
53## Workflow
54
55### Step 1: Read Plan Files
56
57Read the plan directory:
58
59- `plan.md` - Overview, phases list, frontmatter
60- `phase-*.md` - All phase files
61- Extract: requirements, implementation steps, file listings, risks
62
63### Step 2: Evaluate Against Checklist
64
65#### Validity (Required - all must pass)
66
67- [ ] Has executive summary (clear 1-2 sentence description)
68- [ ] Has defined requirements section
69- [ ] Has implementation steps (actionable tasks)
70- [ ] Has files to create/modify listing
71
72#### Correctness (Required - all must pass)
73
74- [ ] Steps are specific and actionable (not vague)
75- [ ] File paths follow project patterns
76- [ ] No conflicting or duplicate steps
77- [ ] Dependencies between steps are clear
78- [ ] **New Tech/Lib Gate:** If plan introduces new packages/libraries/frameworks not in the project, verify alternatives were evaluated (top 3 compared) and user confirmed the choice. FAIL if new tech is added without evaluation.
79
80#### Best Practices (Required - all must pass)
81
82- [ ] YAGNI: No unnecessary features or over-engineering
83- [ ] KISS: Simplest viable solution chosen
84- [ ] DRY: No planned duplication of logic
85- [ ] Architecture: Follows project patterns from `.claude/docs/`
86
87#### Completeness (Recommended - ≥50% should pass)
88
89- [ ] Risk assessment present with mitigations
90- [ ] Testing strategy defined
91- [ ] Success criteria per phase
92- [ ] Security considerations addressed
93
94### Step 3: Score and Classify
95
96| Status | Criteria | Action |
97| -------- | ----------------------------------- | --------------------------------- |
98| **PASS** | All Required pass, ≥50% Recommended | Proceed to implementation |
99| **WARN** | All Required pass, <50% Recommended | Proceed with caution, note gaps |
100| **FAIL** | Any Required check fails | STOP - must fix before proceeding |
101
102### Step 4: Output Result
103
104```markdown
105## Plan Review Result
106
107**Status:** PASS | WARN | FAIL
108**Reviewed:** {plan-path}
109**Date:** {current-date}
110
111### Summary
112
113{1-2 sentence summary of plan quality}
114
115### Checks Passed ({X}/{Y})
116
117#### Required ({X}/{Y})
118
119- ✅ Check 1
120- ✅ Check 2
121- ❌ Check 3 (if failed)
122
123#### Recommended ({X}/{Y})
124
125- ✅ Check 1
126- ⚠️ Check 2 (missing)
127
128### Issues Found
129
130- ❌ FAIL: {critical issue requiring fix}
131- ⚠️ WARN: {minor issue, can proceed}
132
133### Recommendations
134
1351. {specific fix 1}
1362. {specific fix 2}
137
138### Verdict
139
140{PROCEED | REVISE_FIRST | BLOCKED}
141```
142
143## Round 2: Focused Re-Review (MANDATORY)
144
145> **Protocol:** `.claude/skills/shared/double-round-trip-review-protocol.md`
146
147After completing Round 1 checklist evaluation, execute a **second full review round**:
148
1491. **Re-read** the Round 1 verdict and checklist results
1502. **Re-evaluate** ALL checklist items — do NOT rely on Round 1 memory
1513. **Challenge** Round 1 PASS items: "Is this really PASS? Did I verify with evidence?"
1524. **Focus on** what Round 1 typically misses:
153 - Implicit assumptions that weren't validated
154 - Missing acceptance criteria coverage
155 - Edge cases not addressed in the artifact
156 - Cross-references that weren't verified
1575. **Update verdict** if Round 2 found new issues
1586. **Final verdict** must incorporate findings from BOTH rounds
159
160## Next Steps
161
162- **If PASS**: Announce "Plan review complete. Proceeding with next workflow step."
163- **If WARN**: Announce "Plan review complete with warnings. Proceeding - consider addressing gaps."
164- **If FAIL**: List specific issues. Do NOT proceed. Ask user to fix or regenerate plan.
165
166## **IMPORTANT Task Planning Notes (MUST FOLLOW)**
167
168- Always plan and break work into many small todo tasks using `TaskCreate`
169- Always add a final review todo task to verify work quality and identify fixes/enhancements
170- **MANDATORY FINAL TASKS:** After creating all planning todo tasks, ALWAYS add these two final tasks:
171 1. **Task: "Run /plan-validate"** — Trigger `/plan-validate` skill to interview the user with critical questions and validate plan assumptions
172 2. **Task: "Run /plan-review"** — Trigger `/plan-review` skill to auto-review plan for validity, correctness, and best practices
173
174## Important Notes
175
176- Be constructive, not pedantic - focus on issues that would cause implementation problems
177- WARN is acceptable for missing optional sections
178- FAIL only for genuinely missing required content
179- If plan is simple and valid, quick review is fine
180
181---
182
183## Skill Interconnection (MANDATORY — ask user)
184
185**MANDATORY IMPORTANT MUST** after completing this skill, use `AskUserQuestion` to recommend:
186
187- **"/plan-validate (Recommended)"** — Interview user to confirm plan assumptions
188- **"/cook" or "/code"** — If plan is approved and ready for implementation
189- **"Skip, continue manually"** — user decides
190
191## Closing Reminders
192
193**MANDATORY IMPORTANT MUST** break work into small todo tasks using `TaskCreate` BEFORE starting.
194**MANDATORY IMPORTANT MUST** validate decisions with user via `AskUserQuestion` — never auto-decide.
195**MANDATORY IMPORTANT MUST** add a final review todo task to verify work quality.