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,25 +1,8 @@
1
1
  ---
2
2
  name: bmad-bmm-quick-dev
3
3
  description: "Flexible development - execute tech-specs OR direct instructions with optional planning."
4
- license: MIT
5
- compatibility: opencode
6
- metadata:
7
- source: "bmad-method"
8
- module: "bmm"
9
- workflow: "quick-dev"
10
- standalone: false
11
4
  ---
12
5
 
13
- # quick-dev Workflow
14
-
15
- Flexible development - execute tech-specs OR direct instructions with optional planning.
16
-
17
- ## How to Use
18
-
19
- This skill provides a structured workflow. Follow the steps below:
20
-
21
- ## Instructions
22
-
23
6
  # Quick Dev Workflow
24
7
 
25
8
  **Goal:** Execute implementation tasks efficiently, either from a tech-spec or direct user instructions.
@@ -32,8 +15,8 @@ This skill provides a structured workflow. Follow the steps below:
32
15
 
33
16
  This uses **step-file architecture** for focused execution:
34
17
 
35
- - Each step loads fresh to combat "lost in the middle"
36
- - State persists via variables: `{baseline_commit}`, `{execution_mode}`, `{tech_spec_path}`
18
+ - Each step loads fresh to combat "lost in the middle"
19
+ - State persists via variables: `{baseline_commit}`, `{execution_mode}`, `{tech_spec_path}`
37
20
  - Sequential progression through implementation phases
38
21
 
39
22
  ---
@@ -42,26 +25,815 @@ This uses **step-file architecture** for focused execution:
42
25
 
43
26
  ### Configuration Loading
44
27
 
45
- Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
28
+ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
46
29
 
47
- - `user_name`, `communication_language`, `user_skill_level`
48
- - `output_folder`, `planning_artifacts`, `implementation_artifacts`
49
- - `date` as system-generated current datetime
50
- - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
30
+ - `user_name`, `communication_language`, `user_skill_level`
31
+ - `output_folder`, `planning_artifacts`, `implementation_artifacts`
32
+ - `date` as system-generated current datetime
33
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
51
34
 
52
35
  ### Paths
53
36
 
54
- - `installed_path` = `{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev`
55
- - `project_context` = `**/project-context.md` (load if exists)
37
+ - `installed_path` = `{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev`
38
+ - `project_context` = `**/project-context.md` (load if exists)
56
39
 
57
40
  ### Related Workflows
58
41
 
59
- - `quick_spec_workflow` = `{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md`
60
- - `party_mode_exec` = `{project-root}/_bmad/core/workflows/party-mode/workflow.md`
61
- - `advanced_elicitation` = `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml`
42
+ - `quick_spec_workflow` = `{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md`
43
+ - `party_mode_exec` = `{project-root}/_bmad/core/workflows/party-mode/workflow.md`
44
+ - `advanced_elicitation` = `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml`
62
45
 
63
46
  ---
64
47
 
65
48
  ## EXECUTION
66
49
 
