bmad-method 4.31.0 → 4.33.0

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 (92) hide show
  1. package/.vscode/settings.json +1 -7
  2. package/CHANGELOG.md +113 -173
  3. package/README.md +47 -0
  4. package/bmad-core/agents/analyst.md +1 -1
  5. package/bmad-core/agents/architect.md +2 -3
  6. package/bmad-core/agents/bmad-master.md +0 -1
  7. package/bmad-core/agents/bmad-orchestrator.md +9 -10
  8. package/bmad-core/agents/dev.md +1 -2
  9. package/bmad-core/agents/pm.md +3 -1
  10. package/bmad-core/agents/po.md +1 -1
  11. package/bmad-core/agents/qa.md +1 -1
  12. package/bmad-core/agents/sm.md +1 -1
  13. package/bmad-core/agents/ux-expert.md +1 -1
  14. package/bmad-core/bmad-core/user-guide.md +0 -0
  15. package/bmad-core/checklists/architect-checklist.md +0 -5
  16. package/bmad-core/checklists/pm-checklist.md +0 -5
  17. package/bmad-core/checklists/po-master-checklist.md +0 -9
  18. package/bmad-core/checklists/story-dod-checklist.md +0 -7
  19. package/bmad-core/checklists/story-draft-checklist.md +0 -3
  20. package/bmad-core/data/bmad-kb.md +5 -2
  21. package/bmad-core/data/elicitation-methods.md +20 -0
  22. package/bmad-core/enhanced-ide-development-workflow.md +43 -0
  23. package/bmad-core/tasks/create-brownfield-story.md +11 -3
  24. package/bmad-core/tasks/create-deep-research-prompt.md +0 -11
  25. package/bmad-core/tasks/document-project.md +15 -13
  26. package/bmad-core/tasks/facilitate-brainstorming-session.md +1 -1
  27. package/bmad-core/tasks/index-docs.md +0 -6
  28. package/bmad-core/tasks/kb-mode-interaction.md +3 -3
  29. package/bmad-core/tasks/review-story.md +10 -1
  30. package/bmad-core/tasks/shard-doc.md +0 -2
  31. package/bmad-core/user-guide.md +7 -6
  32. package/bmad-core/working-in-the-brownfield.md +39 -36
  33. package/common/tasks/execute-checklist.md +0 -7
  34. package/dist/agents/analyst.txt +6 -6
  35. package/dist/agents/architect.txt +8 -3
  36. package/dist/agents/bmad-master.txt +2 -1
  37. package/dist/agents/pm.txt +9 -2
  38. package/dist/agents/po.txt +2 -318
  39. package/dist/agents/qa.txt +0 -1
  40. package/dist/agents/sm.txt +3 -3
  41. package/dist/agents/ux-expert.txt +2 -297
  42. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +6 -6
  43. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4047 -0
  44. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +1520 -185
  45. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +214 -1229
  46. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +537 -373
  47. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +6917 -2140
  48. package/dist/teams/team-all.txt +30 -25
  49. package/dist/teams/team-fullstack.txt +27 -21
  50. package/dist/teams/team-ide-minimal.txt +5 -322
  51. package/dist/teams/team-no-ui.txt +25 -16
  52. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  53. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -4
  54. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +3 -5
  55. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -1
  56. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -18
  57. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +1 -0
  58. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +80 -0
  59. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +21 -16
  60. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +25 -25
  61. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +15 -14
  62. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +391 -0
  63. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +203 -0
  64. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +1 -1
  65. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +103 -139
  66. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
  67. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +586 -68
  68. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +0 -4
  69. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +0 -1
  70. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +141 -0
  71. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +165 -198
  72. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +0 -18
  73. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +200 -0
  74. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +938 -453
  75. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +3 -3
  76. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +517 -155
  77. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +12 -12
  78. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +11 -11
  79. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  80. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -3
  81. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +0 -1
  82. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +0 -1
  83. package/package.json +4 -1
  84. package/tools/bmad-npx-wrapper.js +5 -7
  85. package/tools/flattener/main.js +570 -0
  86. package/tools/installer/bin/bmad.js +14 -0
  87. package/tools/installer/lib/installer.js +29 -3
  88. package/tools/installer/package-lock.json +89 -89
  89. package/tools/installer/package.json +1 -1
  90. package/.husky/pre-commit +0 -2
  91. package/.prettierignore +0 -21
  92. package/.prettierrc +0 -23
@@ -1,85 +1,487 @@
1
- # Game Development BMad Knowledge Base
1
+ # BMad Knowledge Base - 2D Unity Game Development
2
2
 
3
3
  ## Overview
4
4
 
5
- This game development expansion of BMad-Method specializes in creating 2D games using Unity and C#. It extends the core BMad framework with game-specific agents, workflows, and best practices for professional game development.
5
+ This is the game development expansion of BMad-Method (Breakthrough Method of Agile AI-driven Development), specializing in creating 2D games using Unity and C#. The v4 system introduces a modular architecture with improved dependency management, bundle optimization, and support for both web and IDE environments, specifically optimized for game development workflows.
6
+
7
+ ### Key Features for Game Development
8
+
9
+ - **Game-Specialized Agent System**: AI agents for each game development role (Designer, Developer, Scrum Master)
10
+ - **Unity-Optimized Build System**: Automated dependency resolution for game assets and scripts
11
+ - **Dual Environment Support**: Optimized for both web UIs and game development IDEs
12
+ - **Game Development Resources**: Specialized templates, tasks, and checklists for 2D Unity games
13
+ - **Performance-First Approach**: Built-in optimization patterns for cross-platform game deployment
6
14
 
