bmad-method 6.0.0-alpha.17 โ†’ 6.0.0-alpha.19

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 (185) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/package.json +1 -1
  3. package/src/modules/bmgd/_module-installer/installer.js +160 -0
  4. package/src/modules/bmgd/_module-installer/platform-specifics/claude-code.js +23 -0
  5. package/src/modules/bmgd/_module-installer/platform-specifics/windsurf.js +18 -0
  6. package/src/modules/bmgd/agents/game-architect.agent.yaml +23 -8
  7. package/src/modules/bmgd/agents/game-designer.agent.yaml +38 -18
  8. package/src/modules/bmgd/agents/game-dev.agent.yaml +30 -14
  9. package/src/modules/bmgd/agents/game-qa.agent.yaml +64 -0
  10. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +27 -39
  11. package/src/modules/bmgd/agents/game-solo-dev.agent.yaml +56 -0
  12. package/src/modules/bmgd/docs/README.md +180 -0
  13. package/src/modules/bmgd/docs/agents-guide.md +407 -0
  14. package/src/modules/bmgd/docs/game-types-guide.md +503 -0
  15. package/src/modules/bmgd/docs/glossary.md +294 -0
  16. package/src/modules/bmgd/docs/quick-flow-guide.md +288 -0
  17. package/src/modules/bmgd/docs/quick-start.md +250 -0
  18. package/src/modules/bmgd/docs/troubleshooting.md +259 -0
  19. package/src/modules/bmgd/docs/workflow-overview.jpg +0 -0
  20. package/src/modules/bmgd/docs/workflows-guide.md +463 -0
  21. package/src/modules/bmgd/gametest/knowledge/balance-testing.md +220 -0
  22. package/src/modules/bmgd/gametest/knowledge/certification-testing.md +319 -0
  23. package/src/modules/bmgd/gametest/knowledge/compatibility-testing.md +228 -0
  24. package/src/modules/bmgd/gametest/knowledge/godot-testing.md +376 -0
  25. package/src/modules/bmgd/gametest/knowledge/input-testing.md +315 -0
  26. package/src/modules/bmgd/gametest/knowledge/localization-testing.md +304 -0
  27. package/src/modules/bmgd/gametest/knowledge/multiplayer-testing.md +322 -0
  28. package/src/modules/bmgd/gametest/knowledge/performance-testing.md +204 -0
  29. package/src/modules/bmgd/gametest/knowledge/playtesting.md +384 -0
  30. package/src/modules/bmgd/gametest/knowledge/qa-automation.md +190 -0
  31. package/src/modules/bmgd/gametest/knowledge/regression-testing.md +280 -0
  32. package/src/modules/bmgd/gametest/knowledge/save-testing.md +280 -0
  33. package/src/modules/bmgd/gametest/knowledge/smoke-testing.md +404 -0
  34. package/src/modules/bmgd/gametest/knowledge/test-priorities.md +271 -0
  35. package/src/modules/bmgd/gametest/knowledge/unity-testing.md +383 -0
  36. package/src/modules/bmgd/gametest/knowledge/unreal-testing.md +388 -0
  37. package/src/modules/bmgd/gametest/qa-index.csv +17 -0
  38. package/src/modules/bmgd/module.yaml +25 -9
  39. package/src/modules/bmgd/teams/default-party.csv +2 -0
  40. package/src/modules/bmgd/teams/team-gamedev.yaml +12 -1
  41. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md +164 -0
  42. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-02-context.md +210 -0
  43. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-03-ideation.md +289 -0
  44. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md +275 -0
  45. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.md +49 -0
  46. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.yaml +29 -8
  47. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01-init.md +223 -0
  48. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01b-continue.md +151 -0
  49. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-02-vision.md +218 -0
  50. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-03-market.md +218 -0
  51. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-04-fundamentals.md +231 -0
  52. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-05-scope.md +242 -0
  53. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-06-references.md +224 -0
  54. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-07-content.md +282 -0
  55. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-08-complete.md +296 -0
  56. package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.md +62 -0
  57. package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.yaml +40 -9
  58. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-01-init.md +248 -0
  59. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-01b-continue.md +173 -0
  60. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-02-context.md +332 -0
  61. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-03-platforms.md +245 -0
  62. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-04-vision.md +229 -0
  63. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-05-core-gameplay.md +258 -0
  64. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-06-mechanics.md +249 -0
  65. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-07-game-type.md +266 -0
  66. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-08-progression.md +272 -0
  67. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-09-levels.md +264 -0
  68. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-10-art-audio.md +255 -0
  69. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-11-technical.md +275 -0
  70. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-12-epics.md +284 -0
  71. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-13-metrics.md +250 -0
  72. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-14-complete.md +335 -0
  73. package/src/modules/bmgd/workflows/2-design/gdd/workflow.md +61 -0
  74. package/src/modules/bmgd/workflows/2-design/gdd/workflow.yaml +27 -7
  75. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-01-init.md +228 -0
  76. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-01b-continue.md +163 -0
  77. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-02-foundation.md +262 -0
  78. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-03-story.md +238 -0
  79. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-04-characters.md +297 -0
  80. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-05-world.md +262 -0
  81. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-06-dialogue.md +250 -0
  82. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-07-environmental.md +244 -0
  83. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-08-delivery.md +264 -0
  84. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-09-integration.md +254 -0
  85. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-10-production.md +262 -0
  86. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md +331 -0
  87. package/src/modules/bmgd/workflows/2-design/narrative/workflow.md +57 -0
  88. package/src/modules/bmgd/workflows/2-design/narrative/workflow.yaml +53 -8
  89. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01-init.md +223 -0
  90. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01b-continue.md +153 -0
  91. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-02-context.md +262 -0
  92. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-03-starter.md +290 -0
  93. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-04-decisions.md +300 -0
  94. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-05-crosscutting.md +319 -0
  95. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-06-structure.md +304 -0
  96. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-07-patterns.md +349 -0
  97. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-08-validation.md +293 -0
  98. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md +302 -0
  99. package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.md +55 -0
  100. package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.yaml +50 -21
  101. package/src/modules/bmgd/workflows/4-production/code-review/checklist.md +23 -0
  102. package/src/modules/bmgd/workflows/4-production/code-review/instructions.xml +225 -0
  103. package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +18 -15
  104. package/src/modules/bmgd/workflows/4-production/correct-course/checklist.md +1 -1
  105. package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +1 -1
  106. package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +11 -6
  107. package/src/modules/bmgd/workflows/4-production/create-story/checklist.md +332 -214
  108. package/src/modules/bmgd/workflows/4-production/create-story/instructions.xml +298 -0
  109. package/src/modules/bmgd/workflows/4-production/create-story/template.md +3 -5
  110. package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +12 -7
  111. package/src/modules/bmgd/workflows/4-production/dev-story/checklist.md +65 -23
  112. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.xml +409 -0
  113. package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +13 -3
  114. package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +4 -4
  115. package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +12 -7
  116. package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +32 -41
  117. package/src/modules/bmgd/workflows/4-production/sprint-planning/sprint-status-template.yaml +13 -13
  118. package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +6 -1
  119. package/src/modules/bmgd/workflows/4-production/sprint-status/instructions.md +229 -0
  120. package/src/modules/bmgd/workflows/4-production/sprint-status/workflow.yaml +35 -0
  121. package/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/instructions.md +140 -0
  122. package/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml +27 -0
  123. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/checklist.md +37 -0
  124. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/instructions.md +220 -0
  125. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml +45 -0
  126. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/checklist.md +26 -0
  127. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/instructions.md +156 -0
  128. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml +36 -0
  129. package/src/modules/bmgd/workflows/gametest/automate/checklist.md +93 -0
  130. package/src/modules/bmgd/workflows/gametest/automate/instructions.md +317 -0
  131. package/src/modules/bmgd/workflows/gametest/automate/workflow.yaml +50 -0
  132. package/src/modules/bmgd/workflows/gametest/performance/checklist.md +96 -0
  133. package/src/modules/bmgd/workflows/gametest/performance/instructions.md +323 -0
  134. package/src/modules/bmgd/workflows/gametest/performance/performance-template.md +256 -0
  135. package/src/modules/bmgd/workflows/gametest/performance/workflow.yaml +48 -0
  136. package/src/modules/bmgd/workflows/gametest/playtest-plan/checklist.md +93 -0
  137. package/src/modules/bmgd/workflows/gametest/playtest-plan/instructions.md +297 -0
  138. package/src/modules/bmgd/workflows/gametest/playtest-plan/playtest-template.md +208 -0
  139. package/src/modules/bmgd/workflows/gametest/playtest-plan/workflow.yaml +59 -0
  140. package/src/modules/bmgd/workflows/gametest/test-design/checklist.md +98 -0
  141. package/src/modules/bmgd/workflows/gametest/test-design/instructions.md +280 -0
  142. package/src/modules/bmgd/workflows/gametest/test-design/test-design-template.md +205 -0
  143. package/src/modules/bmgd/workflows/gametest/test-design/workflow.yaml +47 -0
  144. package/src/modules/bmgd/workflows/gametest/test-framework/checklist.md +103 -0
  145. package/src/modules/bmgd/workflows/gametest/test-framework/instructions.md +348 -0
  146. package/src/modules/bmgd/workflows/gametest/test-framework/workflow.yaml +48 -0
  147. package/src/modules/bmgd/workflows/gametest/test-review/checklist.md +87 -0
  148. package/src/modules/bmgd/workflows/gametest/test-review/instructions.md +272 -0
  149. package/src/modules/bmgd/workflows/gametest/test-review/test-review-template.md +203 -0
  150. package/src/modules/bmgd/workflows/gametest/test-review/workflow.yaml +48 -0
  151. package/src/modules/bmgd/workflows/workflow-status/init/instructions.md +299 -0
  152. package/src/modules/bmgd/workflows/workflow-status/init/workflow.yaml +29 -0
  153. package/src/modules/bmgd/workflows/workflow-status/instructions.md +395 -0
  154. package/src/modules/bmgd/workflows/workflow-status/paths/gamedev-brownfield.yaml +65 -0
  155. package/src/modules/bmgd/workflows/workflow-status/paths/gamedev-greenfield.yaml +71 -0
  156. package/src/modules/bmgd/workflows/workflow-status/paths/quickflow-brownfield.yaml +29 -0
  157. package/src/modules/bmgd/workflows/workflow-status/paths/quickflow-greenfield.yaml +39 -0
  158. package/src/modules/bmgd/workflows/workflow-status/project-levels.yaml +63 -0
  159. package/src/modules/bmgd/workflows/workflow-status/workflow-status-template.yaml +24 -0
  160. package/src/modules/bmgd/workflows/workflow-status/workflow.yaml +30 -0
  161. package/tools/cli/commands/install.js +9 -0
  162. package/tools/cli/installers/lib/core/installer.js +140 -592
  163. package/tools/cli/installers/lib/modules/manager.js +15 -3
  164. package/tools/cli/lib/agent/compiler.js +99 -0
  165. package/tools/cli/lib/ui.js +78 -27
  166. package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +0 -502
  167. package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +0 -398
  168. package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +0 -256
  169. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +0 -267
  170. package/src/modules/bmgd/workflows/4-production/epic-tech-context/checklist.md +0 -17
  171. package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +0 -164
  172. package/src/modules/bmgd/workflows/4-production/epic-tech-context/template.md +0 -76
  173. package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +0 -58
  174. package/src/modules/bmgd/workflows/4-production/story-context/checklist.md +0 -16
  175. package/src/modules/bmgd/workflows/4-production/story-context/context-template.xml +0 -34
  176. package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +0 -209
  177. package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +0 -63
  178. package/src/modules/bmgd/workflows/4-production/story-done/instructions.md +0 -111
  179. package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +0 -28
  180. package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +0 -117
  181. package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +0 -25
  182. /package/src/modules/bmgd/workflows/1-preproduction/game-brief/{template.md โ†’ templates/game-brief-template.md} +0 -0
  183. /package/src/modules/bmgd/workflows/2-design/gdd/{gdd-template.md โ†’ templates/gdd-template.md} +0 -0
  184. /package/src/modules/bmgd/workflows/2-design/narrative/{narrative-template.md โ†’ templates/narrative-template.md} +0 -0
  185. /package/src/modules/bmgd/workflows/3-technical/game-architecture/{architecture-template.md โ†’ templates/architecture-template.md} +0 -0
