@zeyue0329/xiaoma-cli 1.0.7 → 1.0.10

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 (321) hide show
  1. package/.github/FORK_GUIDE.md +106 -0
  2. package/.github/FUNDING.yaml +15 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  5. package/.github/workflows/discord.yaml +26 -0
  6. package/.github/workflows/format-check.yaml +44 -0
  7. package/.github/workflows/manual-release.yaml +174 -0
  8. package/.github/workflows/pr-validation.yaml +55 -0
  9. package/.husky/pre-commit +3 -0
  10. package/.vscode/settings.json +26 -1
  11. package/CHANGELOG.md +686 -0
  12. package/CONTRIBUTING.md +250 -0
  13. package/LICENSE +6 -1
  14. package/common/tasks/create-doc.md +2 -0
  15. package/common/tasks/execute-checklist.md +2 -7
  16. package/common/utils/bmad-doc-template.md +7 -5
  17. package/common/utils/workflow-management.md +2 -0
  18. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2103 -0
  19. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1627 -0
  20. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -0
  21. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +8486 -0
  22. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +3210 -0
  23. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3244 -0
  24. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +317 -0
  25. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +982 -0
  26. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +12854 -0
  27. package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +921 -0
  28. package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +81 -0
  29. package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +886 -0
  30. package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +85 -0
  31. package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +903 -0
  32. package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +837 -0
  33. package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +989 -0
  34. package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +888 -0
  35. package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +1173 -0
  36. package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +914 -0
  37. package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +6071 -0
  38. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2079 -0
  39. package/docs/GUIDING-PRINCIPLES.md +91 -0
  40. package/docs/core-architecture.md +219 -0
  41. package/docs/enhanced-ide-development-workflow.md +248 -0
  42. package/docs/expansion-packs.md +200 -0
  43. package/docs/how-to-contribute-with-pull-requests.md +158 -0
  44. package/docs/user-guide.md +530 -0
  45. package/docs/versioning-and-releases.md +155 -0
  46. package/docs/versions.md +48 -0
  47. package/docs/working-in-the-brownfield.md +597 -0
  48. package/eslint.config.mjs +119 -0
  49. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +14 -0
  50. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +73 -0
  51. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +80 -0
  52. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +66 -0
  53. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +203 -0
  54. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +162 -0
  55. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +9 -0
  56. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +252 -0
  57. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +649 -0
  58. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +112 -0
  59. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +218 -0
  60. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +292 -0
  61. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +614 -0
  62. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +357 -0
  63. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +344 -0
  64. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +254 -0
  65. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  66. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  67. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +176 -0
  68. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +15 -0
  69. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +82 -0
  70. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +79 -0
  71. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +80 -0
  72. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +67 -0
  73. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +393 -0
  74. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +205 -0
  75. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +203 -0
  76. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +126 -0
  77. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +7 -0
  78. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +771 -0
  79. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +588 -0
  80. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +112 -0
  81. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +143 -0
  82. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +186 -0
  83. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +292 -0
  84. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +202 -0
  85. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1031 -0
  86. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +357 -0
  87. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +706 -0
  88. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +257 -0
  89. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  90. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  91. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +176 -0
  92. package/expansion-packs/bmad-creative-writing/README.md +146 -0
  93. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +20 -0
  94. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +94 -0
  95. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +40 -0
  96. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +93 -0
  97. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +46 -0
  98. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +92 -0
  99. package/expansion-packs/bmad-creative-writing/agents/editor.md +93 -0
  100. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +95 -0
  101. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +93 -0
  102. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +95 -0
  103. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +94 -0
  104. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +23 -0
  105. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +23 -0
  106. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +23 -0
  107. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +23 -0
  108. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +21 -0
  109. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +23 -0
  110. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +23 -0
  111. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +22 -0
  112. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +22 -0
  113. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +23 -0
  114. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +23 -0
  115. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +25 -0
  116. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +23 -0
  117. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +23 -0
  118. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +23 -0
  119. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +23 -0
  120. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +59 -0
  121. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +23 -0
  122. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +23 -0
  123. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +23 -0
  124. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +22 -0
  125. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +23 -0
  126. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +23 -0
  127. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +23 -0
  128. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +23 -0
  129. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +23 -0
  130. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +23 -0
  131. package/expansion-packs/bmad-creative-writing/config.yaml +12 -0
  132. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +209 -0
  133. package/expansion-packs/bmad-creative-writing/data/story-structures.md +67 -0
  134. package/expansion-packs/bmad-creative-writing/docs/brief.md +212 -0
  135. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +119 -0
  136. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +23 -0
  137. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +67 -0
  138. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +29 -0
  139. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +23 -0
  140. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +24 -0
  141. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +22 -0
  142. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +103 -0
  143. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +26 -0
  144. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +26 -0
  145. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +24 -0
  146. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +88 -0
  147. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +23 -0
  148. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +23 -0
  149. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +23 -0
  150. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +25 -0
  151. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +26 -0
  152. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +23 -0
  153. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +25 -0
  154. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +23 -0
  155. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +24 -0
  156. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +23 -0
  157. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +22 -0
  158. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +23 -0
  159. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +64 -0
  160. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +97 -0
  161. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +82 -0
  162. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  163. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +98 -0
  164. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +78 -0
  165. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +55 -0
  166. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  167. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +89 -0
  168. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +218 -0
  169. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +56 -0
  170. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +50 -0
  171. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  172. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +91 -0
  173. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +85 -0
  174. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +78 -0
  175. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +64 -0
  176. package/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
  177. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +73 -0
  178. package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +486 -0
  179. package/expansion-packs/bmad-infrastructure-devops/config.yaml +10 -0
  180. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -0
  181. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +161 -0
  182. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +155 -0
  183. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +425 -0
  184. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +630 -0
  185. package/implement-fork-friendly-ci.sh +229 -0
  186. package/package.json +75 -45
  187. package/prettier.config.mjs +32 -0
  188. package/test.md +1 -0
  189. package/tools/builders/web-builder.js +143 -149
  190. package/tools/bump-all-versions.js +42 -33
  191. package/tools/bump-expansion-version.js +23 -16
  192. package/tools/cli.js +15 -15
  193. package/tools/flattener/aggregate.js +76 -0
  194. package/tools/flattener/binary.js +80 -0
  195. package/tools/flattener/discovery.js +71 -0
  196. package/tools/flattener/files.js +35 -0
  197. package/tools/flattener/ignoreRules.js +176 -0
  198. package/tools/flattener/main.js +458 -460
  199. package/tools/flattener/projectRoot.js +206 -0
  200. package/tools/flattener/prompts.js +44 -0
  201. package/tools/flattener/stats.helpers.js +395 -0
  202. package/tools/flattener/stats.js +80 -0
  203. package/tools/flattener/test-matrix.js +413 -0
  204. package/tools/flattener/xml.js +88 -0
  205. package/tools/installer/README.md +1 -1
  206. package/tools/installer/bin/xiaoma.js +392 -99
  207. package/tools/installer/config/ide-agent-config.yaml +1 -1
  208. package/tools/installer/config/install.config.yaml +60 -9
  209. package/tools/installer/lib/config-loader.js +55 -51
  210. package/tools/installer/lib/file-manager.js +92 -114
  211. package/tools/installer/lib/ide-base-setup.js +57 -56
  212. package/tools/installer/lib/ide-setup.js +821 -414
  213. package/tools/installer/lib/installer.js +924 -696
  214. package/tools/installer/lib/memory-profiler.js +54 -53
  215. package/tools/installer/lib/module-manager.js +19 -15
  216. package/tools/installer/lib/resource-locator.js +31 -33
  217. package/tools/installer/package.json +24 -23
  218. package/tools/lib/dependency-resolver.js +39 -43
  219. package/tools/lib/yaml-utils.js +7 -7
  220. package/tools/md-assets/web-agent-startup-instructions.md +6 -6
  221. package/tools/preview-release-notes.js +66 -0
  222. package/tools/setup-hooks.sh +37 -0
  223. package/tools/shared/bannerArt.js +105 -0
  224. package/tools/sync-installer-version.js +7 -9
  225. package/tools/sync-version.sh +23 -0
  226. package/tools/update-expansion-version.js +14 -15
  227. package/tools/upgraders/v3-to-v4-upgrader.js +203 -294
  228. package/tools/version-bump.js +41 -26
  229. package/tools/xiaoma-npx-wrapper.js +14 -14
  230. package/tools/yaml-format.js +56 -43
  231. package/xiaoma-core/agent-teams/team-all.yaml +3 -2
  232. package/xiaoma-core/agent-teams/team-fullstack.yaml +2 -1
  233. package/xiaoma-core/agent-teams/team-ide-minimal.yaml +1 -0
  234. package/xiaoma-core/agent-teams/team-no-ui.yaml +2 -1
  235. package/xiaoma-core/agents/analyst.md +20 -17
  236. package/xiaoma-core/agents/architect.md +15 -14
  237. package/xiaoma-core/agents/{xiaoma-master.md → bmad-master.md} +29 -27
  238. package/xiaoma-core/agents/{xiaoma-orchestrator.md → bmad-orchestrator.md} +36 -39
  239. package/xiaoma-core/agents/dev.md +23 -18
  240. package/xiaoma-core/agents/pm.md +18 -15
  241. package/xiaoma-core/agents/po.md +13 -10
  242. package/xiaoma-core/agents/qa.md +46 -24
  243. package/xiaoma-core/agents/sm.md +11 -8
  244. package/xiaoma-core/agents/ux-expert.md +10 -7
  245. package/xiaoma-core/checklists/architect-checklist.md +2 -5
  246. package/xiaoma-core/checklists/change-checklist.md +4 -2
  247. package/xiaoma-core/checklists/pm-checklist.md +2 -5
  248. package/xiaoma-core/checklists/po-master-checklist.md +2 -9
  249. package/xiaoma-core/checklists/story-dod-checklist.md +2 -7
  250. package/xiaoma-core/checklists/story-draft-checklist.md +2 -3
  251. package/xiaoma-core/core-config.yaml +4 -1
  252. package/xiaoma-core/data/{xiaoma-kb.md → bmad-kb.md} +48 -42
  253. package/xiaoma-core/data/brainstorming-techniques.md +2 -0
  254. package/xiaoma-core/data/elicitation-methods.md +22 -0
  255. package/xiaoma-core/data/technical-preferences.md +2 -0
  256. package/xiaoma-core/data/test-levels-framework.md +148 -0
  257. package/xiaoma-core/data/test-priorities-matrix.md +174 -0
  258. package/xiaoma-core/tasks/advanced-elicitation.md +2 -0
  259. package/xiaoma-core/tasks/apply-qa-fixes.md +150 -0
  260. package/xiaoma-core/tasks/brownfield-create-epic.md +2 -0
  261. package/xiaoma-core/tasks/brownfield-create-story.md +2 -0
  262. package/xiaoma-core/tasks/correct-course.md +2 -0
  263. package/xiaoma-core/tasks/create-brownfield-story.md +14 -4
  264. package/xiaoma-core/tasks/create-deep-research-prompt.md +2 -11
  265. package/xiaoma-core/tasks/create-next-story.md +3 -1
  266. package/xiaoma-core/tasks/document-project.md +17 -13
  267. package/xiaoma-core/tasks/facilitate-brainstorming-session.md +5 -3
  268. package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +2 -0
  269. package/xiaoma-core/tasks/index-docs.md +2 -6
  270. package/xiaoma-core/tasks/kb-mode-interaction.md +17 -15
  271. package/xiaoma-core/tasks/nfr-assess.md +345 -0
  272. package/xiaoma-core/tasks/qa-gate.md +163 -0
  273. package/xiaoma-core/tasks/review-story.md +245 -74
  274. package/xiaoma-core/tasks/risk-profile.md +355 -0
  275. package/xiaoma-core/tasks/shard-doc.md +2 -2
  276. package/xiaoma-core/tasks/test-design.md +176 -0
  277. package/xiaoma-core/tasks/trace-requirements.md +266 -0
  278. package/xiaoma-core/tasks/validate-next-story.md +5 -3
  279. package/xiaoma-core/templates/architecture-tmpl.yaml +50 -49
  280. package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +5 -5
  281. package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +32 -31
  282. package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +14 -13
  283. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +20 -6
  284. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +22 -9
  285. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +25 -24
  286. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +123 -104
  287. package/xiaoma-core/templates/market-research-tmpl.yaml +3 -2
  288. package/xiaoma-core/templates/prd-tmpl.yaml +10 -9
  289. package/xiaoma-core/templates/project-brief-tmpl.yaml +5 -4
  290. package/xiaoma-core/templates/qa-gate-tmpl.yaml +103 -0
  291. package/xiaoma-core/templates/story-tmpl.yaml +13 -12
  292. package/xiaoma-core/workflows/brownfield-fullstack.yaml +13 -12
  293. package/xiaoma-core/workflows/brownfield-service.yaml +5 -4
  294. package/xiaoma-core/workflows/brownfield-ui.yaml +5 -4
  295. package/xiaoma-core/workflows/greenfield-fullstack.yaml +7 -6
  296. package/xiaoma-core/workflows/greenfield-service.yaml +5 -4
  297. package/xiaoma-core/workflows/greenfield-ui.yaml +6 -5
  298. package/.releaserc.json +0 -18
  299. package/README.md +0 -532
  300. package/dist/agents/analyst.txt +0 -2882
  301. package/dist/agents/architect.txt +0 -3543
  302. package/dist/agents/dev.txt +0 -428
  303. package/dist/agents/pm.txt +0 -2229
  304. package/dist/agents/po.txt +0 -1364
  305. package/dist/agents/qa.txt +0 -386
  306. package/dist/agents/sm.txt +0 -668
  307. package/dist/agents/ux-expert.txt +0 -701
  308. package/dist/agents/xiaoma-master.txt +0 -8756
  309. package/dist/agents/xiaoma-orchestrator.txt +0 -1490
  310. package/dist/teams/team-all.txt +0 -11062
  311. package/dist/teams/team-fullstack.txt +0 -10392
  312. package/dist/teams/team-ide-minimal.txt +0 -3507
  313. package/dist/teams/team-no-ui.txt +0 -8951
  314. package/docs/quick-start.md +0 -179
  315. package/tools/bmad-npx-wrapper.js +0 -39
  316. package/tools/installer/package-lock.json +0 -704
  317. package/tools/semantic-release-sync-installer.js +0 -30
  318. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  319. package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
  320. package/xiaoma-core/user-guide.md +0 -251
  321. package/xiaoma-core/working-in-the-brownfield.md +0 -364
