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
@@ -531,25 +531,21 @@ Assets/
531
531
  ### Story Implementation Process
532
532
 
533
533
  1. **Read Story Requirements:**
534
-
535
534
  - Understand acceptance criteria
536
535
  - Identify technical requirements
537
536
  - Review performance constraints
538
537
 
539
538
  2. **Plan Implementation:**
540
-
541
539
  - Identify files to create/modify
542
540
  - Consider Unity's component-based architecture
543
541
  - Plan testing approach
544
542
 
545
543
  3. **Implement Feature:**
546
-
547
544
  - Write clean C# code following all guidelines
548
545
  - Use established patterns
549
546
  - Maintain stable FPS performance
550
547
 
551
548
  4. **Test Implementation:**
552
-
553
549
  - Write edit mode tests for game logic
554
550
  - Write play mode tests for integration testing
555
551
  - Test cross-platform functionality
@@ -18,7 +18,6 @@
18
18
  2. If the section contains game flow diagrams, level layouts, or system diagrams, explain each diagram briefly with game development context before offering elicitation options (e.g., "The gameplay loop diagram shows how player actions lead to rewards and progression. Notice how each step maintains player engagement and creates opportunities for skill development.")
19
19
 
20
20
  3. If the section contains multiple game elements (like multiple mechanics, multiple levels, multiple systems, etc.), inform the user they can apply elicitation actions to:
21
-
22
21
  - The entire section as a whole
23
22
  - Individual game elements within the section (specify which element when selecting an action)
24
23
 
