bmad-method 4.42.1 → 4.43.1

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 (105) hide show
  1. package/CONTRIBUTING.md +2 -9
  2. package/README.md +0 -98
  3. package/bmad-core/agents/bmad-master.md +6 -6
  4. package/bmad-core/data/bmad-kb.md +1 -0
  5. package/bmad-core/tasks/validate-next-story.md +1 -1
  6. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +5 -5
  7. package/dist/agents/analyst.txt +1 -0
  8. package/dist/agents/architect.txt +5 -5
  9. package/dist/agents/bmad-master.txt +12 -11
  10. package/dist/agents/bmad-orchestrator.txt +1 -0
  11. package/dist/agents/dev.txt +1 -1
  12. package/dist/agents/po.txt +1 -1
  13. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +1 -1
  14. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +1 -1
  15. package/dist/expansion-packs/bmad-godot-game-dev/agents/bmad-orchestrator.txt +1513 -0
  16. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-analyst.txt +3190 -0
  17. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-architect.txt +4499 -0
  18. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-designer.txt +3925 -0
  19. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-developer.txt +666 -0
  20. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-pm.txt +2381 -0
  21. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-po.txt +1612 -0
  22. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-qa.txt +1745 -0
  23. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-sm.txt +1208 -0
  24. package/dist/expansion-packs/bmad-godot-game-dev/agents/game-ux-expert.txt +958 -0
  25. package/dist/expansion-packs/bmad-godot-game-dev/teams/godot-game-team.txt +27721 -0
  26. package/dist/teams/team-all.txt +7 -6
  27. package/dist/teams/team-fullstack.txt +7 -6
  28. package/dist/teams/team-ide-minimal.txt +2 -1
  29. package/dist/teams/team-no-ui.txt +7 -6
  30. package/docs/GUIDING-PRINCIPLES.md +3 -3
  31. package/docs/expansion-packs.md +3 -83
  32. package/docs/flattener.md +91 -0
  33. package/docs/versions.md +1 -1
  34. package/docs/working-in-the-brownfield.md +15 -6
  35. package/expansion-packs/bmad-godot-game-dev/README.md +244 -0
  36. package/expansion-packs/bmad-godot-game-dev/agent-teams/godot-game-team.yaml +18 -0
  37. package/expansion-packs/bmad-godot-game-dev/agents/bmad-orchestrator.md +147 -0
  38. package/expansion-packs/bmad-godot-game-dev/agents/game-analyst.md +84 -0
  39. package/expansion-packs/bmad-godot-game-dev/agents/game-architect.md +146 -0
  40. package/expansion-packs/bmad-godot-game-dev/agents/game-designer.md +78 -0
  41. package/expansion-packs/bmad-godot-game-dev/agents/game-developer.md +124 -0
  42. package/expansion-packs/bmad-godot-game-dev/agents/game-pm.md +82 -0
  43. package/expansion-packs/bmad-godot-game-dev/agents/game-po.md +115 -0
  44. package/expansion-packs/bmad-godot-game-dev/agents/game-qa.md +160 -0
  45. package/expansion-packs/bmad-godot-game-dev/agents/game-sm.md +66 -0
  46. package/expansion-packs/bmad-godot-game-dev/agents/game-ux-expert.md +75 -0
  47. package/expansion-packs/bmad-godot-game-dev/checklists/game-architect-checklist.md +377 -0
  48. package/expansion-packs/bmad-godot-game-dev/checklists/game-change-checklist.md +250 -0
  49. package/expansion-packs/bmad-godot-game-dev/checklists/game-design-checklist.md +225 -0
  50. package/expansion-packs/bmad-godot-game-dev/checklists/game-po-checklist.md +448 -0
  51. package/expansion-packs/bmad-godot-game-dev/checklists/game-story-dod-checklist.md +202 -0
  52. package/expansion-packs/bmad-godot-game-dev/config.yaml +30 -0
  53. package/expansion-packs/bmad-godot-game-dev/data/bmad-kb.md +811 -0
  54. package/expansion-packs/bmad-godot-game-dev/data/brainstorming-techniques.md +36 -0
  55. package/expansion-packs/bmad-godot-game-dev/data/development-guidelines.md +893 -0
  56. package/expansion-packs/bmad-godot-game-dev/data/elicitation-methods.md +156 -0
  57. package/expansion-packs/bmad-godot-game-dev/data/technical-preferences.md +3 -0
  58. package/expansion-packs/bmad-godot-game-dev/tasks/advanced-elicitation.md +110 -0
  59. package/expansion-packs/bmad-godot-game-dev/tasks/apply-qa-fixes.md +224 -0
  60. package/expansion-packs/bmad-godot-game-dev/tasks/brownfield-create-epic.md +162 -0
  61. package/expansion-packs/bmad-godot-game-dev/tasks/brownfield-create-story.md +149 -0
  62. package/expansion-packs/bmad-godot-game-dev/tasks/correct-course-game.md +159 -0
  63. package/expansion-packs/bmad-godot-game-dev/tasks/create-deep-research-prompt.md +278 -0
  64. package/expansion-packs/bmad-godot-game-dev/tasks/create-doc.md +103 -0
  65. package/expansion-packs/bmad-godot-game-dev/tasks/create-game-story.md +202 -0
  66. package/expansion-packs/bmad-godot-game-dev/tasks/document-project.md +343 -0
  67. package/expansion-packs/bmad-godot-game-dev/tasks/execute-checklist.md +88 -0
  68. package/expansion-packs/bmad-godot-game-dev/tasks/facilitate-brainstorming-session.md +136 -0
  69. package/expansion-packs/bmad-godot-game-dev/tasks/game-brownfield-create-epic.md +160 -0
  70. package/expansion-packs/bmad-godot-game-dev/tasks/game-brownfield-create-story.md +147 -0
  71. package/expansion-packs/bmad-godot-game-dev/tasks/game-design-brainstorming.md +290 -0
  72. package/expansion-packs/bmad-godot-game-dev/tasks/game-risk-profile.md +368 -0
  73. package/expansion-packs/bmad-godot-game-dev/tasks/game-test-design.md +219 -0
  74. package/expansion-packs/bmad-godot-game-dev/tasks/generate-ai-frontend-prompt.md +51 -0
  75. package/expansion-packs/bmad-godot-game-dev/tasks/kb-mode-interaction.md +77 -0
  76. package/expansion-packs/bmad-godot-game-dev/tasks/review-game-story.md +364 -0
  77. package/expansion-packs/bmad-godot-game-dev/tasks/shard-doc.md +187 -0
  78. package/expansion-packs/bmad-godot-game-dev/tasks/validate-game-story.md +208 -0
  79. package/expansion-packs/bmad-godot-game-dev/templates/brainstorming-output-tmpl.yaml +156 -0
  80. package/expansion-packs/bmad-godot-game-dev/templates/brownfield-prd-tmpl.yaml +281 -0
  81. package/expansion-packs/bmad-godot-game-dev/templates/competitor-analysis-tmpl.yaml +306 -0
  82. package/expansion-packs/bmad-godot-game-dev/templates/game-architecture-tmpl.yaml +1111 -0
  83. package/expansion-packs/bmad-godot-game-dev/templates/game-brief-tmpl.yaml +356 -0
  84. package/expansion-packs/bmad-godot-game-dev/templates/game-design-doc-tmpl.yaml +724 -0
  85. package/expansion-packs/bmad-godot-game-dev/templates/game-prd-tmpl.yaml +209 -0
  86. package/expansion-packs/bmad-godot-game-dev/templates/game-qa-gate-tmpl.yaml +186 -0
  87. package/expansion-packs/bmad-godot-game-dev/templates/game-story-tmpl.yaml +406 -0
  88. package/expansion-packs/bmad-godot-game-dev/templates/game-ui-spec-tmpl.yaml +601 -0
  89. package/expansion-packs/bmad-godot-game-dev/templates/level-design-doc-tmpl.yaml +620 -0
  90. package/expansion-packs/bmad-godot-game-dev/templates/market-research-tmpl.yaml +418 -0
  91. package/expansion-packs/bmad-godot-game-dev/utils/bmad-doc-template.md +327 -0
  92. package/expansion-packs/bmad-godot-game-dev/utils/workflow-management.md +71 -0
  93. package/expansion-packs/bmad-godot-game-dev/workflows/game-dev-greenfield.yaml +245 -0
  94. package/expansion-packs/bmad-godot-game-dev/workflows/game-prototype.yaml +213 -0
  95. package/package.json +1 -1
  96. package/release_notes.md +19 -2
  97. package/tools/flattener/ignoreRules.js +2 -0
  98. package/tools/installer/bin/bmad.js +37 -1
  99. package/tools/installer/config/install.config.yaml +35 -7
  100. package/tools/installer/lib/ide-setup.js +285 -80
  101. package/tools/installer/lib/installer.js +6 -1
  102. package/tools/installer/package.json +1 -1
  103. package/tools/upgraders/v3-to-v4-upgrader.js +1 -0
  104. package/test.md +0 -1
  105. /package/{implement-fork-friendly-ci.sh → tools/implement-fork-friendly-ci.sh} +0 -0