7
15
  ### Game Development Focus
8
16
 
9
17
  - **Target Engine**: Unity 2022 LTS or newer with C# 10+
10
18
  - **Platform Strategy**: Cross-platform (PC, Console, Mobile) with a focus on 2D
11
- - **Development Approach**: Agile story-driven development
19
+ - **Development Approach**: Agile story-driven development with game-specific workflows
12
20
  - **Performance Target**: Stable frame rate on target devices
13
21
  - **Architecture**: Component-based architecture using Unity's best practices
14
22
 
15
- ## Core Game Development Philosophy
23
+ ### When to Use BMad for Game Development
24
+
25
+ - **New Game Projects (Greenfield)**: Complete end-to-end game development from concept to deployment
26
+ - **Existing Game Projects (Brownfield)**: Feature additions, level expansions, and gameplay enhancements
27
+ - **Game Team Collaboration**: Multiple specialized roles working together on game features
28
+ - **Game Quality Assurance**: Structured testing, performance validation, and gameplay balance
29
+ - **Game Documentation**: Professional Game Design Documents, technical architecture, user stories
30
+
31
+ ## How BMad Works for Game Development
32
+
33
+ ### The Core Method
34
+
35
+ BMad transforms you into a "Player Experience CEO" - directing a team of specialized game development AI agents through structured workflows. Here's how:
36
+
37
+ 1. **You Direct, AI Executes**: You provide game vision and creative decisions; agents handle implementation details
38
+ 2. **Specialized Game Agents**: Each agent masters one game development role (Designer, Developer, Scrum Master)
39
+ 3. **Game-Focused Workflows**: Proven patterns guide you from game concept to deployed 2D Unity game
40
+ 4. **Clean Handoffs**: Fresh context windows ensure agents stay focused and effective for game development
41
+
42
+ ### The Two-Phase Game Development Approach
43
+
44
+ #### Phase 1: Game Design & Planning (Web UI - Cost Effective)
45
+
46
+ - Use large context windows for comprehensive game design
47
+ - Generate complete Game Design Documents and technical architecture
48
+ - Leverage multiple agents for creative brainstorming and mechanics refinement
49
+ - Create once, use throughout game development
50
+
51
+ #### Phase 2: Game Development (IDE - Implementation)
52
+
53
+ - Shard game design documents into manageable pieces
54
+ - Execute focused SM → Dev cycles for game features
55
+ - One game story at a time, sequential progress
56
+ - Real-time Unity operations, C# coding, and game testing
57
+
58
+ ### The Game Development Loop
59
+
60
+ ```text
61
+ 1. Game SM Agent (New Chat) → Creates next game story from sharded docs
62
+ 2. You → Review and approve game story
63
+ 3. Game Dev Agent (New Chat) → Implements approved game feature in Unity
64
+ 4. QA Agent (New Chat) → Reviews code and tests gameplay
65
+ 5. You → Verify game feature completion
66
+ 6. Repeat until game epic complete
67
+ ```
68
+
69
+ ### Why This Works for Games
70
+
71
+ - **Context Optimization**: Clean chats = better AI performance for complex game logic
72
+ - **Role Clarity**: Agents don't context-switch = higher quality game features
73
+ - **Incremental Progress**: Small game stories = manageable complexity
74
+ - **Player-Focused Oversight**: You validate each game feature = quality control
75
+ - **Design-Driven**: Game specs guide everything = consistent player experience
76
+
77
+ ### Core Game Development Philosophy
78
+
79
+ #### Player-First Development
80
+
81
+ You are developing games as a "Player Experience CEO" - thinking like a game director with unlimited creative resources and a singular vision for player enjoyment.
82
+
83
+ #### Game Development Principles
84
+
85
+ 1. **MAXIMIZE_PLAYER_ENGAGEMENT**: Push the AI to create compelling gameplay. Challenge mechanics and iterate.
86
+ 2. **GAMEPLAY_QUALITY_CONTROL**: You are the ultimate arbiter of fun. Review all game features.
87
+ 3. **CREATIVE_OVERSIGHT**: Maintain the high-level game vision and ensure design alignment.
88
+ 4. **ITERATIVE_REFINEMENT**: Expect to revisit game mechanics. Game development is not linear.
89
+ 5. **CLEAR_GAME_INSTRUCTIONS**: Precise game requirements lead to better implementations.
90
+ 6. **DOCUMENTATION_IS_KEY**: Good game design docs lead to good game features.
91
+ 7. **START_SMALL_SCALE_FAST**: Test core mechanics, then expand and polish.
92
+ 8. **EMBRACE_CREATIVE_CHAOS**: Adapt and overcome game development challenges.
93
+
94
+ ## Getting Started with Game Development
95
+
96
+ ### Quick Start Options for Game Development
97
+
98
+ #### Option 1: Web UI for Game Design
99
+
100
+ **Best for**: Game designers who want to start with comprehensive planning
101
+
102
+ 1. Navigate to `dist/teams/` (after building)
103
+ 2. Copy `unity-2d-game-team.txt` content
104
+ 3. Create new Gemini Gem or CustomGPT
105
+ 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
106
+ 5. Type `/help` to see available game development commands
107
+
108
+ #### Option 2: IDE Integration for Game Development
109
+
110
+ **Best for**: Unity developers using Cursor, Claude Code, Windsurf, Trae, Cline, Roo Code, Github Copilot
111
+
112
+ ```bash
113
+ # Interactive installation (recommended)
114
+ npx bmad-method install
115
+ # Select the bmad-2d-unity-game-dev expansion pack when prompted
116
+ ```
117
+
118
+ **Installation Steps for Game Development**:
119
+
120
+ - Choose "Install expansion pack" when prompted
121
+ - Select "bmad-2d-unity-game-dev" from the list
122
+ - Select your IDE from supported options:
123
+ - **Cursor**: Native AI integration with Unity support
124
+ - **Claude Code**: Anthropic's official IDE
125
+ - **Windsurf**: Built-in AI capabilities
126
+ - **Trae**: Built-in AI capabilities
127
+ - **Cline**: VS Code extension with AI features
128
+ - **Roo Code**: Web-based IDE with agent support
129
+ - **GitHub Copilot**: VS Code extension with AI peer programming assistant
130
+
131
+ **Verify Game Development Installation**:
132
+
133
+ - `.bmad-core/` folder created with all core agents
134
+ - `.bmad-2d-unity-game-dev/` folder with game development agents
135
+ - IDE-specific integration files created
136
+ - Game development agents available with `/bmad2du` prefix (per config.yaml)
137
+
138
+ ### Environment Selection Guide for Game Development
139
+
140
+ **Use Web UI for**:
141
+
142
+ - Game design document creation and brainstorming
143
+ - Cost-effective comprehensive game planning (especially with Gemini)
144
+ - Multi-agent game design consultation
145
+ - Creative ideation and mechanics refinement
146
+
147
+ **Use IDE for**:
148
+
149
+ - Unity project development and C# coding
150
+ - Game asset operations and project integration
151
+ - Game story management and implementation workflow
152
+ - Unity testing, profiling, and debugging
153
+
154
+ **Cost-Saving Tip for Game Development**: Create large game design documents in web UI, then copy to `docs/game-design-doc.md` and `docs/game-architecture.md` in your Unity project before switching to IDE for development.
155
+
156
+ ### IDE-Only Game Development Workflow Considerations
157
+
158
+ **Can you do everything in IDE?** Yes, but understand the game development tradeoffs:
159
+
160
+ **Pros of IDE-Only Game Development**:
161
+
162
+ - Single environment workflow from design to Unity deployment
163
+ - Direct Unity project operations from start
164
+ - No copy/paste between environments
165
+ - Immediate Unity project integration
166
+
167
+ **Cons of IDE-Only Game Development**:
168
+
169
+ - Higher token costs for large game design document creation
170
+ - Smaller context windows for comprehensive game planning
171
+ - May hit limits during creative brainstorming phases
172
+ - Less cost-effective for extensive game design iteration
173
+
174
+ **CRITICAL RULE for Game Development**:
175
+
176
+ - **ALWAYS use Game SM agent for story creation** - Never use bmad-master or bmad-orchestrator
177
+ - **ALWAYS use Game Dev agent for Unity implementation** - Never use bmad-master or bmad-orchestrator
178
+ - **Why this matters**: Game SM and Game Dev agents are specifically optimized for Unity workflows
179
+ - **No exceptions**: Even if using bmad-master for design, switch to Game SM → Game Dev for implementation
180
+
181
+ ## Core Configuration for Game Development (core-config.yaml)
182
+
183
+ **New in V4**: The `expansion-packs/bmad-2d-unity-game-dev/core-config.yaml` file enables BMad to work seamlessly with any Unity project structure, providing maximum flexibility for game development.
184
+
185
+ ### Game Development Configuration
186
+
187
+ The expansion pack follows the standard BMad configuration patterns. Copy your core-config.yaml file to expansion-packs/bmad-2d-unity-game-dev/ and add Game-specific configurations to your project's `core-config.yaml`:
188
+
189
+ ```yaml
190
+ markdownExploder: true
191
+ prd:
192
+ prdFile: docs/prd.md
193
+ prdVersion: v4
194
+ prdSharded: true
195
+ prdShardedLocation: docs/prd
196
+ epicFilePattern: epic-{n}*.md
197
+ architecture:
198
+ architectureFile: docs/architecture.md
199
+ architectureVersion: v4
200
+ architectureSharded: true
201
+ architectureShardedLocation: docs/architecture
202
+ gdd:
203
+ gddVersion: v4
204
+ gddSharded: true
205
+ gddLocation: docs/game-design-doc.md
206
+ gddShardedLocation: docs/gdd
207
+ epicFilePattern: epic-{n}*.md
208
+ gamearchitecture:
209
+ gamearchitectureFile: docs/architecture.md
210
+ gamearchitectureVersion: v3
211
+ gamearchitectureLocation: docs/game-architecture.md
212
+ gamearchitectureSharded: true
213
+ gamearchitectureShardedLocation: docs/game-architecture
214
+ gamebriefdocLocation: docs/game-brief.md
215
+ levelDesignLocation: docs/level-design.md
216
+ #Specify the location for your unity editor
217
+ unityEditorLocation: /home/USER/Unity/Hub/Editor/VERSION/Editor/Unity
218
+ customTechnicalDocuments: null
219
+ devDebugLog: .ai/debug-log.md
220
+ devStoryLocation: docs/stories
221
+ slashPrefix: bmad2du
222
+ #replace old devLoadAlwaysFiles with this once you have sharded your gamearchitecture document
223
+ devLoadAlwaysFiles:
224
+ - docs/game-architecture/9-coding-standards.md
225
+ - docs/game-architecture/3-tech-stack.md
226
+ - docs/game-architecture/8-unity-project-structure.md
227
+ ```
228
+
229
+ ## Complete Game Development Workflow
230
+
231
+ ### Planning Phase (Web UI Recommended - Especially Gemini for Game Design!)
232
+
233
+ **Ideal for cost efficiency with Gemini's massive context for game brainstorming:**
234
+
235
+ **For All Game Projects**:
236
+
237
+ 1. **Game Concept Brainstorming**: `/bmad2du/game-designer` - Use `*game-design-brainstorming` task
238
+ 2. **Game Brief**: Create foundation game document using `game-brief-tmpl`
239
+ 3. **Game Design Document Creation**: `/bmad2du/game-designer` - Use `game-design-doc-tmpl` for comprehensive game requirements
240
+ 4. **Game Architecture Design**: `/bmad2du/game-architect` - Use `game-architecture-tmpl` for Unity technical foundation
241
+ 5. **Level Design Framework**: `/bmad2du/game-designer` - Use `level-design-doc-tmpl` for level structure planning
242
+ 6. **Document Preparation**: Copy final documents to Unity project as `docs/game-design-doc.md`, `docs/game-brief.md`, `docs/level-design.md` and `docs/game-architecture.md`
243
+
244
+ #### Example Game Planning Prompts
245
+
246
+ **For Game Design Document Creation**:
247
+
248
+ ```text
249
+ "I want to build a [genre] 2D game that [core gameplay].
250
+ Help me brainstorm mechanics and create a comprehensive Game Design Document."
251
+ ```
252
+
253
+ **For Game Architecture Design**:
254
+
255
+ ```text
256
+ "Based on this Game Design Document, design a scalable Unity architecture
257
+ that can handle [specific game requirements] with stable performance."
258
+ ```
259
+
260
+ ### Critical Transition: Web UI to Unity IDE
261
+
262
+ **Once game planning is complete, you MUST switch to IDE for Unity development:**
263
+
264
+ - **Why**: Unity development workflow requires C# operations, asset management, and real-time Unity testing
265
+ - **Cost Benefit**: Web UI is more cost-effective for large game design creation; IDE is optimized for Unity development
266
+ - **Required Files**: Ensure `docs/game-design-doc.md` and `docs/game-architecture.md` exist in your Unity project
267
+
268
+ ### Unity IDE Development Workflow
269
+
270
+ **Prerequisites**: Game planning documents must exist in `docs/` folder of Unity project
271
+
272
+ 1. **Document Sharding** (CRITICAL STEP for Game Development):
273
+ - Documents created by Game Designer/Architect (in Web or IDE) MUST be sharded for development
274
+ - Use core BMad agents or tools to shard:
275
+ a) **Manual**: Use core BMad `shard-doc` task if available
276
+ b) **Agent**: Ask core `@bmad-master` agent to shard documents
277
+ - Shards `docs/game-design-doc.md` → `docs/game-design/` folder
278
+ - Shards `docs/game-architecture.md` → `docs/game-architecture/` folder
279
+ - **WARNING**: Do NOT shard in Web UI - copying many small files to Unity is painful!
280
+
281
+ 2. **Verify Sharded Game Content**:
282
+ - At least one `feature-n.md` file in `docs/game-design/` with game stories in development order
283
+ - Unity system documents and coding standards for game dev agent reference
284
+ - Sharded docs for Game SM agent story creation
285
+
286
+ Resulting Unity Project Folder Structure:
287
+
288
+ - `docs/game-design/` - Broken down game design sections
289
+ - `docs/game-architecture/` - Broken down Unity architecture sections
290
+ - `docs/game-stories/` - Generated game development stories
291
+
292
+ 3. **Game Development Cycle** (Sequential, one game story at a time):
293
+
294
+ **CRITICAL CONTEXT MANAGEMENT for Unity Development**:
295
+ - **Context windows matter!** Always use fresh, clean context windows
296
+ - **Model selection matters!** Use most powerful thinking model for Game SM story creation
297
+ - **ALWAYS start new chat between Game SM, Game Dev, and QA work**
298
+
299
+ **Step 1 - Game Story Creation**:
300
+ - **NEW CLEAN CHAT** → Select powerful model → `/bmad2du/game-sm` → `*draft`
301
+ - Game SM executes create-game-story task using `game-story-tmpl`
302
+ - Review generated story in `docs/game-stories/`
303
+ - Update status from "Draft" to "Approved"
304
+
305
+ **Step 2 - Unity Game Story Implementation**:
306
+ - **NEW CLEAN CHAT** → `/bmad2du/game-developer`
307
+ - Agent asks which game story to implement
308
+ - Include story file content to save game dev agent lookup time
309
+ - Game Dev follows tasks/subtasks, marking completion
310
+ - Game Dev maintains File List of all Unity/C# changes
311
+ - Game Dev marks story as "Review" when complete with all Unity tests passing
312
+
313
+ **Step 3 - Game QA Review**:
314
+ - **NEW CLEAN CHAT** → Use core `@qa` agent → execute review-story task
315
+ - QA performs senior Unity developer code review
316
+ - QA can refactor and improve Unity code directly
317
+ - QA appends results to story's QA Results section
318
+ - If approved: Status → "Done"
319
+ - If changes needed: Status stays "Review" with unchecked items for game dev
320
+
321
+ **Step 4 - Repeat**: Continue Game SM → Game Dev → QA cycle until all game feature stories complete
322
+
323
+ **Important**: Only 1 game story in progress at a time, worked sequentially until all game feature stories complete.
324
+
325
+ ### Game Story Status Tracking Workflow
326
+
327
+ Game stories progress through defined statuses:
328
+
329
+ - **Draft** → **Approved** → **InProgress** → **Done**
16
330
 