@@ -0,0 +1,298 @@
1
+ <workflow>
2
+ <critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
3
+ <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
4
+ <critical>Communicate all responses in {communication_language} and generate all documents in {document_output_language}</critical>
5
+
6
+ <critical>๐Ÿ”ฅ CRITICAL MISSION: You are creating the ULTIMATE story context engine that prevents LLM developer mistakes, omissions or
7
+ disasters! ๐Ÿ”ฅ</critical>
8
+ <critical>Your purpose is NOT to copy from epics - it's to create a comprehensive, optimized story file that gives the DEV agent
9
+ EVERYTHING needed for flawless implementation</critical>
10
+ <critical>COMMON LLM MISTAKES TO PREVENT: reinventing wheels, wrong libraries, wrong file locations, breaking regressions, ignoring UX,
11
+ vague implementations, lying about completion, not learning from past work</critical>
12
+ <critical>๐Ÿšจ EXHAUSTIVE ANALYSIS REQUIRED: You must thoroughly analyze ALL artifacts to extract critical context - do NOT be lazy or skim!
13
+ This is the most important function in the entire development process!</critical>
14
+ <critical>๐Ÿ”ฌ UTILIZE SUBPROCESSES AND SUBAGENTS: Use research subagents, subprocesses or parallel processing if available to thoroughly
15
+ analyze different artifacts simultaneously and thoroughly</critical>
16
+ <critical>โ“ SAVE QUESTIONS: If you think of questions or clarifications during analysis, save them for the end after the complete story is
17
+ written</critical>
18
+ <critical>๐ŸŽฏ ZERO USER INTERVENTION: Process should be fully automated except for initial epic/story selection or missing documents</critical>
19
+
20
+ <step n="1" goal="Determine target story">
21
+ <check if="{{story_path}} is provided by user or user provided the epic and story number such as 2-4 or 1.6 or epic 1 story 5">
22
+ <action>Parse user-provided story path: extract epic_num, story_num, story_title from format like "1-2-user-auth"</action>
23
+ <action>Set {{epic_num}}, {{story_num}}, {{story_key}} from user input</action>
24
+ <action>GOTO step 2</action>
25
+ </check>
26
+
27
+ <action>Check if {{sprint_status}} file exists for auto discover</action>
28
+ <check if="sprint status file does NOT exist">
29
+ <output>๐Ÿšซ No sprint status file found and no story specified</output>
30
+ <output>
31
+ **Required Options:**
32
+ 1. Run `sprint-planning` to initialize sprint tracking (recommended)
33
+ 2. Provide specific epic-story number to create (e.g., "1-2-user-auth")
34
+ 3. Provide path to story documents if sprint status doesn't exist yet
35
+ </output>
36
+ <ask>Choose option [1], provide epic-story number, path to story docs, or [q] to quit:</ask>
37
+
38
+ <check if="user chooses 'q'">
39
+ <action>HALT - No work needed</action>
40
+ </check>
41
+
42
+ <check if="user chooses '1'">
43
+ <output>Run sprint-planning workflow first to create sprint-status.yaml</output>
44
+ <action>HALT - User needs to run sprint-planning</action>
45
+ </check>
46
+
47
+ <check if="user provides epic-story number">
48
+ <action>Parse user input: extract epic_num, story_num, story_title</action>
49
+ <action>Set {{epic_num}}, {{story_num}}, {{story_key}} from user input</action>
50
+ <action>GOTO step 2</action>
51
+ </check>
52
+
53
+ <check if="user provides story docs path">
54
+ <action>Use user-provided path for story documents</action>
55
+ <action>GOTO step 2</action>
56
+ </check>
57
+ </check>
58
+
59
+ <!-- Auto-discover from sprint status only if no user input -->
60
+ <check if="no user input provided">
61
+ <critical>MUST read COMPLETE {sprint_status} file from start to end to preserve order</critical>
62
+ <action>Load the FULL file: {{sprint_status}}</action>
63
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
64
+ <action>Parse the development_status section completely</action>
65
+
66
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
67
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
68
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
69
+ - Status value equals "backlog"
70
+ </action>
71
+
72
+ <check if="no backlog story found">
73
+ <output>๐Ÿ“‹ No backlog stories found in sprint-status.yaml
74
+
75
+ All stories are either already created, in progress, or done.
76
+
77
+ **Options:**
78
+ 1. Run sprint-planning to refresh story tracking
79
+ 2. Load PM agent and run correct-course to add more stories
80
+ 3. Check if current sprint is complete and run retrospective
81
+ </output>
82
+ <action>HALT</action>
83
+ </check>
84
+
85
+ <action>Extract from found story key (e.g., "1-2-user-authentication"):
86
+ - epic_num: first number before dash (e.g., "1")
87
+ - story_num: second number after first dash (e.g., "2")
88
+ - story_title: remainder after second dash (e.g., "user-authentication")
89
+ </action>
90
+ <action>Set {{story_id}} = "{{epic_num}}.{{story_num}}"</action>
91
+ <action>Store story_key for later use (e.g., "1-2-user-authentication")</action>
92
+
93
+ <!-- Mark epic as in-progress if this is first story -->
94
+ <action>Check if this is the first story in epic {{epic_num}} by looking for {{epic_num}}-1-* pattern</action>
95
+ <check if="this is first story in epic {{epic_num}}">
96
+ <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
97
+ <action>If epic status is "backlog" โ†’ update to "in-progress"</action>
98
+ <action>If epic status is "contexted" (legacy status) โ†’ update to "in-progress" (backward compatibility)</action>
99
+ <action>If epic status is "in-progress" โ†’ no change needed</action>
100
+ <check if="epic status is 'done'">
101
+ <output>๐Ÿšซ ERROR: Cannot create story in completed epic</output>
102
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
103
+ <output>If you need to add more work, either:</output>
104
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
105
+ <output>2. Create a new epic for additional work</output>
106
+ <action>HALT - Cannot proceed</action>
107
+ </check>
108
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
109
+ <output>๐Ÿšซ ERROR: Invalid epic status '{{epic_status}}'</output>
110
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
111
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
112
+ <action>HALT - Cannot proceed</action>
113
+ </check>
114
+ <output>๐Ÿ“Š Epic {{epic_num}} status updated to in-progress</output>
115
+ </check>
116
+
117
+ <action>GOTO step 2</action>
118
+ </check>
119
+ </step>
120
+
121
+ <step n="2" goal="Load and analyze core artifacts">
122
+ <critical>๐Ÿ”ฌ EXHAUSTIVE ARTIFACT ANALYSIS - This is where you prevent future developer fuckups!</critical>
123
+
124
+ <!-- Load all available content through discovery protocol -->
125
+ <invoke-protocol
126
+ name="discover_inputs" />
127
+ <note>Available content: {epics_content}, {prd_content}, {architecture_content}, {ux_content},
128
+ {project_context}</note>
129
+
130
+ <!-- Analyze epics file for story foundation -->
131
+ <action>From {epics_content}, extract Epic {{epic_num}} complete context:</action> **EPIC ANALYSIS:** - Epic
132
+ objectives and business value - ALL stories in this epic for cross-story context - Our specific story's requirements, user story
133
+ statement, acceptance criteria - Technical requirements and constraints - Dependencies on other stories/epics - Source hints pointing to
134
+ original documents <!-- Extract specific story requirements -->
135
+ <action>Extract our story ({{epic_num}}-{{story_num}}) details:</action> **STORY FOUNDATION:** - User story statement
136
+ (As a, I want, so that) - Detailed acceptance criteria (already BDD formatted) - Technical requirements specific to this story -
137
+ Business context and value - Success criteria <!-- Previous story analysis for context continuity -->
138
+ <check if="story_num > 1">
139
+ <action>Load previous story file: {{story_dir}}/{{epic_num}}-{{previous_story_num}}-*.md</action> **PREVIOUS STORY INTELLIGENCE:** -
140
+ Dev notes and learnings from previous story - Review feedback and corrections needed - Files that were created/modified and their
141
+ patterns - Testing approaches that worked/didn't work - Problems encountered and solutions found - Code patterns established <action>Extract
142
+ all learnings that could impact current story implementation</action>
143
+ </check>
144
+
145
+ <!-- Git intelligence for previous work patterns -->
146
+ <check
147
+ if="previous story exists AND git repository detected">
148
+ <action>Get last 5 commit titles to understand recent work patterns</action>
149
+ <action>Analyze 1-5 most recent commits for relevance to current story:
150
+ - Files created/modified
151
+ - Code patterns and conventions used
152
+ - Library dependencies added/changed
153
+ - Architecture decisions implemented
154
+ - Testing approaches used
155
+ </action>
156
+ <action>Extract actionable insights for current story implementation</action>
157
+ </check>
158
+ </step>
159
+
160
+ <step n="3" goal="Architecture analysis for developer guardrails">
161
+ <critical>๐Ÿ—๏ธ ARCHITECTURE INTELLIGENCE - Extract everything the developer MUST follow!</critical> **ARCHITECTURE DOCUMENT ANALYSIS:** <action>Systematically
162
+ analyze architecture content for story-relevant requirements:</action>
163
+
164
+ <!-- Load architecture - single file or sharded -->
165
+ <check if="architecture file is single file">
166
+ <action>Load complete {architecture_content}</action>
167
+ </check>
168
+ <check if="architecture is sharded to folder">
169
+ <action>Load architecture index and scan all architecture files</action>
170
+ </check> **CRITICAL ARCHITECTURE EXTRACTION:** <action>For
171
+ each architecture section, determine if relevant to this story:</action> - **Technical Stack:** Languages, frameworks, libraries with
172
+ versions - **Code Structure:** Folder organization, naming conventions, file patterns - **API Patterns:** Service structure, endpoint
173
+ patterns, data contracts - **Database Schemas:** Tables, relationships, constraints relevant to story - **Security Requirements:**
174
+ Authentication patterns, authorization rules - **Performance Requirements:** Caching strategies, optimization patterns - **Testing
175
+ Standards:** Testing frameworks, coverage expectations, test patterns - **Deployment Patterns:** Environment configurations, build
176
+ processes - **Integration Patterns:** External service integrations, data flows <action>Extract any story-specific requirements that the
177
+ developer MUST follow</action>
178
+ <action>Identify any architectural decisions that override previous patterns</action>
179
+ </step>
180
+
181
+ <step n="4" goal="Web research for latest technical specifics">
182
+ <critical>๐ŸŒ ENSURE LATEST TECH KNOWLEDGE - Prevent outdated implementations!</critical> **WEB INTELLIGENCE:** <action>Identify specific
183
+ technical areas that require latest version knowledge:</action>
184
+
185
+ <!-- Check for libraries/frameworks mentioned in architecture -->
186
+ <action>From architecture analysis, identify specific libraries, APIs, or
187
+ frameworks</action>
188
+ <action>For each critical technology, research latest stable version and key changes:
189
+ - Latest API documentation and breaking changes
190
+ - Security vulnerabilities or updates
191
+ - Performance improvements or deprecations
192
+ - Best practices for current version
193
+ </action>
194
+ **EXTERNAL CONTEXT INCLUSION:** <action>Include in story any critical latest information the developer needs:
195
+ - Specific library versions and why chosen
196
+ - API endpoints with parameters and authentication
197
+ - Recent security patches or considerations
198
+ - Performance optimization techniques
199
+ - Migration considerations if upgrading
200
+ </action>
201
+ </step>
202
+
203
+ <step n="5" goal="Create comprehensive story file">
204
+ <critical>๐Ÿ“ CREATE ULTIMATE STORY FILE - The developer's master implementation guide!</critical>
205
+
206
+ <action>Initialize from template.md:
207
+ {default_output_file}</action>
208
+ <template-output file="{default_output_file}">story_header</template-output>
209
+
210
+ <!-- Story foundation from epics analysis -->
211
+ <template-output
212
+ file="{default_output_file}">story_requirements</template-output>
213
+
214
+ <!-- Developer context section - MOST IMPORTANT PART -->
215
+ <template-output file="{default_output_file}">
216
+ developer_context_section</template-output> **DEV AGENT GUARDRAILS:** <template-output file="{default_output_file}">
217
+ technical_requirements</template-output>
218
+ <template-output file="{default_output_file}">architecture_compliance</template-output>
219
+ <template-output
220
+ file="{default_output_file}">library_framework_requirements</template-output>
221
+ <template-output file="{default_output_file}">
222
+ file_structure_requirements</template-output>
223
+ <template-output file="{default_output_file}">testing_requirements</template-output>
224
+
225
+ <!-- Previous story intelligence -->
226
+ <check
227
+ if="previous story learnings available">
228
+ <template-output file="{default_output_file}">previous_story_intelligence</template-output>
229
+ </check>
230
+
231
+ <!-- Git intelligence -->
232
+ <check
233
+ if="git analysis completed">
234
+ <template-output file="{default_output_file}">git_intelligence_summary</template-output>
235
+ </check>
236
+
237
+ <!-- Latest technical specifics -->
238
+ <check if="web research completed">
239
+ <template-output file="{default_output_file}">latest_tech_information</template-output>
240
+ </check>
241
+
242
+ <!-- Project context reference -->
243
+ <template-output
244
+ file="{default_output_file}">project_context_reference</template-output>
245
+
246
+ <!-- Final status update -->
247
+ <template-output file="{default_output_file}">
248
+ story_completion_status</template-output>
249
+
250
+ <!-- CRITICAL: Set status to ready-for-dev -->
251
+ <action>Set story Status to: "ready-for-dev"</action>
252
+ <action>Add completion note: "Ultimate
253
+ context engine analysis completed - comprehensive developer guide created"</action>
254
+ </step>
255
+
256
+ <step n="6" goal="Update sprint status and finalize">
257
+ <invoke-task>Validate against checklist at {installed_path}/checklist.md using _bmad/core/tasks/validate-workflow.xml</invoke-task>
258
+ <action>Save story document unconditionally</action>
259
+
260
+ <!-- Update sprint status -->
261
+ <check if="sprint status file exists">
262
+ <action>Update {{sprint_status}}</action>
263
+ <action>Load the FULL file and read all development_status entries</action>
264
+ <action>Find development_status key matching {{story_key}}</action>
265
+ <action>Verify current status is "backlog" (expected previous state)</action>
266
+ <action>Update development_status[{{story_key}}] = "ready-for-dev"</action>
267
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
268
+ </check>
269
+
270
+ <action>Report completion</action>
271
+ <output>**๐ŸŽฏ ULTIMATE BMad Method STORY CONTEXT CREATED, {user_name}!**
272
+
273
+ **Story Details:**
274
+ - Story ID: {{story_id}}
275
+ - Story Key: {{story_key}}
276
+ - File: {{story_file}}
277
+ - Status: ready-for-dev
278
+
279
+ **Next Steps:**
280
+ 1. Review the comprehensive story in {{story_file}}
281
+ 2. **Optional Quality Competition:** Run the scrum masters `*validate-create-story` to have a fresh LLM systematically review and
282
+ improve the story context
283
+ 3. Run dev agents `dev-story` for optimized implementation
284
+ 4. Run `code-review` when complete (auto-marks done)
285
+
286
+ **Quality Competition Option:** The `*validate-create-story` command runs the story context through an independent LLM in fresh
287
+ context that will:
288
+ - Systematically re-analyze all source documents
289
+ - Identify any misses, omissions, or improvements
290
+ - Compete to create a more comprehensive story context
291
+ - Present findings interactively for your approval
292
+ - Apply improvements to create the ultimate developer implementation guide
293
+
294
+ **The developer now has everything needed for flawless implementation!**
295
+ </output>
296
+ </step>
297
+
298
+ </workflow>
@@ -1,6 +1,8 @@
1
1
  # Story {{epic_num}}.{{story_num}}: {{story_title}}
