bmad-method 6.0.0-alpha.1 → 6.0.0-alpha.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 (48) hide show
  1. package/.claude/settings.local.json +11 -1
  2. package/README.md +115 -165
  3. package/docs/BMad-Method-V6-Quick-Start.md +341 -0
  4. package/docs/index.md +229 -0
  5. package/docs/v4-to-v6-upgrade.md +9 -7
  6. package/package.json +1 -1
  7. package/src/modules/bmb/README.md +135 -73
  8. package/src/modules/bmb/workflows/create-agent/README.md +126 -243
  9. package/src/modules/bmb/workflows/create-agent/instructions.md +25 -12
  10. package/src/modules/bmb/workflows/create-module/README.md +163 -154
  11. package/src/modules/bmb/workflows/create-workflow/instructions.md +16 -8
  12. package/src/modules/bmm/README.md +86 -83
  13. package/src/modules/bmm/workflows/1-analysis/brainstorm-game/instructions.md +45 -26
  14. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/README.md +100 -16
  15. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +42 -23
  16. package/src/modules/bmm/workflows/1-analysis/game-brief/instructions.md +42 -28
  17. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +38 -27
  18. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +24 -34
  19. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +23 -34
  20. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +30 -14
  21. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +23 -34
  22. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +42 -24
  23. package/src/modules/bmm/workflows/2-plan-workflows/gdd/instructions-gdd.md +35 -22
  24. package/src/modules/bmm/workflows/2-plan-workflows/narrative/instructions-narrative.md +73 -22
  25. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +45 -63
  26. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +46 -62
  27. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +46 -53
  28. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +78 -47
  29. package/src/modules/bmm/workflows/4-implementation/create-story/README.md +99 -82
  30. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +2 -0
  31. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +3 -0
  32. package/src/modules/bmm/workflows/README.md +149 -511
  33. package/src/modules/bmm/workflows/workflow-status/README.md +38 -19
  34. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +117 -24
  35. package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +2 -2
  36. package/src/modules/bmm/workflows/workflow-status/instructions.md +173 -111
  37. package/src/modules/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +49 -0
  38. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +31 -0
  39. package/src/modules/bmm/workflows/workflow-status/workflow.yaml +3 -3
  40. package/src/modules/cis/README.md +153 -0
  41. package/src/modules/cis/workflows/README.md +102 -30
  42. package/src/modules/cis/workflows/storytelling/instructions.md +10 -2
  43. package/tools/bmad-npx-wrapper.js +10 -98
  44. package/tools/cli/installers/lib/core/manifest-generator.js +4 -1
  45. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.md +0 -30
  46. package/src/modules/cis/readme.md +0 -86
  47. /package/src/modules/bmm/sub-modules/claude-code/{readme.md → README.md} +0 -0
  48. /package/src/modules/bmm/workflows/3-solutioning/architecture/{readme.md → README.md} +0 -0
@@ -67,19 +67,27 @@ Use: `prd`
67
67
  </check>
68
68
  </step>
69
69
 
70
- <step n="0.5" goal="Validate workflow sequencing">
71
-
72
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
73
- <param>mode: validate</param>
74
- <param>calling_workflow: gdd</param>
75
- </invoke-workflow>
70
+ <step n="0.5" goal="Validate workflow sequencing" tag="workflow-status">
71
+
72
+ <check if="standalone_mode != true">
73
+ <action>Check status of "gdd" workflow in loaded status file</action>
74
+
75
+ <check if="gdd status is file path (already completed)">
76
+ <output>⚠️ GDD already completed: {{gdd status}}</output>
77
+ <ask>Re-running will overwrite the existing GDD. Continue? (y/n)</ask>
78
+ <check if="n">
79
+ <output>Exiting. Use workflow-status to see your next step.</output>
80
+ <action>Exit workflow</action>
81
+ </check>
82
+ </check>
76
83
 
77
- <check if="warning != ''">
78
- <output>{{warning}}</output>
79
- <ask>Continue with GDD anyway? (y/n)</ask>
80
- <check if="n">
81
- <output>{{suggestion}}</output>
82
- <action>Exit workflow</action>
84
+ <check if="gdd is not the next expected workflow (latter items are completed already in the list)">
85
+ <output>⚠️ Next expected workflow: {{next_workflow}}. GDD is out of sequence.</output>
86
+ <ask>Continue with GDD anyway? (y/n)</ask>
87
+ <check if="n">
88
+ <output>Exiting. Run {{next_workflow}} instead.</output>
89
+ <action>Exit workflow</action>
90
+ </check>
83
91
  </check>