17
- ### Player-First Development
331
+ Each status change requires user verification and approval before proceeding.
18
332
 
19
- You are developing games as a "Player Experience CEO" - thinking like a game director with unlimited creative resources and a singular vision for player enjoyment. Your AI agents are your specialized game development team:
333
+ ### Game Development Workflow Types
20
334
 
21
- - **Direct**: Provide clear game design vision and player experience goals
22
- - **Refine**: Iterate on gameplay mechanics until they're compelling
23
- - **Oversee**: Maintain creative alignment across all development disciplines
24
- - **Playfocus**: Every decision serves the player experience
335
+ #### Greenfield Game Development
25
336
 
26
- ### Game Development Principles
337
+ - Game concept brainstorming and mechanics design
338
+ - Game design requirements and feature definition
339
+ - Unity system architecture and technical design
340
+ - Game development execution
341
+ - Game testing, performance optimization, and deployment
27
342
 
28
- 1. **PLAYER_EXPERIENCE_FIRST**: Every mechanic must serve player engagement and fun
29
- 2. **ITERATIVE_DESIGN**: Prototype, test, refine - games are discovered through iteration
30
- 3. **TECHNICAL_EXCELLENCE**: Stable performance and cross-platform compatibility are non-negotiable
31
- 4. **STORY_DRIVEN_DEV**: Game features are implemented through detailed development stories
32
- 5. **BALANCE_THROUGH_DATA**: Use metrics and playtesting to validate game balance
33
- 6. **DOCUMENT_EVERYTHING**: Clear specifications enable proper game implementation
34
- 7. **START_SMALL_ITERATE_FAST**: Core mechanics first, then expand and polish
35
- 8. **EMBRACE_CREATIVE_CHAOS**: Games evolve - adapt design based on what's fun
343
+ #### Brownfield Game Enhancement (Existing Unity Projects)
36
344
 
