thanh-kit 2.5.3 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/package.json +1 -1
  2. package/templates/.env.example +100 -0
  3. package/templates/commands/bootstrap/auto/fast.md +111 -0
  4. package/templates/commands/bootstrap/auto/parallel.md +66 -0
  5. package/templates/commands/bootstrap/auto.md +115 -0
  6. package/templates/commands/bootstrap.md +137 -0
  7. package/templates/commands/code/auto.md +203 -0
  8. package/templates/commands/code/no-test.md +174 -0
  9. package/templates/commands/code/parallel.md +100 -0
  10. package/templates/commands/code.md +205 -0
  11. package/templates/commands/content/cro.md +43 -0
  12. package/templates/commands/content/enhance.md +14 -0
  13. package/templates/commands/content/fast.md +13 -0
  14. package/templates/commands/content/good.md +16 -0
  15. package/templates/commands/cook/auto/fast.md +26 -0
  16. package/templates/commands/cook/auto/parallel.md +49 -0
  17. package/templates/commands/cook/auto.md +15 -0
  18. package/templates/commands/cook.md +105 -0
  19. package/templates/commands/debug.md +13 -0
  20. package/templates/commands/design/3d.md +83 -0
  21. package/templates/commands/design/describe.md +23 -0
  22. package/templates/commands/design/fast.md +31 -0
  23. package/templates/commands/design/good.md +35 -0
  24. package/templates/commands/design/screenshot.md +34 -0
  25. package/templates/commands/design/video.md +34 -0
  26. package/templates/commands/fix/ci.md +17 -0
  27. package/templates/commands/fix/fast.md +19 -0
  28. package/templates/commands/fix/hard.md +39 -0
  29. package/templates/commands/fix/logs.md +26 -0
  30. package/templates/commands/fix/parallel.md +54 -0
  31. package/templates/commands/fix/test.md +20 -0
  32. package/templates/commands/fix/types.md +9 -0
  33. package/templates/commands/fix/ui.md +48 -0
  34. package/templates/commands/fix.md +43 -0
  35. package/templates/commands/plan/ci.md +33 -0
  36. package/templates/commands/plan/cro.md +69 -0
  37. package/templates/commands/plan/fast.md +82 -0
  38. package/templates/commands/plan/hard.md +108 -0
  39. package/templates/commands/plan/parallel.md +145 -0
  40. package/templates/commands/plan/two.md +45 -0
  41. package/templates/commands/plan.md +30 -0
  42. package/templates/commands/scout/ext.md +39 -0
  43. package/templates/commands/scout.md +28 -0
  44. package/templates/commands/skill/add.md +36 -0
  45. package/templates/commands/skill/create.md +29 -0
  46. package/templates/commands/skill/fix-logs.md +22 -0
  47. package/templates/commands/skill/optimize/auto.md +25 -0
  48. package/templates/commands/skill/optimize.md +34 -0
  49. package/templates/commands/skill/update.md +36 -0
  50. package/templates/skills/.env.example +1 -0
  51. package/templates/statusline.cjs +0 -0
  52. package/templates/statusline.sh +0 -0
  53. package/templates/AGENTS.md +0 -104
  54. package/templates/README.md +0 -241
  55. package/templates/command-archive/ask.md +0 -56
  56. package/templates/command-archive/ck-help.md +0 -129
  57. package/templates/command-archive/coding-level.md +0 -48
  58. package/templates/command-archive/docs/init.md +0 -38
  59. package/templates/command-archive/docs/summarize.md +0 -22
  60. package/templates/command-archive/docs/update.md +0 -76
  61. package/templates/command-archive/journal.md +0 -18
  62. package/templates/command-archive/kanban.md +0 -99
  63. package/templates/command-archive/plan/archive.md +0 -57
  64. package/templates/command-archive/plan/red-team.md +0 -200
  65. package/templates/command-archive/plan/validate.md +0 -188
  66. package/templates/command-archive/preview.md +0 -283
  67. package/templates/command-archive/review/codebase/parallel.md +0 -122
  68. package/templates/command-archive/review/codebase.md +0 -49
  69. package/templates/command-archive/test/ui.md +0 -92
  70. package/templates/command-archive/test.md +0 -8
  71. package/templates/command-archive/use-mcp.md +0 -38
  72. package/templates/command-archive/watzup.md +0 -8
  73. package/templates/command-archive/worktree.md +0 -109
  74. package/templates/discord/README.md +0 -274
  75. package/templates/discord/config.json5 +0 -87
  76. package/templates/discord/skills/auto-intent-router/SKILL.md +0 -195
  77. package/templates/discord/skills/train-prompt/SKILL.md +0 -306
  78. package/templates/discord/start-bot.sh +0 -47
  79. package/templates/gemini/settings.json +0 -12