2
2
 
3
- Status: drafted
3
+ Status: ready-for-dev
4
+
5
+ <!-- Note: Validation is optional. Run validate-create-story for quality check before dev-story. -->
4
6
 
5
7
  ## Story
6
8
 
@@ -36,10 +38,6 @@ so that {{benefit}}.
36
38
 
37
39
  ## Dev Agent Record
38
40
 
39
- ### Context Reference
40
-
41
- <!-- Path(s) to story context XML will be added here by context workflow -->
42
-
43
41
  ### Agent Model Used
44
42
 
45
43
  {{agent_model_name_version}}
@@ -12,9 +12,9 @@ sprint_artifacts: "{config_source}:sprint_artifacts"
12
12
  story_dir: "{sprint_artifacts}"
13
13
 
14
14
  # Workflow components
15
- installed_path: "{project-root}/_bmad/bmm/workflows/4-implementation/create-story"
15
+ installed_path: "{project-root}/_bmad/bmgd/workflows/4-production/create-story"
16
16
  template: "{installed_path}/template.md"
17
- instructions: "{installed_path}/instructions.md"
17
+ instructions: "{installed_path}/instructions.xml"
18
18
  validation: "{installed_path}/checklist.md"
19
19
 
20
20
  # Variables and inputs
@@ -39,17 +39,22 @@ default_output_file: "{story_dir}/{{story_key}}.md"
39
39
  # Priority: Whole document first, then sharded version