37
- ## Game Development Workflow
345
+ **Key Concept**: Brownfield game development requires comprehensive documentation of your existing Unity project for AI agents to understand game mechanics, Unity patterns, and technical constraints.
38
346
 
39
- ### Phase 1: Game Concept and Design
347
+ **Brownfield Game Enhancement Workflow**:
40
348
 
41
- 1. **Game Designer**: Start with brainstorming and concept development
349
+ Since this expansion pack doesn't include specific brownfield templates, you'll adapt the existing templates:
42
350
 
43
- - Use \*brainstorm to explore game concepts and mechanics
44
- - Create Game Brief using game-brief-tmpl
45
- - Develop core game pillars and player experience goals
351
+ 1. **Upload Unity project to Web UI** (GitHub URL, files, or zip)
352
+ 2. **Create adapted Game Design Document**: `/bmad2du/game-designer` - Modify `game-design-doc-tmpl` to include:
353
+ - Analysis of existing game systems
354
+ - Integration points for new features
355
+ - Compatibility requirements
356
+ - Risk assessment for changes
46
357
 
47
- 2. **Game Designer**: Create comprehensive Game Design Document
358
+ 3. **Game Architecture Planning**:
359
+ - Use `/bmad2du/game-architect` with `game-architecture-tmpl`
360
+ - Focus on how new features integrate with existing Unity systems
361
+ - Plan for gradual rollout and testing
48
362
 
