bmm-opencode 1.4.2 → 1.4.3

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 (126) hide show
  1. package/.opencode/agents/bmad-bmad-master.md +11 -0
  2. package/.opencode/agents/bmm-analyst.md +10 -32
  3. package/.opencode/agents/bmm-architect.md +6 -34
  4. package/.opencode/agents/bmm-dev.md +6 -32
  5. package/.opencode/agents/bmm-pm.md +10 -41
  6. package/.opencode/agents/bmm-qa.md +5 -31
  7. package/.opencode/agents/bmm-quick-flow-solo-dev.md +7 -32
  8. package/.opencode/agents/bmm-sm.md +8 -32
  9. package/.opencode/agents/bmm-tech-writer.md +12 -0
  10. package/.opencode/agents/bmm-ux-designer.md +5 -37
  11. package/.opencode/commands/bmad-bmm-check-implementation-readiness.md +7 -0
  12. package/.opencode/commands/bmad-bmm-code-review.md +7 -0
  13. package/.opencode/commands/bmad-bmm-correct-course.md +7 -0
  14. package/.opencode/commands/bmad-bmm-create-architecture.md +7 -0
  15. package/.opencode/commands/bmad-bmm-create-epics-and-stories.md +7 -0
  16. package/.opencode/commands/bmad-bmm-create-prd.md +7 -0
  17. package/.opencode/commands/bmad-bmm-create-product-brief.md +7 -0
  18. package/.opencode/commands/bmad-bmm-create-story.md +7 -0
  19. package/.opencode/commands/bmad-bmm-create-ux-design.md +7 -0
  20. package/.opencode/commands/bmad-bmm-dev-story.md +7 -0
  21. package/.opencode/commands/bmad-bmm-document-project.md +7 -0
  22. package/.opencode/commands/bmad-bmm-domain-research.md +7 -0
  23. package/.opencode/commands/bmad-bmm-edit-prd.md +7 -0
  24. package/.opencode/commands/bmad-bmm-generate-project-context.md +5 -0
  25. package/.opencode/commands/bmad-bmm-market-research.md +7 -0
  26. package/.opencode/commands/bmad-bmm-quick-dev.md +7 -0
  27. package/.opencode/commands/bmad-bmm-quick-spec.md +7 -0
  28. package/.opencode/commands/bmad-bmm-retrospective.md +7 -0
  29. package/.opencode/commands/bmad-bmm-sprint-planning.md +7 -0
  30. package/.opencode/commands/bmad-bmm-sprint-status.md +5 -0
  31. package/.opencode/commands/bmad-bmm-technical-research.md +7 -0
  32. package/.opencode/commands/bmad-bmm-validate-prd.md +7 -0
  33. package/.opencode/commands/bmad-brainstorming.md +7 -0
  34. package/.opencode/commands/bmad-editorial-review-prose.md +5 -0
  35. package/.opencode/commands/bmad-editorial-review-structure.md +5 -0
  36. package/.opencode/commands/bmad-help.md +5 -0
  37. package/.opencode/commands/bmad-index-docs.md +5 -0
  38. package/.opencode/commands/bmad-review-adversarial-general.md +5 -0
  39. package/.opencode/commands/bmad-shard-doc.md +5 -0
  40. package/.opencode/skills/bmad-bmad-master/SKILL.md +56 -0
  41. package/.opencode/skills/bmad-bmm-analyst/SKILL.md +65 -38
  42. package/.opencode/skills/bmad-bmm-architect/SKILL.md +49 -38
  43. package/.opencode/skills/bmad-bmm-check-implementation-readiness/SKILL.md +1092 -24
  44. package/.opencode/skills/bmad-bmm-code-review/SKILL.md +45 -13
  45. package/.opencode/skills/bmad-bmm-correct-course/SKILL.md +56 -94
  46. package/.opencode/skills/bmad-bmm-create-architecture/SKILL.md +2391 -27
  47. package/.opencode/skills/bmad-bmm-create-epics-and-stories/SKILL.md +927 -23
  48. package/.opencode/skills/bmad-bmm-create-prd/SKILL.md +9 -26
  49. package/.opencode/skills/bmad-bmm-create-product-brief/SKILL.md +1358 -22
  50. package/.opencode/skills/bmad-bmm-create-story/SKILL.md +61 -24
  51. package/.opencode/skills/bmad-bmm-create-ux-design/SKILL.md +3275 -26
  52. package/.opencode/skills/bmad-bmm-dev/SKILL.md +57 -43
  53. package/.opencode/skills/bmad-bmm-dev-story/SKILL.md +20 -13
  54. package/.opencode/skills/bmad-bmm-document-project/SKILL.md +22 -81
  55. package/.opencode/skills/bmad-bmm-domain-research/SKILL.md +53 -37
  56. package/.opencode/skills/bmad-bmm-edit-prd/SKILL.md +10 -27
  57. package/.opencode/skills/bmad-bmm-generate-project-context/SKILL.md +797 -28
  58. package/.opencode/skills/bmad-bmm-market-research/SKILL.md +53 -37
  59. package/.opencode/skills/bmad-bmm-pm/SKILL.md +60 -39
  60. package/.opencode/skills/bmad-bmm-qa/SKILL.md +77 -35
  61. package/.opencode/skills/bmad-bmm-qa-automate/SKILL.md +47 -129
  62. package/.opencode/skills/bmad-bmm-quick-dev/SKILL.md +802 -30
  63. package/.opencode/skills/bmad-bmm-quick-flow-solo-dev/SKILL.md +57 -36
  64. package/.opencode/skills/bmad-bmm-quick-spec/SKILL.md +684 -27
  65. package/.opencode/skills/bmad-bmm-retrospective/SKILL.md +55 -200
  66. package/.opencode/skills/bmad-bmm-sm/SKILL.md +57 -36
  67. package/.opencode/skills/bmad-bmm-sprint-planning/SKILL.md +51 -52
  68. package/.opencode/skills/bmad-bmm-sprint-status/SKILL.md +30 -99
  69. package/.opencode/skills/bmad-bmm-tech-writer/SKILL.md +70 -0
  70. package/.opencode/skills/bmad-bmm-technical-research/SKILL.md +53 -37
  71. package/.opencode/skills/bmad-bmm-ux-designer/SKILL.md +48 -37
  72. package/.opencode/skills/bmad-bmm-validate-prd/SKILL.md +10 -27
  73. package/.opencode/skills/bmad-brainstorming/SKILL.md +2048 -0
  74. package/.opencode/skills/bmad-editorial-review-prose/SKILL.md +107 -0
  75. package/.opencode/skills/bmad-editorial-review-structure/SKILL.md +214 -0
  76. package/.opencode/skills/bmad-help/SKILL.md +82 -0
  77. package/.opencode/skills/bmad-index-docs/SKILL.md +70 -0
  78. package/.opencode/skills/bmad-party-mode/SKILL.md +682 -0
  79. package/.opencode/skills/bmad-review-adversarial-general/SKILL.md +53 -0
  80. package/.opencode/skills/bmad-shard-doc/SKILL.md +113 -0
  81. package/README.md +28 -4
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +350 -47
  84. package/package.json +4 -3
  85. package/.opencode/agents/bmm-tech-writer-tech-writer.md +0 -44
  86. package/.opencode/agents/cis-brainstorming-coach.md +0 -38
  87. package/.opencode/agents/cis-creative-problem-solver.md +0 -38
  88. package/.opencode/agents/cis-design-thinking-coach.md +0 -38
  89. package/.opencode/agents/cis-innovation-strategist.md +0 -38
  90. package/.opencode/agents/cis-presentation-master.md +0 -54
  91. package/.opencode/agents/cis-storyteller-storyteller.md +0 -38
  92. package/.opencode/agents/core-bmad-master.md +0 -39
  93. package/.opencode/agents/gen-subagent.md +0 -311
  94. package/.opencode/agents/party-mode.md +0 -812
  95. package/.opencode/agents/tea-tea.md +0 -48
  96. package/.opencode/skills/bmad-bmm-dev-team-mode/SKILL.md +0 -300
  97. package/.opencode/skills/bmad-bmm-tech-writer-tech-writer/SKILL.md +0 -51
  98. package/.opencode/skills/bmad-cis-brainstorming-coach/SKILL.md +0 -46
  99. package/.opencode/skills/bmad-cis-creative-problem-solver/SKILL.md +0 -46
  100. package/.opencode/skills/bmad-cis-design-thinking/SKILL.md +0 -156
  101. package/.opencode/skills/bmad-cis-design-thinking-coach/SKILL.md +0 -46
  102. package/.opencode/skills/bmad-cis-innovation-strategist/SKILL.md +0 -46
  103. package/.opencode/skills/bmad-cis-innovation-strategy/SKILL.md +0 -238
  104. package/.opencode/skills/bmad-cis-presentation-master/SKILL.md +0 -52
  105. package/.opencode/skills/bmad-cis-problem-solving/SKILL.md +0 -212
  106. package/.opencode/skills/bmad-cis-storyteller-storyteller/SKILL.md +0 -48
  107. package/.opencode/skills/bmad-cis-storytelling/SKILL.md +0 -290
  108. package/.opencode/skills/bmad-core-bmad-master/SKILL.md +0 -48
  109. package/.opencode/skills/bmad-core-brainstorming/SKILL.md +0 -74
  110. package/.opencode/skills/bmad-core-party-mode/SKILL.md +0 -241
  111. package/.opencode/skills/bmad-core-task-editorial-review-prose/SKILL.md +0 -74
  112. package/.opencode/skills/bmad-core-task-editorial-review-structure/SKILL.md +0 -151
  113. package/.opencode/skills/bmad-core-task-help/SKILL.md +0 -100
  114. package/.opencode/skills/bmad-core-task-index-docs/SKILL.md +0 -46
  115. package/.opencode/skills/bmad-core-task-review-adversarial-general/SKILL.md +0 -36
  116. package/.opencode/skills/bmad-core-task-shard-doc/SKILL.md +0 -80
  117. package/.opencode/skills/bmad-tea-tea/SKILL.md +0 -57
  118. package/.opencode/skills/bmad-tea-teach-me-testing/SKILL.md +0 -106
  119. package/.opencode/skills/bmad-tea-testarch-atdd/SKILL.md +0 -62
  120. package/.opencode/skills/bmad-tea-testarch-automate/SKILL.md +0 -67
  121. package/.opencode/skills/bmad-tea-testarch-ci/SKILL.md +0 -62
  122. package/.opencode/skills/bmad-tea-testarch-framework/SKILL.md +0 -62
  123. package/.opencode/skills/bmad-tea-testarch-nfr/SKILL.md +0 -60
  124. package/.opencode/skills/bmad-tea-testarch-test-design/SKILL.md +0 -76
  125. package/.opencode/skills/bmad-tea-testarch-test-review/SKILL.md +0 -60
  126. package/.opencode/skills/bmad-tea-testarch-trace/SKILL.md +0 -60