@@ -0,0 +1,706 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: game-design-doc-template-v3
4
+ name: Game Design Document (GDD)
5
+ version: 4.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/game-design-document.md
9
+ title: "{{game_title}} Game Design Document (GDD)"
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+
15
+ sections:
16
+ - id: goals-context
17
+ title: Goals and Background Context
18
+ instruction: |
19
+ Ask if Project Brief document is available. If NO Project Brief exists, STRONGLY recommend creating one first using project-brief-tmpl (it provides essential foundation: problem statement, target users, success metrics, MVP scope, constraints). If user insists on GDD without brief, gather this information during Goals section. If Project Brief exists, review and use it to populate Goals (bullet list of desired game development outcomes) and Background Context (1-2 paragraphs on what game concept this will deliver and why) so we can determine what is and is not in scope for the GDD. Include Change Log table for version tracking.
20
+ sections:
21
+ - id: goals
22
+ title: Goals
23
+ type: bullet-list
24
+ instruction: Bullet list of 1 line desired outcomes the GDD will deliver if successful - game development and player experience goals
25
+ examples:
26
+ - Create an engaging 2D platformer that teaches players basic programming concepts
27
+ - Deliver a polished mobile game that runs smoothly on low-end Android devices
28
+ - Build a foundation for future expansion packs and content updates
29
+ - id: background
30
+ title: Background Context
31
+ type: paragraphs
32
+ instruction: 1-2 short paragraphs summarizing the game concept background, target audience needs, market opportunity, and what problem this game solves
33
+ - id: changelog
34
+ title: Change Log
35
+ type: table
36
+ columns: [Date, Version, Description, Author]
37
+ instruction: Track document versions and changes
38
+
39
+ - id: executive-summary
40
+ title: Executive Summary
41
+ instruction: Create a compelling overview that captures the essence of the game. Present this section first and get user feedback before proceeding.
42
+ elicit: true
43
+ sections:
44
+ - id: core-concept
45
+ title: Core Concept
46
+ instruction: 2-3 sentences that clearly describe what the game is and why players will love it
47
+ examples:
48
+ - A fast-paced 2D platformer where players manipulate gravity to solve puzzles and defeat enemies in a hand-drawn world.
49
+ - An educational puzzle game that teaches coding concepts through visual programming blocks in a fantasy adventure setting.
50
+ - id: target-audience
51
+ title: Target Audience
52
+ instruction: Define the primary and secondary audience with demographics and gaming preferences
53
+ template: |
54
+ **Primary:** {{age_range}}, {{player_type}}, {{platform_preference}}
55
+ **Secondary:** {{secondary_audience}}
56
+ examples:
57
+ - "Primary: Ages 8-16, casual mobile gamers, prefer short play sessions"
58
+ - "Secondary: Adult puzzle enthusiasts, educators looking for teaching tools"
59
+ - id: platform-technical
60
+ title: Platform & Technical Requirements
61
+ instruction: Based on the technical preferences or user input, define the target platforms and Unity-specific requirements
62
+ template: |
63
+ **Primary Platform:** {{platform}}
64
+ **Engine:** Unity {{unity_version}} & C#
65
+ **Performance Target:** Stable {{fps_target}} FPS on {{minimum_device}}
66
+ **Screen Support:** {{resolution_range}}
67
+ **Build Targets:** {{build_targets}}
68
+ examples:
69
+ - "Primary Platform: Mobile (iOS/Android), Engine: Unity 2022.3 LTS & C#, Performance: 60 FPS on iPhone 8/Galaxy S8"
70
+ - id: unique-selling-points
71
+ title: Unique Selling Points
72
+ instruction: List 3-5 key features that differentiate this game from competitors
73
+ type: numbered-list
74
+ examples:
75
+ - Innovative gravity manipulation mechanic that affects both player and environment
76
+ - Seamless integration of educational content without compromising fun gameplay
77
+ - Adaptive difficulty system that learns from player behavior
78
+
79
+ - id: core-gameplay
80
+ title: Core Gameplay
81
+ instruction: This section defines the fundamental game mechanics. After presenting each subsection, apply advanced elicitation to ensure completeness and gather additional details.
82
+ elicit: true
83
+ sections:
84
+ - id: game-pillars
85
+ title: Game Pillars
86
+ instruction: Define 3-5 core pillars that guide all design decisions. These should be specific and actionable for Unity development.
87
+ type: numbered-list
88
+ template: |
89
+ **{{pillar_name}}** - {{description}}
90
+ examples:
91
+ - Intuitive Controls - All interactions must be learnable within 30 seconds using touch or keyboard
92
+ - Immediate Feedback - Every player action provides visual and audio response within 0.1 seconds
93
+ - Progressive Challenge - Difficulty increases through mechanic complexity, not unfair timing
94
+ - id: core-gameplay-loop
95
+ title: Core Gameplay Loop
96
+ instruction: Define the 30-60 second loop that players will repeat. Be specific about timing and player actions for Unity implementation.
97
+ template: |
98
+ **Primary Loop ({{duration}} seconds):**
99
+
100
+ 1. {{action_1}} ({{time_1}}s) - {{unity_component}}
101
+ 2. {{action_2}} ({{time_2}}s) - {{unity_component}}
102
+ 3. {{action_3}} ({{time_3}}s) - {{unity_component}}
103
+ 4. {{reward_feedback}} ({{time_4}}s) - {{unity_component}}
104
+ examples:
105
+ - Observe environment (2s) - Camera Controller, Identify puzzle elements (3s) - Highlight System
106
+ - id: win-loss-conditions
107
+ title: Win/Loss Conditions
108
+ instruction: Clearly define success and failure states with Unity-specific implementation notes
109
+ template: |
110
+ **Victory Conditions:**
111
+
112
+ - {{win_condition_1}} - Unity Event: {{unity_event}}
113
+ - {{win_condition_2}} - Unity Event: {{unity_event}}
114
+
115
+ **Failure States:**
116
+
117
+ - {{loss_condition_1}} - Trigger: {{unity_trigger}}
118
+ - {{loss_condition_2}} - Trigger: {{unity_trigger}}
119
+ examples:
120
+ - "Victory: Player reaches exit portal - Unity Event: OnTriggerEnter2D with Portal tag"
121
+ - "Failure: Health reaches zero - Trigger: Health component value <= 0"
122
+
123
+ - id: game-mechanics
124
+ title: Game Mechanics
125
+ instruction: Detail each major mechanic that will need Unity implementation. Each mechanic should be specific enough for developers to create C# scripts and prefabs.
126
+ elicit: true
127
+ sections:
128
+ - id: primary-mechanics
129
+ title: Primary Mechanics
130
+ repeatable: true
131
+ sections:
132
+ - id: mechanic
133
+ title: "{{mechanic_name}}"
134
+ template: |
135
+ **Description:** {{detailed_description}}
136
+
137
+ **Player Input:** {{input_method}} - Unity Input System: {{input_action}}
138
+
139
+ **System Response:** {{game_response}}
140
+
141
+ **Unity Implementation Notes:**
142
+
143
+ - **Components Needed:** {{component_list}}
144
+ - **Physics Requirements:** {{physics_2d_setup}}
145
+ - **Animation States:** {{animator_states}}
146
+ - **Performance Considerations:** {{optimization_notes}}
147
+
148
+ **Dependencies:** {{other_mechanics_needed}}
149
+
150
+ **Script Architecture:**
151
+
152
+ - {{script_name}}.cs - {{responsibility}}
153
+ - {{manager_script}}.cs - {{management_role}}
154
+ examples:
155
+ - "Components Needed: Rigidbody2D, BoxCollider2D, PlayerMovement script"
156
+ - "Physics Requirements: 2D Physics material for ground friction, Gravity scale 3"
157
+ - id: controls
158
+ title: Controls
159
+ instruction: Define all input methods for different platforms using Unity's Input System
160
+ type: table
161
+ template: |
162
+ | Action | Desktop | Mobile | Gamepad | Unity Input Action |
163
+ | ------ | ------- | ------ | ------- | ------------------ |
164
+ | {{action}} | {{key}} | {{gesture}} | {{button}} | {{input_action}} |
165
+ examples:
166
+ - Move Left, A/Left Arrow, Swipe Left, Left Stick, <Move>/x
167
+
168
+ - id: progression-balance
169
+ title: Progression & Balance
170
+ instruction: Define how players advance and how difficulty scales. This section should provide clear parameters for Unity implementation and scriptable objects.
171
+ elicit: true
172
+ sections:
173
+ - id: player-progression
174
+ title: Player Progression
175
+ template: |
176
+ **Progression Type:** {{linear|branching|metroidvania}}
177
+
178
+ **Key Milestones:**
179
+
180
+ 1. **{{milestone_1}}** - {{unlock_description}} - Unity: {{scriptable_object_update}}
181
+ 2. **{{milestone_2}}** - {{unlock_description}} - Unity: {{scriptable_object_update}}
182
+ 3. **{{milestone_3}}** - {{unlock_description}} - Unity: {{scriptable_object_update}}
183
+
184
+ **Save Data Structure:**
185
+
186
+ ```csharp
187
+ [System.Serializable]
188
+ public class PlayerProgress
189
+ {
190
+ {{progress_fields}}
191
+ }
192
+ ```
193
+ examples:
194
+ - public int currentLevel, public bool[] unlockedAbilities, public float totalPlayTime
195
+ - id: difficulty-curve
196
+ title: Difficulty Curve
197
+ instruction: Provide specific parameters for balancing that can be implemented as Unity ScriptableObjects
198
+ template: |
199
+ **Tutorial Phase:** {{duration}} - {{difficulty_description}}
200
+ - Unity Config: {{scriptable_object_values}}
201
+
202
+ **Early Game:** {{duration}} - {{difficulty_description}}
203
+ - Unity Config: {{scriptable_object_values}}
204
+
205
+ **Mid Game:** {{duration}} - {{difficulty_description}}
206
+ - Unity Config: {{scriptable_object_values}}
207
+
208
+ **Late Game:** {{duration}} - {{difficulty_description}}
209
+ - Unity Config: {{scriptable_object_values}}
210
+ examples:
211
+ - "enemy speed: 2.0f, jump height: 4.5f, obstacle density: 0.3f"
212
+ - id: economy-resources
213
+ title: Economy & Resources
214
+ condition: has_economy
215
+ instruction: Define any in-game currencies, resources, or collectibles with Unity implementation details
216
+ type: table
217
+ template: |
218
+ | Resource | Earn Rate | Spend Rate | Purpose | Cap | Unity ScriptableObject |
219
+ | -------- | --------- | ---------- | ------- | --- | --------------------- |
220
+ | {{resource}} | {{rate}} | {{rate}} | {{use}} | {{max}} | {{so_name}} |
221
+ examples:
222
+ - Coins, 1-3 per enemy, 10-50 per upgrade, Buy abilities, 9999, CurrencyData
223
+
224
+ - id: level-design-framework
225
+ title: Level Design Framework
226
+ instruction: Provide guidelines for level creation that developers can use to create Unity scenes and prefabs. Focus on modular design and reusable components.
227
+ elicit: true
228
+ sections:
229
+ - id: level-types
230
+ title: Level Types
231
+ repeatable: true
232
+ sections:
233
+ - id: level-type
234
+ title: "{{level_type_name}}"
235
+ template: |
236
+ **Purpose:** {{gameplay_purpose}}
237
+ **Target Duration:** {{target_time}}
238
+ **Key Elements:** {{required_mechanics}}
239
+ **Difficulty Rating:** {{relative_difficulty}}
240
+
241
+ **Unity Scene Structure:**
242
+
243
+ - **Environment:** {{tilemap_setup}}
244
+ - **Gameplay Objects:** {{prefab_list}}
245
+ - **Lighting:** {{lighting_setup}}
246
+ - **Audio:** {{audio_sources}}
247
+
248
+ **Level Flow Template:**
249
+
250
+ - **Introduction:** {{intro_description}} - Area: {{unity_area_bounds}}
251
+ - **Challenge:** {{main_challenge}} - Mechanics: {{active_components}}
252
+ - **Resolution:** {{completion_requirement}} - Trigger: {{completion_trigger}}
253
+
254
+ **Reusable Prefabs:**
255
+
256
+ - {{prefab_name}} - {{prefab_purpose}}
257
+ examples:
258
+ - "Environment: TilemapRenderer with Platform tileset, Lighting: 2D Global Light + Point Lights"
259
+ - id: level-progression
260
+ title: Level Progression
261
+ template: |
262
+ **World Structure:** {{linear|hub|open}}
263
+ **Total Levels:** {{number}}
264
+ **Unlock Pattern:** {{progression_method}}
265
+ **Scene Management:** {{unity_scene_loading}}
266
+
267
+ **Unity Scene Organization:**
268
+
269
+ - Scene Naming: {{naming_convention}}
270
+ - Addressable Assets: {{addressable_groups}}
271
+ - Loading Screens: {{loading_implementation}}
272
+ examples:
273
+ - "Scene Naming: World{X}_Level{Y}_Name, Addressable Groups: Levels_World1, World_Environments"
274
+
275
+ - id: technical-specifications
276
+ title: Technical Specifications
277
+ instruction: Define Unity-specific technical requirements that will guide architecture and implementation decisions. Reference Unity documentation and best practices.
278
+ elicit: true
279
+ choices:
280
+ render_pipeline: [Built-in, URP, HDRP]
281
+ input_system: [Legacy, New Input System, Both]
282
+ physics: [2D Only, 3D Only, Hybrid]
283
+ sections:
284
+ - id: unity-configuration
285
+ title: Unity Project Configuration
286
+ template: |
287
+ **Unity Version:** {{unity_version}} (LTS recommended)
288
+ **Render Pipeline:** {{Built-in|URP|HDRP}}
289
+ **Input System:** {{Legacy|New Input System|Both}}
290
+ **Physics:** {{2D Only|3D Only|Hybrid}}
291
+ **Scripting Backend:** {{Mono|IL2CPP}}
292
+ **API Compatibility:** {{.NET Standard 2.1|.NET Framework}}
293
+
294
+ **Required Packages:**
295
+
296
+ - {{package_name}} {{version}} - {{purpose}}
297
+
298
+ **Project Settings:**
299
+
300
+ - Color Space: {{Linear|Gamma}}
301
+ - Quality Settings: {{quality_levels}}
302
+ - Physics Settings: {{physics_config}}
303
+ examples:
304
+ - com.unity.addressables 1.20.5 - Asset loading and memory management
305
+ - "Color Space: Linear, Quality: Mobile/Desktop presets, Gravity: -20"
306
+ - id: performance-requirements
307
+ title: Performance Requirements
308
+ template: |
309
+ **Frame Rate:** {{fps_target}} FPS (minimum {{min_fps}} on low-end devices)
310
+ **Memory Usage:** <{{memory_limit}}MB heap, <{{texture_memory}}MB textures
311
+ **Load Times:** <{{load_time}}s initial, <{{level_load}}s between levels
312
+ **Battery Usage:** Optimized for mobile devices - {{battery_target}} hours gameplay
313
+
314
+ **Unity Profiler Targets:**
315
+
316
+ - CPU Frame Time: <{{cpu_time}}ms
317
+ - GPU Frame Time: <{{gpu_time}}ms
318
+ - GC Allocs: <{{gc_limit}}KB per frame
319
+ - Draw Calls: <{{draw_calls}} per frame
320
+ examples:
321
+ - "60 FPS (minimum 30), CPU: <16.67ms, GPU: <16.67ms, GC: <4KB, Draws: <50"
322
+ - id: platform-specific
323
+ title: Platform Specific Requirements
324
+ template: |
325
+ **Desktop:**
326
+
327
+ - Resolution: {{min_resolution}} - {{max_resolution}}
328
+ - Input: Keyboard, Mouse, Gamepad ({{gamepad_support}})
329
+ - Build Target: {{desktop_targets}}
330
+
331
+ **Mobile:**
332
+
333
+ - Resolution: {{mobile_min}} - {{mobile_max}}
334
+ - Input: Touch, Accelerometer ({{sensor_support}})
335
+ - OS: iOS {{ios_min}}+, Android {{android_min}}+ (API {{api_level}})
336
+ - Device Requirements: {{device_specs}}
337
+
338
+ **Web (if applicable):**
339
+
340
+ - WebGL Version: {{webgl_version}}
341
+ - Browser Support: {{browser_list}}
342
+ - Compression: {{compression_format}}
343
+ examples:
344
+ - "Resolution: 1280x720 - 4K, Gamepad: Xbox/PlayStation controllers via Input System"
345
+ - id: asset-requirements
346
+ title: Asset Requirements
347
+ instruction: Define asset specifications for Unity pipeline optimization
348
+ template: |
349
+ **2D Art Assets:**
350
+
351
+ - Sprites: {{sprite_resolution}} at {{ppu}} PPU
352
+ - Texture Format: {{texture_compression}}
353
+ - Atlas Strategy: {{sprite_atlas_setup}}
354
+ - Animation: {{animation_type}} at {{framerate}} FPS
355
+
356
+ **Audio Assets:**
357
+
358
+ - Music: {{audio_format}} at {{sample_rate}} Hz
359
+ - SFX: {{sfx_format}} at {{sfx_sample_rate}} Hz
360
+ - Compression: {{audio_compression}}
361
+ - 3D Audio: {{spatial_audio}}
362
+
363
+ **UI Assets:**
364
+
365
+ - Canvas Resolution: {{ui_resolution}}
366
+ - UI Scale Mode: {{scale_mode}}
367
+ - Font: {{font_requirements}}
368
+ - Icon Sizes: {{icon_specifications}}
369
+ examples:
370
+ - "Sprites: 32x32 to 256x256 at 16 PPU, Format: RGBA32 for quality/RGBA16 for performance"
371
+
372
+ - id: technical-architecture-requirements
373
+ title: Technical Architecture Requirements
374
+ instruction: Define high-level Unity architecture patterns and systems that the game must support. Focus on scalability and maintainability.
375
+ elicit: true
376
+ choices:
377
+ architecture_pattern: [MVC, MVVM, ECS, Component-Based]
378
+ save_system: [PlayerPrefs, JSON, Binary, Cloud]
379
+ audio_system: [Unity Audio, FMOD, Wwise]
380
+ sections:
381
+ - id: code-architecture
382
+ title: Code Architecture Pattern
383
+ template: |
384
+ **Architecture Pattern:** {{MVC|MVVM|ECS|Component-Based|Custom}}
385
+
386
+ **Core Systems Required:**
387
+
388
+ - **Scene Management:** {{scene_manager_approach}}
389
+ - **State Management:** {{state_pattern_implementation}}
390
+ - **Event System:** {{event_system_choice}}
391
+ - **Object Pooling:** {{pooling_strategy}}
392
+ - **Save/Load System:** {{save_system_approach}}
393
+
394
+ **Folder Structure:**
395
+
396
+ ```
397
+ Assets/
398
+ ├── _Project/
399
+ │ ├── Scripts/
400
+ │ │ ├── {{folder_structure}}
401
+ │ ├── Prefabs/
402
+ │ ├── Scenes/
403
+ │ └── {{additional_folders}}
404
+ ```
405
+
406
+ **Naming Conventions:**
407
+
408
+ - Scripts: {{script_naming}}
409
+ - Prefabs: {{prefab_naming}}
410
+ - Scenes: {{scene_naming}}
411
+ examples:
412
+ - "Architecture: Component-Based with ScriptableObject data containers"
413
+ - "Scripts: PascalCase (PlayerController), Prefabs: Player_Prefab, Scenes: Level_01_Forest"
414
+ - id: unity-systems-integration
415
+ title: Unity Systems Integration
416
+ template: |
417
+ **Required Unity Systems:**
418
+
419
+ - **Input System:** {{input_implementation}}
420
+ - **Animation System:** {{animation_approach}}
421
+ - **Physics Integration:** {{physics_usage}}
422
+ - **Rendering Features:** {{rendering_requirements}}
423
+ - **Asset Streaming:** {{asset_loading_strategy}}
424
+
425
+ **Third-Party Integrations:**
426
+
427
+ - {{integration_name}}: {{integration_purpose}}
428
+
429
+ **Performance Systems:**
430
+
431
+ - **Profiling Integration:** {{profiling_setup}}
432
+ - **Memory Management:** {{memory_strategy}}
433
+ - **Build Pipeline:** {{build_automation}}
434
+ examples:
435
+ - "Input System: Action Maps for Menu/Gameplay contexts with device switching"
436
+ - "DOTween: Smooth UI transitions and gameplay animations"
437
+ - id: data-management
438
+ title: Data Management
439
+ template: |
440
+ **Save Data Architecture:**
441
+
442
+ - **Format:** {{PlayerPrefs|JSON|Binary|Cloud}}
443
+ - **Structure:** {{save_data_organization}}
444
+ - **Encryption:** {{security_approach}}
445
+ - **Cloud Sync:** {{cloud_integration}}
446
+
447
+ **Configuration Data:**
448
+
449
+ - **ScriptableObjects:** {{scriptable_object_usage}}
450
+ - **Settings Management:** {{settings_system}}
451
+ - **Localization:** {{localization_approach}}
452
+
453
+ **Runtime Data:**
454
+
455
+ - **Caching Strategy:** {{cache_implementation}}
456
+ - **Memory Pools:** {{pooling_objects}}
457
+ - **Asset References:** {{asset_reference_system}}
458
+ examples:
459
+ - "Save Data: JSON format with AES encryption, stored in persistent data path"
460
+ - "ScriptableObjects: Game settings, level configurations, character data"
461
+
462
+ - id: development-phases
463
+ title: Development Phases & Epic Planning
464
+ instruction: Break down the Unity development into phases that can be converted to agile epics. Each phase should deliver deployable functionality following Unity best practices.
465
+ elicit: true
466
+ sections:
467
+ - id: phases-overview
468
+ title: Phases Overview
469
+ instruction: Present a high-level list of all phases for user approval. Each phase's design should deliver significant Unity functionality.
470
+ type: numbered-list
471
+ examples:
472
+ - "Phase 1: Unity Foundation & Core Systems: Project setup, input handling, basic scene management"
473
+ - "Phase 2: Core Game Mechanics: Player controller, physics systems, basic gameplay loop"
474
+ - "Phase 3: Level Systems & Content Pipeline: Scene loading, prefab systems, level progression"
475
+ - "Phase 4: Polish & Platform Optimization: Performance tuning, platform-specific features, deployment"
476
+ - id: phase-1-foundation
477
+ title: "Phase 1: Unity Foundation & Core Systems ({{duration}})"
478
+ sections:
479
+ - id: foundation-design
480
+ title: "Design: Unity Project Foundation"
481
+ type: bullet-list
482
+ template: |
483
+ - Unity project setup with proper folder structure and naming conventions
484
+ - Core architecture implementation ({{architecture_pattern}})
485
+ - Input System configuration with action maps for all platforms
486
+ - Basic scene management and state handling
487
+ - Development tools setup (debugging, profiling integration)
488
+ - Initial build pipeline and platform configuration
489
+ examples:
490
+ - "Input System: Configure PlayerInput component with Action Maps for movement and UI"
491
+ - id: core-systems-design
492
+ title: "Design: Essential Game Systems"
493
+ type: bullet-list
494
+ template: |
495
+ - Save/Load system implementation with {{save_format}} format
496
+ - Audio system setup with {{audio_system}} integration
497
+ - Event system for decoupled component communication
498
+ - Object pooling system for performance optimization
499
+ - Basic UI framework and canvas configuration
500
+ - Settings and configuration management with ScriptableObjects
501
+ - id: phase-2-gameplay
502
+ title: "Phase 2: Core Gameplay Implementation ({{duration}})"
503
+ sections:
504
+ - id: gameplay-mechanics-design
505
+ title: "Design: Primary Game Mechanics"
506
+ type: bullet-list
507
+ template: |
508
+ - Player controller with {{movement_type}} movement system
509
+ - {{primary_mechanic}} implementation with Unity physics
510
+ - {{secondary_mechanic}} system with visual feedback
511
+ - Game state management (playing, paused, game over)
512
+ - Basic collision detection and response systems
513
+ - Animation system integration with Animator controllers
514
+ - id: level-systems-design
515
+ title: "Design: Level & Content Systems"
516
+ type: bullet-list
517
+ template: |
518
+ - Scene loading and transition system
519
+ - Level progression and unlock system
520
+ - Prefab-based level construction tools
521
+ - {{level_generation}} level creation workflow
522
+ - Collectibles and pickup systems
523
+ - Victory/defeat condition implementation
524
+ - id: phase-3-polish
525
+ title: "Phase 3: Polish & Optimization ({{duration}})"
526
+ sections:
527
+ - id: performance-design
528
+ title: "Design: Performance & Platform Optimization"
529
+ type: bullet-list
530
+ template: |
531
+ - Unity Profiler analysis and optimization passes
532
+ - Memory management and garbage collection optimization
533
+ - Asset optimization (texture compression, audio compression)
534
+ - Platform-specific performance tuning
535
+ - Build size optimization and asset bundling
536
+ - Quality settings configuration for different device tiers
537
+ - id: user-experience-design
538
+ title: "Design: User Experience & Polish"
539
+ type: bullet-list
540
+ template: |
541
+ - Complete UI/UX implementation with responsive design
542
+ - Audio implementation with dynamic mixing
543
+ - Visual effects and particle systems
544
+ - Accessibility features implementation
545
+ - Tutorial and onboarding flow
546
+ - Final testing and bug fixing across all platforms
547
+
548
+ - id: epic-list
549
+ title: Epic List
550
+ instruction: |
551
+ Present a high-level list of all epics for user approval. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
552
+
553
+ CRITICAL: Epics MUST be logically sequential following agile best practices:
554
+
555
+ - Each epic should be focused on a single phase and it's design from the development-phases section and deliver a significant, end-to-end, fully deployable increment of testable functionality
556
+ - Epic 1 must establish Phase 1: Unity Foundation & Core Systems (Project setup, input handling, basic scene management) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, remember this when we produce the stories for the first epic!
557
+ - Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
558
+ - Not every project needs multiple epics, an epic needs to deliver value. For example, an API, component, or scriptableobject completed can deliver value even if a scene, or gameobject is not complete and planned for a separate epic.
559
+ - Err on the side of less epics, but let the user know your rationale and offer options for splitting them if it seems some are too large or focused on disparate things.
560
+ - Cross Cutting Concerns should flow through epics and stories and not be final stories. For example, adding a logging framework as a last story of an epic, or at the end of a project as a final epic or story would be terrible as we would not have logging from the beginning.
561
+ elicit: true
562
+ examples:
563
+ - "Epic 1: Unity Foundation & Core Systems: Project setup, input handling, basic scene management"
564
+ - "Epic 2: Core Game Mechanics: Player controller, physics systems, basic gameplay loop"
565
+ - "Epic 3: Level Systems & Content Pipeline: Scene loading, prefab systems, level progression"
566
+ - "Epic 4: Polish & Platform Optimization: Performance tuning, platform-specific features, deployment"
567
+
568
+ - id: epic-details
569
+ title: Epic {{epic_number}} {{epic_title}}
570
+ repeatable: true
571
+ instruction: |
572
+ After the epic list is approved, present each epic with all its stories and acceptance criteria as a complete review unit.
573
+
574
+ For each epic provide expanded goal (2-3 sentences describing the objective and value all the stories will achieve).
575
+
576
+ CRITICAL STORY SEQUENCING REQUIREMENTS:
577
+
578
+ - Stories within each epic MUST be logically sequential
579
+ - Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
580
+ - No story should depend on work from a later story or epic
581
+ - Identify and note any direct prerequisite stories
582
+ - Focus on "what" and "why" not "how" (leave technical implementation to Architect) yet be precise enough to support a logical sequential order of operations from story to story.
583
+ - Ensure each story delivers clear user or business value, try to avoid enablers and build them into stories that deliver value.
584
+ - Size stories for AI agent execution: Each story must be completable by a single AI agent in one focused session without context overflow
585
+ - Think "junior developer working for 2-4 hours" - stories must be small, focused, and self-contained
586
+ - If a story seems complex, break it down further as long as it can deliver a vertical slice
587
+ elicit: true
588
+ template: "{{epic_goal}}"
589
+ sections:
590
+ - id: story
591
+ title: Story {{epic_number}}.{{story_number}} {{story_title}}
592
+ repeatable: true
593
+ instruction: Provide a clear, concise description of what this story implements. Focus on the specific game feature or system being built. Reference the GDD section that defines this feature and reference the gamearchitecture section for additional implementation and integration specifics.
594
+ template: "{{clear_description_of_what_needs_to_be_implemented}}"
595
+ sections:
596
+ - id: acceptance-criteria
597
+ title: Acceptance Criteria
598
+ instruction: Define specific, testable conditions that must be met for the story to be considered complete. Each criterion should be verifiable and directly related to gameplay functionality.
599
+ sections:
600
+ - id: functional-requirements
601
+ title: Functional Requirements
602
+ type: checklist
603
+ items:
604
+ - "{{specific_functional_requirement}}"
605
+ - id: technical-requirements
606
+ title: Technical Requirements
607
+ type: checklist
608
+ items:
609
+ - Code follows C# best practices
610
+ - Maintains stable frame rate on target devices
611
+ - No memory leaks or performance degradation
612
+ - "{{specific_technical_requirement}}"
613
+ - id: game-design-requirements
614
+ title: Game Design Requirements
615
+ type: checklist
616
+ items:
617
+ - "{{gameplay_requirement_from_gdd}}"
618
+ - "{{balance_requirement_if_applicable}}"
619
+ - "{{player_experience_requirement}}"
620
+
621
+ - id: success-metrics
622
+ title: Success Metrics & Quality Assurance
623
+ instruction: Define measurable goals for the Unity game development project with specific targets that can be validated through Unity Analytics and profiling tools.
624
+ elicit: true
625
+ sections:
626
+ - id: technical-metrics
627
+ title: Technical Performance Metrics
628
+ type: bullet-list
629
+ template: |
630
+ - **Frame Rate:** Consistent {{fps_target}} FPS with <5% drops below {{min_fps}}
631
+ - **Load Times:** Initial load <{{initial_load}}s, level transitions <{{level_load}}s
632
+ - **Memory Usage:** Heap memory <{{heap_limit}}MB, texture memory <{{texture_limit}}MB
633
+ - **Crash Rate:** <{{crash_threshold}}% across all supported platforms
634
+ - **Build Size:** Final build <{{size_limit}}MB for mobile, <{{desktop_limit}}MB for desktop
635
+ - **Battery Life:** Mobile gameplay sessions >{{battery_target}} hours on average device
636
+ examples:
637
+ - "Frame Rate: Consistent 60 FPS with <5% drops below 45 FPS on target hardware"
638
+ - "Crash Rate: <0.5% across iOS/Android, <0.1% on desktop platforms"
639
+ - id: gameplay-metrics
640
+ title: Gameplay & User Engagement Metrics
641
+ type: bullet-list
642
+ template: |
643
+ - **Tutorial Completion:** {{tutorial_rate}}% of players complete basic tutorial
644
+ - **Level Progression:** {{progression_rate}}% reach level {{target_level}} within first session
645
+ - **Session Duration:** Average session length {{session_target}} minutes
646
+ - **Player Retention:** Day 1: {{d1_retention}}%, Day 7: {{d7_retention}}%, Day 30: {{d30_retention}}%
647
+ - **Gameplay Completion:** {{completion_rate}}% complete main game content
648
+ - **Control Responsiveness:** Input lag <{{input_lag}}ms on all platforms
649
+ examples:
650
+ - "Tutorial Completion: 85% of players complete movement and basic mechanics tutorial"
651
+ - "Session Duration: Average 15-20 minutes per session for mobile, 30-45 minutes for desktop"
652
+ - id: platform-specific-metrics
653
+ title: Platform-Specific Quality Metrics
654
+ type: table
655
+ template: |
656
+ | Platform | Frame Rate | Load Time | Memory | Build Size | Battery |
657
+ | -------- | ---------- | --------- | ------ | ---------- | ------- |
658
+ | {{platform}} | {{fps}} | {{load}} | {{memory}} | {{size}} | {{battery}} |
659
+ examples:
660
+ - iOS, 60 FPS, <3s, <150MB, <80MB, 3+ hours
661
+ - Android, 60 FPS, <5s, <200MB, <100MB, 2.5+ hours
662
+
663
+ - id: next-steps-integration
664
+ title: Next Steps & BMad Integration
665
+ instruction: Define how this GDD integrates with BMad's agent workflow and what follow-up documents or processes are needed.
666
+ sections:
667
+ - id: architecture-handoff
668
+ title: Unity Architecture Requirements
669
+ instruction: Summary of key architectural decisions that need to be implemented in Unity project setup
670
+ type: bullet-list
671
+ template: |
672
+ - Unity {{unity_version}} project with {{render_pipeline}} pipeline
673
+ - {{architecture_pattern}} code architecture with {{folder_structure}}
674
+ - Required packages: {{essential_packages}}
675
+ - Performance targets: {{key_performance_metrics}}
676
+ - Platform builds: {{deployment_targets}}
677
+ - id: story-creation-guidance
678
+ title: Story Creation Guidance for SM Agent
679
+ instruction: Provide guidance for the Story Manager (SM) agent on how to break down this GDD into implementable user stories
680
+ template: |
681
+ **Epic Prioritization:** {{epic_order_rationale}}
682
+
683
+ **Story Sizing Guidelines:**
684
+
685
+ - Foundation stories: {{foundation_story_scope}}
686
+ - Feature stories: {{feature_story_scope}}
687
+ - Polish stories: {{polish_story_scope}}
688
+
689
+ **Unity-Specific Story Considerations:**
690
+
691
+ - Each story should result in testable Unity scenes or prefabs
692
+ - Include specific Unity components and systems in acceptance criteria
693
+ - Consider cross-platform testing requirements
694
+ - Account for Unity build and deployment steps
695
+ examples:
696
+ - "Foundation stories: Individual Unity systems (Input, Audio, Scene Management) - 1-2 days each"
697
+ - "Feature stories: Complete gameplay mechanics with UI and feedback - 2-4 days each"
698
+ - id: recommended-agents
699
+ title: Recommended BMad Agent Sequence
700
+ type: numbered-list
701
+ template: |
702
+ 1. **{{agent_name}}**: {{agent_responsibility}}
703
+ examples:
704
+ - "Unity Architect: Create detailed technical architecture document with specific Unity implementation patterns"
705
+ - "Unity Developer: Implement core systems and gameplay mechanics according to architecture"
706
+ - "QA Tester: Validate performance metrics and cross-platform functionality"