84
92
  </check>
85
93
  </step>
@@ -328,18 +336,23 @@ For each {{placeholder}} in the fragment, elicit and capture that information.
328
336
 
329
337
  </step>
330
338
 
331
- <step n="15" goal="Update status and populate story sequence">
339
+ <step n="15" goal="Update status and populate story sequence" tag="workflow-status">
332
340
 
333
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
334
- <param>mode: update</param>
335
- <param>action: complete_workflow</param>
336
- <param>workflow_name: gdd</param>
337
- <param>populate_stories_from: {epics_output_file}</param>
338
- </invoke-workflow>
341
+ <check if="standalone_mode != true">
342
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
343
+ <action>Find workflow_status key "gdd"</action>
344
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
345
+ <action>Update workflow_status["gdd"] = "{output_folder}/bmm-gdd-{{game_name}}-{{date}}.md"</action>
346
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
347
+
348
+ <action>Parse {epics_output_file} to extract all stories</action>
349
+ <action>Populate story_sequence section in status file with story IDs</action>
350
+ <action>Set each story status to "not-started"</action>
351
+ <output>Loaded {{total_stories}} stories from epics into story sequence.</output>
339
352
 
340
- <check if="success == true">
341
- <output>Status updated! Next: {{next_workflow}} ({{next_agent}} agent)</output>
342
- <output>Loaded {{total_stories}} stories from epics.</output>
353
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
354
+ <action>Determine next agent from path file based on next workflow</action>
355
+ <output>Next workflow: {{next_workflow}} ({{next_agent}} agent)</output>
343
356
  </check>
344
357
 
345
358
  </step>
@@ -10,20 +10,40 @@
10
10
  <critical>If users mention gameplay mechanics, note them but keep focus on narrative</critical>
11
11
  <critical>Facilitate good brainstorming techniques throughout with the user, pushing them to come up with much of the narrative you will help weave together. The goal is for the user to feel that they crafted the narrative and story arc unless they push you to do it all or indicate YOLO</critical>
12
12
 
13
- <step n="0" goal="Check for workflow status">
13
+ <step n="0" goal="Check for workflow status" tag="workflow-status">
14
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
14
15
 
15
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
16
- <param>mode: init-check</param>
17
- </invoke-workflow>
18
-
19
- <check if="status_exists == true">
20
- <action>Store {{status_file_path}} for later updates</action>
21
- <action>Set tracking_mode = true</action>
16
+ <check if="status file not found">
17
+ <output>No workflow status file found. Narrative workflow is optional - you can continue without status tracking.</output>
18
+ <action>Set standalone_mode = true</action>
22
19
  </check>
23
20
 
24
- <check if="status_exists == false">
25
- <action>Set tracking_mode = false</action>
26
- <output>Note: Running without workflow tracking. Run `workflow-init` to enable progress tracking.</output>
21
+ <check if="status file found">
22
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
23
+ <action>Parse workflow_status section</action>
24
+ <action>Check status of "narrative" workflow</action>
25
+ <action>Get project_level from YAML metadata</action>
26
+ <action>Find first non-completed workflow (next expected workflow)</action>
27
+
28
+ <check if="narrative status is file path (already completed)">
29
+ <output>⚠️ Narrative Design Document already completed: {{narrative status}}</output>
30
+ <ask>Re-running will overwrite the existing narrative document. Continue? (y/n)</ask>
31
+ <check if="n">
32
+ <output>Exiting. Use workflow-status to see your next step.</output>
33
+ <action>Exit workflow</action>
34
+ </check>
35
+ </check>
36
+
37
+ <check if="narrative is not the next expected workflow (latter items are completed already in the list)">
38
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Narrative is out of sequence.</output>
39
+ <ask>Continue with Narrative Design anyway? (y/n)</ask>
40
+ <check if="n">
41
+ <output>Exiting. Run {{next_workflow}} instead.</output>
42
+ <action>Exit workflow</action>
43
+ </check>
44
+ </check>
45
+
46
+ <action>Set standalone_mode = false</action>
27
47
  </check>
28
48
  </step>
29
49
 
@@ -539,19 +559,50 @@ Which would you like?</ask>
539
559
 
540
560
  </step>