49
- - Use game-design-doc-tmpl to create detailed GDD
50
- - Define all game mechanics, progression, and balance
51
- - Specify technical requirements and platform targets
363
+ 4. **Story Creation for Enhancements**:
364
+ - Use `/bmad2du/game-sm` with `*create-game-story`
365
+ - Stories should explicitly reference existing code to modify
366
+ - Include integration testing requirements
52
367
 
53
- 3. **Game Designer**: Develop Level Design Framework
54
- - Create level-design-doc-tmpl for content guidelines
55
- - Define level types, difficulty progression, and content structure
56
- - Establish performance and technical constraints for levels
368
+ **When to Use Each Game Development Approach**:
57
369
 
58
- ### Phase 2: Technical Architecture
370
+ **Full Game Enhancement Workflow** (Recommended for):
59
371
 
60
- 4. **Solution Architect** (or Game Designer): Create Technical Architecture
61
- - Use game-architecture-tmpl to design technical implementation
62
- - Define Unity systems, performance optimization, and C# code structure
63
- - Align technical architecture with game design requirements
372
+ - Major game feature additions
373
+ - Game system modernization
374
+ - Complex Unity integrations
375
+ - Multiple related gameplay changes
64
376
 
65
- ### Phase 3: Story-Driven Development
377
+ **Quick Story Creation** (Use when):
66
378
 