40
40
  # Strategy: SELECTIVE LOAD - only load the specific epic needed for this story
41
41
  input_file_patterns:
42
- prd:
43
- description: "Product requirements (optional)"
44
- whole: "{output_folder}/*prd*.md"
45
- sharded: "{output_folder}/*prd*/*.md"
42
+ gdd:
43
+ description: "Game Design Document"
44
+ whole: "{output_folder}/*gdd*.md"
45
+ sharded: "{output_folder}/*gdd*/*.md"
46
+ load_strategy: "FULL_LOAD"
47
+ narrative:
48
+ description: "Narrative Design Document (if story-driven)"
49
+ whole: "{output_folder}/*narrative*.md"
50
+ sharded: "{output_folder}/*narrative*/*.md"
46
51
  load_strategy: "FULL_LOAD"
47
52
  tech_spec:
48
53
  description: "Technical specification"
49
54
  whole: "{output_folder}/tech-spec.md"
50
55
  load_strategy: "FULL_LOAD"
51
56
  architecture:
52
- description: "System architecture and decisions"
57
+ description: "Game architecture and technical decisions"
53
58
  whole: "{output_folder}/*architecture*.md"
54
59
  sharded: "{output_folder}/*architecture*/*.md"
55
60
  load_strategy: "FULL_LOAD"