541
561
 
542
- <step n="17" goal="Update status if tracking enabled">
562
+ <step n="17" goal="Update status if tracking enabled" tag="workflow-status">
543
563
 
544
- <check if="tracking_mode == true">
545
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
546
- <param>mode: update</param>
547
- <param>action: complete_workflow</param>
548
- <param>workflow_name: narrative</param>
549
- </invoke-workflow>
564
+ <check if="standalone_mode != true">
565
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
566
+ <action>Find workflow_status key "narrative"</action>
567
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
568
+ <action>Update workflow_status["narrative"] = "{output_folder}/bmm-narrative-{{game_name}}-{{date}}.md"</action>
569
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
550
570
 
551
- <check if="success == true">
552
- <output>✅ Status updated! Next: {{next_workflow}}</output>
553
- </check>
571
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
572
+ <action>Determine next agent from path file based on next workflow</action>
554
573
  </check>
555
- </step>
574
+
575
+ <output>**✅ Narrative Design Complete, {user_name}!**
576
+
577
+ **Narrative Document:**
578
+
579
+ - Narrative design saved to {output_folder}/bmm-narrative-{{game_name}}-{{date}}.md
580
+
581
+ {{#if standalone_mode != true}}
582
+ **Status Updated:**
583
+
584
+ - Progress tracking updated: narrative marked complete
585
+ - Next workflow: {{next_workflow}}
586
+ {{else}}
587
+ **Note:** Running in standalone mode (no progress tracking)
588
+ {{/if}}
589
+
590
+ **Next Steps:**
591
+
592
+ {{#if standalone_mode != true}}
593
+
594
+ - **Next workflow:** {{next_workflow}} ({{next_agent}} agent)
595
+ - **Optional:** Review narrative with writing team or stakeholders
596
+
597
+ Check status anytime with: `workflow-status`
598
+ {{else}}
599
+ Since no workflow is in progress:
600
+
601
+ - Review narrative design with team
602
+ - Refer to the BMM workflow guide if unsure what to do next
603
+ - Or run `workflow-init` to create a workflow path and get guided next steps
604
+ {{/if}}
605
+ </output>
606
+ </step>
556
607
 
557
608
  </workflow>
@@ -12,37 +12,27 @@
12
12
 
13
13
  <workflow>
14
14
 
15
- <step n="0" goal="Validate workflow and extract project configuration">
16
-
17
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
18
- <param>mode: data</param>
19
- <param>data_request: project_config</param>
20
- </invoke-workflow>
21
-
22
- <check if="status_exists == false">
23
- <output>**Note: No Workflow Status File Found**
24
-
25
- The PRD workflow can run standalone or as part of the BMM workflow path.
26
-
27
- **Recommended:** Run `workflow-init` first for:
28
-
29
- - Project context tracking
30
- - Workflow sequencing guidance
31
- - Progress monitoring across workflows
32
-
33
- **Or continue standalone** without progress tracking.
34
- </output>
35
- <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
36
- <check if="continue">
37
- <action>Set standalone_mode = true</action>
38
- </check>
39
- <check if="exit">
40
- <action>Exit workflow</action>
41
- </check>
15
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
16
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
17
+
18
+ <check if="status file not found">
19
+ <output>No workflow status file found. PRD workflow can run standalone or as part of BMM workflow path.</output>
20
+ <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
21
+ <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
22
+ <check if="continue">
23
+ <action>Set standalone_mode = true</action>
24
+ </check>
25
+ <check if="exit">
26
+ <action>Exit workflow</action>
27
+ </check>
42
28
  </check>
43
29
 
44
- <check if="status_exists == true">
45
- <action>Store {{status_file_path}} for later updates</action>
30
+ <check if="status file found">
31
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
32
+ <action>Parse workflow_status section</action>
33
+ <action>Check status of "prd" workflow</action>
34
+ <action>Get project_level from YAML metadata</action>
35
+ <action>Find first non-completed workflow (next expected workflow)</action>
46
36
 
47
37
  <check if="project_level < 2">
48
38
  <output>**Incorrect Workflow for Level {{project_level}}**
@@ -54,32 +44,25 @@ PRD is for Level 2-4 projects. Level 0-1 should use tech-spec directly.
54
44
  <action>Exit and redirect to tech-spec</action>
55
45
  </check>
56
46
 
57
- <check if="project_type == game">
58
- <output>**Incorrect Workflow for Game Projects**
59
-
60
- Game projects should use GDD workflow instead of PRD.
61
-
62
- **Correct workflow:** `gdd` (PM agent)
63
- </output>
64
- <action>Exit and redirect to gdd</action>
65
- </check>
66
- </check>
67
- </step>
68
-
69
- <step n="0.5" goal="Validate workflow sequencing">
70
-
71
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
72
- <param>mode: validate</param>
73
- <param>calling_workflow: prd</param>
74
- </invoke-workflow>
47
+ <check if="prd status is file path (already completed)">
48
+ <output>⚠️ PRD already completed: {{prd status}}</output>
49
+ <ask>Re-running will overwrite the existing PRD. Continue? (y/n)</ask>
50
+ <check if="n">
51
+ <output>Exiting. Use workflow-status to see your next step.</output>
52
+ <action>Exit workflow</action>
53
+ </check>
54
+ </check>
75
55
 
76
- <check if="warning != ''">
77
- <output>{{warning}}</output>
78
- <ask>Continue with PRD anyway? (y/n)</ask>
79
- <check if="n">
80
- <output>{{suggestion}}</output>
81
- <action>Exit workflow</action>
56
+ <check if="prd is not the next expected workflow">
57
+ <output>⚠️ Next expected workflow: {{next_workflow}}. PRD is out of sequence.</output>
58
+ <ask>Continue with PRD anyway? (y/n)</ask>
59
+ <check if="n">
60
+ <output>Exiting. Run {{next_workflow}} instead.</output>
61
+ <action>Exit workflow</action>
62
+ </check>
82
63
  </check>
64
+
65
+ <action>Set standalone_mode = false</action>
83
66
  </check>
84
67
  </step>
85
68
 
@@ -409,18 +392,17 @@ For each epic from the epic list, expand with full story details:
409
392
 
410
393
  </step>
411
394
 
412
- <step n="10" goal="Update status and complete">
395
+ <step n="10" goal="Update status and complete" tag="workflow-status">
413
396
 
414
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
415
- <param>mode: update</param>
416
- <param>action: complete_workflow</param>
417
- <param>workflow_name: prd</param>
418
- <param>populate_stories_from: {epics_output_file}</param>
419
- </invoke-workflow>
397
+ <check if="standalone_mode != true">
398
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
399
+ <action>Find workflow_status key "prd"</action>
400
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
401
+ <action>Update workflow_status["prd"] = "{default_output_file}"</action>
402
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
420
403
 
421
- <check if="success == true">
422
- <output>Status updated! Next: {{next_workflow}} ({{next_agent}} agent)</output>
423
- <output>Loaded {{total_stories}} stories from epics.</output>
404
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
405
+ <action>Determine next agent from path file based on next workflow</action>
424
406
  </check>
425
407
 
426
408
  <output>**✅ PRD Workflow Complete, {user_name}!**
@@ -13,37 +13,27 @@
13
13
 
14
14
  <critical>DOCUMENT OUTPUT: Technical, precise, definitive. Specific versions only. User skill level ({user_skill_level}) affects conversation style ONLY, not document content.</critical>
15
15
 
16
- <step n="0" goal="Validate workflow and extract project configuration">
17
-
18
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
19
- <param>mode: data</param>
20
- <param>data_request: project_config</param>
21
- </invoke-workflow>
22
-
23
- <check if="status_exists == false">
24
- <output>**Note: No Workflow Status File Found**
25
-
26
- The tech-spec workflow can run standalone or as part of the BMM workflow path.
27
-
28
- **Recommended:** Run `workflow-init` first for:
29
-
30
- - Project context tracking
31
- - Workflow sequencing guidance
32
- - Progress monitoring across workflows
33
-
34
- **Or continue standalone** without progress tracking.
35
- </output>
36
- <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
37
- <check if="continue">
38
- <action>Set standalone_mode = true</action>
39
- </check>
40
- <check if="exit">
41
- <action>Exit workflow</action>
42
- </check>
16
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
17
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
18
+
19
+ <check if="status file not found">
20
+ <output>No workflow status file found. Tech-spec workflow can run standalone or as part of BMM workflow path.</output>
21
+ <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
22
+ <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
23
+ <check if="continue">
24
+ <action>Set standalone_mode = true</action>
25
+ </check>
26
+ <check if="exit">
27
+ <action>Exit workflow</action>
28
+ </check>
43
29
  </check>
44
30
 
45
- <check if="status_exists == true">
46
- <action>Store {{status_file_path}} for later updates</action>
31
+ <check if="status file found">
32
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
33
+ <action>Parse workflow_status section</action>
34
+ <action>Check status of "tech-spec" workflow</action>
35
+ <action>Get project_level from YAML metadata</action>
36
+ <action>Find first non-completed workflow (next expected workflow)</action>
47
37
 
48
38
  <check if="project_level >= 2">
49
39
  <output>**Incorrect Workflow for Level {{project_level}}**
@@ -55,32 +45,25 @@ Tech-spec is for Level 0-1 projects. Level 2-4 should use PRD workflow.
55
45
  <action>Exit and redirect to prd</action>
56
46
  </check>
57
47
 
58
- <check if="project_type == game">
59
- <output>**Incorrect Workflow for Game Projects**
60
-
61
- Game projects should use GDD workflow instead of tech-spec.
62
-
63
- **Correct workflow:** `gdd` (PM agent)
64
- </output>
65
- <action>Exit and redirect to gdd</action>
66
- </check>
67
- </check>
68
- </step>
69
-
70
- <step n="0.5" goal="Validate workflow sequencing">
71
-
72
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
73
- <param>mode: validate</param>
74
- <param>calling_workflow: tech-spec</param>
75
- </invoke-workflow>
48
+ <check if="tech-spec status is file path (already completed)">
49
+ <output>⚠️ Tech-spec already completed: {{tech-spec status}}</output>
50
+ <ask>Re-running will overwrite the existing tech-spec. Continue? (y/n)</ask>
51
+ <check if="n">
52
+ <output>Exiting. Use workflow-status to see your next step.</output>
53
+ <action>Exit workflow</action>
54
+ </check>
55
+ </check>
76
56
 
77
- <check if="warning != ''">
78
- <output>{{warning}}</output>
79
- <ask>Continue with tech-spec anyway? (y/n)</ask>
80
- <check if="n">
81
- <output>{{suggestion}}</output>
82
- <action>Exit workflow</action>
57
+ <check if="tech-spec is not the next expected workflow">
58
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Tech-spec is out of sequence.</output>
59
+ <ask>Continue with tech-spec anyway? (y/n)</ask>
60
+ <check if="n">
61
+ <output>Exiting. Run {{next_workflow}} instead.</output>
62
+ <action>Exit workflow</action>
63
+ </check>
83
64
  </check>
65
+
66
+ <action>Set standalone_mode = false</action>
84
67
  </check>
85
68
  </step>
86
69
 
@@ -232,24 +215,25 @@ Run cohesion validation? (y/n)</ask>
232
215
 
233
216
  ## Next Steps
234
217
 
235
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
236
- <param>mode: update</param>
237
- <param>action: complete_workflow</param>
238
- <param>workflow_name: tech-spec</param>
239
- </invoke-workflow>
218
+ <check if="standalone_mode != true">
219
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
220
+ <action>Find workflow_status key "tech-spec"</action>
221
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
222
+ <action>Update workflow_status["tech-spec"] = "{output_folder}/bmm-tech-spec-{{date}}.md"</action>
223
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
240
224
 
241
- <check if="success == true">
242
- <output>Status updated!</output>
225
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
226
+ <action>Determine next agent from path file based on next workflow</action>
243
227
  </check>
244
228
 
245
229
  <output>**✅ Tech-Spec Complete, {user_name}!**
246
230
 
247
231
  **Deliverables Created:**
248
- <check if="project_level == 0">
249
232
 
233
+ <check if="project_level == 0">
250
234
  - ✅ tech-spec.md - Technical specification
251
235
  - ✅ user-story.md - Single user story
252
- </check>
236
+ </check>
253
237
 
254
238
  <check if="project_level == 1">
255
239
  - ✅ tech-spec.md - Technical specification
@@ -10,37 +10,27 @@
10
10
  <critical>Generate all documents in {document_output_language}</critical>
11
11
  <critical>This workflow replaces architecture with a conversation-driven approach</critical>
12
12
 
13
- <step n="0" goal="Validate workflow and extract project configuration">
14
-
15
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
16
- <param>mode: data</param>
17
- <param>data_request: project_config</param>
18
- </invoke-workflow>
19
-
20
- <check if="status_exists == false">
21
- <output>**Note: No Workflow Status File Found**
22
-
23
- The Decision Architecture workflow can run standalone or as part of the BMM workflow path.
24
-
25
- **Recommended:** Run `workflow-init` first for:
26
-
27
- - Project context tracking
28
- - Workflow sequencing guidance
29
- - Progress monitoring across workflows
30
-
31
- **Or continue standalone** without progress tracking.
32
- </output>
33
- <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
34
- <check if="continue">
35
- <action>Set standalone_mode = true</action>
36
- </check>
37
- <check if="exit">
38
- <action>Exit workflow</action>
39
- </check>
13
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
14
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
15
+
16
+ <check if="status file not found">
17
+ <output>No workflow status file found. Decision Architecture can run standalone or as part of BMM workflow path.</output>
18
+ <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
19
+ <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
20
+ <check if="continue">
21
+ <action>Set standalone_mode = true</action>
22
+ </check>
23
+ <check if="exit">
24
+ <action>Exit workflow</action>
25
+ </check>
40
26
  </check>
41
27
 
42
- <check if="status_exists == true">
43
- <action>Store {{status_file_path}} for later updates</action>
28
+ <check if="status file found">
29
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
30
+ <action>Parse workflow_status section</action>
31
+ <action>Check status of "create-architecture" workflow</action>
32
+ <action>Get project_level from YAML metadata</action>
33
+ <action>Find first non-completed workflow (next expected workflow)</action>
44
34
 
45
35
  <check if="project_level < 3">
46
36
  <output>**Note: Level {{project_level}} Project**
@@ -50,23 +40,26 @@ Decision Architecture is typically for Level 3-4 projects, but can be used for a
50
40
  For Level {{project_level}}, we'll keep the architecture appropriately scoped.
51
41
  </output>
52
42
  </check>
53
- </check>
54
- </step>
55
-
56
- <step n="0.5" goal="Validate workflow sequencing">
57
43
 
58
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
59
- <param>mode: validate</param>
60
- <param>calling_workflow: architecture</param>
61
- </invoke-workflow>
44
+ <check if="create-architecture status is file path (already completed)">
45
+ <output>⚠️ Architecture already completed: {{create-architecture status}}</output>
46
+ <ask>Re-running will overwrite the existing architecture. Continue? (y/n)</ask>
47
+ <check if="n">
48
+ <output>Exiting. Use workflow-status to see your next step.</output>
49
+ <action>Exit workflow</action>
50
+ </check>
51
+ </check>
62
52
 
63
- <check if="warning != ''">
64
- <output>{{warning}}</output>
65
- <ask>Continue with Decision Architecture anyway? (y/n)</ask>
66
- <check if="n">
67
- <output>{{suggestion}}</output>
68
- <action>Exit workflow</action>
53
+ <check if="create-architecture is not the next expected workflow">
54
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Architecture is out of sequence.</output>
55
+ <ask>Continue with Architecture anyway? (y/n)</ask>
56
+ <check if="n">
57
+ <output>Exiting. Run {{next_workflow}} instead.</output>
58
+ <action>Exit workflow</action>
59
+ </check>
69
60
  </check>
61
+
62
+ <action>Set standalone_mode = false</action>
70
63
  </check>
71
64
 
72
65
  <action>Check for existing PRD and epics files using fuzzy matching</action>
@@ -663,20 +656,20 @@ Enforcement: "All agents MUST follow this pattern"
663
656
 
664
657
  <action>Save document to {output_folder}/architecture.md</action>
665
658
 
666
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
667
- <param>mode: update</param>
668
- <param>action: complete_workflow</param>
669
- <param>workflow_name: architecture</param>
670
- </invoke-workflow>
659
+ <check if="standalone_mode != true">
660
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
661
+ <action>Find workflow_status key "create-architecture"</action>
662
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
663
+ <action>Update workflow_status["create-architecture"] = "{output_folder}/bmm-architecture-{{date}}.md"</action>
664
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
671
665
 
672
- <check if="success == true">
673
- <output>✅ Decision Architecture workflow complete!
674
-
675
- Status updated.
676
- </output>
666
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
667
+ <action>Determine next agent from path file based on next workflow</action>
677
668
 
678
669
  </check>
679
670
 
671
+ <output>✅ Decision Architecture workflow complete!</output>
672
+
680
673
  <output>**Deliverables Created:**
681
674
 
682
675
  - ✅ architecture.md - Complete architectural decisions document