@@ -1,37 +1,20 @@
1
1
  ---
2
2
  name: bmad-bmm-quick-spec
3
3
  description: "Conversational spec engineering - ask questions, investigate code, produce implementation-ready tech-spec."
4
- license: MIT
5
- compatibility: opencode
6
- metadata:
7
- source: "bmad-method"
8
- module: "bmm"
9
- workflow: "quick-spec"
10
- standalone: false
11
4
  ---
12
5
 
13
- # quick-spec Workflow
14
-
15
- Conversational spec engineering - ask questions, investigate code, produce implementation-ready tech-spec.
16
-
17
- ## How to Use
18
-
19
- This skill provides a structured workflow. Follow the steps below:
20
-
21
- ## Instructions
22
-
23
6
  # Quick-Spec Workflow
24
7
 
25
8
  **Goal:** Create implementation-ready technical specifications through conversational discovery, code investigation, and structured documentation.
26
9
 
27
10
  **READY FOR DEVELOPMENT STANDARD:**
28
11
 
29
- A specification is considered "Ready for Development" ONLY if it meets the following:
12
+ A specification is considered "Ready for Development" ONLY if it meets the following:
30
13
 
31
14
  - **Actionable**: Every task has a clear file path and specific action.
32
15
  - **Logical**: Tasks are ordered by dependency (lowest level first).