@@ -1,38 +1,80 @@
1
1
  ---
2
- title: 'Dev Story Completion Checklist'
2
+ title: 'Enhanced Dev Story Definition of Done Checklist'
3
3
  validation-target: 'Story markdown ({{story_path}})'
4
+ validation-criticality: 'HIGHEST'
4
5
  required-inputs:
5
- - 'Story markdown file with Tasks/Subtasks, Acceptance Criteria'
6
+ - 'Story markdown file with enhanced Dev Notes containing comprehensive implementation context'
7
+ - 'Completed Tasks/Subtasks section with all items marked [x]'
8
+ - 'Updated File List section with all changed files'
9
+ - 'Updated Dev Agent Record with implementation notes'
6
10
  optional-inputs:
7
- - 'Test results output (if saved)'
8
- - 'CI logs (if applicable)'
11
+ - 'Test results output'
12
+ - 'CI logs'
13
+ - 'Linting reports'
9
14
  validation-rules:
10
- - 'Only permitted sections in story were modified: Tasks/Subtasks checkboxes, Dev Agent Record (Debug Log, Completion Notes), File List, Change Log, and Status'
15
+ - 'Only permitted story sections modified: Tasks/Subtasks checkboxes, Dev Agent Record, File List, Change Log, Status'
16
+ - 'All implementation requirements from story Dev Notes must be satisfied'
17
+ - 'Definition of Done checklist must pass completely'
18
+ - 'Enhanced story context must contain sufficient technical guidance'
11
19
  ---