@@ -0,0 +1,327 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # BMad Document Template Specification
4
+
5
+ ## Overview
6
+
7
+ BMad document templates are defined in YAML format to drive interactive document generation and agent interaction. Templates separate structure definition from content generation, making them both human and LLM-agent-friendly.
8
+
9
+ ## Template Structure
10
+
11
+ ```yaml
12
+ template:
13
+ id: template-identifier
14
+ name: Human Readable Template Name
15
+ version: 1.0
16
+ output:
17
+ format: markdown
18
+ filename: default-path/to/{{filename}}.md
19
+ title: '{{variable}} Document Title'
20
+
21
+ workflow:
22
+ mode: interactive
23
+ elicitation: advanced-elicitation
24
+
25
+ sections:
26
+ - id: section-id
27
+ title: Section Title
28
+ instruction: |
29
+ Detailed instructions for the LLM on how to handle this section
30
+ # ... additional section properties
31
+ ```
32
+
33
+ ## Core Fields
34
+
35
+ ### Template Metadata
36
+
37
+ - **id**: Unique identifier for the template
38
+ - **name**: Human-readable name displayed in UI
39
+ - **version**: Template version for tracking changes
40
+ - **output.format**: Default "markdown" for document templates
41
+ - **output.filename**: Default output file path (can include variables)
42
+ - **output.title**: Document title (becomes H1 in markdown)
43
+
44
+ ### Workflow Configuration
45
+
46
+ - **workflow.mode**: Default interaction mode ("interactive" or "yolo")
47
+ - **workflow.elicitation**: Elicitation task to use ("advanced-elicitation")
48
+
49
+ ## Section Properties
50
+
51
+ ### Required Fields
52
+
53
+ - **id**: Unique section identifier
54
+ - **title**: Section heading text
55
+ - **instruction**: Detailed guidance for LLM on handling this section
56
+
57
+ ### Optional Fields
58
+
59
+ #### Content Control
60
+
61
+ - **type**: Content type hint for structured sections
62
+ - **template**: Fixed template text for section content
63
+ - **item_template**: Template for repeatable items within section
64
+ - **prefix**: Prefix for numbered items (e.g., "FR", "NFR")
65
+
66
+ #### Behavior Flags
67
+
68
+ - **elicit**: Boolean - Apply elicitation after section rendered
69
+ - **repeatable**: Boolean - Section can be repeated multiple times
70
+ - **condition**: String - Condition for including section (e.g., "has ui requirements")
71
+
72
+ #### Agent Permissions
73
+
74
+ - **owner**: String - Agent role that initially creates/populates this section
75
+ - **editors**: Array - List of agent roles allowed to modify this section
76
+ - **readonly**: Boolean - Section cannot be modified after initial creation
77
+
78
+ #### Content Guidance
79
+
80
+ - **examples**: Array of example content (not included in output)
81
+ - **choices**: Object with choice options for common decisions
82
+ - **placeholder**: Default placeholder text
83
+
84
+ #### Structure
85
+
86
+ - **sections**: Array of nested child sections
87
+
88
+ ## Supported Types
89
+
90
+ ### Content Types
91
+
92
+ - **bullet-list**: Unordered list items
93
+ - **numbered-list**: Ordered list with optional prefix
94
+ - **paragraphs**: Free-form paragraph text
95
+ - **table**: Structured table data
96
+ - **code-block**: Code or configuration blocks
97
+ - **template-text**: Fixed template with variable substitution
98
+ - **mermaid**: Mermaid diagram with specified type and details
99
+
100
+ ### Special Types
101
+
102
+ - **repeatable-container**: Container for multiple instances
103
+ - **conditional-block**: Content shown based on conditions
104
+ - **choice-selector**: Present choices to user
105
+
106
+ ## Advanced Features
107
+
108
+ ### Variable Substitution
109
+
110
+ Use `{{variable_name}}` in titles, templates, and content:
111
+
112
+ ```yaml
113
+ title: 'Epic {{epic_number}} {{epic_title}}'
114
+ template: 'As a {{user_type}}, I want {{action}}, so that {{benefit}}.'
115
+ ```
116
+
117
+ ### Conditional Sections
118
+
119
+ ```yaml
120
+ - id: ui-section
121
+ title: User Interface Design
122
+ condition: Project has UX/UI Requirements
123
+ instruction: Only include if project has UI components
124
+ ```
125
+
126
+ ### Choice Integration
127
+
128
+ ```yaml
129
+ choices:
130
+ architecture: [Monolith, Microservices, Serverless]
131
+ testing: [Unit Only, Unit + Integration, Full Pyramid]
132
+ ```
133
+
134
+ ### Mermaid Diagrams
135
+
136
+ ```yaml
137
+ - id: system-architecture
138
+ title: System Architecture Diagram
139
+ type: mermaid
140
+ instruction: Create a system architecture diagram showing key components and data flow
141
+ mermaid_type: flowchart
142
+ details: |
143
+ Show the following components:
144
+ - User interface layer
145
+ - API gateway
146
+ - Core services
147
+ - Database layer
148
+ - External integrations
149
+ ```
150
+
151
+ **Supported mermaid_type values:**
152
+
153
+ **Core Diagram Types:**
154
+
155
+ - `flowchart` - Flow charts and process diagrams
156
+ - `sequenceDiagram` - Sequence diagrams for interactions
157
+ - `classDiagram` - Class relationship diagrams (UML)
158
+ - `stateDiagram` - State transition diagrams
159
+ - `erDiagram` - Entity relationship diagrams
160
+ - `gantt` - Gantt charts for timelines
161
+ - `pie` - Pie charts for data visualization
162
+
163
+ **Advanced Diagram Types:**
164
+
165
+ - `journey` - User journey maps
166
+ - `mindmap` - Mindmaps for brainstorming
167
+ - `timeline` - Timeline diagrams for chronological events
168
+ - `quadrantChart` - Quadrant charts for data categorization
169
+ - `xyChart` - XY charts (bar charts, line charts)
170
+ - `sankey` - Sankey diagrams for flow visualization
171
+
172
+ **Specialized Types:**
173
+
174
+ - `c4Context` - C4 context diagrams (experimental)
175
+ - `requirement` - Requirement diagrams
176
+ - `packet` - Network packet diagrams
177
+ - `block` - Block diagrams
178
+ - `kanban` - Kanban boards
179
+
180
+ ### Agent Permissions Example
181
+
182
+ ```yaml
183
+ - id: story-details
184
+ title: Story
185
+ owner: scrum-master
186
+ editors: [scrum-master]
187
+ readonly: false
188
+ sections:
189
+ - id: dev-notes
190
+ title: Dev Notes
191
+ owner: dev-agent
192
+ editors: [dev-agent]
193
+ readonly: false
194
+ instruction: Implementation notes and technical details
195
+ - id: qa-results
196
+ title: QA Results
197
+ owner: qa-agent
198
+ editors: [qa-agent]
199
+ readonly: true
200
+ instruction: Quality assurance test results
201
+ ```
202
+
203
+ ### Repeatable Sections
204
+
205
+ ```yaml
206
+ - id: epic-details
207
+ title: Epic {{epic_number}} {{epic_title}}
208
+ repeatable: true
209
+ sections:
210
+ - id: story
211
+ title: Story {{epic_number}}.{{story_number}} {{story_title}}
212
+ repeatable: true
213
+ sections:
214
+ - id: criteria
215
+ title: Acceptance Criteria
216
+ type: numbered-list
217
+ item_template: '{{criterion_number}}: {{criteria}}'
218
+ repeatable: true
219
+ ```
220
+
221
+ ### Examples with Code Blocks
222
+
223
+ ````yaml
224
+ examples:
225
+ - 'FR6: The system must authenticate users within 2 seconds'
226
+ - |
227
+ ```mermaid
228
+ sequenceDiagram
229
+ participant User
230
+ participant API
231
+ participant DB
232
+ User->>API: POST /login
233
+ API->>DB: Validate credentials
234
+ DB-->>API: User data
235
+ API-->>User: JWT token
236
+ ```
237
+ - |
238
+ **Architecture Decision Record**
239
+
240
+ **Decision**: Use PostgreSQL for primary database
241
+ **Rationale**: ACID compliance and JSON support needed
242
+ **Consequences**: Requires database management expertise
243
+ ````
244
+
245
+ ## Section Hierarchy
246
+
247
+ Templates define the complete document structure starting with the first H2 - each level in is the next H#:
248
+
249
+ ```yaml
250
+ sections:
251
+ - id: overview
252
+ title: Project Overview
253
+ sections:
254
+ - id: goals
255
+ title: Goals
256
+ - id: scope
257
+ title: Scope
258
+ sections:
259
+ - id: in-scope
260
+ title: In Scope
261
+ - id: out-scope
262
+ title: Out of Scope
263
+ ```
264
+
265
+ ## Processing Flow
266
+
267
+ 1. **Parse Template**: Load and validate YAML structure
268
+ 2. **Initialize Workflow**: Set interaction mode and elicitation
269
+ 3. **Process Sections**: Handle each section in order:
270
+ - Check conditions
271
+ - Apply instructions
272
+ - Generate content
273
+ - Handle choices and variables
274
+ - Apply elicitation if specified
275
+ - Process nested sections
276
+ 4. **Generate Output**: Create clean markdown document
277
+
278
+ ## Best Practices
279
+
280
+ ### Template Design
281
+
282
+ - Keep instructions clear and specific
283
+ - Use examples for complex content
284
+ - Structure sections logically
285
+ - Include all necessary guidance for LLM
286
+
287
+ ### Content Instructions
288
+
289
+ - Be explicit about expected format
290
+ - Include reasoning for decisions
291
+ - Specify interaction patterns
292
+ - Reference other documents when needed
293
+
294
+ ### Variable Naming
295
+
296
+ - Use descriptive variable names
297
+ - Follow consistent naming conventions
298
+ - Document expected variable values
299
+
300
+ ### Examples Usage
301
+
302
+ - Provide concrete examples for complex sections
303
+ - Include both simple and complex cases
304
+ - Use realistic project scenarios
305
+ - Include code blocks and diagrams when helpful
306
+
307
+ ## Validation
308
+
309
+ Templates should be validated for:
310
+
311
+ - Valid YAML syntax
312
+ - Required fields present
313
+ - Consistent section IDs
314
+ - Proper nesting structure
315
+ - Valid variable references
316
+
317
+ ## Migration from Legacy
318
+
319
+ When converting from markdown+frontmatter templates:
320
+
321
+ 1. Extract embedded `[[LLM:]]` instructions to `instruction` fields
322
+ 2. Convert `<<REPEAT>>` blocks to `repeatable: true` sections
323
+ 3. Extract `^^CONDITIONS^^` to `condition` fields
324
+ 4. Move `@{examples}` to `examples` arrays
325
+ 5. Convert `{{placeholders}}` to proper variable syntax
326
+
327
+ This specification ensures templates are both human-readable and machine-processable while maintaining the flexibility needed for complex document generation.
@@ -0,0 +1,71 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Workflow Management
4
+
5
+ Enables BMad orchestrator to manage and execute team workflows.
6
+
7
+ ## Dynamic Workflow Loading
8
+
9
+ Read available workflows from current team configuration's `workflows` field. Each team bundle defines its own supported workflows.
10
+
11
+ **Key Commands**:
12
+
13
+ - `/workflows` - List workflows in current bundle or workflows folder
14
+ - `/agent-list` - Show agents in current bundle
15
+
16
+ ## Workflow Commands
17
+
18
+ ### /workflows
19
+
20
+ Lists available workflows with titles and descriptions.
21
+
22
+ ### /workflow-start {workflow-id}
23
+
24
+ Starts workflow and transitions to first agent.
25
+
26
+ ### /workflow-status
27
+
28
+ Shows current progress, completed artifacts, and next steps.
29
+
30
+ ### /workflow-resume
31
+
32
+ Resumes workflow from last position. User can provide completed artifacts.
33
+
34
+ ### /workflow-next
35
+
36
+ Shows next recommended agent and action.
37
+
38
+ ## Execution Flow
39
+
40
+ 1. **Starting**: Load definition → Identify first stage → Transition to agent → Guide artifact creation
41
+
42
+ 2. **Stage Transitions**: Mark complete → Check conditions → Load next agent → Pass artifacts
43
+
44
+ 3. **Artifact Tracking**: Track status, creator, timestamps in workflow_state
45
+
46
+ 4. **Interruption Handling**: Analyze provided artifacts → Determine position → Suggest next step
47
+
48
+ ## Context Passing
49
+
50
+ When transitioning, pass:
51
+
52
+ - Previous artifacts
53
+ - Current workflow stage
54
+ - Expected outputs
55
+ - Decisions/constraints
56
+
57
+ ## Multi-Path Workflows
58
+
59
+ Handle conditional paths by asking clarifying questions when needed.
60
+
61
+ ## Best Practices
62
+
63
+ 1. Show progress
64
+ 2. Explain transitions
65
+ 3. Preserve context
66
+ 4. Allow flexibility
67
+ 5. Track state
68
+
69
+ ## Agent Integration
70
+
71
+ Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
@@ -0,0 +1,245 @@
1
+ workflow:
2
+ id: godot-game-dev-greenfield
3
+ name: Godot Game Development - Greenfield Project
4
+ description: Specialized workflow for creating games from concept to implementation using Godot Engine 4.x with GDScript and C#. Guides teams through Godot-specific design patterns, node-based architecture, scene composition, signal systems, and resource management. Emphasizes Godot's unique features like AnimationTree, shader language, and built-in physics while maintaining 60+ FPS performance targets.
5
+ type: greenfield
6
+ project_types:
7
+ - godot-2d-game
8
+ - godot-3d-game
9
+ - godot-mobile-game
10
+ - godot-web-export
11
+ - godot-vr-game
12
+ - godot-multiplayer-game
13
+ sequence:
14
+ - agent: game-designer
15
+ creates: project-brief.md
16
+ optional_steps:
17
+ - godot_genre_analysis
18
+ - godot_asset_store_research
19
+ - target_platform_capabilities
20
+ notes: "Define game concept with Godot's strengths in mind (2D pixel-perfect, procedural generation, shader effects). Consider Godot's export targets and platform-specific features. SAVE OUTPUT: Copy final project-brief.md to your project's docs/design/ folder."
21
+
22
+ - agent: game-designer
23
+ creates: game-design-doc.md
24
+ requires: project-brief.md
25
+ optional_steps:
26
+ - godot_node_system_planning
27
+ - scene_hierarchy_design
28
+ - input_map_configuration
29
+ notes: "Create Godot-specific GDD defining node hierarchies, scene transitions, input actions, and resource preloading strategies. Map mechanics to Godot's built-in nodes (Area2D, CharacterBody2D, RigidBody2D). SAVE OUTPUT: Copy final game-design-doc.md to your project's docs/design/ folder."
30
+
31
+ - agent: game-designer
32
+ creates: level-design-doc.md (optional)
33
+ requires: game-design-doc.md
34
+ optional_steps:
35
+ - tilemap_system_design
36
+ - scene_instancing_strategy
37
+ - godot_room_system_planning
38
+ notes: "OPTIONAL BUT RECOMMENDED: Design levels using Godot's TileMap, GridMap, or modular scene approach. Define scene instancing patterns, resource groups, and level streaming strategy. SAVE OUTPUT: Copy final level-design-doc.md to your project's docs/design/ folder."
39
+
40
+ - agent: game-pm
41
+ creates: prd.md
42
+ requires:
43
+ - project-brief.md
44
+ - game-design-doc.md
45
+ notes: "Creates PRD from project brief using game-prd-tmpl. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
46
+
47
+ - agent: game-architect
48
+ creates: architecture.md
49
+ requires:
50
+ - game-design-doc.md
51
+ - prd.md
52
+ optional_steps:
53
+ - godot_autoload_architecture
54
+ - signal_bus_design
55
+ - resource_loading_strategy
56
+ - gdextension_evaluation
57
+ notes: "Design Godot-specific architecture: autoload singletons, signal bus patterns, scene tree organization, resource loading (preload vs load), and GDScript/C#/GDExtension strategy. Define custom nodes, resources, and editor tools. SAVE OUTPUT: Copy final architecture.md to your project's docs/architecture/ folder."
58
+
59
+ - agent: game-pm
60
+ updates: prd.md (if needed)
61
+ requires: architecture.md
62
+ condition: architecture_suggests_prd_changes
63
+ notes: "If game-architect suggests story changes, update PRD and re-export the complete unredacted prd.md to docs/ folder."
64
+
65
+ - agent: game-po
66
+ validates: all_artifacts
67
+ uses: po-master-checklist
68
+ notes: "Validates all documents for consistency and completeness. May require updates to any document."
69
+
70
+ - agent: various
71
+ updates: any_flagged_documents
72
+ condition: po_checklist_issues
73
+ notes: "If game-po finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
74
+
75
+ - project_setup_guidance:
76
+ action: initialize_godot_project
77
+ notes: "Create Godot 4.x project with proper folder structure: scenes/, scripts/, resources/, shaders/, addons/. Configure project settings: rendering (Forward+/Mobile), physics tick rate, input map, autoloads. Install GUT for GDScript testing, configure export presets for target platforms."
78
+
79
+ - agent: game-po
80
+ action: shard_documents
81
+ creates: sharded_docs
82
+ requires: all_artifacts_in_project
83
+ notes: |
84
+ Shard documents for IDE development:
85
+ - Option A: Use PO agent to shard: @game-po then ask to shard docs/prd.md
86
+ - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
87
+ - Creates docs/prd/ and docs/architecture/ folders with sharded content
88
+
89
+ - agent: game-sm
90
+ action: create_story
91
+ creates: story.md
92
+ requires: sharded_docs
93
+ repeats: for_each_epic
94
+ notes: |
95
+ Story creation cycle:
96
+ - SM Agent (New Chat): @game-sm → *create
97
+ - Creates next story from sharded docs
98
+ - Story starts in "Draft" status
99
+
100
+ - agent: game-qa
101
+ action: test_design
102
+ updates: story.md
103
+ requires: story.md
104
+ optional: true
105
+ condition: user_wants_test_design
106
+ notes: |
107
+ OPTIONAL: Design tests for draft story
108
+ - Analyze story for possible risks
109
+ - Create tests to mitigate those risks
110
+
111
+ - agent: game-po
112
+ action: review_draft_story
113
+ updates: story.md
114
+ requires: story.md
115
+ optional: true
116
+ condition: user_wants_story_review
117
+ notes: |
118
+ OPTIONAL: Review and approve draft story
119
+ - Review story completeness and alignment
120
+ - Update story status: Draft → Approved
121
+
122
+ - agent: game-dev
123
+ action: implement_story
124
+ creates: implementation_files
125
+ requires: story.md
126
+ notes: |
127
+ Dev Agent (New Chat): @game-dev
128
+ - Implements approved story
129
+ - Updates File List with all changes
130
+ - Marks story as "Review" when complete
131
+
132
+ - agent: game-qa
133
+ action: review_implementation
134
+ updates: implementation_files
135
+ requires: implementation_files
136
+ optional: true
137
+ notes: |
138
+ OPTIONAL: QA Agent (New Chat): @qa → review-story
139
+ - Senior dev review with refactoring ability
140
+ - Fixes small issues directly
141
+ - Leaves checklist for remaining items
142
+ - Updates story status (Review → Done or stays Review)
143
+
144
+ - agent: game-dev
145
+ action: address_qa_feedback
146
+ updates: implementation_files
147
+ condition: qa_left_unchecked_items
148
+ notes: |
149
+ If QA left unchecked items:
150
+ - Dev Agent (New Chat): Address remaining items
151
+ - Return to QA for final approval
152
+
153
+ - repeat_development_cycle: ""
154
+ action: continue_for_all_stories
155
+ notes: |
156
+ Repeat story cycle (SM → Dev → QA) for all epic stories
157
+ Continue until all stories in PRD are complete
158
+
159
+ - agent: game-po
160
+ action: epic_retrospective
161
+ creates: epic-retrospective.md
162
+ condition: epic_complete
163
+ optional: true
164
+ notes: |
165
+ OPTIONAL: After epic completion
166
+ - NOTE: epic-retrospective task coming soon
167
+ - Validate epic was completed correctly
168
+ - Document learnings and improvements
169
+
170
+ - workflow_end: ""
171
+ action: project_complete
172
+ notes: |
173
+ All stories implemented and reviewed!
174
+ Project development phase complete.
175
+
176
+ Reference: {root}/data/bmad-kb.md#IDE Development Workflow
177
+
178
+ flow_diagram: |
179
+ ```mermaid
180
+ graph TD
181
+ A[Start: Greenfield Project] --> B[game-designer: project-brief.md]
182
+ B --> C[game-pm: prd.md]
183
+ C --> D[game-architect: architecture.md]
184
+ D --> E{Architecture suggests PRD changes?}
185
+ E -->|Yes| F[game-pm: update prd.md]
186
+ E-->|No| G[game-po: validate all artifacts]
187
+ F--> G
188
+ G --> I{game-po finds issues?}
189
+ I -->|Yes| J[Return to relevant agent for fixes]
190
+ I -->|No| K[game-po: shard documents]
191
+ J --> H
192
+
193
+ K --> L[game-sm: create story]
194
+ L --> M{Review draft story?}
195
+ M -->|Yes| N[game-po: review & approve story]
196
+ M -->|No| O[game-dev: implement story]
197
+ N --> O
198
+ O --> P{QA review?}
199
+ P -->|Yes| Q[game-qa: review implementation]
200
+ P -->|No| R{More stories?}
201
+ Q --> S{QA found issues?}
202
+ S -->|Yes| T[game-dev: address QA feedback]
203
+ S -->|No| R
204
+ T --> Q
205
+ R -->|Yes| L
206
+ R -->|No| U{Epic retrospective?}
207
+ U -->|Yes| V[game-po: epic retrospective]
208
+ U -->|No| W[Project Complete]
209
+ V --> W
210
+
211
+ B -.-> B1[Optional: brainstorming]
212
+ B -.-> B2[Optional: market research]
213
+ C -.-> C1[Optional: user research]
214
+ F -.-> D1[Optional: technical research]
215
+
216
+ style W fill:#90EE90
217
+ style K fill:#ADD8E6
218
+ style L fill:#ADD8E6
219
+ style O fill:#ADD8E6
220
+ style B fill:#FFE4B5
221
+ style C fill:#FFE4B5
222
+ style D fill:#FFE4B5
223
+ style E fill:#FFE4B5
224
+ style N fill:#F0E68C
225
+ style Q fill:#F0E68C
226
+ style V fill:#F0E68C
227
+ ```
228
+
229
+ decision_guidance:
230
+ when_to_use:
231
+ - Building complex Godot games with multiple scenes
232
+ - Implementing networked multiplayer with Godot's high-level API
233
+ - Complex feature requirements
234
+ - Need comprehensive documentation
235
+ - Long-term maintenance expected
236
+
237
+ handoff_prompts:
238
+ analyst_to_pm: "Project brief is complete. Save it as docs/project-brief.md in your project, then create the PRD."
239
+ pm_to_ux: "PRD is ready. Save it as docs/prd.md in your project, then create the UI/UX specification."
240
+ ux_to_architect: "UI/UX spec complete. Save it as docs/front-end-spec.md in your project, then create the fullstack architecture."
241
+ architect_review: "Architecture complete. Save it as docs/architecture.md. Do you suggest any changes to the PRD stories or need new stories added?"
242
+ architect_to_pm: "Please update the PRD with the suggested story changes, then re-export the complete prd.md to docs/."
243
+ updated_to_po: "All documents ready in docs/ folder. Please validate all artifacts for consistency."
244
+ po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
245
+ complete: "All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."