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
@@ -9,20 +9,20 @@
9
9
 
10
10
  <workflow>
11
11
 
12
- <step n="0" goal="Validate workflow readiness">
13
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
14
- <param>mode: validate</param>
15
- <param>calling_workflow: game-brief</param>
16
- </invoke-workflow>
17
-
18
- <check if="status_exists == false">
19
- <output>{{suggestion}}</output>
20
- <output>Note: Game brief is optional. Continuing without progress tracking.</output>
12
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
13
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
14
+
15
+ <check if="status file not found">
16
+ <output>No workflow status file found. Game brief is optional - you can continue without status tracking.</output>
21
17
  <action>Set standalone_mode = true</action>
22
18
  </check>
23
19
 
24
- <check if="status_exists == true">
25
- <action>Store {{status_file_path}} for later updates</action>
20
+ <check if="status file found">
21
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
22
+ <action>Parse workflow_status section</action>
23
+ <action>Check status of "game-brief" workflow</action>
24
+ <action>Get project_level from YAML metadata</action>
25
+ <action>Find first non-completed workflow (next expected workflow)</action>
26
26
 
27
27
  <check if="project_type != 'game'">
28
28
  <output>Note: This is a {{project_type}} project. Game brief is designed for game projects.</output>
@@ -32,10 +32,25 @@
32
32
  </check>
33
33
  </check>
34
34
 
35
- <check if="warning != ''">
36
- <output>{{warning}}</output>
37
- <output>Note: Game brief can provide valuable vision clarity at any stage.</output>
35
+ <check if="game-brief status is file path (already completed)">
36
+ <output>⚠️ Game Brief already completed: {{game-brief status}}</output>
37
+ <ask>Re-running will overwrite the existing brief. Continue? (y/n)</ask>
38
+ <check if="n">
39
+ <output>Exiting. Use workflow-status to see your next step.</output>
40
+ <action>Exit workflow</action>
41
+ </check>
38
42
  </check>
43
+
44
+ <check if="game-brief is not the next expected workflow (latter items are completed already in the list)">
45
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Game Brief is out of sequence.</output>
46
+ <ask>Continue with Game Brief anyway? (y/n)</ask>
47
+ <check if="n">
48
+ <output>Exiting. Run {{next_workflow}} instead.</output>
49
+ <action>Exit workflow</action>
50
+ </check>
51
+ </check>
52
+
53
+ <action>Set standalone_mode = false</action>
39
54
  </check>
40
55
  </step>
41
56
 
@@ -309,17 +324,16 @@ This brief will serve as the primary input for creating the Game Design Document
309
324
  <template-output>executive_brief</template-output>
310
325
  </step>
311
326
 
312
- <step n="16" goal="Update status and complete">
327
+ <step n="16" goal="Update status and complete" tag="workflow-status">
313
328
  <check if="standalone_mode != true">
314
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
315
- <param>mode: update</param>
316
- <param>action: complete_workflow</param>
317
- <param>workflow_name: game-brief</param>
318
- </invoke-workflow>
319
-
320
- <check if="success == true">
321
- <output>Status updated! Next: {{next_workflow}}</output>
322
- </check>
329
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
330
+ <action>Find workflow_status key "game-brief"</action>
331
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
332
+ <action>Update workflow_status["game-brief"] = "{output_folder}/bmm-game-brief-{{game_name}}-{{date}}.md"</action>
333
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
334
+
335
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
336
+ <action>Determine next agent from path file based on next workflow</action>
323
337
  </check>
324
338
 
325
339
  <output>**✅ Game Brief Complete, {user_name}!**