12
20
 
13
- # Dev Story Completion Checklist
21
+ # ๐ŸŽฏ Enhanced Definition of Done Checklist
14
22
 
15
- ## Tasks Completion
23
+ **Critical validation:** Story is truly ready for review only when ALL items below are satisfied
16
24
 
17
- - [ ] All tasks and subtasks for this story are marked complete with [x]
18
- - [ ] Implementation aligns with every Acceptance Criterion in the story
25
+ ## ๐Ÿ“‹ Context & Requirements Validation
19
26
 
20
- ## Tests and Quality
27
+ - [ ] **Story Context Completeness:** Dev Notes contains ALL necessary technical requirements, architecture patterns, and implementation guidance
28
+ - [ ] **Architecture Compliance:** Implementation follows all architectural requirements specified in Dev Notes
29
+ - [ ] **Technical Specifications:** All technical specifications (libraries, frameworks, versions) from Dev Notes are implemented correctly
30
+ - [ ] **Previous Story Learnings:** Previous story insights incorporated (if applicable) and build upon appropriately
21
31
 
22
- - [ ] Unit tests added/updated for core functionality changed by this story
23
- - [ ] Integration tests added/updated when component interactions are affected
24
- - [ ] End-to-end tests created for critical user flows, if applicable
25
- - [ ] All tests pass locally (no regressions introduced)
26
- - [ ] Linting and static checks (if configured) pass
32
+ ## โœ… Implementation Completion
27
33
 