33
16
  - **Testable**: All ACs follow Given/When/Then and cover happy path and edge cases.
34
- - **Complete**: All investigation results from Step 2 are inlined; no placeholders or "TBD".
17
+ - **Complete**: All investigation results from Step 2 are inlined; no placeholders or "TBD".
35
18
  - **Self-Contained**: A fresh agent can implement the feature without reading the workflow history.
36
19
 
37
20
  ---
@@ -49,7 +32,7 @@ This uses **step-file architecture** for disciplined execution:
49
32
  - **Micro-file Design**: Each step is a self-contained instruction file that must be followed exactly
50
33
  - **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until directed
51
34
  - **Sequential Enforcement**: Sequence within step files must be completed in order, no skipping or optimization
52
- - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array
35
+ - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array
53
36
  - **Append-Only Building**: Build the tech-spec by updating content as directed
54
37
 
55
38
  ### Step Processing Rules
@@ -58,7 +41,7 @@ This uses **step-file architecture** for disciplined execution:
58
41
  2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
59
42
  3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
60
43
  4. **CHECK CONTINUATION**: Only proceed to next step when user selects [C] (Continue)
61
- 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
44
+ 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
62
45
  6. **LOAD NEXT**: When directed, read fully and follow the next step file
63
46
 
64
47
  ### Critical Rules (NO EXCEPTIONS)
@@ -77,13 +60,687 @@ This uses **step-file architecture** for disciplined execution:
77
60
 
78
61
  ### 1. Configuration Loading
79
62
 
80
- Load and read full config from `{main_config}` and resolve:
63
+ Load and read full config from `{main_config}` and resolve:
81
64
 
82
- - `project_name`, `output_folder`, `planning_artifacts`, `implementation_artifacts`, `user_name`
83
- - `communication_language`, `document_output_language`, `user_skill_level`
84
- - `date` as system-generated current datetime
85
- - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
65
+ - `project_name`, `output_folder`, `planning_artifacts`, `implementation_artifacts`, `user_name`
66
+ - `communication_language`, `document_output_language`, `user_skill_level`
67
+ - `date` as system-generated current datetime
68
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
86
69
 
87
70
  ### 2. First Step Execution
88
71
 