@@ -331,17 +345,17 @@ This brief will serve as the primary input for creating the Game Design Document
331
345
  {{#if standalone_mode != true}}
332
346
  **Status Updated:**
333
347
 
334
- - Progress tracking updated
348
+ - Progress tracking updated: game-brief marked complete
349
+ - Next workflow: {{next_workflow}}
335
350
  {{else}}
336
- Note: Running in standalone mode (no status file).
337
- To track progress across workflows, run `workflow-init` first.
351
+ **Note:** Running in standalone mode (no progress tracking)
338
352
  {{/if}}
339
353
 
340
354
  **Next Steps:**
341
355
 
342
356
  {{#if standalone_mode != true}}
343
357
 
344
- - **Next required:** {{next_workflow}} ({{next_agent}} agent)
358
+ - **Next workflow:** {{next_workflow}} ({{next_agent}} agent)
345
359
  - **Optional:** Consider creating a prototype of core mechanic or validating assumptions with target players before proceeding
346
360
 
347
361
  Check status anytime with: `workflow-status`
@@ -9,34 +9,45 @@
9
9
 
10
10
  <workflow>
11
11
 
12
- <step n="0" goal="Validate workflow readiness">
13
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
14
- <param>mode: validate</param>
15
- <param>calling_workflow: product-brief</param>
16
- </invoke-workflow>
17
-
18
- <check if="status_exists == false">
19
- <output>{{suggestion}}</output>
20
- <output>Note: Product Brief is optional. You can continue without status tracking.</output>
12
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
13
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
14
+
15
+ <check if="status file not found">
16
+ <output>No workflow status file found. Product Brief is optional - you can continue without status tracking.</output>
21
17
  <action>Set standalone_mode = true</action>
22
18
  </check>
23
19
 
24
- <check if="status_exists == true">
25
- <action>Store {{status_file_path}} for later updates</action>
20
+ <check if="status file found">
21
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
22
+ <action>Parse workflow_status section</action>
23
+ <action>Check status of "product-brief" workflow</action>
24
+ <action>Get project_level from YAML metadata</action>
25
+ <action>Find first non-completed workflow (next expected workflow)</action>
26
26
 
27
27
  <check if="project_level < 2">
28
28
  <output>Note: Product Brief is most valuable for Level 2+ projects. Your project is Level {{project_level}}.</output>
29
29
  <output>You may want to skip directly to technical planning instead.</output>
30
30
  </check>
31
31
 
32
- <check if="warning != ''">
33
- <output>{{warning}}</output>
32
+ <check if="product-brief status is file path (already completed)">
33
+ <output>⚠️ Product Brief already completed: {{product-brief status}}</output>
34
+ <ask>Re-running will overwrite the existing brief. Continue? (y/n)</ask>
35
+ <check if="n">
36
+ <output>Exiting. Use workflow-status to see your next step.</output>
37
+ <action>Exit workflow</action>
38
+ </check>
39
+ </check>
40
+
41
+ <check if="product-brief is not the next expected workflow (latter items are completed already in the list)">
42
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Product Brief is out of sequence.</output>
34
43
  <ask>Continue with Product Brief anyway? (y/n)</ask>
35
44
  <check if="n">
36
- <output>Exiting. {{suggestion}}</output>
45
+ <output>Exiting. Run {{next_workflow}} instead.</output>
37
46
  <action>Exit workflow</action>
38
47
  </check>
39
48
  </check>
49
+
50
+ <action>Set standalone_mode = false</action>
40
51
  </check>
41
52
  </step>
42
53
 
@@ -61,6 +72,7 @@
61
72
  <ask>How would you like to work through the brief?
62
73
 
63
74
  **1. Interactive Mode** - We'll work through each section together, discussing and refining as we go
75
+
64
76
  **2. YOLO Mode** - I'll generate a complete draft based on our conversation so far, then we'll refine it together
65
77
 
66
78
  Which approach works best for you?</ask>
@@ -273,17 +285,16 @@ This brief will serve as the primary input for creating the Product Requirements
273
285
  <template-output>executive_brief</template-output>
274
286
  </step>
275
287
 
276
- <step n="16" goal="Update status file on completion">
288
+ <step n="16" goal="Update status file on completion" tag="workflow-status">
277
289
  <check if="standalone_mode != true">
278
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
279
- <param>mode: update</param>
280
- <param>action: complete_workflow</param>
281
- <param>workflow_name: product-brief</param>
282
- </invoke-workflow>
283
-
284
- <check if="success == true">
285
- <output>Status updated! Next: {{next_workflow}}</output>
286
- </check>
290
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
291
+ <action>Find workflow_status key "product-brief"</action>
292
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
293
+ <action>Update workflow_status["product-brief"] = "{output_folder}/bmm-product-brief-{{project_name}}-{{date}}.md"</action>
294
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
295
+
296
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
297
+ <action>Determine next agent from path file based on next workflow</action>
287
298
  </check>
288
299
 
289
300
  <output>**✅ Product Brief Complete, {user_name}!**
@@ -295,8 +306,8 @@ This brief will serve as the primary input for creating the Product Requirements
295
306
  {{#if standalone_mode != true}}
296
307
  **Status Updated:**
297
308
 
298
- - Progress tracking updated
299
- - Current workflow marked complete
309
+ - Progress tracking updated: product-brief marked complete
310
+ - Next workflow: {{next_workflow}}
300
311
  {{else}}
301
312
  **Note:** Running in standalone mode (no progress tracking)
302
313
  {{/if}}
@@ -305,7 +316,7 @@ This brief will serve as the primary input for creating the Product Requirements
305
316
 
306
317
  {{#if standalone_mode != true}}
307
318
 
308
- - **Next required:** {{next_workflow}} ({{next_agent}} agent)
319
+ - **Next workflow:** {{next_workflow}} ({{next_agent}} agent)
309
320
  - **Optional:** Gather additional stakeholder input or run research workflows before proceeding
310
321
 
311
322
  Check status anytime with: `workflow-status`
@@ -374,60 +374,50 @@ Select option (1-4):</ask>
374
374
 
375
375
  </step>
376
376
 
377
- <step n="FINAL" goal="Update status file on completion">
378
- <action>Search {output_folder}/ for files matching pattern: bmm-workflow-status.md</action>
379
- <action>Find the most recent file (by date in filename)</action>
380
-
381
- <check if="status file exists">
382
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
383
- <param>mode: update</param>
384
- <param>action: complete_workflow</param>
385
- <param>workflow_name: research</param>
386
- </invoke-workflow>
387
-
388
- <check if="success == true">
389
- <output>Status updated! Next: {{next_workflow}}</output>
390
- </check>
377
+ <step n="FINAL" goal="Update status file on completion" tag="workflow-status">
378
+ <check if="standalone_mode != true">
379
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
380
+ <action>Find workflow_status key "research"</action>
381
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
382
+ <action>Update workflow_status["research"] = "{output_folder}/bmm-research-deep-prompt-{{date}}.md"</action>
383
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
384
+
385
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
386
+ <action>Determine next agent from path file based on next workflow</action>
387
+ </check>
391
388
 
392
389
  <output>**✅ Deep Research Prompt Generated**
393
390
 
394
391
  **Research Prompt:**
395
392
 
396
- - Structured research prompt generated and saved
393
+ - Structured research prompt generated and saved to {output_folder}/bmm-research-deep-prompt-{{date}}.md
397
394
  - Ready to execute with ChatGPT, Claude, Gemini, or Grok
398
395
 
399
- **Status file updated:**
396
+ {{#if standalone_mode != true}}
397
+ **Status Updated:**
400
398
 
401
- - Current step: research (deep-prompt)
402
- - Progress: {{new_progress_percentage}}%
399
+ - Progress tracking updated: research marked complete
400
+ - Next workflow: {{next_workflow}}
401
+ {{else}}
402
+ **Note:** Running in standalone mode (no progress tracking)
403
+ {{/if}}
403
404
 
404
405
  **Next Steps:**
405
406
 
406
- - **Next required:** {{next_workflow}} ({{next_agent}} agent)
407
+ {{#if standalone_mode != true}}
408
+
409
+ - **Next workflow:** {{next_workflow}} ({{next_agent}} agent)
407
410
  - **Optional:** Execute the research prompt with AI platform, gather findings, or run additional research workflows
408
411
 
409
412
  Check status anytime with: `workflow-status`
410
- </output>
411
- </check>
412
-
413
- <check if="status file not found">
414
- <output>**✅ Deep Research Prompt Generated**
415
-
416
- **Research Prompt:**
417
-
418
- - Structured research prompt generated and saved
419
-
420
- Note: Running in standalone mode (no status file).
421
-
422
- **Next Steps:**
423
-
413
+ {{else}}
424
414
  Since no workflow is in progress:
425
415
 
426
416
  - Execute the research prompt with AI platform and gather findings
427
417
  - Refer to the BMM workflow guide if unsure what to do next
428
418
  - Or run `workflow-init` to create a workflow path and get guided next steps
419
+ {{/if}}
429
420
  </output>
430
- </check>
431
421
  </step>
432
422
 
433
423
  </workflow>
@@ -554,60 +554,49 @@ Create compelling executive summary with:
554
554
 
555
555
  </step>
556
556
 
557
- <step n="14" goal="Update status file on completion">
558
- <action>Search {output_folder}/ for files matching pattern: bmm-workflow-status.md</action>
559
- <action>Find the most recent file (by date in filename)</action>
560
-
561
- <check if="status file exists">
562
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
563
- <param>mode: update</param>
564
- <param>action: complete_workflow</param>
565
- <param>workflow_name: research</param>
566
- </invoke-workflow>
567
-
568
- <check if="success == true">
569
- <output>Status updated! Next: {{next_workflow}}</output>
570
- </check>
557
+ <step n="14" goal="Update status file on completion" tag="workflow-status">
558
+ <check if="standalone_mode != true">
559
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
560
+ <action>Find workflow_status key "research"</action>
561
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
562
+ <action>Update workflow_status["research"] = "{output_folder}/bmm-research-{{research_mode}}-{{date}}.md"</action>
563
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
564
+
565
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
566
+ <action>Determine next agent from path file based on next workflow</action>
571
567
  </check>
572
568
 
573
569
  <output>**✅ Research Complete ({{research_mode}} mode)**
574
570
 
575
571
  **Research Report:**
576
572
 
577
- - Research report generated and saved
573
+ - Research report generated and saved to {output_folder}/bmm-research-{{research_mode}}-{{date}}.md
578
574
 
579
- **Status file updated:**
575
+ {{#if standalone_mode != true}}
576
+ **Status Updated:**
580
577
 
581
- - Current step: research ({{research_mode}})
582
- - Progress: {{new_progress_percentage}}%
578
+ - Progress tracking updated: research marked complete
579
+ - Next workflow: {{next_workflow}}
580
+ {{else}}
581
+ **Note:** Running in standalone mode (no progress tracking)
582
+ {{/if}}
583
583
 
584
584
  **Next Steps:**
585
585
 
586
- - **Next required:** {{next_workflow}} ({{next_agent}} agent)
586
+ {{#if standalone_mode != true}}
587
+
588
+ - **Next workflow:** {{next_workflow}} ({{next_agent}} agent)
587
589
  - **Optional:** Review findings with stakeholders, or run additional analysis workflows (product-brief, game-brief, etc.)
588
590
 
589
591
  Check status anytime with: `workflow-status`
590
- </output>
591
- </check>
592
-
593
- <check if="status file not found">
594
- <output>**✅ Research Complete ({{research_mode}} mode)**
595
-
596
- **Research Report:**
597
-
598
- - Research report generated and saved
599
-
600
- Note: Running in standalone mode (no status file).
601
-
602
- **Next Steps:**
603
-
592
+ {{else}}
604
593
  Since no workflow is in progress:
605
594
 
606
595
  - Review research findings
607
596
  - Refer to the BMM workflow guide if unsure what to do next
608
597
  - Or run `workflow-init` to create a workflow path and get guided next steps
598
+ {{/if}}
609
599
  </output>
610
- </check>
611
600
  </step>
612
601
 
613
602
  </workflow>
@@ -10,26 +10,42 @@
10
10
 
11
11
  <critical>This is a ROUTER that directs to specialized research instruction sets</critical>
12
12
 
13
- <step n="1" goal="Validate workflow readiness">
14
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
15
- <param>mode: validate</param>
16
- <param>calling_workflow: research</param>
17
- </invoke-workflow>
18
-
19
- <check if="status_exists == false">
20
- <output>{{suggestion}}</output>
21
- <output>Note: Research is optional. Continuing without progress tracking.</output>
13
+ <step n="1" 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. Research is optional - you can continue without status tracking.</output>
22
18
  <action>Set standalone_mode = true</action>
23
19
  </check>
24
20
 
25
- <check if="status_exists == true">
26
- <action>Store {{status_file_path}} for status updates in sub-workflows</action>
27
- <action>Pass status_file_path to loaded instruction set</action>
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 "research" workflow</action>
25
+ <action>Get project_level from YAML metadata</action>
26
+ <action>Find first non-completed workflow (next expected workflow)</action>
27
+ <action>Pass status context to loaded instruction set for final update</action>
28
+
29
+ <check if="research status is file path (already completed)">
30
+ <output>⚠️ Research already completed: {{research status}}</output>
31
+ <ask>Re-running will create a new research report. Continue? (y/n)</ask>
32
+ <check if="n">
33
+ <output>Exiting. Use workflow-status to see your next step.</output>
34
+ <action>Exit workflow</action>
35
+ </check>
36
+ </check>
28
37
 
29
- <check if="warning != ''">
30
- <output>{{warning}}</output>
38
+ <check if="research is not the next expected workflow (latter items are completed already in the list)">
39
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Research is out of sequence.</output>
31
40
  <output>Note: Research can provide valuable insights at any project stage.</output>
41
+ <ask>Continue with Research anyway? (y/n)</ask>
42
+ <check if="n">
43
+ <output>Exiting. Run {{next_workflow}} instead.</output>
44
+ <action>Exit workflow</action>
45
+ </check>
32
46
  </check>
47
+
48
+ <action>Set standalone_mode = false</action>
33
49
  </check>
34
50
  </step>
35
51
 
@@ -442,60 +442,49 @@ Select option (1-5):</ask>
442
442
 
443
443
  </step>
444
444
 
445
- <step n="FINAL" goal="Update status file on completion">
446
- <action>Search {output_folder}/ for files matching pattern: bmm-workflow-status.md</action>
447
- <action>Find the most recent file (by date in filename)</action>
448
-
449
- <check if="status file exists">
450
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
451
- <param>mode: update</param>
452
- <param>action: complete_workflow</param>
453
- <param>workflow_name: research</param>
454
- </invoke-workflow>
455
-
456
- <check if="success == true">
457
- <output>Status updated! Next: {{next_workflow}}</output>
458
- </check>
445
+ <step n="FINAL" goal="Update status file on completion" tag="workflow-status">
446
+ <check if="standalone_mode != true">
447
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
448
+ <action>Find workflow_status key "research"</action>
449
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
450
+ <action>Update workflow_status["research"] = "{output_folder}/bmm-research-technical-{{date}}.md"</action>
451
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
452
+
453
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
454
+ <action>Determine next agent from path file based on next workflow</action>
459
455
  </check>
460
456
 
461
457
  <output>**✅ Technical Research Complete**
462
458
 
463
459
  **Research Report:**
464
460
 
465
- - Technical research report generated and saved
461
+ - Technical research report generated and saved to {output_folder}/bmm-research-technical-{{date}}.md
466
462
 
467
- **Status file updated:**
463
+ {{#if standalone_mode != true}}
464
+ **Status Updated:**
468
465
 
469
- - Current step: research (technical)
470
- - Progress: {{new_progress_percentage}}%
466
+ - Progress tracking updated: research marked complete
467
+ - Next workflow: {{next_workflow}}
468
+ {{else}}
469
+ **Note:** Running in standalone mode (no progress tracking)
470
+ {{/if}}
471
471
 
472
472
  **Next Steps:**
473
473
 
474
- - **Next required:** {{next_workflow}} ({{next_agent}} agent)
474
+ {{#if standalone_mode != true}}
475
+
476
+ - **Next workflow:** {{next_workflow}} ({{next_agent}} agent)
475
477
  - **Optional:** Review findings with architecture team, or run additional analysis workflows
476
478
 
477
479
  Check status anytime with: `workflow-status`
478
- </output>
479
- </check>
480
-
481
- <check if="status file not found">
482
- <output>**✅ Technical Research Complete**
483
-
484
- **Research Report:**
485
-
486
- - Technical research report generated and saved
487
-
488
- Note: Running in standalone mode (no status file).
489
-
490
- **Next Steps:**
491
-
480
+ {{else}}
492
481
  Since no workflow is in progress:
493
482
 
494
483
  - Review technical research findings
495
484
  - Refer to the BMM workflow guide if unsure what to do next
496
485
  - Or run `workflow-init` to create a workflow path and get guided next steps
486
+ {{/if}}
497
487
  </output>
498
- </check>
499
488
  </step>
500
489
 
501
490
  </workflow>
@@ -12,28 +12,42 @@
12
12
 
13
13
  <critical>DOCUMENT OUTPUT: Professional, specific, actionable UX design decisions WITH RATIONALE. User skill level ({user_skill_level}) affects conversation style ONLY, not document content.</critical>
14
14
 
15
- <step n="0" goal="Validate workflow and extract project configuration">
15
+ <step n="0" goal="Validate workflow readiness" tag="workflow-status">
16
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
16
17
 
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**
18
+ <check if="status file not found">
19
+ <output>No workflow status file found. Create UX Design can run standalone or as part of BMM planning workflow.</output>
20
+ <output>For standalone use, we'll gather requirements as we go. For integrated use, run `workflow-init` first for better context.</output>
21
+ <action>Set standalone_mode = true</action>
22
+ </check>
24
23
 
25
- Create UX Design can run standalone or as part of the BMM planning workflow.
24
+ <check if="status file found">
25
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
26
+ <action>Parse workflow_status section</action>
27
+ <action>Check status of "create-design" workflow</action>
28
+ <action>Get project_level from YAML metadata</action>
29
+ <action>Find first non-completed workflow (next expected workflow)</action>
30
+
31
+ <check if="create-design status is file path (already completed)">
32
+ <output>⚠️ UX Design already completed: {{create-design status}}</output>
33
+ <ask>Re-running will overwrite the existing UX design. Continue? (y/n)</ask>
34
+ <check if="n">
35
+ <output>Exiting. Use workflow-status to see your next step.</output>
36
+ <action>Exit workflow</action>
37
+ </check>
38
+ </check>
26
39
 
27
- For standalone use, we'll gather requirements as we go.
28
- For integrated use, run `workflow-init` first for better context.
29
- </output>
30
- <action>Set mode: standalone</action>
31
- </check>
40
+ <check if="create-design is not the next expected workflow">
41
+ <output>⚠️ Next expected workflow: {{next_workflow}}. UX Design is out of sequence.</output>
42
+ <ask>Continue with UX Design anyway? (y/n)</ask>
43
+ <check if="n">
44
+ <output>Exiting. Run {{next_workflow}} instead.</output>
45
+ <action>Exit workflow</action>
46
+ </check>
47
+ </check>
32
48
 
33
- <check if="status_exists == true">
34
- <action>Store {{status_file_path}} for later updates</action>
35
- <action>Store {{project_level}} for scoping decisions</action>
36
- <action>Set mode: integrated</action>
49
+ <action>Set standalone_mode = false</action>
50
+ <action>Store {{project_level}} for scoping decisions</action>
37
51
  </check>
38
52
  </step>
39
53
 
@@ -1116,12 +1130,16 @@ Based on your deployment intent: {{recommendation}}
1116
1130
 
1117
1131
  <action>Save final document to {default_output_file}</action>
1118
1132
 
1119
- <check if="tracking_mode == true">
1120
- <invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
1121
- <param>mode: update</param>
1122
- <param>action: complete_workflow</param>
1123
- <param>workflow_name: create-ux-design</param>
1124
- </invoke-workflow>
1133
+ <check if="standalone_mode != true">
1134
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
1135
+ <action>Find workflow_status key "create-design"</action>
1136
+ <critical>ONLY write the file path as the status value - no other text, notes, or metadata</critical>
1137
+ <action>Update workflow_status["create-design"] = "{default_output_file}"</action>
1138
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
1139
+
1140
+ <action>Find first non-completed workflow in workflow_status (next workflow to do)</action>
1141
+ <action>Determine next agent from path file based on next workflow</action>
1142
+
1125
1143
  </check>
1126
1144
 
1127
1145
  <ask>🎨 **One more thing!** Want to see your design come to life?