@lipter7/blueprint 2.0.0

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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +626 -0
  3. package/agents/bp-codebase-mapper.md +761 -0
  4. package/agents/bp-debugger.md +1198 -0
  5. package/agents/bp-executor.md +403 -0
  6. package/agents/bp-integration-checker.md +423 -0
  7. package/agents/bp-phase-researcher.md +469 -0
  8. package/agents/bp-plan-checker.md +622 -0
  9. package/agents/bp-planner.md +1157 -0
  10. package/agents/bp-project-researcher.md +618 -0
  11. package/agents/bp-research-synthesizer.md +236 -0
  12. package/agents/bp-roadmapper.md +605 -0
  13. package/agents/bp-verifier.md +523 -0
  14. package/bin/install.js +1754 -0
  15. package/blueprint/bin/blueprint-tools.js +4597 -0
  16. package/blueprint/bin/blueprint-tools.test.js +2033 -0
  17. package/blueprint/references/checkpoints.md +775 -0
  18. package/blueprint/references/continuation-format.md +249 -0
  19. package/blueprint/references/decimal-phase-calculation.md +65 -0
  20. package/blueprint/references/git-integration.md +248 -0
  21. package/blueprint/references/git-planning-commit.md +38 -0
  22. package/blueprint/references/model-profile-resolution.md +32 -0
  23. package/blueprint/references/model-profiles.md +73 -0
  24. package/blueprint/references/phase-argument-parsing.md +61 -0
  25. package/blueprint/references/planning-config.md +194 -0
  26. package/blueprint/references/questioning.md +141 -0
  27. package/blueprint/references/tdd.md +263 -0
  28. package/blueprint/references/ui-brand.md +160 -0
  29. package/blueprint/references/verification-patterns.md +612 -0
  30. package/blueprint/templates/DEBUG.md +159 -0
  31. package/blueprint/templates/UAT.md +247 -0
  32. package/blueprint/templates/codebase/architecture.md +255 -0
  33. package/blueprint/templates/codebase/concerns.md +310 -0
  34. package/blueprint/templates/codebase/conventions.md +307 -0
  35. package/blueprint/templates/codebase/integrations.md +280 -0
  36. package/blueprint/templates/codebase/stack.md +186 -0
  37. package/blueprint/templates/codebase/structure.md +285 -0
  38. package/blueprint/templates/codebase/testing.md +480 -0
  39. package/blueprint/templates/config.json +35 -0
  40. package/blueprint/templates/context.md +283 -0
  41. package/blueprint/templates/continue-here.md +78 -0
  42. package/blueprint/templates/debug-subagent-prompt.md +91 -0
  43. package/blueprint/templates/discovery.md +146 -0
  44. package/blueprint/templates/milestone-archive.md +123 -0
  45. package/blueprint/templates/milestone.md +115 -0
  46. package/blueprint/templates/phase-prompt.md +567 -0
  47. package/blueprint/templates/planner-subagent-prompt.md +117 -0
  48. package/blueprint/templates/project.md +184 -0
  49. package/blueprint/templates/requirements.md +231 -0
  50. package/blueprint/templates/research-project/ARCHITECTURE.md +204 -0
  51. package/blueprint/templates/research-project/FEATURES.md +147 -0
  52. package/blueprint/templates/research-project/PITFALLS.md +200 -0
  53. package/blueprint/templates/research-project/STACK.md +120 -0
  54. package/blueprint/templates/research-project/SUMMARY.md +170 -0
  55. package/blueprint/templates/research.md +552 -0
  56. package/blueprint/templates/roadmap.md +202 -0
  57. package/blueprint/templates/state.md +176 -0
  58. package/blueprint/templates/summary-complex.md +59 -0
  59. package/blueprint/templates/summary-minimal.md +41 -0
  60. package/blueprint/templates/summary-standard.md +48 -0
  61. package/blueprint/templates/summary.md +246 -0
  62. package/blueprint/templates/user-setup.md +311 -0
  63. package/blueprint/templates/verification-report.md +322 -0
  64. package/blueprint/workflows/add-phase.md +111 -0
  65. package/blueprint/workflows/add-todo.md +157 -0
  66. package/blueprint/workflows/audit-milestone.md +241 -0
  67. package/blueprint/workflows/check-todos.md +176 -0
  68. package/blueprint/workflows/complete-milestone.md +644 -0
  69. package/blueprint/workflows/diagnose-issues.md +219 -0
  70. package/blueprint/workflows/discovery-phase.md +289 -0
  71. package/blueprint/workflows/discuss-phase.md +408 -0
  72. package/blueprint/workflows/execute-phase.md +338 -0
  73. package/blueprint/workflows/execute-plan.md +437 -0
  74. package/blueprint/workflows/help.md +470 -0
  75. package/blueprint/workflows/insert-phase.md +129 -0
  76. package/blueprint/workflows/list-phase-assumptions.md +178 -0
  77. package/blueprint/workflows/map-codebase.md +327 -0
  78. package/blueprint/workflows/new-milestone.md +373 -0
  79. package/blueprint/workflows/new-project.md +958 -0
  80. package/blueprint/workflows/pause-work.md +122 -0
  81. package/blueprint/workflows/plan-milestone-gaps.md +256 -0
  82. package/blueprint/workflows/plan-phase.md +376 -0
  83. package/blueprint/workflows/progress.md +385 -0
  84. package/blueprint/workflows/quick.md +230 -0
  85. package/blueprint/workflows/remove-phase.md +154 -0
  86. package/blueprint/workflows/research-phase.md +74 -0
  87. package/blueprint/workflows/resume-project.md +306 -0
  88. package/blueprint/workflows/set-profile.md +80 -0
  89. package/blueprint/workflows/settings.md +145 -0
  90. package/blueprint/workflows/transition.md +493 -0
  91. package/blueprint/workflows/update.md +212 -0
  92. package/blueprint/workflows/verify-phase.md +226 -0
  93. package/blueprint/workflows/verify-work.md +570 -0
  94. package/commands/bp/add-phase.md +39 -0
  95. package/commands/bp/add-todo.md +42 -0
  96. package/commands/bp/audit-milestone.md +42 -0
  97. package/commands/bp/check-todos.md +41 -0
  98. package/commands/bp/complete-milestone.md +136 -0
  99. package/commands/bp/debug.md +162 -0
  100. package/commands/bp/discuss-phase.md +86 -0
  101. package/commands/bp/execute-phase.md +42 -0
  102. package/commands/bp/help.md +22 -0
  103. package/commands/bp/insert-phase.md +33 -0
  104. package/commands/bp/join-discord.md +18 -0
  105. package/commands/bp/list-phase-assumptions.md +50 -0
  106. package/commands/bp/map-codebase.md +71 -0
  107. package/commands/bp/new-milestone.md +51 -0
  108. package/commands/bp/new-project.md +42 -0
  109. package/commands/bp/pause-work.md +35 -0
  110. package/commands/bp/plan-milestone-gaps.md +40 -0
  111. package/commands/bp/plan-phase.md +44 -0
  112. package/commands/bp/progress.md +24 -0
  113. package/commands/bp/quick.md +38 -0
  114. package/commands/bp/reapply-patches.md +110 -0
  115. package/commands/bp/remove-phase.md +32 -0
  116. package/commands/bp/research-phase.md +187 -0
  117. package/commands/bp/resume-work.md +40 -0
  118. package/commands/bp/set-profile.md +34 -0
  119. package/commands/bp/settings.md +36 -0
  120. package/commands/bp/update.md +37 -0
  121. package/commands/bp/verify-work.md +39 -0
  122. package/hooks/dist/bp-check-update.js +62 -0
  123. package/hooks/dist/bp-statusline.js +91 -0
  124. package/package.json +48 -0
  125. package/scripts/build-hooks.js +42 -0
