bmad-method 4.2.0 → 4.4.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 (176) hide show
  1. package/.claude/commands/analyst.md +14 -20
  2. package/.claude/commands/architect.md +15 -20
  3. package/.claude/commands/bmad-master.md +18 -26
  4. package/.claude/commands/bmad-orchestrator.md +80 -33
  5. package/.claude/commands/dev.md +5 -4
  6. package/.claude/commands/pm.md +11 -16
  7. package/.claude/commands/sm.md +20 -25
  8. package/.cursor/rules/analyst.mdc +13 -19
  9. package/.cursor/rules/architect.mdc +14 -19
  10. package/.cursor/rules/bmad-master.mdc +18 -26
  11. package/.cursor/rules/bmad-orchestrator.mdc +80 -33
  12. package/.cursor/rules/dev.mdc +5 -4
  13. package/.cursor/rules/pm.mdc +11 -16
  14. package/.cursor/rules/sm.mdc +19 -24
  15. package/.releaserc.json +2 -1
  16. package/.roo/README.md +0 -11
  17. package/.vscode/settings.json +4 -0
  18. package/.windsurf/rules/analyst.md +13 -19
  19. package/.windsurf/rules/architect.md +14 -19
  20. package/.windsurf/rules/bmad-master.md +18 -26
  21. package/.windsurf/rules/bmad-orchestrator.md +80 -33
  22. package/.windsurf/rules/dev.md +5 -4
  23. package/.windsurf/rules/pm.md +11 -16
  24. package/.windsurf/rules/sm.md +19 -24
  25. package/CHANGELOG.md +126 -2
  26. package/CONTRIBUTING.md +2 -0
  27. package/README.md +20 -2
  28. package/{.bmad-core → bmad-core}/agent-teams/team-all.yml +1 -3
  29. package/bmad-core/agent-teams/team-fullstack.yml +18 -0
  30. package/{.bmad-core → bmad-core}/agent-teams/team-no-ui.yml +0 -2
  31. package/{.bmad-core → bmad-core}/agents/analyst.md +14 -20
  32. package/{.bmad-core → bmad-core}/agents/architect.md +15 -20
  33. package/{.bmad-core → bmad-core}/agents/bmad-master.md +18 -26
  34. package/bmad-core/agents/bmad-orchestrator.md +128 -0
  35. package/{.bmad-core → bmad-core}/agents/dev.md +5 -4
  36. package/{.bmad-core → bmad-core}/agents/pm.md +11 -16
  37. package/{.bmad-core → bmad-core}/agents/qa.md +11 -17
  38. package/bmad-core/agents/sm.md +55 -0
  39. package/{.bmad-core → bmad-core}/agents/ux-expert.md +14 -20
  40. package/bmad-core/bmad-core-config.yml +60 -0
  41. package/bmad-core/data/bmad-kb.md +47 -0
  42. package/bmad-core/tasks/doc-migration-task.md +143 -0
  43. package/bmad-core/tasks/document-project.md +389 -0
  44. package/bmad-core/tasks/generate-ai-frontend-prompt.md +51 -0
  45. package/{.bmad-core → bmad-core}/tasks/index-docs.md +8 -3
  46. package/{.bmad-core → bmad-core}/tasks/shard-doc.md +5 -3
  47. package/{.bmad-core → bmad-core}/templates/architecture-tmpl.md +16 -13
  48. package/{.bmad-core → bmad-core}/templates/brownfield-architecture-tmpl.md +6 -6
  49. package/{.bmad-core → bmad-core}/templates/front-end-spec-tmpl.md +6 -6
  50. package/{.bmad-core → bmad-core}/templates/fullstack-architecture-tmpl.md +85 -103
  51. package/{.bmad-core → bmad-core}/templates/prd-tmpl.md +1 -1
  52. package/bmad-core/templates/simple-project-prd-tmpl.md +461 -0
  53. package/{.bmad-core → bmad-core}/templates/story-tmpl.md +2 -2
  54. package/{.bmad-core → bmad-core}/utils/agent-switcher.ide.md +6 -6
  55. package/{.bmad-core → bmad-core}/utils/workflow-management.md +14 -15
  56. package/{.bmad-core → bmad-core}/web-bundles/agents/analyst.txt +26 -21
  57. package/{.bmad-core → bmad-core}/web-bundles/agents/architect.txt +608 -236
  58. package/{.bmad-core → bmad-core}/web-bundles/agents/bmad-master.txt +467 -1049
  59. package/bmad-core/web-bundles/agents/bmad-orchestrator.txt +647 -0
  60. package/{.bmad-core → bmad-core}/web-bundles/agents/dev.txt +5 -4
  61. package/{.bmad-core → bmad-core}/web-bundles/agents/pm.txt +477 -18
  62. package/{.bmad-core → bmad-core}/web-bundles/agents/po.txt +3 -3
  63. package/{.bmad-core → bmad-core}/web-bundles/agents/qa.txt +11 -17
  64. package/{.bmad-core → bmad-core}/web-bundles/agents/sm.txt +22 -27
  65. package/{.bmad-core → bmad-core}/web-bundles/agents/ux-expert.txt +57 -70
  66. package/{.bmad-core → bmad-core}/workflows/greenfield-fullstack.yml +3 -3
  67. package/{.bmad-core → creator-tools}/tasks/create-agent.md +10 -12
  68. package/{.bmad-core/tasks/create-expansion-pack.md → creator-tools/tasks/generate-expansion-pack.md} +8 -6
  69. package/docs/bmad-workflow-guide.md +161 -0
  70. package/docs/claude-code-guide.md +119 -0
  71. package/docs/core-architecture.md +213 -0
  72. package/docs/cursor-guide.md +127 -0
  73. package/docs/how-to-contribute-with-pull-requests.md +141 -0
  74. package/docs/roo-code-guide.md +140 -0
  75. package/docs/user-guide.md +1044 -0
  76. package/docs/versioning-and-releases.md +4 -4
  77. package/docs/windsurf-guide.md +127 -0
  78. package/expansion-packs/README.md +1 -111
  79. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/team-game-dev.yml +12 -0
  80. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +58 -0
  81. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +66 -0
  82. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +51 -0
  83. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +201 -0
  84. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +160 -0
  85. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +254 -0
  86. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +631 -0
  87. package/expansion-packs/bmad-2d-phaser-game-dev/manifest.yml +45 -0
  88. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +111 -0
  89. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +216 -0
  90. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +308 -0
  91. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.md +560 -0
  92. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.md +345 -0
  93. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.md +331 -0
  94. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.md +235 -0
  95. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.md +451 -0
  96. package/expansion-packs/bmad-2d-phaser-game-dev/web-bundles/agents/game-designer.txt +1758 -0
  97. package/expansion-packs/bmad-2d-phaser-game-dev/web-bundles/agents/game-developer.txt +1444 -0
  98. package/expansion-packs/bmad-2d-phaser-game-dev/web-bundles/agents/game-sm.txt +674 -0
  99. package/expansion-packs/bmad-2d-phaser-game-dev/web-bundles/team-game-dev.txt +4395 -0
  100. package/expansion-packs/bmad-2d-phaser-game-dev/web-bundles/teams/team-game-dev.txt +4395 -0
  101. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yml +183 -0
  102. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yml +175 -0
  103. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/README.md +5 -5
  104. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/agents/infra-devops-platform.md +3 -3
  105. package/expansion-packs/bmad-infrastructure-devops/manifest.yml +23 -0
  106. package/expansion-packs/bmad-infrastructure-devops/tasks/create-doc.md +74 -0
  107. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
  108. package/expansion-packs/bmad-infrastructure-devops/web-bundles/agents/infra-devops-platform.txt +2021 -0
  109. package/package.json +20 -14
  110. package/tools/builders/web-builder.js +207 -17
  111. package/tools/cli.js +55 -7
  112. package/tools/installer/README.md +2 -2
  113. package/tools/installer/bin/bmad.js +107 -28
  114. package/tools/installer/config/install.config.yml +43 -43
  115. package/tools/installer/lib/config-loader.js +39 -2
  116. package/tools/installer/lib/file-manager.js +20 -3
  117. package/tools/installer/lib/ide-setup.js +11 -1
  118. package/tools/installer/lib/installer.js +275 -29
  119. package/tools/installer/package-lock.json +538 -336
  120. package/tools/installer/package.json +8 -8
  121. package/tools/lib/dependency-resolver.js +2 -2
  122. package/tools/semantic-release-sync-installer.js +31 -0
  123. package/tools/sync-installer-version.js +34 -0
  124. package/tools/upgraders/v3-to-v4-upgrader.js +18 -13
  125. package/tools/version-bump.js +33 -26
  126. package/tools/yaml-format.js +54 -25
  127. package/.bmad-core/agent-teams/team-fullstack.yml +0 -26
  128. package/.bmad-core/agents/bmad-orchestrator.md +0 -81
  129. package/.bmad-core/agents/sm.md +0 -60
  130. package/.bmad-core/data/bmad-kb.md +0 -36
  131. package/.bmad-core/schemas/agent-team-schema.yml +0 -153
  132. package/.bmad-core/tasks/create-team.md +0 -229
  133. package/.bmad-core/tasks/doc-migration-task.md +0 -198
  134. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -58
  135. package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +0 -1455
  136. package/.bmad-core/web-bundles/teams/team-all.txt +0 -10315
  137. package/.bmad-core/web-bundles/teams/team-fullstack.txt +0 -9663
  138. package/.bmad-core/web-bundles/teams/team-no-ui.txt +0 -8504
  139. package/.claude/settings.local.json +0 -22
  140. package/expansion-packs/infrastructure-devops/manifest.yml +0 -38
  141. /package/{.bmad-core → bmad-core}/agents/po.md +0 -0
  142. /package/{.bmad-core → bmad-core}/checklists/architect-checklist.md +0 -0
  143. /package/{.bmad-core → bmad-core}/checklists/change-checklist.md +0 -0
  144. /package/{.bmad-core → bmad-core}/checklists/pm-checklist.md +0 -0
  145. /package/{.bmad-core → bmad-core}/checklists/po-master-checklist.md +0 -0
  146. /package/{.bmad-core → bmad-core}/checklists/story-dod-checklist.md +0 -0
  147. /package/{.bmad-core → bmad-core}/checklists/story-draft-checklist.md +0 -0
  148. /package/{.bmad-core → bmad-core}/data/technical-preferences.md +0 -0
  149. /package/{.bmad-core → bmad-core}/tasks/advanced-elicitation.md +0 -0
  150. /package/{.bmad-core → bmad-core}/tasks/brainstorming-techniques.md +0 -0
  151. /package/{.bmad-core → bmad-core}/tasks/brownfield-create-epic.md +0 -0
  152. /package/{.bmad-core → bmad-core}/tasks/brownfield-create-story.md +0 -0
  153. /package/{.bmad-core → bmad-core}/tasks/core-dump.md +0 -0
  154. /package/{.bmad-core → bmad-core}/tasks/correct-course.md +0 -0
  155. /package/{.bmad-core → bmad-core}/tasks/create-deep-research-prompt.md +0 -0
  156. /package/{.bmad-core → bmad-core}/tasks/create-doc.md +0 -0
  157. /package/{.bmad-core → bmad-core}/tasks/create-next-story.md +0 -0
  158. /package/{.bmad-core → bmad-core}/tasks/execute-checklist.md +0 -0
  159. /package/{.bmad-core → bmad-core}/templates/agent-tmpl.md +0 -0
  160. /package/{.bmad-core → bmad-core}/templates/brownfield-prd-tmpl.md +0 -0
  161. /package/{.bmad-core → bmad-core}/templates/competitor-analysis-tmpl.md +0 -0
  162. /package/{.bmad-core → bmad-core}/templates/expansion-pack-plan-tmpl.md +0 -0
  163. /package/{.bmad-core → bmad-core}/templates/front-end-architecture-tmpl.md +0 -0
  164. /package/{.bmad-core → bmad-core}/templates/market-research-tmpl.md +0 -0
  165. /package/{.bmad-core → bmad-core}/templates/project-brief-tmpl.md +0 -0
  166. /package/{.bmad-core → bmad-core}/templates/web-agent-startup-instructions-template.md +0 -0
  167. /package/{.bmad-core → bmad-core}/utils/template-format.md +0 -0
  168. /package/{.bmad-core → bmad-core}/workflows/brownfield-fullstack.yml +0 -0
  169. /package/{.bmad-core → bmad-core}/workflows/brownfield-service.yml +0 -0
  170. /package/{.bmad-core → bmad-core}/workflows/brownfield-ui.yml +0 -0
  171. /package/{.bmad-core → bmad-core}/workflows/greenfield-service.yml +0 -0
  172. /package/{.bmad-core → bmad-core}/workflows/greenfield-ui.yml +0 -0
  173. /package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/checklists/infrastructure-checklist.md +0 -0
  174. /package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/tasks/review-infrastructure.md +0 -0
  175. /package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/tasks/validate-infrastructure.md +0 -0
  176. /package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/templates/infrastructure-architecture-tmpl.md +0 -0