28
- ## Story File Updates
34
+ - [ ] **All Tasks Complete:** Every task and subtask marked complete with [x]
35
+ - [ ] **Acceptance Criteria Satisfaction:** Implementation satisfies EVERY Acceptance Criterion in the story
36
+ - [ ] **No Ambiguous Implementation:** Clear, unambiguous implementation that meets story requirements
37
+ - [ ] **Edge Cases Handled:** Error conditions and edge cases appropriately addressed
38
+ - [ ] **Dependencies Within Scope:** Only uses dependencies specified in story or project-context.md
29
39
 
30
- - [ ] File List section includes every new/modified/deleted file (paths relative to repo root)
31
- - [ ] Dev Agent Record contains relevant Debug Log and/or Completion Notes for this work
32
- - [ ] Change Log includes a brief summary of what changed
33
- - [ ] Only permitted sections of the story file were modified
40
+ ## ๐Ÿงช Testing & Quality Assurance
34
41
 
35
- ## Final Status
42
+ - [ ] **Unit Tests:** Unit tests added/updated for ALL core functionality introduced/changed by this story
43
+ - [ ] **Integration Tests:** Integration tests added/updated for component interactions when story requirements demand them
44
+ - [ ] **End-to-End Tests:** End-to-end tests created for critical user flows when story requirements specify them
45
+ - [ ] **Test Coverage:** Tests cover acceptance criteria and edge cases from story Dev Notes
46
+ - [ ] **Regression Prevention:** ALL existing tests pass (no regressions introduced)
47
+ - [ ] **Code Quality:** Linting and static checks pass when configured in project
48
+ - [ ] **Test Framework Compliance:** Tests use project's testing frameworks and patterns from Dev Notes
36
49
 
