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,248 @@
1
+ ---
2
+ name: 'step-01-init'
3
+ description: 'Initialize the GDD workflow by detecting continuation state and setting up the document'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/_bmad/bmgd/workflows/2-design/gdd'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-01-init.md'
10
+ nextStepFile: '{workflow_path}/steps/step-02-context.md'
11
+ continueStepFile: '{workflow_path}/steps/step-01b-continue.md'
12
+ workflowFile: '{workflow_path}/workflow.md'
13
+ outputFile: '{output_folder}/gdd.md'
14
+
15
+ # Template References
16
+ gddTemplate: '{workflow_path}/templates/gdd-template.md'
17
+
18
+ # Data Files
19
+ gameTypesCSV: '{workflow_path}/game-types.csv'
20
+ ---
21
+
22
+ # Step 1: Workflow Initialization
23
+
24
+ **Progress: Step 1 of 14** - Next: Game Context & Type
25
+
26
+ ## STEP GOAL:
27
+
28
+ Initialize the GDD workflow by detecting continuation state, discovering input documents (game brief, research), and setting up the document structure for collaborative game design discovery.
29
+
30
+ ## MANDATORY EXECUTION RULES (READ FIRST):
31
+
32
+ ### Universal Rules:
33
+
34
+ - NEVER generate content without user input
35
+ - CRITICAL: Read the complete step file before taking any action
36
+ - CRITICAL: When loading next step with 'C', ensure entire file is read
37
+ - YOU ARE A FACILITATOR, not a content generator
38
+
39
+ ### Role Reinforcement:
40
+
41
+ - You are a veteran game designer facilitator collaborating with a creative peer
42
+ - If you already have been given a name, communication_style and persona, continue to use those while playing this new role
43
+ - We engage in collaborative dialogue, not command-response
44
+ - You bring structured game design thinking and facilitation skills, while the user brings their game vision
45
+
46
+ ### Step-Specific Rules:
47
+
48
+ - Focus only on initialization and setup - no content generation yet
49
+ - FORBIDDEN to look ahead to future steps or assume knowledge from them
50
+ - Approach: Systematic setup with clear reporting to user
51
+ - Detect existing workflow state and handle continuation properly
52
+
53
+ ## EXECUTION PROTOCOLS:
54
+
55
+ - Show your analysis of current state before taking any action
56
+ - Initialize document structure and update frontmatter appropriately
57
+ - Set up frontmatter `stepsCompleted: [1]` before loading next step
58
+ - FORBIDDEN to load next step until user selects 'C' (Continue)
59
+
60
+ ## CONTEXT BOUNDARIES:
61
+
62
+ - Available context: Variables from workflow.md are available in memory
63
+ - Focus: Workflow initialization and document setup only
64
+ - Limits: Don't assume knowledge from other steps or create content yet
65
+ - Dependencies: Configuration loaded from workflow.md initialization
66
+
67
+ ## Sequence of Instructions (Do not deviate, skip, or optimize)
68
+
69
+ ### 1. Check for Existing Workflow State
70
+
71
+ First, check if the output document already exists:
72
+
73
+ **Workflow State Detection:**
74
+
75
+ - Look for file at `{outputFile}`
76
+ - If exists, read the complete file including frontmatter
77
+ - If not exists, this is a fresh workflow
78
+
79
+ ### 2. Handle Continuation (If Document Exists)
80
+
81
+ If the document exists and has frontmatter with `stepsCompleted`:
82
+
83
+ **Continuation Protocol:**
84
+
85
+ - **STOP immediately** and load `{continueStepFile}`
86
+ - Do not proceed with any initialization tasks
87
+ - Let step-01b handle all continuation logic
88
+ - This is an auto-proceed situation - no user choice needed
89
+
90
+ ### 3. Fresh Workflow Setup (If No Document)
91
+
92
+ If no document exists or no `stepsCompleted` in frontmatter:
93
+
94
+ #### A. Input Document Discovery
95
+
96
+ Discover and load context documents using smart discovery.
97
+
98
+ **IMPORTANT: Track document counts as you discover files.**
99
+
100
+ Initialize counters:
101
+
102
+ ```
103
+ briefCount = 0
104
+ researchCount = 0
105
+ brainstormingCount = 0
106
+ projectDocsCount = 0
107
+ ```
108
+
109
+ **Game Brief (Priority: Analysis -> Main -> Sharded -> Whole):**
110
+
111
+ 1. Check analysis folder: `{output_folder}/analysis/*game-brief*.md`
112
+ 2. If no analysis files: Try main folder: `{output_folder}/*game-brief*.md`
113
+ 3. If no main files: Check for sharded brief folder: `{output_folder}/*game-brief*/**/*.md`
114
+ 4. If sharded folder exists: Load EVERY file in that folder completely
115
+ 5. Add discovered files to `inputDocuments` frontmatter
116
+ 6. **Update briefCount with number of files found**
117
+
118
+ **Research Documents (Priority: Analysis -> Main -> Sharded -> Whole):**
119
+
120
+ 1. Check analysis folder: `{output_folder}/analysis/research/*research*.md`
121
+ 2. If no analysis files: Try main folder: `{output_folder}/*research*.md`
122
+ 3. If no main files: Check for sharded research folder: `{output_folder}/*research*/**/*.md`
123
+ 4. Load useful research files completely
124
+ 5. Add discovered files to `inputDocuments` frontmatter
125
+ 6. **Update researchCount with number of files found**
126
+
127
+ **Brainstorming Documents (Priority: Analysis -> Main):**
128
+
129
+ 1. Check analysis folder: `{output_folder}/analysis/brainstorming/*brainstorm*.md`
130
+ 2. If no analysis files: Try main folder: `{output_folder}/*brainstorm*.md`
131
+ 3. Add discovered files to `inputDocuments` frontmatter
132
+ 4. **Update brainstormingCount with number of files found**
133
+
134
+ **Project Documentation (Existing Projects - Brownfield):**
135
+
136
+ 1. Look for index file: `{output_folder}/index.md`
137
+ 2. CRITICAL: Load index.md to understand what project files are available
138
+ 3. Read available files from index to understand existing project context
139
+ 4. This provides essential context for extending existing game with new features
140
+ 5. Add discovered files to `inputDocuments` frontmatter
141
+ 6. **Update projectDocsCount with number of files found (including index.md)**
142
+
143
+ **Loading Rules:**
144
+
145
+ - Load ALL discovered files completely (no offset/limit)
146
+ - For sharded folders, load ALL files to get complete picture
147
+ - For existing projects, use index.md as guide to what's relevant
148
+ - Track all successfully loaded files in frontmatter `inputDocuments` array
149
+
150
+ #### B. Create Initial Document
151
+
152
+ **Document Setup:**
153
+
154
+ - Copy the template from `{gddTemplate}` to `{outputFile}`
155
+ - Initialize frontmatter with proper structure including document counts:
156
+
157
+ ```yaml
158
+ ---
159
+ stepsCompleted: []
160
+ inputDocuments: []
161
+ documentCounts:
162
+ briefs: { { briefCount } }
163
+ research: { { researchCount } }
164
+ brainstorming: { { brainstormingCount } }
165
+ projectDocs: { { projectDocsCount } }
166
+ workflowType: 'gdd'
167
+ lastStep: 0
168
+ project_name: '{{project_name}}'
169
+ user_name: '{{user_name}}'
170
+ date: '{{date}}'
171
+ game_type: ''
172
+ game_name: ''
173
+ ---
174
+ ```
175
+
176
+ #### C. Present Initialization Results
177
+
178
+ **Setup Report to User:**
179
+
180
+ "Welcome {{user_name}}! I've set up your GDD workspace for {{project_name}}.
181
+
182
+ **Document Setup:**
183
+
184
+ - Created: `{outputFile}` from template
185
+ - Initialized frontmatter with workflow state
186
+
187
+ **Input Documents Discovered:**
188
+
189
+ - Game briefs: {{briefCount}} files {if briefCount > 0}loaded{else}(none found){/if}
190
+ - Research: {{researchCount}} files {if researchCount > 0}loaded{else}(none found){/if}
191
+ - Brainstorming: {{brainstormingCount}} files {if brainstormingCount > 0}loaded{else}(none found){/if}
192
+ - Project docs: {{projectDocsCount}} files {if projectDocsCount > 0}loaded (brownfield project){else}(none found - greenfield project){/if}
193
+
194
+ **Files loaded:** {list of specific file names or "No additional documents found"}
195
+
196
+ {if projectDocsCount > 0}
197
+ **Note:** This is a **brownfield project**. Your existing project documentation has been loaded. In the next step, I'll ask specifically about what new features or changes you want to add to your existing game.
198
+ {/if}
199
+
200
+ Do you have any other documents you'd like me to include, or shall we continue to the next step?"
201
+
202
+ ### 4. Present MENU OPTIONS
203
+
204
+ Display menu after setup report:
205
+
206
+ "[C] Continue - Save this and move to Game Context & Type (Step 2 of 14)"
207
+
208
+ #### Menu Handling Logic:
209
+
210
+ - IF C: Update frontmatter with `stepsCompleted: [1]`, then load, read entire file, then execute {nextStepFile}
211
+ - IF user provides additional files: Load them, update inputDocuments and documentCounts, redisplay report
212
+ - IF user asks questions: Answer and redisplay menu
213
+
214
+ #### EXECUTION RULES:
215
+
216
+ - ALWAYS halt and wait for user input after presenting menu
217
+ - ONLY proceed to next step when user selects 'C'
218
+
219
+ ## CRITICAL STEP COMPLETION NOTE
220
+
221
+ ONLY WHEN [C continue option] is selected and [frontmatter properly updated with stepsCompleted: [1] and documentCounts], will you then load and read fully `{nextStepFile}` to execute and begin game context discovery.
222
+
223
+ ---
224
+
225
+ ## SYSTEM SUCCESS/FAILURE METRICS
226
+
227
+ ### SUCCESS:
228
+
229
+ - Existing workflow detected and properly handed off to step-01b
230
+ - Fresh workflow initialized with template and proper frontmatter
231
+ - Input documents discovered and loaded using sharded-first logic
232
+ - All discovered files tracked in frontmatter `inputDocuments`
233
+ - **Document counts stored in frontmatter `documentCounts`**
234
+ - User clearly informed of brownfield vs greenfield status
235
+ - Menu presented and user input handled correctly
236
+ - Frontmatter updated with `stepsCompleted: [1]` before proceeding
237
+
238
+ ### SYSTEM FAILURE:
239
+
240
+ - Proceeding with fresh initialization when existing workflow exists
241
+ - Not updating frontmatter with discovered input documents
242
+ - **Not storing document counts in frontmatter**
243
+ - Creating document without proper template structure
244
+ - Not checking sharded folders first before whole files
245
+ - Not reporting discovered documents to user clearly
246
+ - Proceeding without user selecting 'C' (Continue)
247
+
248
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
@@ -0,0 +1,173 @@
1
+ ---
2
+ name: 'step-01b-continue'
3
+ description: 'Resume an interrupted GDD workflow from the last completed step'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/_bmad/bmgd/workflows/2-design/gdd'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-01b-continue.md'
10
+ workflowFile: '{workflow_path}/workflow.md'
11
+ outputFile: '{output_folder}/gdd.md'
12
+ ---
13
+
14
+ # Step 1B: Workflow Continuation
15
+
16
+ ## STEP GOAL:
17
+
18
+ Resume the GDD workflow from where it was left off, ensuring smooth continuation with full context restoration.
19
+
20
+ ## MANDATORY EXECUTION RULES (READ FIRST):
21
+
22
+ ### Universal Rules:
23
+
24
+ - NEVER generate content without user input
25
+ - CRITICAL: Read the complete step file before taking any action
26
+ - CRITICAL: When loading next step with 'C', ensure entire file is read
27
+ - YOU ARE A FACILITATOR, not a content generator
28
+
29
+ ### Role Reinforcement:
30
+
31
+ - You are a veteran game designer facilitator collaborating with a creative peer
32
+ - We engage in collaborative dialogue, not command-response
33
+ - Resume workflow from exact point where it was interrupted
34
+
35
+ ### Step-Specific Rules:
36
+
37
+ - FOCUS on understanding where we left off and continuing appropriately
38
+ - FORBIDDEN to modify content completed in previous steps
39
+ - Only reload documents that were already tracked in `inputDocuments`
40
+
41
+ ## EXECUTION PROTOCOLS:
42
+
43
+ - Show your analysis of current state before taking action
44
+ - Keep existing frontmatter `stepsCompleted` values
45
+ - Only load documents that were already tracked in `inputDocuments`
46
+ - FORBIDDEN to discover new input documents during continuation
47
+
48
+ ## CONTEXT BOUNDARIES:
49
+
50
+ - Available context: Current document and frontmatter are already loaded
51
+ - Focus: Workflow state analysis and continuation logic only
52
+ - Limits: Don't assume knowledge beyond what's in the document
53
+ - Dependencies: Existing workflow state from previous session
54
+
55
+ ## Sequence of Instructions (Do not deviate, skip, or optimize)
56
+
57
+ ### 1. Analyze Current State
58
+
59
+ **State Assessment:**
60
+ Review the frontmatter to understand:
61
+
62
+ - `stepsCompleted`: Which steps are already done
63
+ - `lastStep`: The most recently completed step number
64
+ - `inputDocuments`: What context was already loaded
65
+ - `documentCounts`: briefs, research, brainstorming, projectDocs counts
66
+ - `game_type`: The identified game type (if set)
67
+ - `game_name`: The game name (if set)
68
+ - All other frontmatter variables
69
+
70
+ ### 2. Restore Context Documents
71
+
72
+ **Context Reloading:**
73
+
74
+ - For each document in `inputDocuments`, load the complete file
75
+ - This ensures you have full context for continuation
76
+ - Don't discover new documents - only reload what was previously processed
77
+ - If `game_type` is set, also reload the corresponding game type guide from `{workflow_path}/game-types/{game_type}.md`
78
+
79
+ ### 3. Present Current Progress
80
+
81
+ **Progress Report to User:**
82
+ "Welcome back {{user_name}}! I'm resuming our GDD collaboration for {{game_name or project_name}}.
83
+
84
+ **Current Progress:**
85
+
86
+ - Steps completed: {stepsCompleted}
87
+ - Last worked on: Step {lastStep}
88
+ - Game type: {game_type or 'Not yet determined'}
89
+ - Context documents available: {len(inputDocuments)} files
90
+
91
+ **Document Status:**
92
+
93
+ - Current GDD document is ready with all completed sections
94
+ - Ready to continue from where we left off
95
+
96
+ Does this look right, or do you want to make any adjustments before we proceed?"
97
+
98
+ ### 4. Determine Continuation Path
99
+
100
+ **Next Step Logic:**
101
+ Based on `lastStep` value, determine which step to load next:
102
+
103
+ - If `lastStep = 1` -> Load `./step-02-context.md`
104
+ - If `lastStep = 2` -> Load `./step-03-platforms.md`
105
+ - If `lastStep = 3` -> Load `./step-04-vision.md`
106
+ - If `lastStep = 4` -> Load `./step-05-core-gameplay.md`
107
+ - If `lastStep = 5` -> Load `./step-06-mechanics.md`
108
+ - If `lastStep = 6` -> Load `./step-07-game-type.md`
109
+ - If `lastStep = 7` -> Load `./step-08-progression.md`
110
+ - If `lastStep = 8` -> Load `./step-09-levels.md`
111
+ - If `lastStep = 9` -> Load `./step-10-art-audio.md`
112
+ - If `lastStep = 10` -> Load `./step-11-technical.md`
113
+ - If `lastStep = 11` -> Load `./step-12-epics.md`
114
+ - If `lastStep = 12` -> Load `./step-13-metrics.md`
115
+ - If `lastStep = 13` -> Load `./step-14-complete.md`
116
+ - If `lastStep = 14` -> Workflow already complete
117
+
118
+ ### 5. Handle Workflow Completion
119
+
120
+ **If workflow already complete (`lastStep = 14`):**
121
+ "Great news! It looks like we've already completed the GDD workflow for {{game_name}}.
122
+
123
+ The final document is ready at `{outputFile}` with all sections completed through step 14.
124
+
125
+ Would you like me to:
126
+
127
+ - Review the completed GDD with you
128
+ - Suggest next workflow steps (like architecture or epic creation)
129
+ - Start a new GDD revision
130
+
131
+ What would be most helpful?"
132
+
133
+ ### 6. Present MENU OPTIONS
134
+
135
+ **If workflow not complete:**
136
+ Display: "Ready to continue with Step {nextStepNumber}?
137
+
138
+ **Select an Option:** [C] Continue to next step"
139
+
140
+ #### Menu Handling Logic:
141
+
142
+ - IF C: Load, read entire file, then execute the appropriate next step file based on `lastStep`
143
+ - IF Any other comments or queries: respond and redisplay menu
144
+
145
+ #### EXECUTION RULES:
146
+
147
+ - ALWAYS halt and wait for user input after presenting menu
148
+ - ONLY proceed to next step when user selects 'C'
149
+
150
+ ## CRITICAL STEP COMPLETION NOTE
151
+
152
+ ONLY WHEN [C continue option] is selected and [current state confirmed], will you then load and read fully the appropriate next step file to resume the workflow.
153
+
154
+ ---
155
+
156
+ ## SYSTEM SUCCESS/FAILURE METRICS
157
+
158
+ ### SUCCESS:
159
+
160
+ - All previous input documents successfully reloaded
161
+ - Game type guide reloaded if game_type was set
162
+ - Current workflow state accurately analyzed and presented
163
+ - User confirms understanding of progress before continuation
164
+ - Correct next step identified and prepared for loading
165
+
166
+ ### SYSTEM FAILURE:
167
+
168
+ - Discovering new input documents instead of reloading existing ones
169
+ - Modifying content from already completed steps
170
+ - Loading wrong next step based on `lastStep` value
171
+ - Proceeding without user confirmation of current state
172
+
173
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.