@@ -0,0 +1,160 @@
1
+ # Game Development Story Definition of Done Checklist
2
+
3
+ ## Story Completeness
4
+
5
+ ### Basic Story Elements
6
+
7
+ - [ ] **Story Title** - Clear, descriptive title that identifies the feature
8
+ - [ ] **Epic Assignment** - Story is properly assigned to relevant epic
9
+ - [ ] **Priority Level** - Appropriate priority assigned (High/Medium/Low)
10
+ - [ ] **Story Points** - Realistic estimation for implementation complexity
11
+ - [ ] **Description** - Clear, concise description of what needs to be implemented
12
+
13
+ ### Game Design Alignment
14
+
15
+ - [ ] **GDD Reference** - Specific Game Design Document section referenced
16
+ - [ ] **Game Mechanic Context** - Clear connection to game mechanics defined in GDD
17
+ - [ ] **Player Experience Goal** - Describes the intended player experience
18
+ - [ ] **Balance Parameters** - Includes any relevant game balance values
19
+ - [ ] **Design Intent** - Purpose and rationale for the feature is clear
20
+
21
+ ## Technical Specifications
22
+
23
+ ### Architecture Compliance
24
+
25
+ - [ ] **File Organization** - Follows game architecture document structure
26
+ - [ ] **Class Definitions** - TypeScript interfaces and classes are properly defined
27
+ - [ ] **Integration Points** - Clear specification of how feature integrates with existing systems
28
+ - [ ] **Event Communication** - Event emitting and listening requirements specified
29
+ - [ ] **Dependencies** - All system dependencies clearly identified
30
+
31
+ ### Phaser 3 Requirements
32
+
33
+ - [ ] **Scene Integration** - Specifies which scenes are affected and how
34
+ - [ ] **Game Object Usage** - Proper use of Phaser 3 game objects and components
35
+ - [ ] **Physics Integration** - Physics requirements specified if applicable
36
+ - [ ] **Asset Requirements** - All needed assets (sprites, audio, data) identified
37
+ - [ ] **Performance Considerations** - 60 FPS target and optimization requirements
38
+
39
+ ### Code Quality Standards
40
+
41
+ - [ ] **TypeScript Strict Mode** - All code must comply with strict TypeScript
42
+ - [ ] **Error Handling** - Error scenarios and handling requirements specified
43
+ - [ ] **Memory Management** - Object pooling and cleanup requirements where needed
44
+ - [ ] **Cross-Platform Support** - Desktop and mobile considerations addressed
45
+ - [ ] **Code Organization** - Follows established game project structure
46
+
47
+ ## Implementation Readiness
48
+
49
+ ### Acceptance Criteria
50
+
51
+ - [ ] **Functional Requirements** - All functional acceptance criteria are specific and testable
52
+ - [ ] **Technical Requirements** - Technical acceptance criteria are complete and verifiable
53
+ - [ ] **Game Design Requirements** - Game-specific requirements match GDD specifications
54
+ - [ ] **Performance Requirements** - Frame rate and memory usage criteria specified
55
+ - [ ] **Completeness** - No acceptance criteria are vague or unmeasurable
56
+
57
+ ### Implementation Tasks
58
+
59
+ - [ ] **Task Breakdown** - Story broken into specific, ordered implementation tasks
60
+ - [ ] **Task Scope** - Each task is completable in 1-4 hours
61
+ - [ ] **Task Clarity** - Each task has clear, actionable instructions
62
+ - [ ] **File Specifications** - Exact file paths and purposes specified
63
+ - [ ] **Development Flow** - Tasks follow logical implementation order
64
+
65
+ ### Dependencies
66
+
67
+ - [ ] **Story Dependencies** - All prerequisite stories identified with IDs
68
+ - [ ] **Technical Dependencies** - Required systems and files identified
69
+ - [ ] **Asset Dependencies** - All needed assets specified with locations
70
+ - [ ] **External Dependencies** - Any third-party or external requirements noted
71
+ - [ ] **Dependency Validation** - All dependencies are actually available
72
+
73
+ ## Testing Requirements
74
+
75
+ ### Test Coverage
76
+
77
+ - [ ] **Unit Test Requirements** - Specific unit test files and scenarios defined
78
+ - [ ] **Integration Test Cases** - Integration testing with other game systems specified
79
+ - [ ] **Manual Test Cases** - Game-specific manual testing procedures defined
80
+ - [ ] **Performance Tests** - Frame rate and memory testing requirements specified
81
+ - [ ] **Edge Case Testing** - Edge cases and error conditions covered
82
+
83
+ ### Test Implementation
84
+
85
+ - [ ] **Test File Paths** - Exact test file locations specified
86
+ - [ ] **Test Scenarios** - All test scenarios are complete and executable
87
+ - [ ] **Expected Behaviors** - Clear expected outcomes for all tests defined
88
+ - [ ] **Performance Metrics** - Specific performance targets for testing
89
+ - [ ] **Test Data** - Any required test data or mock objects specified
90
+
91
+ ## Game-Specific Quality
92
+
93
+ ### Gameplay Implementation
94
+
95
+ - [ ] **Mechanic Accuracy** - Implementation matches GDD mechanic specifications
96
+ - [ ] **Player Controls** - Input handling requirements are complete
97
+ - [ ] **Game Feel** - Requirements for juice, feedback, and responsiveness specified
98
+ - [ ] **Balance Implementation** - Numeric values and parameters from GDD included
99
+ - [ ] **State Management** - Game state changes and persistence requirements defined
100
+
101
+ ### User Experience
102
+
103
+ - [ ] **UI Requirements** - User interface elements and behaviors specified
104
+ - [ ] **Audio Integration** - Sound effect and music requirements defined
105
+ - [ ] **Visual Feedback** - Animation and visual effect requirements specified
106
+ - [ ] **Accessibility** - Mobile touch and responsive design considerations
107
+ - [ ] **Error Recovery** - User-facing error handling and recovery specified
108
+
109
+ ### Performance Optimization
110
+
111
+ - [ ] **Frame Rate Targets** - Specific FPS requirements for different platforms
112
+ - [ ] **Memory Usage** - Memory consumption limits and monitoring requirements
113
+ - [ ] **Asset Optimization** - Texture, audio, and data optimization requirements
114
+ - [ ] **Mobile Considerations** - Touch controls and mobile performance requirements
115
+ - [ ] **Loading Performance** - Asset loading and scene transition requirements
116
+
117
+ ## Documentation and Communication
118
+
119
+ ### Story Documentation
120
+
121
+ - [ ] **Implementation Notes** - Additional context and implementation guidance provided
122
+ - [ ] **Design Decisions** - Key design choices documented with rationale
123
+ - [ ] **Future Considerations** - Potential future enhancements or modifications noted
124
+ - [ ] **Change Tracking** - Process for tracking any requirement changes during development
125
+ - [ ] **Reference Materials** - Links to relevant GDD sections and architecture docs
126
+
127
+ ### Developer Handoff
128
+
129
+ - [ ] **Immediate Actionability** - Developer can start implementation without additional questions
130
+ - [ ] **Complete Context** - All necessary context provided within the story
131
+ - [ ] **Clear Boundaries** - What is and isn't included in the story scope is clear
132
+ - [ ] **Success Criteria** - Objective measures for story completion defined
133
+ - [ ] **Communication Plan** - Process for developer questions and updates established
134
+
135
+ ## Final Validation
136
+
137
+ ### Story Readiness
138
+
139
+ - [ ] **No Ambiguity** - No sections require interpretation or additional design decisions
140
+ - [ ] **Technical Completeness** - All technical requirements are specified and actionable
141
+ - [ ] **Scope Appropriateness** - Story scope matches assigned story points
142
+ - [ ] **Quality Standards** - Story meets all game development quality standards
143
+ - [ ] **Review Completion** - Story has been reviewed for completeness and accuracy
144
+
145
+ ### Implementation Preparedness
146
+
147
+ - [ ] **Environment Ready** - Development environment requirements specified
148
+ - [ ] **Resources Available** - All required resources (assets, docs, dependencies) accessible
149
+ - [ ] **Testing Prepared** - Testing environment and data requirements specified
150
+ - [ ] **Definition of Done** - Clear, objective completion criteria established
151
+ - [ ] **Handoff Complete** - Story is ready for developer assignment and implementation
152
+
153
+ ## Checklist Completion
154
+
155
+ **Overall Story Quality:** ⭐⭐⭐⭐⭐
156
+
157
+ **Ready for Development:** [ ] Yes [ ] No
158
+
159
+ **Additional Notes:**
160
+ _Any specific concerns, recommendations, or clarifications needed before development begins._
@@ -0,0 +1,254 @@
1
+ # Game Development BMAD Knowledge Base
2
+
3
+ ## Overview
4
+
5
+ This game development expansion of BMAD-METHOD specializes in creating 2D games using Phaser 3 and TypeScript. It extends the core BMAD framework with game-specific agents, workflows, and best practices for professional game development.
6
+
7
+ ### Game Development Focus
8
+
9
+ - **Target Engine**: Phaser 3.70+ with TypeScript 5.0+
10
+ - **Platform Strategy**: Web-first with mobile optimization
11
+ - **Development Approach**: Agile story-driven development
12
+ - **Performance Target**: 60 FPS on target devices
13
+ - **Architecture**: Component-based game systems
14
+
15
+ ## Core Game Development Philosophy
16
+
17
+ ### Player-First Development
18
+
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:
20
+
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
25
+
26
+ ### Game Development Principles
27
+
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**: 60 FPS 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
36
+
37
+ ## Game Development Workflow
38
+
39
+ ### Phase 1: Game Concept and Design
40
+
41
+ 1. **Game Designer**: Start with brainstorming and concept development
42
+
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
46
+
47
+ 2. **Game Designer**: Create comprehensive Game Design Document
48
+
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
52
+
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
57
+
58
+ ### Phase 2: Technical Architecture
59
+
60
+ 4. **Solution Architect** (or Game Designer): Create Technical Architecture
61
+ - Use game-architecture-tmpl to design technical implementation
62
+ - Define Phaser 3 systems, performance optimization, and code structure
63
+ - Align technical architecture with game design requirements
64
+
65
+ ### Phase 3: Story-Driven Development
66
+
67
+ 5. **Game Scrum Master**: Break down design into development stories
68
+
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
72
+
73
+ 6. **Game Developer**: Implement game features story by story
74
+
75
+ - Follow TypeScript strict mode and Phaser 3 best practices
76
+ - Maintain 60 FPS performance target throughout development
77
+ - Use test-driven development for game logic components
78
+
79
+ 7. **Iterative Refinement**: Continuous playtesting and improvement
80
+ - Test core mechanics early and often
81
+ - Validate game balance through metrics and player feedback
82
+ - Iterate on design based on implementation discoveries
83
+
84
+ ## Game-Specific Development Guidelines
85
+
86
+ ### Phaser 3 + TypeScript Standards
87
+
88
+ **Project Structure:**
89
+
90
+ ```text
91
+ game-project/
92
+ ├── src/
93
+ │ ├── scenes/ # Game scenes (BootScene, MenuScene, GameScene)
94
+ │ ├── gameObjects/ # Custom game objects and entities
95
+ │ ├── systems/ # Core game systems (GameState, InputManager, etc.)
96
+ │ ├── utils/ # Utility functions and helpers
97
+ │ ├── types/ # TypeScript type definitions
98
+ │ └── config/ # Game configuration and balance
99
+ ├── assets/ # Game assets (images, audio, data)
100
+ ├── docs/
101
+ │ ├── stories/ # Development stories
102
+ │ └── design/ # Game design documents
103
+ └── tests/ # Unit and integration tests
104
+ ```
105
+
106
+ **Performance Requirements:**
107
+
108
+ - Maintain 60 FPS on target devices
109
+ - Memory usage under specified limits per level
110
+ - Loading times under 3 seconds for levels
111
+ - Smooth animation and responsive controls
112
+
113
+ **Code Quality:**
114
+
115
+ - TypeScript strict mode compliance
116
+ - Component-based architecture
117
+ - Object pooling for frequently created/destroyed objects
118
+ - Error handling and graceful degradation
119
+
120
+ ### Game Development Story Structure
121
+
122
+ **Story Requirements:**
123
+
124
+ - Clear reference to Game Design Document section
125
+ - Specific acceptance criteria for game functionality
126
+ - Technical implementation details for Phaser 3
127
+ - Performance requirements and optimization considerations
128
+ - Testing requirements including gameplay validation
129
+
130
+ **Story Categories:**
131
+
132
+ - **Core Mechanics**: Fundamental gameplay systems
133
+ - **Level Content**: Individual levels and content implementation
134
+ - **UI/UX**: User interface and player experience features
135
+ - **Performance**: Optimization and technical improvements
136
+ - **Polish**: Visual effects, audio, and game feel enhancements
137
+
138
+ ### Quality Assurance for Games
139
+
140
+ **Testing Approach:**
141
+
142
+ - Unit tests for game logic (separate from Phaser)
143
+ - Integration tests for game systems
144
+ - Performance benchmarking and profiling
145
+ - Gameplay testing and balance validation
146
+ - Cross-platform compatibility testing
147
+
148
+ **Performance Monitoring:**
149
+
150
+ - Frame rate consistency tracking
151
+ - Memory usage monitoring
152
+ - Asset loading performance
153
+ - Input responsiveness validation
154
+ - Battery usage optimization (mobile)
155
+
156
+ ## Game Development Team Roles
157
+
158
+ ### Game Designer (Alex)
159
+
160
+ - **Primary Focus**: Game mechanics, player experience, design documentation
161
+ - **Key Outputs**: Game Brief, Game Design Document, Level Design Framework
162
+ - **Specialties**: Brainstorming, game balance, player psychology, creative direction
163
+
164
+ ### Game Developer (Maya)
165
+
166
+ - **Primary Focus**: Phaser 3 implementation, technical excellence, performance
167
+ - **Key Outputs**: Working game features, optimized code, technical architecture
168
+ - **Specialties**: TypeScript/Phaser 3, performance optimization, cross-platform development
169
+
170
+ ### Game Scrum Master (Jordan)
171
+
172
+ - **Primary Focus**: Story creation, development planning, agile process
173
+ - **Key Outputs**: Detailed implementation stories, sprint planning, quality assurance
174
+ - **Specialties**: Story breakdown, developer handoffs, process optimization
175
+
176
+ ## Platform-Specific Considerations
177
+
178
+ ### Web Platform
179
+
180
+ - Browser compatibility across modern browsers
181
+ - Progressive loading for large assets
182
+ - Touch-friendly mobile controls
183
+ - Responsive design for different screen sizes
184
+
185
+ ### Mobile Optimization
186
+
187
+ - Touch gesture support and responsive controls
188
+ - Battery usage optimization
189
+ - Performance scaling for different device capabilities
190
+ - App store compliance and packaging
191
+
192
+ ### Performance Targets
193
+
194
+ - **Desktop**: 60 FPS at 1080p resolution
195
+ - **Mobile**: 60 FPS on mid-range devices, 30 FPS minimum on low-end
196
+ - **Loading**: Initial load under 5 seconds, level transitions under 2 seconds
197
+ - **Memory**: Under 100MB total usage, under 50MB per level
198
+
199
+ ## Success Metrics for Game Development
200
+
201
+ ### Technical Metrics
202
+
203
+ - Frame rate consistency (>90% of time at target FPS)
204
+ - Memory usage within budgets
205
+ - Loading time targets met
206
+ - Zero critical bugs in core gameplay systems
207
+
208
+ ### Player Experience Metrics
209
+
210
+ - Tutorial completion rate >80%
211
+ - Level completion rates appropriate for difficulty curve
212
+ - Average session length meets design targets
213
+ - Player retention and engagement metrics
214
+
215
+ ### Development Process Metrics
216
+
217
+ - Story completion within estimated timeframes
218
+ - Code quality metrics (test coverage, linting compliance)
219
+ - Documentation completeness and accuracy
220
+ - Team velocity and delivery consistency
221
+
222
+ ## Common Game Development Patterns
223
+
224
+ ### Scene Management
225
+
226
+ - Boot scene for initial setup and configuration
227
+ - Preload scene for asset loading with progress feedback
228
+ - Menu scene for navigation and settings
229
+ - Game scenes for actual gameplay
230
+ - Clean transitions between scenes with proper cleanup
231
+
232
+ ### Game State Management
233
+
234
+ - Persistent data (player progress, unlocks, settings)
235
+ - Session data (current level, score, temporary state)
236
+ - Save/load system with error recovery
237
+ - Settings management with platform storage
238
+
239
+ ### Input Handling
240
+
241
+ - Cross-platform input abstraction
242
+ - Touch gesture support for mobile
243
+ - Keyboard and gamepad support for desktop
244
+ - Customizable control schemes
245
+
246
+ ### Performance Optimization
247
+
248
+ - Object pooling for bullets, effects, enemies
249
+ - Texture atlasing and sprite optimization
250
+ - Audio compression and streaming
251
+ - Culling and level-of-detail systems
252
+ - Memory management and garbage collection optimization
253
+
254
+ This knowledge base provides the foundation for effective game development using the BMAD-METHOD framework with specialized focus on 2D game creation using Phaser 3 and TypeScript.