@@ -0,0 +1,385 @@
1
+ <purpose>
2
+ Check project progress, summarize recent work and what's ahead, then intelligently route to the next action — either executing an existing plan or creating the next one. Provides situational awareness before continuing work.
3
+ </purpose>
4
+
5
+ <required_reading>
6
+ Read all files referenced by the invoking prompt's execution_context before starting.
7
+ </required_reading>
8
+
9
+ <process>
10
+
11
+ <step name="init_context">
12
+ **Load progress context (with file contents to avoid redundant reads):**
13
+
14
+ ```bash
15
+ INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js init progress --include state,roadmap,project,config)
16
+ ```
17
+
18
+ Extract from init JSON: `project_exists`, `roadmap_exists`, `state_exists`, `phases`, `current_phase`, `next_phase`, `milestone_version`, `completed_count`, `phase_count`, `paused_at`.
19
+
20
+ **File contents (from --include):** `state_content`, `roadmap_content`, `project_content`, `config_content`. These are null if files don't exist.
21
+
22
+ If `project_exists` is false (no `.blueprint/` directory):
23
+
24
+ ```
25
+ No planning structure found.
26
+
27
+ Run /bp:new-project to start a new project.
28
+ ```
29
+
30
+ Exit.
31
+
32
+ If missing STATE.md: suggest `/bp:new-project`.
33
+
34
+ **If ROADMAP.md missing but PROJECT.md exists:**
35
+
36
+ This means a milestone was completed and archived. Go to **Route F** (between milestones).
37
+
38
+ If missing both ROADMAP.md and PROJECT.md: suggest `/bp:new-project`.
39
+ </step>
40
+
41
+ <step name="load">
42
+ **Use project context from INIT:**
43
+
44
+ All file contents are already loaded via `--include` in init_context step:
45
+ - `state_content` — living memory (position, decisions, issues)
46
+ - `roadmap_content` — phase structure and objectives
47
+ - `project_content` — current state (What This Is, Core Value, Requirements)
48
+ - `config_content` — settings (model_profile, workflow toggles)
49
+
50
+ No additional file reads needed.
51
+ </step>
52
+
53
+ <step name="analyze_roadmap">
54
+ **Get comprehensive roadmap analysis (replaces manual parsing):**
55
+
56
+ ```bash
57
+ ROADMAP=$(node ~/.claude/blueprint/bin/blueprint-tools.js roadmap analyze)
58
+ ```
59
+
60
+ This returns structured JSON with:
61
+ - All phases with disk status (complete/partial/planned/empty/no_directory)
62
+ - Goal and dependencies per phase
63
+ - Plan and summary counts per phase
64
+ - Aggregated stats: total plans, summaries, progress percent
65
+ - Current and next phase identification
66
+
67
+ Use this instead of manually reading/parsing ROADMAP.md.
68
+ </step>
69
+
70
+ <step name="recent">
71
+ **Gather recent work context:**
72
+
73
+ - Find the 2-3 most recent SUMMARY.md files
74
+ - Use `summary-extract` for efficient parsing:
75
+ ```bash
76
+ node ~/.claude/blueprint/bin/blueprint-tools.js summary-extract <path> --fields one_liner
77
+ ```
78
+ - This shows "what we've been working on"
79
+ </step>
80
+
81
+ <step name="position">
82
+ **Parse current position from init context and roadmap analysis:**
83
+
84
+ - Use `current_phase` and `next_phase` from roadmap analyze
85
+ - Use phase-level `has_context` and `has_research` flags from analyze
86
+ - Note `paused_at` if work was paused (from init context)
87
+ - Count pending todos: use `init todos` or `list-todos`
88
+ - Check for active debug sessions: `ls .blueprint/debug/*.md 2>/dev/null | grep -v resolved | wc -l`
89
+ </step>
90
+
91
+ <step name="report">
92
+ **Generate progress bar from blueprint-tools, then present rich status report:**
93
+
94
+ ```bash
95
+ # Get formatted progress bar
96
+ PROGRESS_BAR=$(node ~/.claude/blueprint/bin/blueprint-tools.js progress bar --raw)
97
+ ```
98
+
99
+ Present:
100
+
101
+ ```
102
+ # [Project Name]
103
+
104
+ **Progress:** {PROGRESS_BAR}
105
+ **Profile:** [quality/balanced/budget]
106
+
107
+ ## Recent Work
108
+ - [Phase X, Plan Y]: [what was accomplished - 1 line from summary-extract]
109
+ - [Phase X, Plan Z]: [what was accomplished - 1 line from summary-extract]
110
+
111
+ ## Current Position
112
+ Phase [N] of [total]: [phase-name]
113
+ Plan [M] of [phase-total]: [status]
114
+ CONTEXT: [✓ if has_context | - if not]
115
+
116
+ ## Key Decisions Made
117
+ - [decision 1 from STATE.md]
118
+ - [decision 2]
119
+
120
+ ## Blockers/Concerns
121
+ - [any blockers or concerns from STATE.md]
122
+
123
+ ## Pending Todos
124
+ - [count] pending — /bp:check-todos to review
125
+
126
+ ## Active Debug Sessions
127
+ - [count] active — /bp:debug to continue
128
+ (Only show this section if count > 0)
129
+
130
+ ## What's Next
131
+ [Next phase/plan objective from roadmap analyze]
132
+ ```
133
+
134
+ </step>
135
+
136
+ <step name="route">
137
+ **Determine next action based on verified counts.**
138
+
139
+ **Step 1: Count plans, summaries, and issues in current phase**
140
+
141
+ List files in the current phase directory:
142
+
143
+ ```bash
144
+ ls -1 .blueprint/phases/[current-phase-dir]/*-PLAN.md 2>/dev/null | wc -l
145
+ ls -1 .blueprint/phases/[current-phase-dir]/*-SUMMARY.md 2>/dev/null | wc -l
146
+ ls -1 .blueprint/phases/[current-phase-dir]/*-UAT.md 2>/dev/null | wc -l
147
+ ```
148
+
149
+ State: "This phase has {X} plans, {Y} summaries."
150
+
151
+ **Step 1.5: Check for unaddressed UAT gaps**
152
+
153
+ Check for UAT.md files with status "diagnosed" (has gaps needing fixes).
154
+
155
+ ```bash
156
+ # Check for diagnosed UAT with gaps
157
+ grep -l "status: diagnosed" .blueprint/phases/[current-phase-dir]/*-UAT.md 2>/dev/null
158
+ ```
159
+
160
+ Track:
161
+ - `uat_with_gaps`: UAT.md files with status "diagnosed" (gaps need fixing)
162
+
163
+ **Step 2: Route based on counts**
164
+
165
+ | Condition | Meaning | Action |
166
+ |-----------|---------|--------|
167
+ | uat_with_gaps > 0 | UAT gaps need fix plans | Go to **Route E** |
168
+ | summaries < plans | Unexecuted plans exist | Go to **Route A** |
169
+ | summaries = plans AND plans > 0 | Phase complete | Go to Step 3 |
170
+ | plans = 0 | Phase not yet planned | Go to **Route B** |
171
+
172
+ ---
173
+
174
+ **Route A: Unexecuted plan exists**
175
+
176
+ Find the first PLAN.md without matching SUMMARY.md.
177
+ Read its `<objective>` section.
178
+
179
+ ```
180
+ ---
181
+
182
+ ## ▶ Next Up
183
+
184
+ **{phase}-{plan}: [Plan Name]** — [objective summary from PLAN.md]
185
+
186
+ `/bp:execute-phase {phase}`
187
+
188
+ <sub>`/clear` first → fresh context window</sub>
189
+
190
+ ---
191
+ ```
192
+
193
+ ---
194
+
195
+ **Route B: Phase needs planning**
196
+
197
+ Check if `{phase}-CONTEXT.md` exists in phase directory.
198
+
199
+ **If CONTEXT.md exists:**
200
+
201
+ ```
202
+ ---
203
+
204
+ ## ▶ Next Up
205
+
206
+ **Phase {N}: {Name}** — {Goal from ROADMAP.md}
207
+ <sub>✓ Context gathered, ready to plan</sub>
208
+
209
+ `/bp:plan-phase {phase-number}`
210
+
211
+ <sub>`/clear` first → fresh context window</sub>
212
+
213
+ ---
214
+ ```
215
+
216
+ **If CONTEXT.md does NOT exist:**
217
+
218
+ ```
219
+ ---
220
+
221
+ ## ▶ Next Up
222
+
223
+ **Phase {N}: {Name}** — {Goal from ROADMAP.md}
224
+
225
+ `/bp:discuss-phase {phase}` — gather context and clarify approach
226
+
227
+ <sub>`/clear` first → fresh context window</sub>
228
+
229
+ ---
230
+
231
+ **Also available:**
232
+ - `/bp:plan-phase {phase}` — skip discussion, plan directly
233
+ - `/bp:list-phase-assumptions {phase}` — see Claude's assumptions
234
+
235
+ ---
236
+ ```
237
+
238
+ ---
239
+
240
+ **Route E: UAT gaps need fix plans**
241
+
242
+ UAT.md exists with gaps (diagnosed issues). User needs to plan fixes.
243
+
244
+ ```
245
+ ---
246
+
247
+ ## ⚠ UAT Gaps Found
248
+
249
+ **{phase}-UAT.md** has {N} gaps requiring fixes.
250
+
251
+ `/bp:plan-phase {phase} --gaps`
252
+
253
+ <sub>`/clear` first → fresh context window</sub>
254
+
255
+ ---
256
+
257
+ **Also available:**
258
+ - `/bp:execute-phase {phase}` — execute phase plans
259
+ - `/bp:verify-work {phase}` — run more UAT testing
260
+
261
+ ---
262
+ ```
263
+
264
+ ---
265
+
266
+ **Step 3: Check milestone status (only when phase complete)**
267
+
268
+ Read ROADMAP.md and identify:
269
+ 1. Current phase number
270
+ 2. All phase numbers in the current milestone section
271
+
272
+ Count total phases and identify the highest phase number.
273
+
274
+ State: "Current phase is {X}. Milestone has {N} phases (highest: {Y})."
275
+
276
+ **Route based on milestone status:**
277
+
278
+ | Condition | Meaning | Action |
279
+ |-----------|---------|--------|
280
+ | current phase < highest phase | More phases remain | Go to **Route C** |
281
+ | current phase = highest phase | Milestone complete | Go to **Route D** |
282
+
283
+ ---
284
+
285
+ **Route C: Phase complete, more phases remain**
286
+
287
+ Read ROADMAP.md to get the next phase's name and goal.
288
+
289
+ ```
290
+ ---
291
+
292
+ ## ✓ Phase {Z} Complete
293
+
294
+ ## ▶ Next Up
295
+
296
+ **Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
297
+
298
+ `/bp:discuss-phase {Z+1}` — gather context and clarify approach
299
+
300
+ <sub>`/clear` first → fresh context window</sub>
301
+
302
+ ---
303
+
304
+ **Also available:**
305
+ - `/bp:plan-phase {Z+1}` — skip discussion, plan directly
306
+ - `/bp:verify-work {Z}` — user acceptance test before continuing
307
+
308
+ ---
309
+ ```
310
+
311
+ ---
312
+
313
+ **Route D: Milestone complete**
314
+
315
+ ```
316
+ ---
317
+
318
+ ## 🎉 Milestone Complete
319
+
320
+ All {N} phases finished!
321
+
322
+ ## ▶ Next Up
323
+
324
+ **Complete Milestone** — archive and prepare for next
325
+
326
+ `/bp:complete-milestone`
327
+
328
+ <sub>`/clear` first → fresh context window</sub>
329
+
330
+ ---
331
+
332
+ **Also available:**
333
+ - `/bp:verify-work` — user acceptance test before completing milestone
334
+
335
+ ---
336
+ ```
337
+
338
+ ---
339
+
340
+ **Route F: Between milestones (ROADMAP.md missing, PROJECT.md exists)**
341
+
342
+ A milestone was completed and archived. Ready to start the next milestone cycle.
343
+
344
+ Read MILESTONES.md to find the last completed milestone version.
345
+
346
+ ```
347
+ ---
348
+
349
+ ## ✓ Milestone v{X.Y} Complete
350
+
351
+ Ready to plan the next milestone.
352
+
353
+ ## ▶ Next Up
354
+
355
+ **Start Next Milestone** — questioning → research → requirements → roadmap
356
+
357
+ `/bp:new-milestone`
358
+
359
+ <sub>`/clear` first → fresh context window</sub>
360
+
361
+ ---
362
+ ```
363
+
364
+ </step>
365
+
366
+ <step name="edge_cases">
367
+ **Handle edge cases:**
368
+
369
+ - Phase complete but next phase not planned → offer `/bp:plan-phase [next]`
370
+ - All work complete → offer milestone completion
371
+ - Blockers present → highlight before offering to continue
372
+ - Handoff file exists → mention it, offer `/bp:resume-work`
373
+ </step>
374
+
375
+ </process>
376
+
377
+ <success_criteria>
378
+
379
+ - [ ] Rich context provided (recent work, decisions, issues)
380
+ - [ ] Current position clear with visual progress
381
+ - [ ] What's next clearly explained
382
+ - [ ] Smart routing: /bp:execute-phase if plans exist, /bp:plan-phase if not
383
+ - [ ] User confirms before any action
384
+ - [ ] Seamless handoff to appropriate gsd command
385
+ </success_criteria>
@@ -0,0 +1,230 @@
1
+ <purpose>
2
+ Execute small, ad-hoc tasks with Blueprint guarantees (atomic commits, STATE.md tracking) while skipping optional agents (research, plan-checker, verifier). Quick mode spawns bp-planner (quick mode) + bp-executor(s), tracks tasks in `.blueprint/quick/`, and updates STATE.md's "Quick Tasks Completed" table.
3
+ </purpose>
4
+
5
+ <required_reading>
6
+ Read all files referenced by the invoking prompt's execution_context before starting.
7
+ </required_reading>
8
+
9
+ <process>
10
+ **Step 1: Get task description**
11
+
12
+ Prompt user interactively for the task description:
13
+
14
+ ```
15
+ AskUserQuestion(
16
+ header: "Quick Task",
17
+ question: "What do you want to do?",
18
+ followUp: null
19
+ )
20
+ ```
21
+
22
+ Store response as `$DESCRIPTION`.
23
+
24
+ If empty, re-prompt: "Please provide a task description."
25
+
26
+ ---
27
+
28
+ **Step 2: Initialize**
29
+
30
+ ```bash
31
+ INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js init quick "$DESCRIPTION")
32
+ ```
33
+
34
+ Parse JSON for: `planner_model`, `executor_model`, `commit_docs`, `next_num`, `slug`, `date`, `timestamp`, `quick_dir`, `task_dir`, `roadmap_exists`, `planning_exists`.
35
+
36
+ **If `roadmap_exists` is false:** Error — Quick mode requires an active project with ROADMAP.md. Run `/bp:new-project` first.
37
+
38
+ Quick tasks can run mid-phase - validation only checks ROADMAP.md exists, not phase status.
39
+
40
+ ---
41
+
42
+ **Step 3: Create task directory**
43
+
44
+ ```bash
45
+ mkdir -p "${task_dir}"
46
+ ```
47
+
48
+ ---
49
+
50
+ **Step 4: Create quick task directory**
51
+
52
+ Create the directory for this quick task:
53
+
54
+ ```bash
55
+ QUICK_DIR=".blueprint/quick/${next_num}-${slug}"
56
+ mkdir -p "$QUICK_DIR"
57
+ ```
58
+
59
+ Report to user:
60
+ ```
61
+ Creating quick task ${next_num}: ${DESCRIPTION}
62
+ Directory: ${QUICK_DIR}
63
+ ```
64
+
65
+ Store `$QUICK_DIR` for use in orchestration.
66
+
67
+ ---
68
+
69
+ **Step 5: Spawn planner (quick mode)**
70
+
71
+ Spawn bp-planner with quick mode context:
72
+
73
+ ```
74
+ Task(
75
+ prompt="
76
+ <planning_context>
77
+
78
+ **Mode:** quick
79
+ **Directory:** ${QUICK_DIR}
80
+ **Description:** ${DESCRIPTION}
81
+
82
+ **Project State:**
83
+ @.blueprint/STATE.md
84
+
85
+ </planning_context>
86
+
87
+ <constraints>
88
+ - Create a SINGLE plan with 1-3 focused tasks
89
+ - Quick tasks should be atomic and self-contained
90
+ - No research phase, no checker phase
91
+ - Target ~30% context usage (simple, focused)
92
+ </constraints>
93
+
94
+ <output>
95
+ Write plan to: ${QUICK_DIR}/${next_num}-PLAN.md
96
+ Return: ## PLANNING COMPLETE with plan path
97
+ </output>
98
+ ",
99
+ subagent_type="bp-planner",
100
+ model="{planner_model}",
101
+ description="Quick plan: ${DESCRIPTION}"
102
+ )
103
+ ```
104
+
105
+ After planner returns:
106
+ 1. Verify plan exists at `${QUICK_DIR}/${next_num}-PLAN.md`
107
+ 2. Extract plan count (typically 1 for quick tasks)
108
+ 3. Report: "Plan created: ${QUICK_DIR}/${next_num}-PLAN.md"
109
+
110
+ If plan not found, error: "Planner failed to create ${next_num}-PLAN.md"
111
+
112
+ ---
113
+
114
+ **Step 6: Spawn executor**
115
+
116
+ Spawn bp-executor with plan reference:
117
+
118
+ ```
119
+ Task(
120
+ prompt="
121
+ Execute quick task ${next_num}.
122
+
123
+ Plan: @${QUICK_DIR}/${next_num}-PLAN.md
124
+ Project state: @.blueprint/STATE.md
125
+
126
+ <constraints>
127
+ - Execute all tasks in the plan
128
+ - Commit each task atomically
129
+ - Create summary at: ${QUICK_DIR}/${next_num}-SUMMARY.md
130
+ - Do NOT update ROADMAP.md (quick tasks are separate from planned phases)
131
+ </constraints>
132
+ ",
133
+ subagent_type="bp-executor",
134
+ model="{executor_model}",
135
+ description="Execute: ${DESCRIPTION}"
136
+ )
137
+ ```
138
+
139
+ After executor returns:
140
+ 1. Verify summary exists at `${QUICK_DIR}/${next_num}-SUMMARY.md`
141
+ 2. Extract commit hash from executor output
142
+ 3. Report completion status
143
+
144
+ **Known Claude Code bug (classifyHandoffIfNeeded):** If executor reports "failed" with error `classifyHandoffIfNeeded is not defined`, this is a Claude Code runtime bug — not a real failure. Check if summary file exists and git log shows commits. If so, treat as successful.
145
+
146
+ If summary not found, error: "Executor failed to create ${next_num}-SUMMARY.md"
147
+
148
+ Note: For quick tasks producing multiple plans (rare), spawn executors in parallel waves per execute-phase patterns.
149
+
150
+ ---
151
+
152
+ **Step 7: Update STATE.md**
153
+
154
+ Update STATE.md with quick task completion record.
155
+
156
+ **7a. Check if "Quick Tasks Completed" section exists:**
157
+
158
+ Read STATE.md and check for `### Quick Tasks Completed` section.
159
+
160
+ **7b. If section doesn't exist, create it:**
161
+
162
+ Insert after `### Blockers/Concerns` section:
163
+
164
+ ```markdown
165
+ ### Quick Tasks Completed
166
+
167
+ | # | Description | Date | Commit | Directory |
168
+ |---|-------------|------|--------|-----------|
169
+ ```
170
+
171
+ **7c. Append new row to table:**
172
+
173
+ Use `date` from init:
174
+ ```markdown
175
+ | ${next_num} | ${DESCRIPTION} | ${date} | ${commit_hash} | [${next_num}-${slug}](./quick/${next_num}-${slug}/) |
176
+ ```
177
+
178
+ **7d. Update "Last activity" line:**
179
+
180
+ Use `date` from init:
181
+ ```
182
+ Last activity: ${date} - Completed quick task ${next_num}: ${DESCRIPTION}
183
+ ```
184
+
185
+ Use Edit tool to make these changes atomically
186
+
187
+ ---
188
+
189
+ **Step 8: Final commit and completion**
190
+
191
+ Stage and commit quick task artifacts:
192
+
193
+ ```bash
194
+ node ~/.claude/blueprint/bin/blueprint-tools.js commit "docs(quick-${next_num}): ${DESCRIPTION}" --files ${QUICK_DIR}/${next_num}-PLAN.md ${QUICK_DIR}/${next_num}-SUMMARY.md .blueprint/STATE.md
195
+ ```
196
+
197
+ Get final commit hash:
198
+ ```bash
199
+ commit_hash=$(git rev-parse --short HEAD)
200
+ ```
201
+
202
+ Display completion output:
203
+ ```
204
+ ---
205
+
206
+ Blueprint > QUICK TASK COMPLETE
207
+
208
+ Quick Task ${next_num}: ${DESCRIPTION}
209
+
210
+ Summary: ${QUICK_DIR}/${next_num}-SUMMARY.md
211
+ Commit: ${commit_hash}
212
+
213
+ ---
214
+
215
+ Ready for next task: /bp:quick
216
+ ```
217
+
218
+ </process>
219
+
220
+ <success_criteria>
221
+ - [ ] ROADMAP.md validation passes
222
+ - [ ] User provides task description
223
+ - [ ] Slug generated (lowercase, hyphens, max 40 chars)
224
+ - [ ] Next number calculated (001, 002, 003...)
225
+ - [ ] Directory created at `.blueprint/quick/NNN-slug/`
226
+ - [ ] `${next_num}-PLAN.md` created by planner
227
+ - [ ] `${next_num}-SUMMARY.md` created by executor
228
+ - [ ] STATE.md updated with quick task row
229
+ - [ ] Artifacts committed
230
+ </success_criteria>