89
- Read fully and follow: `steps/step-01-understand.md` to begin the workflow.
72
+ Read fully and follow: `steps/step-01-understand.md` to begin the workflow.
73
+
74
+ ---
75
+ name: 'step-01-understand'
76
+ description: 'Analyze the requirement delta between current state and what user wants to build'
77
+
78
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-spec'
79
+ nextStepFile: './step-02-investigate.md'
80
+ skipToStepFile: './step-03-generate.md'
81
+ templateFile: '{workflow_path}/tech-spec-template.md'
82
+ wipFile: '{implementation_artifacts}/tech-spec-wip.md'
83
+ ---
84
+
85
+ # Step 1: Analyze Requirement Delta
86
+
87
+ **Progress: Step 1 of 4** - Next: Deep Investigation
88
+
89
+ ## RULES:
90
+
91
+ - MUST NOT skip steps.
92
+ - MUST NOT optimize sequence.
93
+ - MUST follow exact instructions.
94
+ - MUST NOT look ahead to future steps.
95
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
96
+
97
+ ## CONTEXT:
98
+
99
+ - Variables from `workflow.md` are available in memory.
100
+ - Focus: Define the technical requirement delta and scope.
101
+ - Investigation: Perform surface-level code scans ONLY to verify the delta. Reserve deep dives into implementation consequences for Step 2.
102
+ - Objective: Establish a verifiable delta between current state and target state.
103
+
104
+ ## SEQUENCE OF INSTRUCTIONS
105
+
106
+ ### 0. Check for Work in Progress
107
+
108
+ a) **Before anything else, check if `{wipFile}` exists:**
109
+
110
+ b) **IF WIP FILE EXISTS:**
111
+
112
+ 1. Read the frontmatter and extract: `title`, `slug`, `stepsCompleted`
113
+ 2. Calculate progress: `lastStep = max(stepsCompleted)`
114
+ 3. Present to user:
115
+
116
+ ```
117
+ Hey {user_name}! Found a tech-spec in progress:
118
+
119
+ **{title}** - Step {lastStep} of 4 complete
120
+
121
+ Is this what you're here to continue?
122
+
123
+ [Y] Yes, pick up where I left off
124
+ [N] No, archive it and start something new
125
+ ```
126
+
127
+ 4. **HALT and wait for user selection.**
128
+
129
+ a) **Menu Handling:**
130
+
131
+ - **[Y] Continue existing:**
132
+ - Jump directly to the appropriate step based on `stepsCompleted`:
133
+ - `[1]` → Load `{nextStepFile}` (Step 2)
134
+ - `[1, 2]` → Load `{skipToStepFile}` (Step 3)
135
+ - `[1, 2, 3]` → Load `./step-04-review.md` (Step 4)
136
+ - **[N] Archive and start fresh:**
137
+ - Rename `{wipFile}` to `{implementation_artifacts}/tech-spec-{slug}-archived-{date}.md`
138
+
139
+ ### 1. Greet and Ask for Initial Request
140
+
141
+ a) **Greet the user briefly:**
142
+
143
+ "Hey {user_name}! What are we building today?"
144
+
145
+ b) **Get their initial description.** Don't ask detailed questions yet - just understand enough to know where to look.
146
+
147
+ ### 2. Quick Orient Scan
148
+
149
+ a) **Before asking detailed questions, do a rapid scan to understand the landscape:**
150
+
151
+ b) **Check for existing context docs:**
152
+
153
+ - Check `{output_folder}` and `{planning_artifacts}`for planning documents (PRD, architecture, epics, research)
154
+ - Check for `**/project-context.md` - if it exists, skim for patterns and conventions
155
+ - Check for any existing stories or specs related to user's request
156
+
157
+ c) **If user mentioned specific code/features, do a quick scan:**
158
+
159
+ - Search for relevant files/classes/functions they mentioned
160
+ - Skim the structure (don't deep-dive yet - that's Step 2)
161
+ - Note: tech stack, obvious patterns, file locations
162
+
163
+ d) **Build mental model:**
164
+
165
+ - What's the likely landscape for this feature?
166
+ - What's the likely scope based on what you found?
167
+ - What questions do you NOW have, informed by the code?
168
+
169
+ **This scan should take < 30 seconds. Just enough to ask smart questions.**
170
+
171
+ ### 3. Ask Informed Questions
172
+
173
+ a) **Now ask clarifying questions - but make them INFORMED by what you found:**
174
+
175
+ Instead of generic questions like "What's the scope?", ask specific ones like:
176
+ - "`AuthService` handles validation in the controller — should the new field follow that pattern or move it to a dedicated validator?"
177
+ - "`NavigationSidebar` component uses local state for the 'collapsed' toggle — should we stick with that or move it to the global store?"
178
+ - "The epics doc mentions X - is this related?"
179
+
180
+ **Adapt to {user_skill_level}.** Technical users want technical questions. Non-technical users need translation.
181
+
182
+ b) **If no existing code is found:**
183
+
184
+ - Ask about intended architecture, patterns, constraints
185
+ - Ask what similar systems they'd like to emulate
186
+
187
+ ### 4. Capture Core Understanding
188
+
189
+ a) **From the conversation, extract and confirm:**
190
+
191
+ - **Title**: A clear, concise name for this work
192
+ - **Slug**: URL-safe version of title (lowercase, hyphens, no spaces)
193
+ - **Problem Statement**: What problem are we solving?
194
+ - **Solution**: High-level approach (1-2 sentences)
195
+ - **In Scope**: What's included
196
+ - **Out of Scope**: What's explicitly NOT included
197
+
198
+ b) **Ask the user to confirm the captured understanding before proceeding.**
199
+
200
+ ### 5. Initialize WIP File
201
+
202
+ a) **Create the tech-spec WIP file:**
203
+
204
+ 1. Copy template from `{templateFile}`
205
+ 2. Write to `{wipFile}`
206
+ 3. Update frontmatter with captured values:
207
+ ```yaml
208
+ ---
209
+ title: '{title}'
210
+ slug: '{slug}'
211
+ created: '{date}'
212
+ status: 'in-progress'
213
+ stepsCompleted: [1]
214
+ tech_stack: []
215
+ files_to_modify: []
216
+ code_patterns: []
217
+ test_patterns: []
218
+ ---
219
+ ```
220
+ 4. Fill in Overview section with Problem Statement, Solution, and Scope
221
+ 5. Fill in Context for Development section with any technical preferences or constraints gathered during informed discovery.
222
+ 6. Write the file
223
+
224
+ b) **Report to user:**
225
+
226
+ "Created: `{wipFile}`
227
+
228
+ **Captured:**
229
+
230
+ - Title: {title}
231
+ - Problem: {problem_statement_summary}
232
+ - Scope: {scope_summary}"
233
+
234
+ ### 6. Present Checkpoint Menu
235
+
236
+ a) **Display menu:**
237
+
238
+ Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Deep Investigation (Step 2 of 4)"
239
+
240
+ b) **HALT and wait for user selection.**
241
+
242
+ #### Menu Handling Logic:
243
+
244
+ - IF A: Read fully and follow: `{advanced_elicitation}` with current tech-spec content, process enhanced insights, ask user "Accept improvements? (y/n)", if yes update WIP file then redisplay menu, if no keep original then redisplay menu
245
+ - IF P: Read fully and follow: `{party_mode_exec}` with current tech-spec content, process collaborative insights, ask user "Accept changes? (y/n)", if yes update WIP file then redisplay menu, if no keep original then redisplay menu
246
+ - IF C: Verify `{wipFile}` has `stepsCompleted: [1]`, then read fully and follow: `{nextStepFile}`
247
+ - IF Any other comments or queries: respond helpfully then redisplay menu
248
+
249
+ #### EXECUTION RULES:
250
+
251
+ - ALWAYS halt and wait for user input after presenting menu
252
+ - ONLY proceed to next step when user selects 'C'
253
+ - After A or P execution, return to this menu
254
+
255
+ ---
256
+
257
+ ## REQUIRED OUTPUTS:
258
+
259
+ - MUST initialize WIP file with captured metadata.
260
+
261
+ ## VERIFICATION CHECKLIST:
262
+
263
+ - [ ] WIP check performed FIRST before any greeting.
264
+ - [ ] `{wipFile}` created with correct frontmatter, Overview, Context for Development, and `stepsCompleted: [1]`.
265
+ - [ ] User selected [C] to continue.
266
+
267
+
268
+ ---
269
+ name: 'step-02-investigate'
270
+ description: 'Map technical constraints and anchor points within the codebase'
271
+
272
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-spec'
273
+ nextStepFile: './step-03-generate.md'
274
+ wipFile: '{implementation_artifacts}/tech-spec-wip.md'
275
+ ---
276
+
277
+ # Step 2: Map Technical Constraints & Anchor Points
278
+
279
+ **Progress: Step 2 of 4** - Next: Generate Plan
280
+
281
+ ## RULES:
282
+
283
+ - MUST NOT skip steps.
284
+ - MUST NOT optimize sequence.
285
+ - MUST follow exact instructions.
286
+ - MUST NOT generate the full spec yet (that's Step 3).
287
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
288
+
289
+ ## CONTEXT:
290
+
291
+ - Requires `{wipFile}` from Step 1 with the "Problem Statement" defined.
292
+ - Focus: Map the problem statement to specific anchor points in the codebase.
293
+ - Output: Exact files to touch, classes/patterns to extend, and technical constraints identified.
294
+ - Objective: Provide the implementation-ready ground truth for the plan.
295
+
296
+ ## SEQUENCE OF INSTRUCTIONS
297
+
298
+ ### 1. Load Current State
299
+
300
+ **Read `{wipFile}` and extract:**
301
+
302
+ - Problem statement and scope from Overview section
303
+ - Any context gathered in Step 1
304
+
305
+ ### 2. Execute Investigation Path
306
+
307
+ **Universal Code Investigation:**
308
+
309
+ _Isolate deep exploration in sub-agents/tasks where available. Return distilled summaries only to prevent context snowballing._
310
+
311
+ a) **Build on Step 1's Quick Scan**
312
+
313
+ Review what was found in Step 1's orient scan. Then ask:
314
+
315
+ "Based on my quick look, I see [files/patterns found]. Are there other files or directories I should investigate deeply?"
316
+
317
+ b) **Read and Analyze Code**
318
+
319
+ For each file/directory provided:
320
+
321
+ - Read the complete file(s)
322
+ - Identify patterns, conventions, coding style
323
+ - Note dependencies and imports
324
+ - Find related test files
325
+
326
+ **If NO relevant code is found (Clean Slate):**
327
+
328
+ - Identify the target directory where the feature should live.
329
+ - Scan parent directories for architectural context.
330
+ - Identify standard project utilities or boilerplate that SHOULD be used.
331
+ - Document this as "Confirmed Clean Slate" - establishing that no legacy constraints exist.
332
+
333
+
334
+ c) **Document Technical Context**
335
+
336
+ Capture and confirm with user:
337
+
338
+ - **Tech Stack**: Languages, frameworks, libraries
339
+ - **Code Patterns**: Architecture patterns, naming conventions, file structure
340
+ - **Files to Modify/Create**: Specific files that will need changes or new files to be created
341
+ - **Test Patterns**: How tests are structured, test frameworks used
342
+
343
+ d) **Look for project-context.md**
344
+
345
+ If `**/project-context.md` exists and wasn't loaded in Step 1:
346
+
347
+ - Load it now
348
+ - Extract patterns and conventions
349
+ - Note any rules that must be followed
350
+
351
+ ### 3. Update WIP File
352
+
353
+ **Update `{wipFile}` frontmatter:**
354
+
355
+ ```yaml
356
+ ---
357
+ # ... existing frontmatter ...
358
+ stepsCompleted: [1, 2]
359
+ tech_stack: ['{captured_tech_stack}']
360
+ files_to_modify: ['{captured_files}']
361
+ code_patterns: ['{captured_patterns}']
362
+ test_patterns: ['{captured_test_patterns}']
363
+ ---
364
+ ```
365
+
366
+ **Update the Context for Development section:**
367
+
368
+ Fill in:
369
+
370
+ - Codebase Patterns (from investigation)
371
+ - Files to Reference table (files reviewed)
372
+ - Technical Decisions (any decisions made during investigation)
373
+
374
+ **Report to user:**
375
+
376
+ "**Context Gathered:**
377
+
378
+ - Tech Stack: {tech_stack_summary}
379
+ - Files to Modify: {files_count} files identified
380
+ - Patterns: {patterns_summary}
381
+ - Tests: {test_patterns_summary}"
382
+
383
+ ### 4. Present Checkpoint Menu
384
+
385
+ Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Generate Spec (Step 3 of 4)"
386
+
387
+ **HALT and wait for user selection.**
388
+
389
+ #### Menu Handling Logic:
390
+
391
+ - IF A: Read fully and follow: `{advanced_elicitation}` with current tech-spec content, process enhanced insights, ask user "Accept improvements? (y/n)", if yes update WIP file then redisplay menu, if no keep original then redisplay menu
392
+ - IF P: Read fully and follow: `{party_mode_exec}` with current tech-spec content, process collaborative insights, ask user "Accept changes? (y/n)", if yes update WIP file then redisplay menu, if no keep original then redisplay menu
393
+ - IF C: Verify frontmatter updated with `stepsCompleted: [1, 2]`, then read fully and follow: `{nextStepFile}`
394
+ - IF Any other comments or queries: respond helpfully then redisplay menu
395
+
396
+ #### EXECUTION RULES:
397
+
398
+ - ALWAYS halt and wait for user input after presenting menu
399
+ - ONLY proceed to next step when user selects 'C'
400
+ - After A or P execution, return to this menu
401
+
402
+ ---
403
+
404
+ ## REQUIRED OUTPUTS:
405
+
406
+ - MUST document technical context (stack, patterns, files identified).
407
+ - MUST update `{wipFile}` with functional context.
408
+
409
+ ## VERIFICATION CHECKLIST:
410
+
411
+ - [ ] Technical mapping performed and documented.
412
+ - [ ] `stepsCompleted: [1, 2]` set in frontmatter.
413
+
414
+
415
+ ---
416
+ name: 'step-03-generate'
417
+ description: 'Build the implementation plan based on the technical mapping of constraints'
418
+
419
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-spec'
420
+ nextStepFile: './step-04-review.md'
421
+ wipFile: '{implementation_artifacts}/tech-spec-wip.md'
422
+ ---
423
+
424
+ # Step 3: Generate Implementation Plan
425
+
426
+ **Progress: Step 3 of 4** - Next: Review & Finalize
427
+
428
+ ## RULES:
429
+
430
+ - MUST NOT skip steps.
431
+ - MUST NOT optimize sequence.
432
+ - MUST follow exact instructions.
433
+ - MUST NOT implement anything - just document.
434
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
435
+
436
+ ## CONTEXT:
437
+
438
+ - Requires `{wipFile}` with defined "Overview" and "Context for Development" sections.
439
+ - Focus: Create the implementation sequence that addresses the requirement delta using the captured technical context.
440
+ - Output: Implementation-ready tasks with specific files and instructions.
441
+ - Target: Meet the **READY FOR DEVELOPMENT** standard defined in `workflow.md`.
442
+
443
+ ## SEQUENCE OF INSTRUCTIONS
444
+
445
+ ### 1. Load Current State
446
+
447
+ **Read `{wipFile}` completely and extract:**
448
+
449
+ - All frontmatter values
450
+ - Overview section (Problem, Solution, Scope)
451
+ - Context for Development section (Patterns, Files, Decisions)
452
+
453
+ ### 2. Generate Implementation Plan
454
+
455
+ Generate specific implementation tasks:
456
+
457
+ a) **Task Breakdown**
458
+
459
+ - Each task should be a discrete, completable unit of work
460
+ - Tasks should be ordered logically (dependencies first)
461
+ - Include the specific files to modify in each task
462
+ - Be explicit about what changes to make
463
+
464
+ b) **Task Format**
465
+
466
+ ```markdown
467
+ - [ ] Task N: Clear action description
468
+ - File: `path/to/file.ext`
469
+ - Action: Specific change to make
470
+ - Notes: Any implementation details
471
+ ```
472
+
473
+ ### 3. Generate Acceptance Criteria
474
+
475
+ **Create testable acceptance criteria:**
476
+
477
+ Each AC should follow Given/When/Then format:
478
+
479
+ ```markdown
480
+ - [ ] AC N: Given [precondition], when [action], then [expected result]
481
+ ```
482
+
483
+ **Ensure ACs cover:**
484
+
485
+ - Happy path functionality
486
+ - Error handling
487
+ - Edge cases (if relevant)
488
+ - Integration points (if relevant)
489
+
490
+ ### 4. Complete Additional Context
491
+
492
+ **Fill in remaining sections:**
493
+
494
+ a) **Dependencies**
495
+
496
+ - External libraries or services needed
497
+ - Other tasks or features this depends on
498
+ - API or data dependencies
499
+
500
+ b) **Testing Strategy**
501
+
502
+ - Unit tests needed
503
+ - Integration tests needed
504
+ - Manual testing steps
505
+
506
+ c) **Notes**
507
+
508
+ - High-risk items from pre-mortem analysis
509
+ - Known limitations
510
+ - Future considerations (out of scope but worth noting)
511
+
512
+ ### 5. Write Complete Spec
513
+
514
+ a) **Update `{wipFile}` with all generated content:**
515
+
516
+ - Ensure all template sections are filled in
517
+ - No placeholder text remaining
518
+ - All frontmatter values current
519
+ - Update status to 'review' (NOT 'ready-for-dev' - that happens after user review in Step 4)
520
+
521
+ b) **Update frontmatter:**
522
+
523
+ ```yaml
524
+ ---
525
+ # ... existing values ...
526
+ status: 'review'
527
+ stepsCompleted: [1, 2, 3]
528
+ ---
529
+ ```
530
+
531
+ c) **Read fully and follow: `{nextStepFile}` (Step 4)**
532
+
533
+ ## REQUIRED OUTPUTS:
534
+
535
+ - Tasks MUST be specific, actionable, ordered logically, with files to modify.
536
+ - ACs MUST be testable, using Given/When/Then format.
537
+ - Status MUST be updated to 'review'.
538
+
539
+ ## VERIFICATION CHECKLIST:
540
+
541
+ - [ ] `stepsCompleted: [1, 2, 3]` set in frontmatter.
542
+ - [ ] Spec meets the **READY FOR DEVELOPMENT** standard.
543
+
544
+
545
+ ---
546
+ name: 'step-04-review'
547
+ description: 'Review and finalize the tech-spec'
548
+
549
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-spec'
550
+ wipFile: '{implementation_artifacts}/tech-spec-wip.md'
551
+ ---
552
+
553
+ # Step 4: Review & Finalize
554
+
555
+ **Progress: Step 4 of 4** - Final Step
556
+
557
+ ## RULES:
558
+
559
+ - MUST NOT skip steps.
560
+ - MUST NOT optimize sequence.
561
+ - MUST follow exact instructions.
562
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
563
+
564
+ ## CONTEXT:
565
+
566
+ - Requires `{wipFile}` from Step 3.
567
+ - MUST present COMPLETE spec content. Iterate until user is satisfied.
568
+ - **Criteria**: The spec MUST meet the **READY FOR DEVELOPMENT** standard defined in `workflow.md`.
569
+
570
+ ## SEQUENCE OF INSTRUCTIONS
571
+
572
+ ### 1. Load and Present Complete Spec
573
+
574
+ **Read `{wipFile}` completely and extract `slug` from frontmatter for later use.**
575
+
576
+ **Present to user:**
577
+
578
+ "Here's your complete tech-spec. Please review:"
579
+
580
+ [Display the complete spec content - all sections]
581
+
582
+ "**Quick Summary:**
583
+
584
+ - {task_count} tasks to implement
585
+ - {ac_count} acceptance criteria to verify
586
+ - {files_count} files to modify"
587
+
588
+ **Present review menu:**
589
+
590
+ Display: "**Select:** [C] Continue [E] Edit [Q] Questions [A] Advanced Elicitation [P] Party Mode"
591
+
592
+ **HALT and wait for user selection.**
593
+
594
+ #### Menu Handling Logic:
595
+
596
+ - IF C: Proceed to Section 3 (Finalize the Spec)
597
+ - IF E: Proceed to Section 2 (Handle Review Feedback), then return here and redisplay menu
598
+ - IF Q: Answer questions, then redisplay this menu
599
+ - IF A: Read fully and follow: `{advanced_elicitation}` with current spec content, process enhanced insights, ask user "Accept improvements? (y/n)", if yes update spec then redisplay menu, if no keep original then redisplay menu
600
+ - IF P: Read fully and follow: `{party_mode_exec}` with current spec content, process collaborative insights, ask user "Accept changes? (y/n)", if yes update spec then redisplay menu, if no keep original then redisplay menu
601
+ - IF Any other comments or queries: respond helpfully then redisplay menu
602
+
603
+ #### EXECUTION RULES:
604
+
605
+ - ALWAYS halt and wait for user input after presenting menu
606
+ - ONLY proceed to finalize when user selects 'C'
607
+ - After other menu items execution, return to this menu
608
+
609
+ ### 2. Handle Review Feedback
610
+
611
+ a) **If user requests changes:**
612
+
613
+ - Make the requested edits to `{wipFile}`
614
+ - Re-present the affected sections
615
+ - Ask if there are more changes
616
+ - Loop until user is satisfied
617
+
618
+ b) **If the spec does NOT meet the "Ready for Development" standard:**
619
+
620
+ - Point out the missing/weak sections (e.g., non-actionable tasks, missing ACs).
621
+ - Propose specific improvements to reach the standard.
622
+ - Make the edits once the user agrees.
623
+
624
+ c) **If user has questions:**
625
+
626
+ - Answer questions about the spec
627
+ - Clarify any confusing sections
628
+ - Make clarifying edits if needed
629
+
630
+ ### 3. Finalize the Spec
631
+
632
+ **When user confirms the spec is good AND it meets the "Ready for Development" standard:**
633
+
634
+ a) Update `{wipFile}` frontmatter:
635
+
636
+ ```yaml
637
+ ---
638
+ # ... existing values ...
639
+ status: 'ready-for-dev'
640
+ stepsCompleted: [1, 2, 3, 4]
641
+ ---
642
+ ```
643
+
644
+ b) **Rename WIP file to final filename:**
645
+ - Using the `slug` extracted in Section 1
646
+ - Rename `{wipFile}` → `{implementation_artifacts}/tech-spec-{slug}.md`
647
+ - Store this as `finalFile` for use in menus below
648
+
649
+ ### 4. Present Final Menu
650
+
651
+ a) **Display completion message and menu:**
652
+
653
+ ```
654
+ **Tech-Spec Complete!**
655
+
656
+ Saved to: {finalFile}
657
+
658
+ ---
659
+
660
+ **Next Steps:**
661
+
662
+ [A] Advanced Elicitation - refine further
663
+ [R] Adversarial Review - critique of the spec (highly recommended)
664
+ [B] Begin Development - start implementing now (not recommended)
665
+ [D] Done - exit workflow
666
+ [P] Party Mode - get expert feedback before dev
667
+
668
+ ---
669
+
670
+ Once you are fully satisfied with the spec (ideally after **Adversarial Review** and maybe a few rounds of **Advanced Elicitation**), it is recommended to run implementation in a FRESH CONTEXT for best results.
671
+
672
+ Copy this prompt to start dev:
673
+
674
+ \`\`\`
675
+ quick-dev {finalFile}
676
+ \`\`\`
677
+
678
+ This ensures the dev agent has clean context focused solely on implementation.
679
+ ```
680
+
681
+ b) **HALT and wait for user selection.**
682
+
683
+ #### Menu Handling Logic:
684
+
685
+ - IF A: Read fully and follow: `{advanced_elicitation}` with current spec content, process enhanced insights, ask user "Accept improvements? (y/n)", if yes update spec then redisplay menu, if no keep original then redisplay menu
686
+ - IF B: Read the entire workflow file at `{quick_dev_workflow}` and follow the instructions with the final spec file (warn: fresh context is better)
687
+ - IF D: Exit workflow - display final confirmation and path to spec
688
+ - IF P: Read fully and follow: `{party_mode_exec}` with current spec content, process collaborative insights, ask user "Accept changes? (y/n)", if yes update spec then redisplay menu, if no keep original then redisplay menu
689
+ - IF R: Execute Adversarial Review (see below)
690
+ - IF Any other comments or queries: respond helpfully then redisplay menu
691
+
692
+ #### EXECUTION RULES:
693
+
694
+ - ALWAYS halt and wait for user input after presenting menu
695
+ - After A, P, or R execution, return to this menu
696
+
697
+ #### Adversarial Review [R] Process:
698
+
699
+ 1. **Invoke Adversarial Review Task**:
700
+ > With `{finalFile}` constructed, invoke the review task. If possible, use information asymmetry: run this task, and only it, in a separate subagent or process with read access to the project, but no context except the `{finalFile}`.
701
+ <invoke-task>Review {finalFile} using {project-root}/_bmad/core/tasks/review-adversarial-general.xml</invoke-task>
702
+ > **Platform fallback:** If task invocation not available, load the task file and follow its instructions inline, passing `{finalFile}` as the content.
703
+ > The task should: review `{finalFile}` and return a list of findings.
704
+
705
+ 2. **Process Findings**:
706
+ > Capture the findings from the task output.
707
+ > **If zero findings:** HALT - this is suspicious. Re-analyze or request user guidance.
708
+ > Evaluate severity (Critical, High, Medium, Low) and validity (real, noise, undecided).
709
+ > DO NOT exclude findings based on severity or validity unless explicitly asked to do so.
710
+ > Order findings by severity.
711
+ > Number the ordered findings (F1, F2, F3, etc.).
712
+ > If TodoWrite or similar tool is available, turn each finding into a TODO, include ID, severity, validity, and description in the TODO; otherwise present findings as a table with columns: ID, Severity, Validity, Description
713
+
714
+ 3. Return here and redisplay menu.
715
+
716
+ ### 5. Exit Workflow
717
+
718
+ **When user selects [D]:**
719
+
720
+ "**All done!** Your tech-spec is ready at:
721
+
722
+ `{finalFile}`
723
+
724
+ When you're ready to implement, run:
725
+
726
+ ```
727
+ quick-dev {finalFile}
728
+ ```
729
+
730
+ Ship it!"
731
+
732
+ ---
733
+
734
+ ## REQUIRED OUTPUTS:
735
+
736
+ - MUST update status to 'ready-for-dev'.
737
+ - MUST rename file to `tech-spec-{slug}.md`.
738
+ - MUST provide clear next-step guidance and recommend fresh context for dev.
739
+
740
+ ## VERIFICATION CHECKLIST:
741
+
742
+ - [ ] Complete spec presented for review.
743
+ - [ ] Requested changes implemented.
744
+ - [ ] Spec verified against **READY FOR DEVELOPMENT** standard.
745
+ - [ ] `stepsCompleted: [1, 2, 3, 4]` set and file renamed.
746
+