67
- 5. **Game Scrum Master**: Break down design into development stories
379
+ - Single, focused game enhancement
380
+ - Isolated gameplay fixes
381
+ - Small feature additions
382
+ - Well-documented existing Unity game
68
383
 
69
- - Use create-game-story task to create detailed implementation stories
70
- - Each story should be immediately actionable by game developers
71
- - Apply game-story-dod-checklist to ensure story quality
384
+ **Critical Success Factors for Game Development**:
72
385
 
73
- 6. **Game Developer**: Implement game features story by story
386
+ 1. **Game Documentation First**: Always document existing code thoroughly before making changes
387
+ 2. **Unity Context Matters**: Provide agents access to relevant Unity scripts and game systems
388
+ 3. **Gameplay Integration Focus**: Emphasize compatibility and non-breaking changes to game mechanics
389
+ 4. **Incremental Approach**: Plan for gradual rollout and extensive game testing
74
390
 
75
- - Follow C# best practices and Unity's component-based architecture
76
- - Maintain stable frame rate on target devices
77
- - Use Unity Test Framework for game logic components
391
+ ## Document Creation Best Practices for Game Development
78
392
 
79
- 7. **Iterative Refinement**: Continuous playtesting and improvement
80
- - Test core mechanics early and often in the Unity Editor
81
- - Validate game balance through metrics and player feedback
82
- - Iterate on design based on implementation discoveries
393
+ ### Required File Naming for Game Framework Integration
394
+
395
+ - `docs/game-design-doc.md` - Game Design Document
396
+ - `docs/game-architecture.md` - Unity System Architecture Document
397
+
398
+ **Why These Names Matter for Game Development**:
399
+
400
+ - Game agents automatically reference these files during Unity development
401
+ - Game sharding tasks expect these specific filenames
402
+ - Game workflow automation depends on standard naming
403
+
404
+ ### Cost-Effective Game Document Creation Workflow
405
+
406
+ **Recommended for Large Game Documents (Game Design Document, Game Architecture):**
407
+
408
+ 1. **Use Web UI**: Create game documents in web interface for cost efficiency
409
+ 2. **Copy Final Output**: Save complete markdown to your Unity project
410
+ 3. **Standard Names**: Save as `docs/game-design-doc.md` and `docs/game-architecture.md`
411
+ 4. **Switch to Unity IDE**: Use IDE agents for Unity development and smaller game documents
412
+
413
+ ### Game Document Sharding
414
+
415
+ Game templates with Level 2 headings (`##`) can be automatically sharded:
416
+
417
+ **Original Game Design Document**:
418
+
419
+ ```markdown
420
+ ## Core Gameplay Mechanics
421
+
422
+ ## Player Progression System
423
+
424
+ ## Level Design Framework
425
+
426
+ ## Technical Requirements
427
+ ```
428
+
429
+ **After Sharding**:
430
+
431
+ - `docs/game-design/core-gameplay-mechanics.md`
432
+ - `docs/game-design/player-progression-system.md`
433
+ - `docs/game-design/level-design-framework.md`
434
+ - `docs/game-design/technical-requirements.md`
435
+
436
+ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic game document sharding.
437
+
438
+ ## Game Agent System
439
+
440
+ ### Core Game Development Team
441
+
442
+ | Agent | Role | Primary Functions | When to Use |
443
+ | ---------------- | ----------------- | ------------------------------------------- | ------------------------------------------- |
444
+ | `game-designer` | Game Designer | Game mechanics, creative design, GDD | Game concept, mechanics, creative direction |
445
+ | `game-developer` | Unity Developer | C# implementation, Unity optimization | All Unity development tasks |
446
+ | `game-sm` | Game Scrum Master | Game story creation, sprint planning | Game project management, workflow |
447
+ | `game-architect` | Game Architect | Unity system design, technical architecture | Complex Unity systems, performance planning |
448
+
449
+ **Note**: For QA and other roles, use the core BMad agents (e.g., `@qa` from bmad-core).
450
+
451
+ ### Game Agent Interaction Commands
452
+
453
+ #### IDE-Specific Syntax for Game Development
454
+
455
+ **Game Agent Loading by IDE**:
456
+
457
+ - **Claude Code**: `/bmad2du/game-designer`, `/bmad2du/game-developer`, `/bmad2du/game-sm`, `/bmad2du/game-architect`
458
+ - **Cursor**: `@bmad2du/game-designer`, `@bmad2du/game-developer`, `@bmad2du/game-sm`, `@bmad2du/game-architect`
459
+ - **Windsurf**: `@bmad2du/game-designer`, `@bmad2du/game-developer`, `@bmad2du/game-sm`, `@bmad2du/game-architect`
460
+ - **Trae**: `@bmad2du/game-designer`, `@bmad2du/game-developer`, `@bmad2du/game-sm`, `@bmad2du/game-architect`
461
+ - **Roo Code**: Select mode from mode selector with bmad2du prefix
462
+ - **GitHub Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select the appropriate game agent.
463
+
464
+ **Common Game Development Task Commands**:
465
+
466
+ - `*help` - Show available game development commands
467
+ - `*status` - Show current game development context/progress
468
+ - `*exit` - Exit the game agent mode
469
+ - `*game-design-brainstorming` - Brainstorm game concepts and mechanics (Game Designer)
470
+ - `*draft` - Create next game development story (Game SM agent)
471
+ - `*validate-game-story` - Validate a game story implementation (with core QA agent)
472
+ - `*correct-course-game` - Course correction for game development issues
473
+ - `*advanced-elicitation` - Deep dive into game requirements
474
+
475
+ **In Web UI (after building with unity-2d-game-team)**:
476
+
477
+ ```text
478
+ /bmad2du/game-designer - Access game designer agent
479
+ /bmad2du/game-architect - Access game architect agent
480
+ /bmad2du/game-developer - Access game developer agent
481
+ /bmad2du/game-sm - Access game scrum master agent
482
+ /help - Show available game development commands
483
+ /switch agent-name - Change active agent (if orchestrator available)
484
+ ```
83
485
 