@@ -0,0 +1,141 @@
1
+ # Correct Course Task - Game Development
2
+
3
+ ## Purpose
4
+
5
+ - Guide a structured response to game development change triggers using the `{root}/checklists/game-change-checklist`.
6
+ - Analyze the impacts of changes on game features, technical systems, and milestone deliverables.
7
+ - Explore game-specific solutions (e.g., performance optimizations, feature scaling, platform adjustments).
8
+ - Draft specific, actionable proposed updates to affected game artifacts (e.g., GDD sections, technical specs, Unity configurations).
9
+ - Produce a consolidated "Game Development Change Proposal" document for review and approval.
10
+ - Ensure clear handoff path for changes requiring fundamental redesign or technical architecture updates.
11
+
12
+ ## Instructions
13
+
14
+ ### 1. Initial Setup & Mode Selection
15
+
16
+ - **Acknowledge Task & Inputs:**
17
+ - Confirm with the user that the "Game Development Correct Course Task" is being initiated.
18
+ - Verify the change trigger (e.g., performance issue, platform constraint, gameplay feedback, technical blocker).
19
+ - Confirm access to relevant game artifacts:
20
+ - Game Design Document (GDD)
21
+ - Technical Design Documents
22
+ - Unity Architecture specifications
23
+ - Performance budgets and platform requirements
24
+ - Current sprint's game stories and epics
25
+ - Asset specifications and pipelines
26
+ - Confirm access to `{root}/checklists/game-change-checklist`.
27
+
28
+ - **Establish Interaction Mode:**
29
+ - Ask the user their preferred interaction mode:
30
+ - **"Incrementally (Default & Recommended):** Work through the game-change-checklist section by section, discussing findings and drafting changes collaboratively. Best for complex technical or gameplay changes."
31
+ - **"YOLO Mode (Batch Processing):** Conduct batched analysis and present consolidated findings. Suitable for straightforward performance optimizations or minor adjustments."
32
+ - Confirm the selected mode and inform: "We will now use the game-change-checklist to analyze the change and draft proposed updates specific to our Unity game development context."
33
+
34
+ ### 2. Execute Game Development Checklist Analysis
35
+
36
+ - Systematically work through the game-change-checklist sections:
37
+ 1. **Change Context & Game Impact**
38
+ 2. **Feature/System Impact Analysis**
39
+ 3. **Technical Artifact Conflict Resolution**
40
+ 4. **Performance & Platform Evaluation**
41
+ 5. **Path Forward Recommendation**
42
+
43
+ - For each checklist section:
44
+ - Present game-specific prompts and considerations
45
+ - Analyze impacts on:
46
+ - Unity scenes and prefabs
47
+ - Component dependencies
48
+ - Performance metrics (FPS, memory, build size)
49
+ - Platform-specific code paths
50
+ - Asset loading and management
51
+ - Third-party plugins/SDKs
52
+ - Discuss findings with clear technical context
53
+ - Record status: `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`
54
+ - Document Unity-specific decisions and constraints
55
+
56
+ ### 3. Draft Game-Specific Proposed Changes
57
+
58
+ Based on the analysis and agreed path forward:
59
+
60
+ - **Identify affected game artifacts requiring updates:**
61
+ - GDD sections (mechanics, systems, progression)
62
+ - Technical specifications (architecture, performance targets)
63
+ - Unity-specific configurations (build settings, quality settings)
64
+ - Game story modifications (scope, acceptance criteria)
65
+ - Asset pipeline adjustments
66
+ - Platform-specific adaptations
67
+
68
+ - **Draft explicit changes for each artifact:**
69
+ - **Game Stories:** Revise story text, Unity-specific acceptance criteria, technical constraints
70
+ - **Technical Specs:** Update architecture diagrams, component hierarchies, performance budgets
71
+ - **Unity Configurations:** Propose settings changes, optimization strategies, platform variants
72
+ - **GDD Updates:** Modify feature descriptions, balance parameters, progression systems
73
+ - **Asset Specifications:** Adjust texture sizes, model complexity, audio compression
74
+ - **Performance Targets:** Update FPS goals, memory limits, load time requirements
75
+
76
+ - **Include Unity-specific details:**
77
+ - Prefab structure changes
78
+ - Scene organization updates
79
+ - Component refactoring needs
80
+ - Shader/material optimizations
81
+ - Build pipeline modifications
82
+
83
+ ### 4. Generate "Game Development Change Proposal"
84
+
85
+ - Create a comprehensive proposal document containing:
86
+
87
+ **A. Change Summary:**
88
+ - Original issue (performance, gameplay, technical constraint)
89
+ - Game systems affected
90
+ - Platform/performance implications
91
+ - Chosen solution approach
92
+
93
+ **B. Technical Impact Analysis:**
94
+ - Unity architecture changes needed
95
+ - Performance implications (with metrics)
96
+ - Platform compatibility effects
97
+ - Asset pipeline modifications
98
+ - Third-party dependency impacts
99
+
100
+ **C. Specific Proposed Edits:**
101
+ - For each game story: "Change Story GS-X.Y from: [old] To: [new]"
102
+ - For technical specs: "Update Unity Architecture Section X: [changes]"
103
+ - For GDD: "Modify [Feature] in Section Y: [updates]"
104
+ - For configurations: "Change [Setting] from [old_value] to [new_value]"
105
+
106
+ **D. Implementation Considerations:**
107
+ - Required Unity version updates
108
+ - Asset reimport needs
109
+ - Shader recompilation requirements
110
+ - Platform-specific testing needs
111
+
112
+ ### 5. Finalize & Determine Next Steps
113
+
114
+ - Obtain explicit approval for the "Game Development Change Proposal"
115
+ - Provide the finalized document to the user
116
+
117
+ - **Based on change scope:**
118
+ - **Minor adjustments (can be handled in current sprint):**
119
+ - Confirm task completion
120
+ - Suggest handoff to game-dev agent for implementation
121
+ - Note any required playtesting validation
122
+ - **Major changes (require replanning):**
123
+ - Clearly state need for deeper technical review
124
+ - Recommend engaging Game Architect or Technical Lead
125
+ - Provide proposal as input for architecture revision
126
+ - Flag any milestone/deadline impacts
127
+
128
+ ## Output Deliverables
129
+
130
+ - **Primary:** "Game Development Change Proposal" document containing:
131
+ - Game-specific change analysis
132
+ - Technical impact assessment with Unity context
133
+ - Platform and performance considerations
134
+ - Clearly drafted updates for all affected game artifacts
135
+ - Implementation guidance and constraints
136
+
137
+ - **Secondary:** Annotated game-change-checklist showing:
138
+ - Technical decisions made
139
+ - Performance trade-offs considered
140
+ - Platform-specific accommodations
141
+ - Unity-specific implementation notes
@@ -1,217 +1,184 @@
1
- # Create Game Development Story Task
1
+ # Create Game Story Task
2
2
 