37
- - [ ] Regression suite executed successfully
38
- - [ ] Story Status is set to "Ready for Review"
50
+ ## ๐Ÿ“ Documentation & Tracking
51
+
52
+ - [ ] **File List Complete:** File List includes EVERY new, modified, or deleted file (paths relative to repo root)
53
+ - [ ] **Dev Agent Record Updated:** Contains relevant Implementation Notes and/or Debug Log for this work
54
+ - [ ] **Change Log Updated:** Change Log includes clear summary of what changed and why
55
+ - [ ] **Review Follow-ups:** All review follow-up tasks (marked [AI-Review]) completed and corresponding review items marked resolved (if applicable)
56
+ - [ ] **Story Structure Compliance:** Only permitted sections of story file were modified
57
+
58
+ ## ๐Ÿ”š Final Status Verification
59
+
60
+ - [ ] **Story Status Updated:** Story Status set to "review"
61
+ - [ ] **Sprint Status Updated:** Sprint status updated to "review" (when sprint tracking is used)
62
+ - [ ] **Quality Gates Passed:** All quality checks and validations completed successfully
63
+ - [ ] **No HALT Conditions:** No blocking issues or incomplete work remaining
64
+ - [ ] **User Communication Ready:** Implementation summary prepared for user review
65
+
66
+ ## ๐ŸŽฏ Final Validation Output
67
+
68
+ ```
69
+ Definition of Done: {{PASS/FAIL}}
70
+
71
+ โœ… **Story Ready for Review:** {{story_key}}
72
+ ๐Ÿ“Š **Completion Score:** {{completed_items}}/{{total_items}} items passed
73
+ ๐Ÿ” **Quality Gates:** {{quality_gates_status}}
74
+ ๐Ÿ“‹ **Test Results:** {{test_results_summary}}
75
+ ๐Ÿ“ **Documentation:** {{documentation_status}}
76
+ ```
77
+
78
+ **If FAIL:** List specific failures and required actions before story can be marked Ready for Review
79
+
80
+ **If PASS:** Story is fully ready for code review and production consideration