84
486
  ## Game-Specific Development Guidelines
85
487
 
@@ -90,17 +492,18 @@ You are developing games as a "Player Experience CEO" - thinking like a game dir
90
492
  ```text
91
493
  UnityProject/
92
494
  ├── Assets/
93
- ├── Scenes/ # Game scenes (Boot, Menu, Game, etc.)
94
- ├── Scripts/ # C# scripts
95
- ├── Editor/ # Editor-specific scripts
96
- └── Runtime/ # Runtime scripts
97
- ├── Prefabs/ # Reusable game objects
98
- ├── Art/ # Art assets (sprites, models, etc.)
99
- ├── Audio/ # Audio assets
100
- ├── Data/ # ScriptableObjects and other data
101
- └── Tests/ # Unity Test Framework tests
102
- ├── EditMode/
103
- └── PlayMode/
495
+ └── _Project
496
+ ├── Scenes/ # Game scenes (Boot, Menu, Game, etc.)
497
+ ├── Scripts/ # C# scripts
498
+ ├── Editor/ # Editor-specific scripts
499
+ └── Runtime/ # Runtime scripts
500
+ ├── Prefabs/ # Reusable game objects
501
+ ├── Art/ # Art assets (sprites, models, etc.)
502
+ ├── Audio/ # Audio assets
503
+ ├── Data/ # ScriptableObjects and other data
504
+ └── Tests/ # Unity Test Framework tests
505
+ ├── EditMode/
506
+ │ └── PlayMode/
104
507
  ├── Packages/ # Package Manager manifest
105
508
  └── ProjectSettings/ # Unity project settings
106
509
  ```
@@ -155,23 +558,59 @@ UnityProject/
155
558
  - Input responsiveness validation
156
559
  - Battery usage optimization (mobile)
157
560
 
561
+ ## Usage Patterns and Best Practices for Game Development
562
+
563
+ ### Environment-Specific Usage for Games
564
+
565
+ **Web UI Best For Game Development**:
566
+
567
+ - Initial game design and creative brainstorming phases
568
+ - Cost-effective large game document creation
569
+ - Game agent consultation and mechanics refinement
570
+ - Multi-agent game workflows with orchestrator
571
+
572
+ **Unity IDE Best For Game Development**:
573
+
574
+ - Active Unity development and C# implementation
575
+ - Unity asset operations and project integration
576
+ - Game story management and development cycles
577
+ - Unity testing, profiling, and debugging
578
+
579
+ ### Quality Assurance for Game Development
580
+
581
+ - Use appropriate game agents for specialized tasks
582
+ - Follow Agile ceremonies and game review processes
583
+ - Use game-specific checklists:
584
+ - `game-architect-checklist` for architecture reviews
585
+ - `game-change-checklist` for change validation
586
+ - `game-design-checklist` for design reviews
587
+ - `game-story-dod-checklist` for story quality
588
+ - Regular validation with game templates
589
+
590
+ ### Performance Optimization for Game Development
591
+
592
+ - Use specific game agents vs. `bmad-master` for focused Unity tasks
593
+ - Choose appropriate game team size for project needs
594
+ - Leverage game-specific technical preferences for consistency
595
+ - Regular context management and cache clearing for Unity workflows
596
+
158
597
  ## Game Development Team Roles
159
598
 
160
- ### Game Designer (Alex)
599
+ ### Game Designer
161
600
 
162
601
  - **Primary Focus**: Game mechanics, player experience, design documentation
163
602
  - **Key Outputs**: Game Brief, Game Design Document, Level Design Framework
164
603
  - **Specialties**: Brainstorming, game balance, player psychology, creative direction
165
604
 