3
3
  ## Purpose
4
4
 
5
- Create detailed, actionable game development stories that enable AI developers to implement specific game features in Unity without requiring additional design decisions.
5
+ To identify the next logical game story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Game Story Template`. This task ensures the story is enriched with all necessary technical context, Unity-specific requirements, and acceptance criteria, making it ready for efficient implementation by a Game Developer Agent with minimal need for additional research or finding its own context.
6
6
 
7
- ## When to Use
7
+ ## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
8
8
 
9
- - Breaking down game epics into implementable stories
10
- - Converting GDD features into development tasks
11
- - Preparing work for game developers
12
- - Ensuring clear handoffs from design to development
9
+ ### 0. Load Core Configuration and Check Workflow
13
10
 
14
- ## Prerequisites
11
+ - Load `{root}/core-config.yaml` from the project root
12
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy core-config.yaml from GITHUB bmad-core/ and configure it for your game project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure before proceeding."
13
+ - Extract key configurations: `devStoryLocation`, `gdd.*`, `gamearchitecture.*`, `workflow.*`
15
14
 
16
- Before creating stories, ensure you have:
15
+ ### 1. Identify Next Story for Preparation
17
16
 
18
- - Completed Game Design Document (GDD)
19
- - Game Architecture Document
20
- - Epic definition this story belongs to
21
- - Clear understanding of the specific game feature
17
+ #### 1.1 Locate Epic Files and Review Existing Stories
22
18
 
23
- ## Process
19
+ - Based on `gddSharded` from config, locate epic files (sharded location/pattern or monolithic GDD sections)
20
+ - If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
21
+ - **If highest story exists:**
22
+ - Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
23
+ - If proceeding, select next sequential story in the current epic
24
+ - If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
25
+ - **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
26
+ - **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
27
+ - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
24
28
 
25
- ### 1. Story Identification
29
+ ### 2. Gather Story Requirements and Previous Story Context
26
30
 
27
- **Review Epic Context:**
31
+ - Extract story requirements from the identified epic file or GDD section
32
+ - If previous story exists, review Dev Agent Record sections for:
33
+ - Completion Notes and Debug Log References
34
+ - Implementation deviations and technical decisions
35
+ - Unity-specific challenges (prefab issues, scene management, performance)
36
+ - Asset pipeline decisions and optimizations
37
+ - Extract relevant insights that inform the current story's preparation
28
38
 
29
- - Understand the epic's overall goal
30
- - Identify specific features that need implementation
31
- - Review any existing stories in the epic
32
- - Ensure no duplicate work
39
+ ### 3. Gather Architecture Context
33
40
 
34
- **Feature Analysis:**
41
+ #### 3.1 Determine Architecture Reading Strategy
35
42
 
36
- - Reference specific GDD sections
37
- - Understand player experience goals
38
- - Identify technical complexity
39
- - Estimate implementation scope
43
+ - **If `gamearchitectureVersion: >= v3` and `gamearchitectureSharded: true`**: Read `{gamearchitectureShardedLocation}/index.md` then follow structured reading order below
44
+ - **Else**: Use monolithic `gamearchitectureFile` for similar sections
40
45
 
41
- ### 2. Story Scoping
46
+ #### 3.2 Read Architecture Documents Based on Story Type
42
47
 
43
- **Single Responsibility:**
48
+ **For ALL Game Stories:** tech-stack.md, unity-project-structure.md, coding-standards.md, testing-resilience-architecture.md
44
49
 
45
- - Focus on one specific game feature
46
- - Ensure story is completable in 1-3 days
47
- - Break down complex features into multiple stories
48
- - Maintain clear boundaries with other stories
50
+ **For Gameplay/Mechanics Stories, additionally:** gameplay-systems-architecture.md, component-architecture-details.md, physics-config.md, input-system.md, state-machines.md, game-data-models.md
49
51
 
50
- **Implementation Clarity:**
52
+ **For UI/UX Stories, additionally:** ui-architecture.md, ui-components.md, ui-state-management.md, scene-management.md
51
53
 
52
- - Define exactly what needs to be built
53
- - Specify all technical requirements
54
- - Include all necessary integration points
55
- - Provide clear success criteria
56
-
57
- ### 3. Template Execution
58
-
59
- **Load Template:**
60
- Use `templates#game-story-tmpl` following all embedded LLM instructions
61
-
62
- **Key Focus Areas:**
63
-
64
- - Clear, actionable description
65
- - Specific acceptance criteria
66
- - Detailed technical specifications
67
- - Complete implementation task list
68
- - Comprehensive testing requirements
69
-
70
- ### 4. Story Validation
71
-
72
- **Technical Review:**
73
-
74
- - Verify all technical specifications are complete
75
- - Ensure integration points are clearly defined
76
- - Confirm file paths match architecture
77
- - Validate C# interfaces and classes
78
- - Check for proper use of prefabs and scenes
79
-
80
- **Game Design Alignment:**
81
-
82
- - Confirm story implements GDD requirements
83
- - Verify player experience goals are met
84
- - Check balance parameters are included
85
- - Ensure game mechanics are correctly interpreted
86
-
87
- **Implementation Readiness:**
88
-
89
- - All dependencies identified
90
- - Assets requirements specified
91
- - Testing criteria defined
92
- - Definition of Done complete
93
-
94
- ### 5. Quality Assurance
95
-
96
- **Apply Checklist:**
97
- Execute `checklists#game-story-dod-checklist` against completed story
98
-
99
- **Story Criteria:**
100
-
101
- - Story is immediately actionable
102
- - No design decisions left to developer
103
- - Technical requirements are complete
104
- - Testing requirements are comprehensive
105
- - Performance requirements are specified
106
-
107
- ### 6. Story Refinement
108
-
109
- **Developer Perspective:**
110
-
111
- - Can a developer start implementation immediately?
112
- - Are all technical questions answered?
113
- - Is the scope appropriate for the estimated points?
114
- - Are all dependencies clearly identified?
115
-
116
- **Iterative Improvement:**
117
-
118
- - Address any gaps or ambiguities
119
- - Clarify complex technical requirements
120
- - Ensure story fits within epic scope
121
- - Verify story points estimation
122
-
123
- ## Story Elements Checklist
124
-
125
- ### Required Sections
126
-
127
- - [ ] Clear, specific description
128
- - [ ] Complete acceptance criteria (functional, technical, game design)
129
- - [ ] Detailed technical specifications
130
- - [ ] File creation/modification list
131
- - [ ] C# interfaces and classes
132
- - [ ] Integration point specifications
133
- - [ ] Ordered implementation tasks
134
- - [ ] Comprehensive testing requirements
135
- - [ ] Performance criteria
136
- - [ ] Dependencies clearly identified
137
- - [ ] Definition of Done checklist
138
-
139
- ### Game-Specific Requirements
140
-
141
- - [ ] GDD section references
142
- - [ ] Game mechanic implementation details
143
- - [ ] Player experience goals
144
- - [ ] Balance parameters
145
- - [ ] Unity-specific requirements (components, prefabs, scenes)
146
- - [ ] Performance targets (stable frame rate)
147
- - [ ] Cross-platform considerations
148
-
149
- ### Technical Quality
150
-
151
- - [ ] C# best practices compliance
152
- - [ ] Architecture document alignment
153
- - [ ] Code organization follows standards
154
- - [ ] Error handling requirements
155
- - [ ] Memory management considerations
156
- - [ ] Testing strategy defined
157
-
158
- ## Common Pitfalls
159
-
160
- **Scope Issues:**
161
-
162
- - Story too large (break into multiple stories)
163
- - Story too vague (add specific requirements)
164
- - Missing dependencies (identify all prerequisites)
165
- - Unclear boundaries (define what's in/out of scope)
166
-
167
- **Technical Issues:**
168
-
169
- - Missing integration details
170
- - Incomplete technical specifications
171
- - Undefined interfaces or classes
172
- - Missing performance requirements
173
-
174
- **Game Design Issues:**
175
-
176
- - Not referencing GDD properly
177
- - Missing player experience context
178
- - Unclear game mechanic implementation
179
- - Missing balance parameters
180
-
181
- ## Success Criteria
182
-
183
- **Story Readiness:**
184
-
185
- - [ ] Developer can start implementation immediately
186
- - [ ] No additional design decisions required
187
- - [ ] All technical questions answered
188
- - [ ] Testing strategy is complete
189
- - [ ] Performance requirements are clear
190
- - [ ] Story fits within epic scope
191
-
192
- **Quality Validation:**
193
-
194
- - [ ] Game story DOD checklist passes
195
- - [ ] Architecture alignment confirmed
196
- - [ ] GDD requirements covered
197
- - [ ] Implementation tasks are ordered and specific
198
- - [ ] Dependencies are complete and accurate
199
-
200
- ## Handoff Protocol
201
-
202
- **To Game Developer:**
203
-
204
- 1. Provide story document
205
- 2. Confirm GDD and architecture access
206
- 3. Verify all dependencies are met
207
- 4. Answer any clarification questions
208
- 5. Establish check-in schedule
209
-
210
- **Story Status Updates:**
211
-
212
- - Draft → Ready for Development
213
- - In Development → Code Review
214
- - Code Review → Testing
215
- - Testing → Done
216
-
217
- This task ensures game development stories are immediately actionable and enable efficient AI-driven development of game features in Unity.
54
+ **For Backend/Services Stories, additionally:** game-data-models.md, data-persistence.md, save-system.md, analytics-integration.md, multiplayer-architecture.md
55
+
56
+ **For Graphics/Rendering Stories, additionally:** rendering-pipeline.md, shader-guidelines.md, sprite-management.md, particle-systems.md
57
+
58
+ **For Audio Stories, additionally:** audio-architecture.md, audio-mixing.md, sound-banks.md
59
+
60
+ #### 3.3 Extract Story-Specific Technical Details
61
+
62
+ Extract ONLY information directly relevant to implementing the current story. Do NOT invent new patterns, systems, or standards not in the source documents.
63
+
64
+ Extract:
65
+
66
+ - Specific Unity components and MonoBehaviours the story will use
67
+ - Unity Package Manager dependencies and their APIs (e.g., Cinemachine, Input System, URP)
68
+ - Package-specific configurations and setup requirements
69
+ - Prefab structures and scene organization requirements
70
+ - Input system bindings and configurations
71
+ - Physics settings and collision layers
72
+ - UI canvas and layout specifications
73
+ - Asset naming conventions and folder structures
74
+ - Performance budgets (target FPS, memory limits, draw calls)
75
+ - Platform-specific considerations (mobile vs desktop)
76
+ - Testing requirements specific to Unity features
77
+
78
+ ALWAYS cite source documents: `[Source: gamearchitecture/{filename}.md#{section}]`
79
+
80
+ ### 4. Unity-Specific Technical Analysis
81
+
82
+ #### 4.1 Package Dependencies Analysis
83
+
84
+ - Identify Unity Package Manager packages required for the story
85
+ - Document package versions from manifest.json
86
+ - Note any package-specific APIs or components being used
87
+ - List package configuration requirements (e.g., Input System settings, URP asset config)
88
+ - Identify any third-party Asset Store packages and their integration points
89
+
90
+ #### 4.2 Scene and Prefab Planning
91
+
92
+ - Identify which scenes will be modified or created
93
+ - List prefabs that need to be created or updated
94
+ - Document prefab variant requirements
95
+ - Specify scene loading/unloading requirements
96
+
97
+ #### 4.3 Component Architecture
98
+
99
+ - Define MonoBehaviour scripts needed
100
+ - Specify ScriptableObject assets required
101
+ - Document component dependencies and execution order
102
+ - Identify required Unity Events and UnityActions
103
+ - Note any package-specific components (e.g., Cinemachine VirtualCamera, InputActionAsset)
104
+
105
+ #### 4.4 Asset Requirements
106
+
107
+ - List sprite/texture requirements with resolution specs
108
+ - Define animation clips and animator controllers needed
109
+ - Specify audio clips and their import settings
110
+ - Document any shader or material requirements
111
+ - Note any package-specific assets (e.g., URP materials, Input Action maps)
112
+
113
+ ### 5. Populate Story Template with Full Context
114
+
115
+ - Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Game Story Template
116
+ - Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic/GDD
117
+ - **`Dev Notes` section (CRITICAL):**
118
+ - CRITICAL: This section MUST contain ONLY information extracted from gamearchitecture documents and GDD. NEVER invent or assume technical details.
119
+ - Include ALL relevant technical details from Steps 2-4, organized by category:
120
+ - **Previous Story Insights**: Key learnings from previous story implementation
121
+ - **Package Dependencies**: Unity packages required, versions, configurations [with source references]
122
+ - **Unity Components**: Specific MonoBehaviours, ScriptableObjects, systems [with source references]
123
+ - **Scene & Prefab Specs**: Scene modifications, prefab structures, variants [with source references]
124
+ - **Input Configuration**: Input actions, bindings, control schemes [with source references]
125
+ - **UI Implementation**: Canvas setup, layout groups, UI events [with source references]
126
+ - **Asset Pipeline**: Asset requirements, import settings, optimization notes
127
+ - **Performance Targets**: FPS targets, memory budgets, profiler metrics
128
+ - **Platform Considerations**: Mobile vs desktop differences, input variations
129
+ - **Testing Requirements**: PlayMode tests, Unity Test Framework specifics
130
+ - Every technical detail MUST include its source reference: `[Source: gamearchitecture/{filename}.md#{section}]`
131
+ - If information for a category is not found in the gamearchitecture docs, explicitly state: "No specific guidance found in gamearchitecture docs"
132
+ - **`Tasks / Subtasks` section:**
133
+ - Generate detailed, sequential list of technical tasks based ONLY on: Epic/GDD Requirements, Story AC, Reviewed GameArchitecture Information
134
+ - Include Unity-specific tasks:
135
+ - Scene setup and configuration
136
+ - Prefab creation and testing
137
+ - Component implementation with proper lifecycle methods
138
+ - Input system integration
139
+ - Physics configuration
140
+ - UI implementation with proper anchoring
141
+ - Performance profiling checkpoints
142
+ - Each task must reference relevant gamearchitecture documentation
143
+ - Include PlayMode testing as explicit subtasks
144
+ - Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
145
+ - Add notes on Unity project structure alignment or discrepancies found in Step 4
146
+
147
+ ### 6. Story Draft Completion and Review
148
+
149
+ - Review all sections for completeness and accuracy
150
+ - Verify all source references are included for technical details
151
+ - Ensure Unity-specific requirements are comprehensive:
152
+ - All scenes and prefabs documented
153
+ - Component dependencies clear
154
+ - Asset requirements specified
155
+ - Performance targets defined
156
+ - Update status to "Draft" and save the story file
157
+ - Execute `{root}/tasks/execute-checklist` `{root}/checklists/game-story-dod-checklist`
158
+ - Provide summary to user including:
159
+ - Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
160
+ - Status: Draft
161
+ - Key Unity components and systems included
162
+ - Scene/prefab modifications required
163
+ - Asset requirements identified
164
+ - Any deviations or conflicts noted between GDD and gamearchitecture
165
+ - Checklist Results
166
+ - Next steps: For complex Unity features, suggest the user review the story draft and optionally test critical assumptions in Unity Editor
167
+
168
+ ### 7. Unity-Specific Validation
169
+
170
+ Before finalizing, ensure:
171
+
172
+ - [ ] All required Unity packages are documented with versions
173
+ - [ ] Package-specific APIs and configurations are included
174
+ - [ ] All MonoBehaviour lifecycle methods are considered
175
+ - [ ] Prefab workflows are clearly defined
176
+ - [ ] Scene management approach is specified
177
+ - [ ] Input system integration is complete (legacy or new Input System)
178
+ - [ ] UI canvas setup follows Unity best practices
179
+ - [ ] Performance profiling points are identified
180
+ - [ ] Asset import settings are documented
181
+ - [ ] Platform-specific code paths are noted
182
+ - [ ] Package compatibility is verified (e.g., URP vs Built-in pipeline)
183
+
184
+ This task ensures game development stories are immediately actionable and enable efficient AI-driven development of Unity 2D game features.