67
- Read fully and follow: `steps/step-01-mode-detection.md` to begin the workflow.
50
+ Read fully and follow: `steps/step-01-mode-detection.md` to begin the workflow.
51
+
52
+ ---
53
+ name: 'step-01-mode-detection'
54
+ description: 'Determine execution mode (tech-spec vs direct), handle escalation, set state variables'
55
+
56
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev'
57
+ thisStepFile: './step-01-mode-detection.md'
58
+ nextStepFile_modeA: './step-03-execute.md'
59
+ nextStepFile_modeB: './step-02-context-gathering.md'
60
+ ---
61
+
62
+ # Step 1: Mode Detection
63
+
64
+ **Goal:** Determine execution mode, capture baseline, handle escalation if needed.
65
+
66
+ ---
67
+
68
+ ## STATE VARIABLES (capture now, persist throughout)
69
+
70
+ These variables MUST be set in this step and available to all subsequent steps:
71
+
72
+ - `{baseline_commit}` - Git HEAD at workflow start (or "NO_GIT" if not a git repo)
73
+ - `{execution_mode}` - "tech-spec" or "direct"
74
+ - `{tech_spec_path}` - Path to tech-spec file (if Mode A)
75
+
76
+ ---
77
+
78
+ ## EXECUTION SEQUENCE
79
+
80
+ ### 1. Capture Baseline
81
+
82
+ First, check if the project uses Git version control:
83
+
84
+ **If Git repo exists** (`.git` directory present or `git rev-parse --is-inside-work-tree` succeeds):
85
+
86
+ - Run `git rev-parse HEAD` and store result as `{baseline_commit}`
87
+
88
+ **If NOT a Git repo:**
89
+
90
+ - Set `{baseline_commit}` = "NO_GIT"
91
+
92
+ ### 2. Load Project Context
93
+
94
+ Check if `{project_context}` exists (`**/project-context.md`). If found, load it as a foundational reference for ALL implementation decisions.
95
+
96
+ ### 3. Parse User Input
97
+
98
+ Analyze the user's input to determine mode:
99
+
100
+ **Mode A: Tech-Spec**
101
+
102
+ - User provided a path to a tech-spec file (e.g., `quick-dev tech-spec-auth.md`)
103
+ - Load the spec, extract tasks/context/AC
104
+ - Set `{execution_mode}` = "tech-spec"
105
+ - Set `{tech_spec_path}` = provided path
106
+ - **NEXT:** Read fully and follow: `step-03-execute.md`
107
+
108
+ **Mode B: Direct Instructions**
109
+
110
+ - User provided task description directly (e.g., `refactor src/foo.ts...`)
111
+ - Set `{execution_mode}` = "direct"
112
+ - **NEXT:** Evaluate escalation threshold, then proceed
113
+
114
+ ---
115
+
116
+ ## ESCALATION THRESHOLD (Mode B only)
117
+
118
+ Evaluate user input with minimal token usage (no file loading):
119
+
120
+ **Triggers escalation (if 2+ signals present):**
121
+
122
+ - Multiple components mentioned (dashboard + api + database)
123
+ - System-level language (platform, integration, architecture)
124
+ - Uncertainty about approach ("how should I", "best way to")
125
+ - Multi-layer scope (UI + backend + data together)
126
+ - Extended timeframe ("this week", "over the next few days")
127
+
128
+ **Reduces signal:**
129
+
130
+ - Simplicity markers ("just", "quickly", "fix", "bug", "typo", "simple")
131
+ - Single file/component focus
132
+ - Confident, specific request
133
+
134
+ Use holistic judgment, not mechanical keyword matching.
135
+
136
+ ---
137
+
138
+ ## ESCALATION HANDLING
139
+
140
+ ### No Escalation (simple request)
141
+
142
+ Display: "**Select:** [P] Plan first (tech-spec) [E] Execute directly"
143
+
144
+ #### Menu Handling Logic:
145
+
146
+ - IF P: Direct user to `{quick_spec_workflow}`. **EXIT Quick Dev.**
147
+ - IF E: Ask for any additional guidance, then **NEXT:** Read fully and follow: `step-02-context-gathering.md`
148
+
149
+ #### EXECUTION RULES:
150
+
151
+ - ALWAYS halt and wait for user input after presenting menu
152
+ - ONLY proceed when user makes a selection
153
+
154
+ ---
155
+
156
+ ### Escalation Triggered - Level 0-2
157
+
158
+ Present: "This looks like a focused feature with multiple components."
159
+
160
+ Display:
161
+
162
+ **[P] Plan first (tech-spec)** (recommended)
163
+ **[W] Seems bigger than quick-dev** - Recommend the Full BMad Flow PRD Process
164
+ **[E] Execute directly**
165
+
166
+ #### Menu Handling Logic:
167
+
168
+ - IF P: Direct to `{quick_spec_workflow}`. **EXIT Quick Dev.**
169
+ - IF W: Direct user to run the PRD workflow instead. **EXIT Quick Dev.**
170
+ - IF E: Ask for guidance, then **NEXT:** Read fully and follow: `step-02-context-gathering.md`
171
+
172
+ #### EXECUTION RULES:
173
+
174
+ - ALWAYS halt and wait for user input after presenting menu
175
+ - ONLY proceed when user makes a selection
176
+
177
+ ---
178
+
179
+ ### Escalation Triggered - Level 3+
180
+
181
+ Present: "This sounds like platform/system work."
182
+
183
+ Display:
184
+
185
+ **[W] Start BMad Method** (recommended)
186
+ **[P] Plan first (tech-spec)** (lighter planning)
187
+ **[E] Execute directly** - feeling lucky
188
+
189
+ #### Menu Handling Logic:
190
+
191
+ - IF P: Direct to `{quick_spec_workflow}`. **EXIT Quick Dev.**
192
+ - IF W: Direct user to run the PRD workflow instead. **EXIT Quick Dev.**
193
+ - IF E: Ask for guidance, then **NEXT:** Read fully and follow: `step-02-context-gathering.md`
194
+
195
+ #### EXECUTION RULES:
196
+
197
+ - ALWAYS halt and wait for user input after presenting menu
198
+ - ONLY proceed when user makes a selection
199
+
200
+ ---
201
+
202
+ ## NEXT STEP DIRECTIVE
203
+
204
+ **CRITICAL:** When this step completes, explicitly state which step to load:
205
+
206
+ - Mode A (tech-spec): "**NEXT:** read fully and follow: `step-03-execute.md`"
207
+ - Mode B (direct, [E] selected): "**NEXT:** Read fully and follow: `step-02-context-gathering.md`"
208
+ - Escalation ([P] or [W]): "**EXITING Quick Dev.** Follow the directed workflow."
209
+
210
+ ---
211
+
212
+ ## SUCCESS METRICS
213
+
214
+ - `{baseline_commit}` captured and stored
215
+ - `{execution_mode}` determined ("tech-spec" or "direct")
216
+ - `{tech_spec_path}` set if Mode A
217
+ - Project context loaded if exists
218
+ - Escalation evaluated appropriately (Mode B)
219
+ - Explicit NEXT directive provided
220
+
221
+ ## FAILURE MODES
222
+
223
+ - Proceeding without capturing baseline commit
224
+ - Not setting execution_mode variable
225
+ - Loading step-02 when Mode A (tech-spec provided)
226
+ - Attempting to "return" after escalation instead of EXIT
227
+ - No explicit NEXT directive at step completion
228
+
229
+
230
+ ---
231
+ name: 'step-02-context-gathering'
232
+ description: 'Quick context gathering for direct mode - identify files, patterns, dependencies'
233
+
234
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev'
235
+ thisStepFile: './step-02-context-gathering.md'
236
+ nextStepFile: './step-03-execute.md'
237
+ ---
238
+
239
+ # Step 2: Context Gathering (Direct Mode)
240
+
241
+ **Goal:** Quickly gather context for direct instructions - files, patterns, dependencies.
242
+
243
+ **Note:** This step only runs for Mode B (direct instructions). If `{execution_mode}` is "tech-spec", this step was skipped.
244
+
245
+ ---
246
+
247
+ ## AVAILABLE STATE
248
+
249
+ From step-01:
250
+
251
+ - `{baseline_commit}` - Git HEAD at workflow start
252
+ - `{execution_mode}` - Should be "direct"
253
+ - `{project_context}` - Loaded if exists
254
+
255
+ ---
256
+
257
+ ## EXECUTION SEQUENCE
258
+
259
+ ### 1. Identify Files to Modify
260
+
261
+ Based on user's direct instructions:
262
+
263
+ - Search for relevant files using glob/grep
264
+ - Identify the specific files that need changes
265
+ - Note file locations and purposes
266
+
267
+ ### 2. Find Relevant Patterns
268
+
269
+ Examine the identified files and their surroundings:
270
+
271
+ - Code style and conventions used
272
+ - Existing patterns for similar functionality
273
+ - Import/export patterns
274
+ - Error handling approaches
275
+ - Test patterns (if tests exist nearby)
276
+
277
+ ### 3. Note Dependencies
278
+
279
+ Identify:
280
+
281
+ - External libraries used
282
+ - Internal module dependencies
283
+ - Configuration files that may need updates
284
+ - Related files that might be affected
285
+
286
+ ### 4. Create Mental Plan
287
+
288
+ Synthesize gathered context into:
289
+
290
+ - List of tasks to complete
291
+ - Acceptance criteria (inferred from user request)
292
+ - Order of operations
293
+ - Files to touch
294
+
295
+ ---
296
+
297
+ ## PRESENT PLAN
298
+
299
+ Display to user:
300
+
301
+ ```
302
+ **Context Gathered:**
303
+
304
+ **Files to modify:**
305
+ - {list files}
306
+
307
+ **Patterns identified:**
308
+ - {key patterns}
309
+
310
+ **Plan:**
311
+ 1. {task 1}
312
+ 2. {task 2}
313
+ ...
314
+
315
+ **Inferred AC:**
316
+ - {acceptance criteria}
317
+
318
+ Ready to execute? (y/n/adjust)
319
+ ```
320
+
321
+ - **y:** Proceed to execution
322
+ - **n:** Gather more context or clarify
323
+ - **adjust:** Modify the plan based on feedback
324
+
325
+ ---
326
+
327
+ ## NEXT STEP DIRECTIVE
328
+
329
+ **CRITICAL:** When user confirms ready, explicitly state:
330
+
331
+ - **y:** "**NEXT:** Read fully and follow: `step-03-execute.md`"
332
+ - **n/adjust:** Continue gathering context, then re-present plan
333
+
334
+ ---
335
+
336
+ ## SUCCESS METRICS
337
+
338
+ - Files to modify identified
339
+ - Relevant patterns documented
340
+ - Dependencies noted
341
+ - Mental plan created with tasks and AC
342
+ - User confirmed readiness to proceed
343
+
344
+ ## FAILURE MODES
345
+
346
+ - Executing this step when Mode A (tech-spec)
347
+ - Proceeding without identifying files to modify
348
+ - Not presenting plan for user confirmation
349
+ - Missing obvious patterns in existing code
350
+
351
+
352
+ ---
353
+ name: 'step-03-execute'
354
+ description: 'Execute implementation - iterate through tasks, write code, run tests'
355
+
356
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev'
357
+ thisStepFile: './step-03-execute.md'
358
+ nextStepFile: './step-04-self-check.md'
359
+ ---
360
+
361
+ # Step 3: Execute Implementation
362
+
363
+ **Goal:** Implement all tasks, write tests, follow patterns, handle errors.
364
+
365
+ **Critical:** Continue through ALL tasks without stopping for milestones.
366
+
367
+ ---
368
+
369
+ ## AVAILABLE STATE
370
+
371
+ From previous steps:
372
+
373
+ - `{baseline_commit}` - Git HEAD at workflow start
374
+ - `{execution_mode}` - "tech-spec" or "direct"
375
+ - `{tech_spec_path}` - Tech-spec file (if Mode A)
376
+ - `{project_context}` - Project patterns (if exists)
377
+
378
+ From context:
379
+
380
+ - Mode A: Tasks and AC extracted from tech-spec
381
+ - Mode B: Tasks and AC from step-02 mental plan
382
+
383
+ ---
384
+
385
+ ## EXECUTION LOOP
386
+
387
+ For each task:
388
+
389
+ ### 1. Load Context
390
+
391
+ - Read files relevant to this task
392
+ - Review patterns from project-context or observed code
393
+ - Understand dependencies
394
+
395
+ ### 2. Implement
396
+
397
+ - Write code following existing patterns
398
+ - Handle errors appropriately
399
+ - Follow conventions observed in codebase
400
+ - Add appropriate comments where non-obvious
401
+
402
+ ### 3. Test
403
+
404
+ - Write tests if appropriate for the change
405
+ - Run existing tests to catch regressions
406
+ - Verify the specific AC for this task
407
+
408
+ ### 4. Mark Complete
409
+
410
+ - Check off task: `- [x] Task N`
411
+ - Continue to next task immediately
412
+
413
+ ---
414
+
415
+ ## HALT CONDITIONS
416
+
417
+ **HALT and request guidance if:**
418
+
419
+ - 3 consecutive failures on same task
420
+ - Tests fail and fix is not obvious
421
+ - Blocking dependency discovered
422
+ - Ambiguity that requires user decision
423
+
424
+ **Do NOT halt for:**
425
+
426
+ - Minor issues that can be noted and continued
427
+ - Warnings that don't block functionality
428
+ - Style preferences (follow existing patterns)
429
+
430
+ ---
431
+
432
+ ## CONTINUOUS EXECUTION
433
+
434
+ **Critical:** Do not stop between tasks for approval.
435
+
436
+ - Execute all tasks in sequence
437
+ - Only halt for blocking issues
438
+ - Tests failing = fix before continuing
439
+ - Track all completed work for self-check
440
+
441
+ ---
442
+
443
+ ## NEXT STEP
444
+
445
+ When ALL tasks are complete (or halted on blocker), read fully and follow: `step-04-self-check.md`.
446
+
447
+ ---
448
+
449
+ ## SUCCESS METRICS
450
+
451
+ - All tasks attempted
452
+ - Code follows existing patterns
453
+ - Error handling appropriate
454
+ - Tests written where appropriate
455
+ - Tests passing
456
+ - No unnecessary halts
457
+
458
+ ## FAILURE MODES
459
+
460
+ - Stopping for approval between tasks
461
+ - Ignoring existing patterns
462
+ - Not running tests after changes
463
+ - Giving up after first failure
464
+ - Not following project-context rules (if exists)
465
+
466
+
467
+ ---
468
+ name: 'step-04-self-check'
469
+ description: 'Self-audit implementation against tasks, tests, AC, and patterns'
470
+
471
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev'
472
+ thisStepFile: './step-04-self-check.md'
473
+ nextStepFile: './step-05-adversarial-review.md'
474
+ ---
475
+
476
+ # Step 4: Self-Check
477
+
478
+ **Goal:** Audit completed work against tasks, tests, AC, and patterns before external review.
479
+
480
+ ---
481
+
482
+ ## AVAILABLE STATE
483
+
484
+ From previous steps:
485
+
486
+ - `{baseline_commit}` - Git HEAD at workflow start
487
+ - `{execution_mode}` - "tech-spec" or "direct"
488
+ - `{tech_spec_path}` - Tech-spec file (if Mode A)
489
+ - `{project_context}` - Project patterns (if exists)
490
+
491
+ ---
492
+
493
+ ## SELF-CHECK AUDIT
494
+
495
+ ### 1. Tasks Complete
496
+
497
+ Verify all tasks are marked complete:
498
+
499
+ - [ ] All tasks from tech-spec or mental plan marked `[x]`
500
+ - [ ] No tasks skipped without documented reason
501
+ - [ ] Any blocked tasks have clear explanation
502
+
503
+ ### 2. Tests Passing
504
+
505
+ Verify test status:
506
+
507
+ - [ ] All existing tests still pass
508
+ - [ ] New tests written for new functionality
509
+ - [ ] No test warnings or skipped tests without reason
510
+
511
+ ### 3. Acceptance Criteria Satisfied
512
+
513
+ For each AC:
514
+
515
+ - [ ] AC is demonstrably met
516
+ - [ ] Can explain how implementation satisfies AC
517
+ - [ ] Edge cases considered
518
+
519
+ ### 4. Patterns Followed
520
+
521
+ Verify code quality:
522
+
523
+ - [ ] Follows existing code patterns in codebase
524
+ - [ ] Follows project-context rules (if exists)
525
+ - [ ] Error handling consistent with codebase
526
+ - [ ] No obvious code smells introduced
527
+
528
+ ---
529
+
530
+ ## UPDATE TECH-SPEC (Mode A only)
531
+
532
+ If `{execution_mode}` is "tech-spec":
533
+
534
+ 1. Load `{tech_spec_path}`
535
+ 2. Mark all tasks as `[x]` complete
536
+ 3. Update status to "Implementation Complete"
537
+ 4. Save changes
538
+
539
+ ---
540
+
541
+ ## IMPLEMENTATION SUMMARY
542
+
543
+ Present summary to transition to review:
544
+
545
+ ```
546
+ **Implementation Complete!**
547
+
548
+ **Summary:** {what was implemented}
549
+ **Files Modified:** {list of files}
550
+ **Tests:** {test summary - passed/added/etc}
551
+ **AC Status:** {all satisfied / issues noted}
552
+
553
+ Proceeding to adversarial code review...
554
+ ```
555
+
556
+ ---
557
+
558
+ ## NEXT STEP
559
+
560
+ Proceed immediately to `step-05-adversarial-review.md`.
561
+
562
+ ---
563
+
564
+ ## SUCCESS METRICS
565
+
566
+ - All tasks verified complete
567
+ - All tests passing
568
+ - All AC satisfied
569
+ - Patterns followed
570
+ - Tech-spec updated (if Mode A)
571
+ - Summary presented
572
+
573
+ ## FAILURE MODES
574
+
575
+ - Claiming tasks complete when they're not
576
+ - Not running tests before proceeding
577
+ - Missing AC verification
578
+ - Ignoring pattern violations
579
+ - Not updating tech-spec status (Mode A)
580
+
581
+
582
+ ---
583
+ name: 'step-05-adversarial-review'
584
+ description: 'Construct diff and invoke adversarial review task'
585
+
586
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev'
587
+ thisStepFile: './step-05-adversarial-review.md'
588
+ nextStepFile: './step-06-resolve-findings.md'
589
+ ---
590
+
591
+ # Step 5: Adversarial Code Review
592
+
593
+ **Goal:** Construct diff of all changes, invoke adversarial review task, present findings.
594
+
595
+ ---
596
+
597
+ ## AVAILABLE STATE
598
+
599
+ From previous steps:
600
+
601
+ - `{baseline_commit}` - Git HEAD at workflow start (CRITICAL for diff)
602
+ - `{execution_mode}` - "tech-spec" or "direct"
603
+ - `{tech_spec_path}` - Tech-spec file (if Mode A)
604
+
605
+ ---
606
+
607
+ ### 1. Construct Diff
608
+
609
+ Build complete diff of all changes since workflow started.
610
+
611
+ ### If `{baseline_commit}` is a Git commit hash:
612
+
613
+ **Tracked File Changes:**
614
+
615
+ ```bash
616
+ git diff {baseline_commit}
617
+ ```
618
+
619
+ **New Untracked Files:**
620
+ Only include untracked files that YOU created during this workflow (steps 2-4).
621
+ Do not include pre-existing untracked files.
622
+ For each new file created, include its full content as a "new file" addition.
623
+
624
+ ### If `{baseline_commit}` is "NO_GIT":
625
+
626
+ Use best-effort diff construction:
627
+
628
+ - List all files you modified during steps 2-4
629
+ - For each file, show the changes you made (before/after if you recall, or just current state)
630
+ - Include any new files you created with their full content
631
+ - Note: This is less precise than Git diff but still enables meaningful review
632
+
633
+ ### Capture as {diff_output}
634
+
635
+ Merge all changes into `{diff_output}`.
636
+
637
+ **Note:** Do NOT `git add` anything - this is read-only inspection.
638
+
639
+ ---
640
+
641
+ ### 2. Invoke Adversarial Review
642
+
643
+ With `{diff_output}` constructed, invoke the review task. If possible, use information asymmetry: run this step, and only it, in a separate subagent or process with read access to the project, but no context except the `{diff_output}`.
644
+
645
+ ```xml
646
+ <invoke-task>Review {diff_output} using {project-root}/_bmad/core/tasks/review-adversarial-general.xml</invoke-task>
647
+ ```
648
+
649
+ **Platform fallback:** If task invocation not available, load the task file and follow its instructions inline, passing `{diff_output}` as the content.
650
+
651
+ The task should: review `{diff_output}` and return a list of findings.
652
+
653
+ ---
654
+
655
+ ### 3. Process Findings
656
+
657
+ Capture the findings from the task output.
658
+ **If zero findings:** HALT - this is suspicious. Re-analyze or request user guidance.
659
+ Evaluate severity (Critical, High, Medium, Low) and validity (real, noise, undecided).
660
+ DO NOT exclude findings based on severity or validity unless explicitly asked to do so.
661
+ Order findings by severity.
662
+ Number the ordered findings (F1, F2, F3, etc.).
663
+ 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
664
+
665
+ ---
666
+
667
+ ## NEXT STEP
668
+
669
+ With findings in hand, read fully and follow: `step-06-resolve-findings.md` for user to choose resolution approach.
670
+
671
+ ---
672
+
673
+ ## SUCCESS METRICS
674
+
675
+ - Diff constructed from baseline_commit
676
+ - New files included in diff
677
+ - Task invoked with diff as input
678
+ - Findings received
679
+ - Findings processed into TODOs or table and presented to user
680
+
681
+ ## FAILURE MODES
682
+
683
+ - Missing baseline_commit (can't construct accurate diff)
684
+ - Not including new untracked files in diff
685
+ - Invoking task without providing diff input
686
+ - Accepting zero findings without questioning
687
+ - Presenting fewer findings than the review task returned without explicit instruction to do so
688
+
689
+
690
+ ---
691
+ name: 'step-06-resolve-findings'
692
+ description: 'Handle review findings interactively, apply fixes, update tech-spec with final status'
693
+
694
+ workflow_path: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev'
695
+ thisStepFile: './step-06-resolve-findings.md'
696
+ ---
697
+
698
+ # Step 6: Resolve Findings
699
+
700
+ **Goal:** Handle adversarial review findings interactively, apply fixes, finalize tech-spec.
701
+
702
+ ---
703
+
704
+ ## AVAILABLE STATE
705
+
706
+ From previous steps:
707
+
708
+ - `{baseline_commit}` - Git HEAD at workflow start
709
+ - `{execution_mode}` - "tech-spec" or "direct"
710
+ - `{tech_spec_path}` - Tech-spec file (if Mode A)
711
+ - Findings table from step-05
712
+
713
+ ---
714
+
715
+ ## RESOLUTION OPTIONS
716
+
717
+ Present: "How would you like to handle these findings?"
718
+
719
+ Display:
720
+
721
+ **[W] Walk through** - Discuss each finding individually
722
+ **[F] Fix automatically** - Automatically fix issues classified as "real"
723
+ **[S] Skip** - Acknowledge and proceed to commit
724
+
725
+ ### Menu Handling Logic:
726
+
727
+ - IF W: Execute WALK THROUGH section below
728
+ - IF F: Execute FIX AUTOMATICALLY section below
729
+ - IF S: Execute SKIP section below
730
+
731
+ ### EXECUTION RULES:
732
+
733
+ - ALWAYS halt and wait for user input after presenting menu
734
+ - ONLY proceed when user makes a selection
735
+
736
+ ---
737
+
738
+ ## WALK THROUGH [W]
739
+
740
+ For each finding in order:
741
+
742
+ 1. Present the finding with context
743
+ 2. Ask: **fix now / skip / discuss**
744
+ 3. If fix: Apply the fix immediately
745
+ 4. If skip: Note as acknowledged, continue
746
+ 5. If discuss: Provide more context, re-ask
747
+ 6. Move to next finding
748
+
749
+ After all findings processed, summarize what was fixed/skipped.
750
+
751
+ ---
752
+
753
+ ## FIX AUTOMATICALLY [F]
754
+
755
+ 1. Filter findings to only those classified as "real"
756
+ 2. Apply fixes for each real finding
757
+ 3. Report what was fixed:
758
+
759
+ ```
760
+ **Auto-fix Applied:**
761
+ - F1: {description of fix}
762
+ - F3: {description of fix}
763
+ ...
764
+
765
+ Skipped (noise/uncertain): F2, F4
766
+ ```
767
+
768
+ ---
769
+
770
+ ## SKIP [S]
771
+
772
+ 1. Acknowledge all findings were reviewed
773
+ 2. Note that user chose to proceed without fixes
774
+ 3. Continue to completion
775
+
776
+ ---
777
+
778
+ ## UPDATE TECH-SPEC (Mode A only)
779
+
780
+ If `{execution_mode}` is "tech-spec":
781
+
782
+ 1. Load `{tech_spec_path}`
783
+ 2. Update status to "Completed"
784
+ 3. Add review notes:
785
+ ```
786
+ ## Review Notes
787
+ - Adversarial review completed
788
+ - Findings: {count} total, {fixed} fixed, {skipped} skipped
789
+ - Resolution approach: {walk-through/auto-fix/skip}
790
+ ```
791
+ 4. Save changes
792
+
793
+ ---
794
+
795
+ ## COMPLETION OUTPUT
796
+
797
+ ```
798
+ **Review complete. Ready to commit.**
799
+
800
+ **Implementation Summary:**
801
+ - {what was implemented}
802
+ - Files modified: {count}
803
+ - Tests: {status}
804
+ - Review findings: {X} addressed, {Y} skipped
805
+
806
+ {Explain what was implemented based on user_skill_level}
807
+ ```
808
+
809
+ ---
810
+
811
+ ## WORKFLOW COMPLETE
812
+
813
+ This is the final step. The Quick Dev workflow is now complete.
814
+
815
+ User can:
816
+
817
+ - Commit changes
818
+ - Run additional tests
819
+ - Start new Quick Dev session
820
+
821
+ ---
822
+
823
+ ## SUCCESS METRICS
824
+
825
+ - User presented with resolution options
826
+ - Chosen approach executed correctly
827
+ - Fixes applied cleanly (if applicable)
828
+ - Tech-spec updated with final status (Mode A)
829
+ - Completion summary provided
830
+ - User understands what was implemented
831
+
832
+ ## FAILURE MODES
833
+
834
+ - Not presenting resolution options
835
+ - Auto-fixing "noise" or "uncertain" findings
836
+ - Not updating tech-spec after resolution (Mode A)
837
+ - No completion summary
838
+ - Leaving user unclear on next steps
839
+