@@ -1,99 +0,0 @@
1
- ---
2
- description: 'AI agent orchestration board (Coming Soon)'
3
- arguments:
4
- - name: dir
5
- description: 'Plans directory (default: ./plans)'
6
- required: false
7
- ---
8
-
9
- Plans dashboard with progress tracking and timeline visualization.
10
-
11
- ## Usage
12
-
13
- - `/kanban` - View dashboard for ./plans directory
14
- - `/kanban plans/` - View dashboard for specific directory
15
- - `/kanban --stop` - Stop running server
16
-
17
- ## Features
18
-
19
- - Plan cards with progress bars
20
- - Phase status breakdown (completed, in-progress, pending)
21
- - Timeline/Gantt visualization
22
- - Activity heatmap
23
- - Issue and branch links
24
-
25
- ## Execution
26
-
27
- **IMPORTANT:** Run server as Claude Code background task using `run_in_background: true` with the Bash tool. This makes the server visible in `/tasks` and manageable via `KillShell`.
28
-
29
- The skill is located at `.claude/skills/plans-kanban/`.
30
-
31
- ### Stop Server
32
-
33
- If `--stop` flag is provided:
34
-
35
- ```bash
36
- node .claude/skills/plans-kanban/scripts/server.cjs --stop
37
- ```
38
-
39
- ### Start Server
40
-
41
- Otherwise, run the kanban server as CC background task with `--foreground` flag (keeps process alive for CC task management):
42
-
43
- ```bash
44
- # Determine plans directory
45
- INPUT_DIR="{{dir}}"
46
- PLANS_DIR="${INPUT_DIR:-./plans}"
47
-
48
- # Start kanban dashboard
49
- node .claude/skills/plans-kanban/scripts/server.cjs \
50
- --dir "$PLANS_DIR" \
51
- --host 0.0.0.0 \
52
- --open \
53
- --foreground
54
- ```
55
-
56
- **Critical:** When calling the Bash tool:
57
- - Set `run_in_background: true` to run as CC background task
58
- - Set `timeout: 300000` (5 minutes) to prevent premature termination
59
- - Parse JSON output and report URL to user
60
-
61
- Example Bash tool call:
62
- ```json
63
- {
64
- "command": "node .claude/skills/plans-kanban/scripts/server.cjs --dir \"./plans\" --host 0.0.0.0 --open --foreground",
65
- "run_in_background": true,
66
- "timeout": 300000,
67
- "description": "Start kanban server in background"
68
- }
69
- ```
70
-
71
- After starting, parse the JSON output (e.g., `{"success":true,"url":"http://localhost:3500/kanban?dir=...","networkUrl":"http://192.168.1.x:3500/kanban?dir=..."}`) and report:
72
- - Local URL for browser access
73
- - Network URL for remote device access (if available)
74
- - Inform user that server is now running as CC background task (visible in `/tasks`)
75
-
76
- **CRITICAL:** MUST display the FULL URL including path and query string. NEVER truncate to just `host:port`. The full URL is required for direct access.
77
-
78
- ## Future Plans
79
-
80
- The `/kanban` command will evolve into **VibeKanban-inspired** AI agent orchestration:
81
-
82
- ### Phase 1 (Current - MVP)
83
- - ✅ Task board with progress tracking
84
- - ✅ Visual representation of plans/tasks
85
- - ✅ Click to view plan details
86
-
87
- ### Phase 2 (Worktree Integration)
88
- - Create tasks → spawn git worktrees
89
- - Assign agents to tasks
90
- - Track agent progress per worktree
91
-
92
- ### Phase 3 (Full Orchestration)
93
- - Parallel agent execution monitoring
94
- - Code diff/review interface
95
- - PR creation workflow
96
- - Agent output streaming
97
- - Conflict detection
98
-
99
- Track progress: https://github.com/claudekit/claudekit-engineer/issues/189
@@ -1,57 +0,0 @@
1
- ---
2
- description: Write journal entries and archive specific plans or all plans
3
- argument-hint: [path-to-plan] (default: all plans)
4
- ---
5
-
6
- ## Your mission
7
- Read and analyze the plans, then write journal entries and archive specific plans or all plans in the `plans` directory.
8
-
9
- ## Plan Resolution
10
- 1. If `$ARGUMENTS` provided → Use that path
11
- 2. Else read all plans in the `plans` directory
12
-
13
- ## Workflow
14
-
15
- ### Step 1: Read Plan Files
16
-
17
- Read the plan directory:
18
- - `plan.md` - Overview and phases list
19
- - `phase-*.md` - 20 first lines of each phase file to understand the progress and status
20
-
21
- ### Step 2: Summarize the plans and document them with `/journal` slash command
22
- Use `AskUserQuestion` tool to ask if user wants to document journal entries or not.
23
- Skip this step if user selects "No".
24
- If user selects "Yes":
25
- - Analyze the information in previous steps.
26
- - Use Task tool with `subagent_type="journal-writer"` in parallel to document all plans.
27
- - Journal entries should be concise and focused on the most important events, key changes, impacts, and decisions.
28
- - Keep journal entries in the `./docs/journals/` directory.
29
-
30
- ### Step 3: Ask user to confirm the action before archiving these plans
31
- Use `AskUserQuestion` tool to ask if user wants to proceed with archiving these plans, select specific plans to archive or all completed plans only.
32
- Use `AskUserQuestion` tool to ask if user wants to delete permanently or move to the `./plans/archive` directory.
33
-
34
- ### Step 4: Archive the plans
35
- Start archiving the plans based on the user's choice:
36
- - Move the plans to the `./plans/archive` directory.
37
- - Delete the plans permanently: `rm -rf ./plans/<plan-1> ./plans/<plan-2> ...`
38
-
39
- ### Step 5: Ask if user wants to commit the changes
40
- Use `AskUserQuestion` tool to ask if user wants to commit the changes with these options:
41
- - Stage and commit the changes (Use `/git cm` slash command)
42
- - Commit and push the changes (Use `/git cp` slash command)
43
- - Nah, I'll do it later
44
-
45
- ## Output
46
- After archiving the plans, provide summary:
47
- - Number of plans archived
48
- - Number of plans deleted permanently
49
- - Table of plans that are archived or deleted (title, status, created date, LOC)
50
- - Table of journal entries that are created (title, status, created date, LOC)
51
-
52
- ## Important Notes
53
-
54
- **IMPORTANT:** Only ask questions about genuine decision points - don't manufacture artificial choices.
55
- **IMPORTANT:** Sacrifice grammar for the sake of concision when writing outputs.
56
- **IMPORTANT:** In the last summary report, list any unresolved questions at the end, if any.
57
- **IMPORTANT:** Ensure token efficiency while maintaining high quality.
@@ -1,200 +0,0 @@
1
- ---
2
- description: Adversarial plan review — spawn hostile reviewers to find flaws, security holes, false assumptions, failure modes
3
- argument-hint: [plan-path]
4
- ---
5
-
6
- ## Your Mission
7
-
8
- Adversarially review an implementation plan by spawning parallel reviewer subagents that try to tear it apart. Each reviewer adopts a different hostile lens. You then adjudicate findings, and the user decides which to apply.
9
-
10
- **Mindset:** Like hiring someone who hates the implementer to destroy their work.
11
-
12
- ## Plan Resolution
13
-
14
- 1. If `$ARGUMENTS` provided → Use that path
15
- 2. Else check `## Plan Context` section → Use active plan path
16
- 3. If no plan found → Ask user to specify path or run `/plan` first
17
-
18
- ## Workflow
19
-
20
- ### Step 1: Read Plan Files
21
-
22
- Read the plan directory:
23
- - `plan.md` — Overview, phases, dependencies
24
- - `phase-*.md` — All phase files (full content)
25
- - Note: architecture decisions, assumptions, scope, risks, implementation steps
26
-
27
- Collect all plan file paths for reviewers to read directly.
28
-
29
- ### Step 2: Scale Reviewer Count
30
-
31
- Scale reviewers based on plan complexity:
32
-
33
- | Phase Count | Reviewers | Lenses Selected |
34
- |-------------|-----------|-----------------|
35
- | 1-2 phases | 2 | Security Adversary + Assumption Destroyer |
36
- | 3-5 phases | 3 | + Failure Mode Analyst |
37
- | 6+ phases | 4 | + Scope & Complexity Critic (all lenses) |
38
-
39
- ### Step 3: Define Adversarial Lenses
40
-
41
- Available lenses (select per Step 2):
42
-
43
- | Reviewer | Lens | Focus |
44
- |----------|------|-------|
45
- | **Security Adversary** | Attacker mindset | Auth bypass, injection, data exposure, privilege escalation, supply chain, OWASP top 10 |
46
- | **Failure Mode Analyst** | Murphy's Law | Race conditions, data loss, cascading failures, recovery gaps, deployment risks, rollback holes |
47
- | **Assumption Destroyer** | Skeptic | Unstated dependencies, false "will work" claims, missing error paths, scale assumptions, integration assumptions |
48
- | **Scope & Complexity Critic** | YAGNI enforcer | Over-engineering, premature abstraction, unnecessary complexity, missing MVP cuts, scope creep, gold plating |
49
-
50
- ### Step 4: Spawn Reviewers
51
-
52
- Launch reviewers simultaneously via Task tool with `subagent_type: "code-reviewer"`.
53
-
54
- **Each reviewer prompt MUST include:**
55
- 1. This override: `"IGNORE your default code-review instructions. You are reviewing a PLAN DOCUMENT, not code. There is no code to lint, build, or test. Focus exclusively on plan quality."`
56
- 2. Their specific adversarial lens and persona
57
- 3. The plan file paths so they can read original files directly
58
- 4. These instructions:
59
-
60
- ```
61
- You are a hostile reviewer. Your job is to DESTROY this plan.
62
- Adopt the {LENS_NAME} perspective. Find every flaw you can.
63
-
64
- Rules:
65
- - Be specific: cite exact phase/section where the flaw lives
66
- - Be concrete: describe the failure scenario, not just "could be a problem"
67
- - Rate severity: Critical (blocks success) | High (significant risk) | Medium (notable concern)
68
- - Skip trivial observations (style, naming, formatting) — not worth reporting.
69
- - No praise. No "overall looks good". Only findings.
70
- - 5-10 findings per reviewer. Quality over quantity.
71
-
72
- Output format per finding:
73
- ## Finding {N}: {title}
74
- - **Severity:** Critical | High | Medium
75
- - **Location:** Phase {X}, section "{name}"
76
- - **Flaw:** {what's wrong}
77
- - **Failure scenario:** {concrete description of how this fails}
78
- - **Evidence:** {quote from plan or missing element}
79
- - **Suggested fix:** {brief recommendation}
80
- ```
81
-
82
- ### Step 5: Collect, Deduplicate & Cap
83
-
84
- After all reviewers complete:
85
- 1. Collect all findings
86
- 2. Deduplicate overlapping findings (merge if same root issue)
87
- 3. Sort by severity: Critical → High → Medium
88
- 4. **Cap at 15 findings:** Keep all Critical, top High by specificity, note dropped Medium count
89
-
90
- ### Step 6: Adjudicate
91
-
92
- For each finding, the main agent evaluates and proposes a disposition:
93
-
94
- | Disposition | Meaning |
95
- |-------------|---------|
96
- | **Accept** | Valid flaw — plan should be updated |
97
- | **Reject** | False positive, acceptable risk, or already handled |
98
-
99
- **Adjudication format:**
100
-
101
- ```markdown
102
- ## Red Team Findings
103
-
104
- ### Finding 1: {title} — {SEVERITY}
105
- **Reviewer:** {lens name}
106
- **Location:** {phase/section}
107
- **Flaw:** {description}
108
- **Failure scenario:** {concrete scenario}
109
- **Disposition:** Accept | Reject
110
- **Rationale:** {why accept/reject — be specific}
111
- ```
112
-
113
- ### Step 7: User Review
114
-
115
- Present the adjudicated findings to the user via `AskUserQuestion`:
116
-
117
- ```
118
- Review red-team findings. Which dispositions do you want to change?
119
- ```
120
-
121
- Options:
122
- - "Looks good, apply accepted findings" — proceed with current Accept/Reject
123
- - "Let me review each one" — walk through findings individually
124
- - "Reject all, plan is fine" — discard all findings
125
-
126
- **If "Let me review each one":**
127
- For each finding marked Accept, ask via `AskUserQuestion`:
128
- - "Apply this fix to the plan?"
129
- - Options: "Yes, apply" | "No, reject" | "Modify suggestion"
130
-
131
- **If "Modify suggestion":**
132
- Ask via `AskUserQuestion`: "Describe your modification to this finding's suggested fix:"
133
- (user provides free text via "Other" option)
134
- Record the modified suggestion in the finding's "Suggested fix" field.
135
- Set disposition to "Accept (modified)" in the Red Team Review table.
136
-
137
- ### Step 8: Apply to Plan
138
-
139
- For each accepted finding:
140
- 1. Locate the target phase file and section
141
- 2. Add the fix/note inline with a marker:
142
- ```markdown
143
- <!-- Red Team: {finding title} — {date} -->
144
- ```
145
- 3. If finding requires new content, add to the most relevant section
146
- 4. If finding requires removing/changing content, edit in place
147
-
148
- After applying, add a `## Red Team Review` section to `plan.md`.
149
- If section already exists (repeat run), **append** a new session block — never overwrite history.
150
-
151
- **Placement order in plan.md** (bottom of file):
152
- 1. `## Red Team Review` (before validation)
153
- 2. `## Validation Log` (after red-team)
154
-
155
- This ordering matches the execution sequence: red-team → validate.
156
-
157
- ```markdown
158
- ## Red Team Review
159
-
160
- ### Session — {YYYY-MM-DD}
161
- **Findings:** {total} ({accepted} accepted, {rejected} rejected)
162
- **Severity breakdown:** {N} Critical, {N} High, {N} Medium
163
-
164
- | # | Finding | Severity | Disposition | Applied To |
165
- |---|---------|----------|-------------|------------|
166
- | 1 | {title} | Critical | Accept | Phase 2 |
167
- | 2 | {title} | High | Reject | — |
168
- ```
169
-
170
- ## Output
171
-
172
- After completion, provide summary:
173
- - Total findings by severity
174
- - Accepted vs rejected count
175
- - Files modified
176
- - Key risks addressed
177
- - Remaining concerns (if any rejected findings were borderline)
178
-
179
- ## Next Steps (MANDATORY)
180
-
181
- After providing the summary, remind the user:
182
-
183
- > **Plan updated with red-team findings.** Consider running:
184
- > ```
185
- > /plan:validate {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
186
- > ```
187
- > to re-validate decisions after changes, then:
188
- > ```
189
- > /cook --auto {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
190
- > ```
191
- > to implement.
192
-
193
- ## Important Notes
194
-
195
- **IMPORTANT:** Reviewers must be HOSTILE, not helpful. No softening language.
196
- **IMPORTANT:** Deduplicate aggressively — reviewers will find overlapping issues.
197
- **IMPORTANT:** Adjudication must be evidence-based. Don't reject valid findings to be nice.
198
- **IMPORTANT:** If plan has a Validation Log from `/plan:validate`, reviewers should check if validation answers introduced new assumptions.
199
- **IMPORTANT:** Sacrifice grammar for concision in reports.
200
- **IMPORTANT:** Reviewers read plan files directly — do NOT duplicate content in a summary.
@@ -1,188 +0,0 @@
1
- ---
2
- description: Validate plan with critical questions interview
3
- argument-hint: [plan-path]
4
- ---
5
-
6
- ## Your mission
7
-
8
- Interview the user with critical questions to validate assumptions, confirm decisions, and surface potential issues in an implementation plan before coding begins.
9
-
10
- ## Plan Resolution
11
-
12
- 1. If `$ARGUMENTS` provided → Use that path
13
- 2. Else check `## Plan Context` section → Use active plan path
14
- 3. If no plan found → Ask user to specify path or run `/plan --hard` first
15
-
16
- ## Configuration (from injected context)
17
-
18
- Check `## Plan Context` section for validation settings:
19
- - `mode` - Controls auto/prompt/off behavior
20
- - `questions` - Range like `3-8` (min-max)
21
-
22
- These values are automatically injected from user config. Use them as constraints.
23
-
24
- ## Workflow
25
-
26
- ### Step 1: Read Plan Files
27
-
28
- Read the plan directory:
29
- - `plan.md` - Overview and phases list
30
- - `phase-*.md` - All phase files
31
- - Look for decision points, assumptions, risks, tradeoffs
32
-
33
- ### Step 2: Extract Question Topics
34
-
35
- Scan plan content for:
36
-
37
- | Category | Keywords to detect |
38
- |----------|-------------------|
39
- | **Architecture** | "approach", "pattern", "design", "structure", "database", "API" |
40
- | **Assumptions** | "assume", "expect", "should", "will", "must", "default" |
41
- | **Tradeoffs** | "tradeoff", "vs", "alternative", "option", "choice", "either/or" |
42
- | **Risks** | "risk", "might", "could fail", "dependency", "blocker", "concern" |
43
- | **Scope** | "phase", "MVP", "future", "out of scope", "nice to have" |
44
-
45
- ### Step 3: Generate Questions
46
-
47
- For each detected topic, formulate a concrete question:
48
-
49
- **Question format rules:**
50
- - Each question must have 2-4 concrete options
51
- - Mark recommended option with "(Recommended)" suffix
52
- - Include "Other" option is automatic - don't add it
53
- - Questions should surface implicit decisions
54
-
55
- **Example questions:**
56
-
57
- ```
58
- Category: Architecture
59
- Question: "How should the validation results be persisted?"
60
- Options:
61
- 1. Save to plan.md frontmatter (Recommended) - Updates existing plan
62
- 2. Create validation-answers.md - Separate file for answers
63
- 3. Don't persist - Ephemeral validation only
64
- ```
65
-
66
- ```
67
- Category: Assumptions
68
- Question: "The plan assumes API rate limiting is not needed. Is this correct?"
69
- Options:
70
- 1. Yes, rate limiting not needed for MVP
71
- 2. No, add basic rate limiting now (Recommended)
72
- 3. Defer to Phase 2
73
- ```
74
-
75
- ### Step 4: Interview User
76
-
77
- Use `AskUserQuestion` tool to present questions.
78
-
79
- **Rules:**
80
- - Use question count from `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`
81
- - Group related questions when possible (max 4 questions per tool call)
82
- - Focus on: assumptions, risks, tradeoffs, architecture
83
-
84
- ### Step 5: Document Answers
85
-
86
- After collecting answers, update `plan.md` with a detailed validation log. If a `## Validation Log` section already exists (from previous sessions), **append** a new session block — never overwrite history.
87
-
88
- 1. Add or append to `## Validation Log` section in `plan.md`:
89
-
90
- ```markdown
91
- ## Validation Log
92
-
93
- ### Session 1 — {YYYY-MM-DD}
94
- **Trigger:** {what prompted this validation — initial plan creation, re-validation after scope change, etc.}
95
- **Questions asked:** {count}
96
-
97
- #### Questions & Answers
98
-
99
- 1. **[{Category}]** {full question text}
100
- - Options: {A} | {B} | {C}
101
- - **Answer:** {user's choice}
102
- - **Custom input:** {verbatim "Other" text if user selected Other, otherwise omit this line}
103
- - **Rationale:** {why this decision matters for implementation}
104
-
105
- 2. **[{Category}]** {full question text}
106
- - Options: {A} | {B} | {C}
107
- - **Answer:** {user's choice}
108
- - **Custom input:** {verbatim text, omit if N/A}
109
- - **Rationale:** {why this matters}
110
-
111
- #### Confirmed Decisions
112
- - {decision}: {choice} — {brief why}
113
-
114
- #### Action Items
115
- - [ ] {specific change needed based on answers}
116
-
117
- #### Impact on Phases
118
- - Phase {N}: {what needs updating and why}
119
- ```
120
-
121
- **Recording rules:**
122
- - **Full question text**: Copy the exact question asked, not a summary
123
- - **All options**: List every option that was presented
124
- - **Verbatim custom input**: If user selected "Other" and typed custom text, record it exactly as entered — this often contains critical context
125
- - **Rationale**: Explain why the decision affects implementation (helps future agents understand intent)
126
- - **Session numbering**: Increment session number from last existing session. First validation = Session 1
127
- - **Trigger**: State what prompted this validation round (initial, re-validation, scope change, etc.)
128
-
129
- 2. If answers require plan changes, document them in `#### Impact on Phases` section.
130
-
131
- ### Step 6: Propagate Changes to Phases (Auto-Apply)
132
-
133
- **Auto-propagate** validation decisions to affected phase files.
134
-
135
- **Process:**
136
- 1. Parse "Impact on Phases" section → If empty, skip and report "No phase changes required"
137
- 2. For each phase reference (accepts "Phase 2", "phase-02", "P2"):
138
- - Glob for `phase-{N:02d}-*.md` → If missing, warn and skip
139
- - Locate target section (exact → fuzzy → fallback to Key Insights)
140
- - Apply change + add marker: `<!-- Updated: Validation Session N - {change} -->`
141
- - Skip if same-session marker already exists (prevent duplication)
142
-
143
- **Section mapping:**
144
- | Change Type | Target Section |
145
- |-------------|----------------|
146
- | Requirements | Requirements |
147
- | Architecture | Architecture |
148
- | Scope | Overview / Implementation Steps |
149
- | Risk | Risk Assessment |
150
- | Unknown | Key Insights (new subsection) |
151
-
152
- **Error handling:** Best-effort — log warnings for missing files/sections, continue with others, report all in Output.
153
-
154
- ## Output
155
-
156
- After validation completes, provide summary:
157
- - Number of questions asked
158
- - Key decisions confirmed
159
- - **Phase propagation results:**
160
- - ✅ Files updated (with section names)
161
- - ⚠️ Warnings (skipped phases, fallback sections)
162
- - ❌ Errors (if any write failures)
163
- - Any items flagged for plan revision
164
- - Recommendation: proceed to implementation or revise plan first
165
-
166
- ## Next Steps (MANDATORY)
167
-
168
- **IMPORTANT:** After providing the validation summary, you MUST remind the user with the **full absolute path**:
169
-
170
- > **Best Practice:** Run `/clear` before implementing to start with fresh context.
171
- > Then run:
172
- > ```
173
- > /cook --auto {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
174
- > ```
175
- > *(Replace with actual absolute path, e.g., `/home/user/project/plans/260203-1234-feature/plan.md`)*
176
- >
177
- > **Why `--auto`?** Plan was already validated - safe to skip review gates.
178
- > **Why absolute path?** After `/clear`, the new session loses context. Worktree paths won't be discoverable without the full path.
179
- >
180
- > Fresh context helps Claude focus solely on implementation without planning context pollution, improving plan adherence.
181
-
182
- This reminder is **NON-NEGOTIABLE** - always output it at the end of validation with the actual absolute path.
183
-
184
- ## Important Notes
185
-
186
- **IMPORTANT:** Only ask questions about genuine decision points - don't manufacture artificial choices.
187
- **IMPORTANT:** If plan is simple with few decisions, it's okay to ask fewer than min questions.
188
- **IMPORTANT:** Prioritize questions that could change implementation significantly.