166
- ### Game Developer (Maya)
605
+ ### Game Developer
167
606
 
168
- - **Primary Focus**: Unity implementation, C# excellence, performance
169
- - **Key Outputs**: Working game features, optimized code, technical architecture
607
+ - **Primary Focus**: Unity implementation, C# excellence, performance optimization
608
+ - **Key Outputs**: Working game features, optimized Unity code, technical architecture
170
609
  - **Specialties**: C#/Unity, performance optimization, cross-platform development
171
610
 
172
- ### Game Scrum Master (Jordan)
611
+ ### Game Scrum Master
173
612
 
174
- - **Primary Focus**: Story creation, development planning, agile process
613
+ - **Primary Focus**: Game story creation, development planning, agile process
175
614
  - **Key Outputs**: Detailed implementation stories, sprint planning, quality assurance
176
615
  - **Specialties**: Story breakdown, developer handoffs, process optimization
177
616
 
@@ -248,4 +687,83 @@ UnityProject/
248
687
  - Optimize physics settings and collision detection
249
688
  - Use LOD (Level of Detail) for complex models
250
689
 
690
+ ## Success Tips for Game Development
691
+
692
+ - **Use Gemini for game design planning** - The team-game-dev bundle provides collaborative game expertise
693
+ - **Use bmad-master for game document organization** - Sharding creates manageable game feature chunks
694
+ - **Follow the Game SM → Game Dev cycle religiously** - This ensures systematic game progress
695
+ - **Keep conversations focused** - One game agent, one Unity task per conversation
696
+ - **Review everything** - Always review and approve before marking game features complete
697
+
698
+ ## Contributing to BMad-Method Game Development
699
+
700
+ ### Game Development Contribution Guidelines
701
+
702
+ For full details, see `CONTRIBUTING.md`. Key points for game development:
703
+
704
+ **Fork Workflow for Game Development**:
705
+
706
+ 1. Fork the repository
707
+ 2. Create game development feature branches
708
+ 3. Submit PRs to `next` branch (default) or `main` for critical game development fixes only
709
+ 4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
710
+ 5. One game feature/fix per PR
711
+
712
+ **Game Development PR Requirements**:
713
+
714
+ - Clear descriptions (max 200 words) with What/Why/How/Testing for game features
715
+ - Use conventional commits (feat:, fix:, docs:) with game context
716
+ - Atomic commits - one logical game change per commit
717
+ - Must align with game development guiding principles
718
+
719
+ **Game Development Core Principles**:
720
+
721
+ - **Game Dev Agents Must Be Lean**: Minimize dependencies, save context for Unity code
722
+ - **Natural Language First**: Everything in markdown, no code in game development core
723
+ - **Core vs Game Expansion Packs**: Core for universal needs, game packs for Unity specialization
724
+ - **Game Design Philosophy**: "Game dev agents code Unity, game planning agents plan gameplay"
725
+
726
+ ## Game Development Expansion Pack System
727
+
728
+ ### This Game Development Expansion Pack
729
+
730
+ This 2D Unity Game Development expansion pack extends BMad-Method beyond traditional software development into professional game development. It provides specialized game agent teams, Unity templates, and game workflows while keeping the core framework lean and focused on general development.
731
+
732
+ ### Why Use This Game Development Expansion Pack?
733
+
734
+ 1. **Keep Core Lean**: Game dev agents maintain maximum context for Unity coding
735
+ 2. **Game Domain Expertise**: Deep, specialized Unity and game development knowledge
736
+ 3. **Community Game Innovation**: Game developers can contribute and share Unity patterns
737
+ 4. **Modular Game Design**: Install only game development capabilities you need
738
+
739
+ ### Using This Game Development Expansion Pack
740
+
741
+ 1. **Install via CLI**:
742
+
743
+ ```bash
744
+ npx bmad-method install
745
+ # Select "Install game development expansion pack" option
746
+ ```
747
+
748
+ 2. **Use in Your Game Workflow**: Installed game agents integrate seamlessly with existing BMad agents
749
+
750
+ ### Creating Custom Game Development Extensions
751
+
752
+ Use the **expansion-creator** pack to build your own game development extensions:
753
+
754
+ 1. **Define Game Domain**: What game development expertise are you capturing?
755
+ 2. **Design Game Agents**: Create specialized game roles with clear Unity boundaries
756
+ 3. **Build Game Resources**: Tasks, templates, checklists for your game domain
757
+ 4. **Test & Share**: Validate with real Unity use cases, share with game development community
758
+
759
+ **Key Principle**: Game development expansion packs democratize game development expertise by making specialized Unity and game design knowledge accessible through AI agents.
760
+
761
+ ## Getting Help with Game Development
762
+
763
+ - **Commands**: Use `*/*help` in any environment to see available game development commands
764
+ - **Game Agent Switching**: Use `*/*switch game-agent-name` with orchestrator for role changes
765
+ - **Game Documentation**: Check `docs/` folder for Unity project-specific context
766
+ - **Game Community**: Discord and GitHub resources available for game development support
767
+ - **Game Contributing**: See `CONTRIBUTING.md` for full game development guidelines
768
+
251
769
  This knowledge base provides the foundation for effective game development using the BMad-Method framework with specialized focus on 2D game creation using Unity and C#.