bmad-method 5.0.0 → 5.1.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 (329) hide show
  1. package/.github/FUNDING.yaml +15 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  4. package/.github/workflows/discord.yaml +25 -0
  5. package/.github/workflows/format-check.yaml +42 -0
  6. package/.github/workflows/manual-release.yaml +173 -0
  7. package/.husky/pre-commit +3 -2
  8. package/.vscode/settings.json +67 -74
  9. package/CHANGELOG.md +564 -19
  10. package/CONTRIBUTING.md +168 -5
  11. package/LICENSE +1 -1
  12. package/README.md +146 -218
  13. package/bmad-core/agent-teams/team-all.yaml +14 -0
  14. package/bmad-core/agent-teams/team-fullstack.yaml +18 -0
  15. package/bmad-core/agent-teams/team-ide-minimal.yaml +10 -0
  16. package/bmad-core/agent-teams/team-no-ui.yaml +13 -0
  17. package/bmad-core/agents/analyst.md +81 -0
  18. package/bmad-core/agents/architect.md +83 -0
  19. package/bmad-core/agents/bmad-master.md +107 -0
  20. package/bmad-core/agents/bmad-orchestrator.md +149 -0
  21. package/bmad-core/agents/dev.md +75 -0
  22. package/bmad-core/agents/pm.md +81 -0
  23. package/bmad-core/agents/po.md +76 -0
  24. package/bmad-core/agents/qa.md +88 -0
  25. package/bmad-core/agents/sm.md +62 -0
  26. package/bmad-core/agents/ux-expert.md +66 -0
  27. package/{.bmad-core → bmad-core}/checklists/architect-checklist.md +0 -5
  28. package/{.bmad-core → bmad-core}/checklists/change-checklist.md +2 -2
  29. package/{.bmad-core → bmad-core}/checklists/pm-checklist.md +0 -5
  30. package/{.bmad-core → bmad-core}/checklists/po-master-checklist.md +0 -9
  31. package/{.bmad-core → bmad-core}/checklists/story-dod-checklist.md +0 -7
  32. package/{.bmad-core → bmad-core}/checklists/story-draft-checklist.md +1 -4
  33. package/bmad-core/core-config.yaml +20 -0
  34. package/bmad-core/data/bmad-kb.md +806 -0
  35. package/bmad-core/data/brainstorming-techniques.md +36 -0
  36. package/bmad-core/data/elicitation-methods.md +154 -0
  37. package/bmad-core/data/test-levels-framework.md +146 -0
  38. package/bmad-core/data/test-priorities-matrix.md +172 -0
  39. package/bmad-core/tasks/advanced-elicitation.md +117 -0
  40. package/{.bmad-core → bmad-core}/tasks/correct-course.md +9 -12
  41. package/bmad-core/tasks/create-brownfield-story.md +312 -0
  42. package/{.bmad-core → bmad-core}/tasks/create-deep-research-prompt.md +4 -27
  43. package/bmad-core/tasks/create-next-story.md +112 -0
  44. package/bmad-core/tasks/document-project.md +343 -0
  45. package/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
  46. package/bmad-core/tasks/generate-ai-frontend-prompt.md +51 -0
  47. package/{.bmad-core → bmad-core}/tasks/index-docs.md +3 -13
  48. package/bmad-core/tasks/kb-mode-interaction.md +75 -0
  49. package/bmad-core/tasks/nfr-assess.md +343 -0
  50. package/bmad-core/tasks/qa-gate.md +159 -0
  51. package/bmad-core/tasks/review-story.md +314 -0
  52. package/bmad-core/tasks/risk-profile.md +353 -0
  53. package/{.bmad-core → bmad-core}/tasks/shard-doc.md +27 -15
  54. package/bmad-core/tasks/test-design.md +174 -0
  55. package/bmad-core/tasks/trace-requirements.md +264 -0
  56. package/bmad-core/tasks/validate-next-story.md +134 -0
  57. package/bmad-core/templates/architecture-tmpl.yaml +650 -0
  58. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  59. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +476 -0
  60. package/bmad-core/templates/brownfield-prd-tmpl.yaml +280 -0
  61. package/bmad-core/templates/competitor-analysis-tmpl.yaml +306 -0
  62. package/bmad-core/templates/front-end-architecture-tmpl.yaml +218 -0
  63. package/bmad-core/templates/front-end-spec-tmpl.yaml +349 -0
  64. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +823 -0
  65. package/bmad-core/templates/market-research-tmpl.yaml +252 -0
  66. package/bmad-core/templates/prd-tmpl.yaml +202 -0
  67. package/bmad-core/templates/project-brief-tmpl.yaml +221 -0
  68. package/bmad-core/templates/qa-gate-tmpl.yaml +102 -0
  69. package/bmad-core/templates/story-tmpl.yaml +137 -0
  70. package/bmad-core/workflows/brownfield-fullstack.yaml +297 -0
  71. package/bmad-core/workflows/brownfield-service.yaml +187 -0
  72. package/bmad-core/workflows/brownfield-ui.yaml +197 -0
  73. package/{.bmad-core/workflows/greenfield-fullstack.yml → bmad-core/workflows/greenfield-fullstack.yaml} +140 -77
  74. package/bmad-core/workflows/greenfield-service.yaml +206 -0
  75. package/bmad-core/workflows/greenfield-ui.yaml +235 -0
  76. package/common/tasks/create-doc.md +101 -0
  77. package/{.bmad-core → common}/tasks/execute-checklist.md +2 -13
  78. package/common/utils/bmad-doc-template.md +325 -0
  79. package/common/utils/workflow-management.md +69 -0
  80. package/dist/agents/analyst.txt +2889 -0
  81. package/dist/agents/architect.txt +3552 -0
  82. package/dist/agents/bmad-master.txt +8769 -0
  83. package/dist/agents/bmad-orchestrator.txt +1513 -0
  84. package/dist/agents/dev.txt +414 -0
  85. package/{.bmad-core/web-bundles → dist}/agents/pm.txt +668 -1119
  86. package/{.bmad-core/web-bundles → dist}/agents/po.txt +341 -484
  87. package/dist/agents/qa.txt +1987 -0
  88. package/dist/agents/sm.txt +658 -0
  89. package/dist/agents/ux-expert.txt +694 -0
  90. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2371 -0
  91. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1620 -0
  92. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +815 -0
  93. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10952 -0
  94. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4012 -0
  95. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3698 -0
  96. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +450 -0
  97. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +973 -0
  98. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15376 -0
  99. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2075 -0
  100. package/dist/teams/team-all.txt +12682 -0
  101. package/dist/teams/team-fullstack.txt +10421 -0
  102. package/dist/teams/team-ide-minimal.txt +5103 -0
  103. package/dist/teams/team-no-ui.txt +8980 -0
  104. package/docs/GUIDING-PRINCIPLES.md +91 -0
  105. package/docs/core-architecture.md +219 -0
  106. package/docs/enhanced-ide-development-workflow.md +248 -0
  107. package/docs/expansion-packs.md +280 -0
  108. package/docs/how-to-contribute-with-pull-requests.md +158 -0
  109. package/docs/user-guide.md +504 -0
  110. package/docs/versioning-and-releases.md +8 -16
  111. package/docs/versions.md +4 -5
  112. package/docs/working-in-the-brownfield.md +597 -0
  113. package/eslint.config.mjs +119 -0
  114. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +102 -0
  115. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash copy.txt +13 -0
  116. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash.txt +13 -0
  117. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.2 Agent Development Kit Installation/1.2.2 - Basic Project Structure - txt.txt +25 -0
  118. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.1 - settings.py +34 -0
  119. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.2 - main.py - Base Application.py +70 -0
  120. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.4 Deployment Configuration/1.4.2 - cloudbuild.yaml +26 -0
  121. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +109 -0
  122. package/expansion-packs/README.md +2 -112
  123. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +13 -0
  124. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +71 -0
  125. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +78 -0
  126. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +64 -0
  127. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +201 -0
  128. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +160 -0
  129. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +8 -0
  130. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +250 -0
  131. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +647 -0
  132. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +110 -0
  133. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +216 -0
  134. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +290 -0
  135. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +613 -0
  136. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +356 -0
  137. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +343 -0
  138. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +253 -0
  139. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
  140. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +183 -0
  141. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +175 -0
  142. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +14 -0
  143. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +80 -0
  144. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +77 -0
  145. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +78 -0
  146. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +65 -0
  147. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +391 -0
  148. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +203 -0
  149. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +201 -0
  150. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +124 -0
  151. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +6 -0
  152. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +769 -0
  153. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +586 -0
  154. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +110 -0
  155. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +141 -0
  156. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +184 -0
  157. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +290 -0
  158. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +200 -0
  159. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1030 -0
  160. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +356 -0
  161. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +705 -0
  162. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +256 -0
  163. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
  164. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +183 -0
  165. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +175 -0
  166. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/README.md +9 -9
  167. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/agents/infra-devops-platform.md +30 -18
  168. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/checklists/infrastructure-checklist.md +1 -1
  169. package/expansion-packs/bmad-infrastructure-devops/config.yaml +9 -0
  170. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +305 -0
  171. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/tasks/review-infrastructure.md +4 -5
  172. package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/tasks/validate-infrastructure.md +4 -5
  173. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +424 -0
  174. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +629 -0
  175. package/package.json +74 -42
  176. package/prettier.config.mjs +32 -0
  177. package/release_notes.md +25 -0
  178. package/tools/bmad-npx-wrapper.js +13 -15
  179. package/tools/builders/web-builder.js +544 -15
  180. package/tools/bump-all-versions.js +115 -0
  181. package/tools/bump-expansion-version.js +90 -0
  182. package/tools/cli.js +65 -32
  183. package/tools/flattener/aggregate.js +76 -0
  184. package/tools/flattener/binary.js +80 -0
  185. package/tools/flattener/discovery.js +71 -0
  186. package/tools/flattener/files.js +35 -0
  187. package/tools/flattener/ignoreRules.js +176 -0
  188. package/tools/flattener/main.js +573 -0
  189. package/tools/flattener/projectRoot.js +206 -0
  190. package/tools/flattener/prompts.js +44 -0
  191. package/tools/flattener/stats.helpers.js +395 -0
  192. package/tools/flattener/stats.js +80 -0
  193. package/tools/flattener/test-matrix.js +413 -0
  194. package/tools/flattener/xml.js +88 -0
  195. package/tools/installer/README.md +3 -53
  196. package/tools/installer/bin/bmad.js +475 -90
  197. package/tools/installer/config/ide-agent-config.yaml +58 -0
  198. package/tools/installer/config/install.config.yaml +123 -0
  199. package/tools/installer/lib/config-loader.js +208 -40
  200. package/tools/installer/lib/file-manager.js +258 -55
  201. package/tools/installer/lib/ide-base-setup.js +228 -0
  202. package/tools/installer/lib/ide-setup.js +1265 -253
  203. package/tools/installer/lib/installer.js +1651 -310
  204. package/tools/installer/lib/memory-profiler.js +225 -0
  205. package/tools/installer/lib/module-manager.js +114 -0
  206. package/tools/installer/lib/resource-locator.js +308 -0
  207. package/tools/installer/package.json +25 -24
  208. package/tools/lib/dependency-resolver.js +44 -48
  209. package/tools/lib/yaml-utils.js +29 -0
  210. package/tools/md-assets/web-agent-startup-instructions.md +39 -0
  211. package/tools/preview-release-notes.js +66 -0
  212. package/tools/shared/bannerArt.js +105 -0
  213. package/tools/sync-installer-version.js +7 -9
  214. package/tools/update-expansion-version.js +53 -0
  215. package/tools/upgraders/v3-to-v4-upgrader.js +221 -320
  216. package/tools/version-bump.js +42 -27
  217. package/tools/yaml-format.js +57 -44
  218. package/.bmad-core/agent-teams/team-all.yml +0 -16
  219. package/.bmad-core/agent-teams/team-fullstack.yml +0 -26
  220. package/.bmad-core/agent-teams/team-no-ui.yml +0 -15
  221. package/.bmad-core/agents/analyst.md +0 -59
  222. package/.bmad-core/agents/architect.md +0 -66
  223. package/.bmad-core/agents/bmad-master.md +0 -104
  224. package/.bmad-core/agents/bmad-orchestrator.md +0 -81
  225. package/.bmad-core/agents/dev.md +0 -70
  226. package/.bmad-core/agents/pm.md +0 -59
  227. package/.bmad-core/agents/po.md +0 -60
  228. package/.bmad-core/agents/qa.md +0 -52
  229. package/.bmad-core/agents/sm.md +0 -55
  230. package/.bmad-core/agents/ux-expert.md +0 -66
  231. package/.bmad-core/data/bmad-kb.md +0 -47
  232. package/.bmad-core/schemas/agent-team-schema.yml +0 -153
  233. package/.bmad-core/tasks/advanced-elicitation.md +0 -92
  234. package/.bmad-core/tasks/brainstorming-techniques.md +0 -238
  235. package/.bmad-core/tasks/core-dump.md +0 -74
  236. package/.bmad-core/tasks/create-agent.md +0 -202
  237. package/.bmad-core/tasks/create-doc.md +0 -74
  238. package/.bmad-core/tasks/create-expansion-pack.md +0 -425
  239. package/.bmad-core/tasks/create-next-story.md +0 -206
  240. package/.bmad-core/tasks/create-team.md +0 -229
  241. package/.bmad-core/tasks/doc-migration-task.md +0 -143
  242. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -58
  243. package/.bmad-core/templates/agent-tmpl.md +0 -58
  244. package/.bmad-core/templates/architecture-tmpl.md +0 -771
  245. package/.bmad-core/templates/brownfield-architecture-tmpl.md +0 -542
  246. package/.bmad-core/templates/brownfield-prd-tmpl.md +0 -240
  247. package/.bmad-core/templates/competitor-analysis-tmpl.md +0 -289
  248. package/.bmad-core/templates/expansion-pack-plan-tmpl.md +0 -91
  249. package/.bmad-core/templates/front-end-architecture-tmpl.md +0 -173
  250. package/.bmad-core/templates/front-end-spec-tmpl.md +0 -411
  251. package/.bmad-core/templates/fullstack-architecture-tmpl.md +0 -1016
  252. package/.bmad-core/templates/market-research-tmpl.md +0 -261
  253. package/.bmad-core/templates/prd-tmpl.md +0 -200
  254. package/.bmad-core/templates/project-brief-tmpl.md +0 -228
  255. package/.bmad-core/templates/simple-project-prd-tmpl.md +0 -461
  256. package/.bmad-core/templates/story-tmpl.md +0 -61
  257. package/.bmad-core/templates/web-agent-startup-instructions-template.md +0 -39
  258. package/.bmad-core/utils/agent-switcher.ide.md +0 -112
  259. package/.bmad-core/utils/template-format.md +0 -26
  260. package/.bmad-core/utils/workflow-management.md +0 -224
  261. package/.bmad-core/web-bundles/agents/analyst.txt +0 -1684
  262. package/.bmad-core/web-bundles/agents/architect.txt +0 -3584
  263. package/.bmad-core/web-bundles/agents/bmad-master.txt +0 -9491
  264. package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +0 -1466
  265. package/.bmad-core/web-bundles/agents/dev.txt +0 -316
  266. package/.bmad-core/web-bundles/agents/qa.txt +0 -129
  267. package/.bmad-core/web-bundles/agents/sm.txt +0 -658
  268. package/.bmad-core/web-bundles/agents/ux-expert.txt +0 -1099
  269. package/.bmad-core/web-bundles/teams/team-all.txt +0 -10757
  270. package/.bmad-core/web-bundles/teams/team-fullstack.txt +0 -10109
  271. package/.bmad-core/web-bundles/teams/team-no-ui.txt +0 -8950
  272. package/.bmad-core/workflows/brownfield-fullstack.yml +0 -116
  273. package/.bmad-core/workflows/brownfield-service.yml +0 -117
  274. package/.bmad-core/workflows/brownfield-ui.yml +0 -127
  275. package/.bmad-core/workflows/greenfield-service.yml +0 -143
  276. package/.bmad-core/workflows/greenfield-ui.yml +0 -172
  277. package/.claude/commands/analyst.md +0 -63
  278. package/.claude/commands/architect.md +0 -70
  279. package/.claude/commands/bmad-master.md +0 -108
  280. package/.claude/commands/bmad-orchestrator.md +0 -85
  281. package/.claude/commands/dev.md +0 -74
  282. package/.claude/commands/pm.md +0 -63
  283. package/.claude/commands/po.md +0 -64
  284. package/.claude/commands/qa.md +0 -56
  285. package/.claude/commands/sm.md +0 -59
  286. package/.claude/commands/ux-expert.md +0 -70
  287. package/.cursor/rules/analyst.mdc +0 -77
  288. package/.cursor/rules/architect.mdc +0 -84
  289. package/.cursor/rules/bmad-master.mdc +0 -122
  290. package/.cursor/rules/bmad-orchestrator.mdc +0 -99
  291. package/.cursor/rules/dev.mdc +0 -88
  292. package/.cursor/rules/pm.mdc +0 -77
  293. package/.cursor/rules/po.mdc +0 -78
  294. package/.cursor/rules/qa.mdc +0 -70
  295. package/.cursor/rules/sm.mdc +0 -73
  296. package/.cursor/rules/ux-expert.mdc +0 -84
  297. package/.github/workflows/release.yml +0 -59
  298. package/.releaserc.json +0 -18
  299. package/.roo/.roomodes +0 -95
  300. package/.roo/README.md +0 -38
  301. package/.vscode/extensions.json +0 -6
  302. package/.windsurf/rules/analyst.md +0 -71
  303. package/.windsurf/rules/architect.md +0 -78
  304. package/.windsurf/rules/bmad-master.md +0 -116
  305. package/.windsurf/rules/bmad-orchestrator.md +0 -93
  306. package/.windsurf/rules/dev.md +0 -82
  307. package/.windsurf/rules/pm.md +0 -71
  308. package/.windsurf/rules/po.md +0 -72
  309. package/.windsurf/rules/qa.md +0 -64
  310. package/.windsurf/rules/sm.md +0 -67
  311. package/.windsurf/rules/ux-expert.md +0 -78
  312. package/docs/bmad-workflow-guide.md +0 -161
  313. package/docs/claude-code-guide.md +0 -119
  314. package/docs/cursor-guide.md +0 -127
  315. package/docs/roo-code-guide.md +0 -140
  316. package/docs/sample-output/simple-fullstack-greenfield/prd.md +0 -42
  317. package/docs/windsurf-guide.md +0 -127
  318. package/expansion-packs/infrastructure-devops/manifest.yml +0 -38
  319. package/expansion-packs/infrastructure-devops/templates/infrastructure-architecture-tmpl.md +0 -415
  320. package/expansion-packs/infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
  321. package/tools/installer/config/install.config.yml +0 -139
  322. package/tools/installer/package-lock.json +0 -906
  323. package/tools/installer/templates/claude-commands.md +0 -7
  324. package/tools/installer/templates/cursor-rules.md +0 -22
  325. package/tools/installer/templates/windsurf-rules.md +0 -22
  326. package/tools/semantic-release-sync-installer.js +0 -31
  327. /package/{.bmad-core → bmad-core}/data/technical-preferences.md +0 -0
  328. /package/{.bmad-core → bmad-core}/tasks/brownfield-create-epic.md +0 -0
  329. /package/{.bmad-core → bmad-core}/tasks/brownfield-create-story.md +0 -0
@@ -0,0 +1,769 @@
1
+ # BMad Knowledge Base - 2D Unity Game Development
2
+
3
+ ## Overview
4
+
5
+ This is the game development expansion of BMad-Method (Breakthrough Method of Agile AI-driven Development), specializing in creating 2D games using Unity and C#. The v4 system introduces a modular architecture with improved dependency management, bundle optimization, and support for both web and IDE environments, specifically optimized for game development workflows.
6
+
7
+ ### Key Features for Game Development
8
+
9
+ - **Game-Specialized Agent System**: AI agents for each game development role (Designer, Developer, Scrum Master)
10
+ - **Unity-Optimized Build System**: Automated dependency resolution for game assets and scripts
11
+ - **Dual Environment Support**: Optimized for both web UIs and game development IDEs
12
+ - **Game Development Resources**: Specialized templates, tasks, and checklists for 2D Unity games
13
+ - **Performance-First Approach**: Built-in optimization patterns for cross-platform game deployment
14
+
15
+ ### Game Development Focus
16
+
17
+ - **Target Engine**: Unity 2022 LTS or newer with C# 10+
18
+ - **Platform Strategy**: Cross-platform (PC, Console, Mobile) with a focus on 2D
19
+ - **Development Approach**: Agile story-driven development with game-specific workflows
20
+ - **Performance Target**: Stable frame rate on target devices
21
+ - **Architecture**: Component-based architecture using Unity's best practices
22
+
23
+ ### When to Use BMad for Game Development
24
+
25
+ - **New Game Projects (Greenfield)**: Complete end-to-end game development from concept to deployment
26
+ - **Existing Game Projects (Brownfield)**: Feature additions, level expansions, and gameplay enhancements
27
+ - **Game Team Collaboration**: Multiple specialized roles working together on game features
28
+ - **Game Quality Assurance**: Structured testing, performance validation, and gameplay balance
29
+ - **Game Documentation**: Professional Game Design Documents, technical architecture, user stories
30
+
31
+ ## How BMad Works for Game Development
32
+
33
+ ### The Core Method
34
+
35
+ BMad transforms you into a "Player Experience CEO" - directing a team of specialized game development AI agents through structured workflows. Here's how:
36
+
37
+ 1. **You Direct, AI Executes**: You provide game vision and creative decisions; agents handle implementation details
38
+ 2. **Specialized Game Agents**: Each agent masters one game development role (Designer, Developer, Scrum Master)
39
+ 3. **Game-Focused Workflows**: Proven patterns guide you from game concept to deployed 2D Unity game
40
+ 4. **Clean Handoffs**: Fresh context windows ensure agents stay focused and effective for game development
41
+
42
+ ### The Two-Phase Game Development Approach
43
+
44
+ #### Phase 1: Game Design & Planning (Web UI - Cost Effective)
45
+
46
+ - Use large context windows for comprehensive game design
47
+ - Generate complete Game Design Documents and technical architecture
48
+ - Leverage multiple agents for creative brainstorming and mechanics refinement
49
+ - Create once, use throughout game development
50
+
51
+ #### Phase 2: Game Development (IDE - Implementation)
52
+
53
+ - Shard game design documents into manageable pieces
54
+ - Execute focused SM → Dev cycles for game features
55
+ - One game story at a time, sequential progress
56
+ - Real-time Unity operations, C# coding, and game testing
57
+
58
+ ### The Game Development Loop
59
+
60
+ ```text
61
+ 1. Game SM Agent (New Chat) → Creates next game story from sharded docs
62
+ 2. You → Review and approve game story
63
+ 3. Game Dev Agent (New Chat) → Implements approved game feature in Unity
64
+ 4. QA Agent (New Chat) → Reviews code and tests gameplay
65
+ 5. You → Verify game feature completion
66
+ 6. Repeat until game epic complete
67
+ ```
68
+
69
+ ### Why This Works for Games
70
+
71
+ - **Context Optimization**: Clean chats = better AI performance for complex game logic
72
+ - **Role Clarity**: Agents don't context-switch = higher quality game features
73
+ - **Incremental Progress**: Small game stories = manageable complexity
74
+ - **Player-Focused Oversight**: You validate each game feature = quality control
75
+ - **Design-Driven**: Game specs guide everything = consistent player experience
76
+
77
+ ### Core Game Development Philosophy
78
+
79
+ #### Player-First Development
80
+
81
+ You are developing games as a "Player Experience CEO" - thinking like a game director with unlimited creative resources and a singular vision for player enjoyment.
82
+
83
+ #### Game Development Principles
84
+
85
+ 1. **MAXIMIZE_PLAYER_ENGAGEMENT**: Push the AI to create compelling gameplay. Challenge mechanics and iterate.
86
+ 2. **GAMEPLAY_QUALITY_CONTROL**: You are the ultimate arbiter of fun. Review all game features.
87
+ 3. **CREATIVE_OVERSIGHT**: Maintain the high-level game vision and ensure design alignment.
88
+ 4. **ITERATIVE_REFINEMENT**: Expect to revisit game mechanics. Game development is not linear.
89
+ 5. **CLEAR_GAME_INSTRUCTIONS**: Precise game requirements lead to better implementations.
90
+ 6. **DOCUMENTATION_IS_KEY**: Good game design docs lead to good game features.
91
+ 7. **START_SMALL_SCALE_FAST**: Test core mechanics, then expand and polish.
92
+ 8. **EMBRACE_CREATIVE_CHAOS**: Adapt and overcome game development challenges.
93
+
94
+ ## Getting Started with Game Development
95
+
96
+ ### Quick Start Options for Game Development
97
+
98
+ #### Option 1: Web UI for Game Design
99
+
100
+ **Best for**: Game designers who want to start with comprehensive planning
101
+
102
+ 1. Navigate to `dist/teams/` (after building)
103
+ 2. Copy `unity-2d-game-team.txt` content
104
+ 3. Create new Gemini Gem or CustomGPT
105
+ 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
106
+ 5. Type `/help` to see available game development commands
107
+
108
+ #### Option 2: IDE Integration for Game Development
109
+
110
+ **Best for**: Unity developers using Cursor, Claude Code, Windsurf, Trae, Cline, Roo Code, Github Copilot
111
+
112
+ ```bash
113
+ # Interactive installation (recommended)
114
+ npx bmad-method install
115
+ # Select the bmad-2d-unity-game-dev expansion pack when prompted
116
+ ```
117
+
118
+ **Installation Steps for Game Development**:
119
+
120
+ - Choose "Install expansion pack" when prompted
121
+ - Select "bmad-2d-unity-game-dev" from the list
122
+ - Select your IDE from supported options:
123
+ - **Cursor**: Native AI integration with Unity support
124
+ - **Claude Code**: Anthropic's official IDE
125
+ - **Windsurf**: Built-in AI capabilities
126
+ - **Trae**: Built-in AI capabilities
127
+ - **Cline**: VS Code extension with AI features
128
+ - **Roo Code**: Web-based IDE with agent support
129
+ - **GitHub Copilot**: VS Code extension with AI peer programming assistant
130
+
131
+ **Verify Game Development Installation**:
132
+
133
+ - `.bmad-core/` folder created with all core agents
134
+ - `.bmad-2d-unity-game-dev/` folder with game development agents
135
+ - IDE-specific integration files created
136
+ - Game development agents available with `/bmad2du` prefix (per config.yaml)
137
+
138
+ ### Environment Selection Guide for Game Development
139
+
140
+ **Use Web UI for**:
141
+
142
+ - Game design document creation and brainstorming
143
+ - Cost-effective comprehensive game planning (especially with Gemini)
144
+ - Multi-agent game design consultation
145
+ - Creative ideation and mechanics refinement
146
+
147
+ **Use IDE for**:
148
+
149
+ - Unity project development and C# coding
150
+ - Game asset operations and project integration
151
+ - Game story management and implementation workflow
152
+ - Unity testing, profiling, and debugging
153
+
154
+ **Cost-Saving Tip for Game Development**: Create large game design documents in web UI, then copy to `docs/game-design-doc.md` and `docs/game-architecture.md` in your Unity project before switching to IDE for development.
155
+
156
+ ### IDE-Only Game Development Workflow Considerations
157
+
158
+ **Can you do everything in IDE?** Yes, but understand the game development tradeoffs:
159
+
160
+ **Pros of IDE-Only Game Development**:
161
+
162
+ - Single environment workflow from design to Unity deployment
163
+ - Direct Unity project operations from start
164
+ - No copy/paste between environments
165
+ - Immediate Unity project integration
166
+
167
+ **Cons of IDE-Only Game Development**:
168
+
169
+ - Higher token costs for large game design document creation
170
+ - Smaller context windows for comprehensive game planning
171
+ - May hit limits during creative brainstorming phases
172
+ - Less cost-effective for extensive game design iteration
173
+
174
+ **CRITICAL RULE for Game Development**:
175
+
176
+ - **ALWAYS use Game SM agent for story creation** - Never use bmad-master or bmad-orchestrator
177
+ - **ALWAYS use Game Dev agent for Unity implementation** - Never use bmad-master or bmad-orchestrator
178
+ - **Why this matters**: Game SM and Game Dev agents are specifically optimized for Unity workflows
179
+ - **No exceptions**: Even if using bmad-master for design, switch to Game SM → Game Dev for implementation
180
+
181
+ ## Core Configuration for Game Development (core-config.yaml)
182
+
183
+ **New in V4**: The `expansion-packs/bmad-2d-unity-game-dev/core-config.yaml` file enables BMad to work seamlessly with any Unity project structure, providing maximum flexibility for game development.
184
+
185
+ ### Game Development Configuration
186
+
187
+ The expansion pack follows the standard BMad configuration patterns. Copy your core-config.yaml file to expansion-packs/bmad-2d-unity-game-dev/ and add Game-specific configurations to your project's `core-config.yaml`:
188
+
189
+ ```yaml
190
+ markdownExploder: true
191
+ prd:
192
+ prdFile: docs/prd.md
193
+ prdVersion: v4
194
+ prdSharded: true
195
+ prdShardedLocation: docs/prd
196
+ epicFilePattern: epic-{n}*.md
197
+ architecture:
198
+ architectureFile: docs/architecture.md
199
+ architectureVersion: v4
200
+ architectureSharded: true
201
+ architectureShardedLocation: docs/architecture
202
+ gdd:
203
+ gddVersion: v4
204
+ gddSharded: true
205
+ gddLocation: docs/game-design-doc.md
206
+ gddShardedLocation: docs/gdd
207
+ epicFilePattern: epic-{n}*.md
208
+ gamearchitecture:
209
+ gamearchitectureFile: docs/architecture.md
210
+ gamearchitectureVersion: v3
211
+ gamearchitectureLocation: docs/game-architecture.md
212
+ gamearchitectureSharded: true
213
+ gamearchitectureShardedLocation: docs/game-architecture
214
+ gamebriefdocLocation: docs/game-brief.md
215
+ levelDesignLocation: docs/level-design.md
216
+ #Specify the location for your unity editor
217
+ unityEditorLocation: /home/USER/Unity/Hub/Editor/VERSION/Editor/Unity
218
+ customTechnicalDocuments: null
219
+ devDebugLog: .ai/debug-log.md
220
+ devStoryLocation: docs/stories
221
+ slashPrefix: bmad2du
222
+ #replace old devLoadAlwaysFiles with this once you have sharded your gamearchitecture document
223
+ devLoadAlwaysFiles:
224
+ - docs/game-architecture/9-coding-standards.md
225
+ - docs/game-architecture/3-tech-stack.md
226
+ - docs/game-architecture/8-unity-project-structure.md
227
+ ```
228
+
229
+ ## Complete Game Development Workflow
230
+
231
+ ### Planning Phase (Web UI Recommended - Especially Gemini for Game Design!)
232
+
233
+ **Ideal for cost efficiency with Gemini's massive context for game brainstorming:**
234
+
235
+ **For All Game Projects**:
236
+
237
+ 1. **Game Concept Brainstorming**: `/bmad2du/game-designer` - Use `*game-design-brainstorming` task
238
+ 2. **Game Brief**: Create foundation game document using `game-brief-tmpl`
239
+ 3. **Game Design Document Creation**: `/bmad2du/game-designer` - Use `game-design-doc-tmpl` for comprehensive game requirements
240
+ 4. **Game Architecture Design**: `/bmad2du/game-architect` - Use `game-architecture-tmpl` for Unity technical foundation
241
+ 5. **Level Design Framework**: `/bmad2du/game-designer` - Use `level-design-doc-tmpl` for level structure planning
242
+ 6. **Document Preparation**: Copy final documents to Unity project as `docs/game-design-doc.md`, `docs/game-brief.md`, `docs/level-design.md` and `docs/game-architecture.md`
243
+
244
+ #### Example Game Planning Prompts
245
+
246
+ **For Game Design Document Creation**:
247
+
248
+ ```text
249
+ "I want to build a [genre] 2D game that [core gameplay].
250
+ Help me brainstorm mechanics and create a comprehensive Game Design Document."
251
+ ```
252
+
253
+ **For Game Architecture Design**:
254
+
255
+ ```text
256
+ "Based on this Game Design Document, design a scalable Unity architecture
257
+ that can handle [specific game requirements] with stable performance."
258
+ ```
259
+
260
+ ### Critical Transition: Web UI to Unity IDE
261
+
262
+ **Once game planning is complete, you MUST switch to IDE for Unity development:**
263
+
264
+ - **Why**: Unity development workflow requires C# operations, asset management, and real-time Unity testing
265
+ - **Cost Benefit**: Web UI is more cost-effective for large game design creation; IDE is optimized for Unity development
266
+ - **Required Files**: Ensure `docs/game-design-doc.md` and `docs/game-architecture.md` exist in your Unity project
267
+
268
+ ### Unity IDE Development Workflow
269
+
270
+ **Prerequisites**: Game planning documents must exist in `docs/` folder of Unity project
271
+
272
+ 1. **Document Sharding** (CRITICAL STEP for Game Development):
273
+ - Documents created by Game Designer/Architect (in Web or IDE) MUST be sharded for development
274
+ - Use core BMad agents or tools to shard:
275
+ a) **Manual**: Use core BMad `shard-doc` task if available
276
+ b) **Agent**: Ask core `@bmad-master` agent to shard documents
277
+ - Shards `docs/game-design-doc.md` → `docs/game-design/` folder
278
+ - Shards `docs/game-architecture.md` → `docs/game-architecture/` folder
279
+ - **WARNING**: Do NOT shard in Web UI - copying many small files to Unity is painful!
280
+
281
+ 2. **Verify Sharded Game Content**:
282
+ - At least one `feature-n.md` file in `docs/game-design/` with game stories in development order
283
+ - Unity system documents and coding standards for game dev agent reference
284
+ - Sharded docs for Game SM agent story creation
285
+
286
+ Resulting Unity Project Folder Structure:
287
+
288
+ - `docs/game-design/` - Broken down game design sections
289
+ - `docs/game-architecture/` - Broken down Unity architecture sections
290
+ - `docs/game-stories/` - Generated game development stories
291
+
292
+ 3. **Game Development Cycle** (Sequential, one game story at a time):
293
+
294
+ **CRITICAL CONTEXT MANAGEMENT for Unity Development**:
295
+ - **Context windows matter!** Always use fresh, clean context windows
296
+ - **Model selection matters!** Use most powerful thinking model for Game SM story creation
297
+ - **ALWAYS start new chat between Game SM, Game Dev, and QA work**
298
+
299
+ **Step 1 - Game Story Creation**:
300
+ - **NEW CLEAN CHAT** → Select powerful model → `/bmad2du/game-sm` → `*draft`
301
+ - Game SM executes create-game-story task using `game-story-tmpl`
302
+ - Review generated story in `docs/game-stories/`
303
+ - Update status from "Draft" to "Approved"
304
+
305
+ **Step 2 - Unity Game Story Implementation**:
306
+ - **NEW CLEAN CHAT** → `/bmad2du/game-developer`
307
+ - Agent asks which game story to implement
308
+ - Include story file content to save game dev agent lookup time
309
+ - Game Dev follows tasks/subtasks, marking completion
310
+ - Game Dev maintains File List of all Unity/C# changes
311
+ - Game Dev marks story as "Review" when complete with all Unity tests passing
312
+
313
+ **Step 3 - Game QA Review**:
314
+ - **NEW CLEAN CHAT** → Use core `@qa` agent → execute review-story task
315
+ - QA performs senior Unity developer code review
316
+ - QA can refactor and improve Unity code directly
317
+ - QA appends results to story's QA Results section
318
+ - If approved: Status → "Done"
319
+ - If changes needed: Status stays "Review" with unchecked items for game dev
320
+
321
+ **Step 4 - Repeat**: Continue Game SM → Game Dev → QA cycle until all game feature stories complete
322
+
323
+ **Important**: Only 1 game story in progress at a time, worked sequentially until all game feature stories complete.
324
+
325
+ ### Game Story Status Tracking Workflow
326
+
327
+ Game stories progress through defined statuses:
328
+
329
+ - **Draft** → **Approved** → **InProgress** → **Done**
330
+
331
+ Each status change requires user verification and approval before proceeding.
332
+
333
+ ### Game Development Workflow Types
334
+
335
+ #### Greenfield Game Development
336
+
337
+ - Game concept brainstorming and mechanics design
338
+ - Game design requirements and feature definition
339
+ - Unity system architecture and technical design
340
+ - Game development execution
341
+ - Game testing, performance optimization, and deployment
342
+
343
+ #### Brownfield Game Enhancement (Existing Unity Projects)
344
+
345
+ **Key Concept**: Brownfield game development requires comprehensive documentation of your existing Unity project for AI agents to understand game mechanics, Unity patterns, and technical constraints.
346
+
347
+ **Brownfield Game Enhancement Workflow**:
348
+
349
+ Since this expansion pack doesn't include specific brownfield templates, you'll adapt the existing templates:
350
+
351
+ 1. **Upload Unity project to Web UI** (GitHub URL, files, or zip)
352
+ 2. **Create adapted Game Design Document**: `/bmad2du/game-designer` - Modify `game-design-doc-tmpl` to include:
353
+ - Analysis of existing game systems
354
+ - Integration points for new features
355
+ - Compatibility requirements
356
+ - Risk assessment for changes
357
+
358
+ 3. **Game Architecture Planning**:
359
+ - Use `/bmad2du/game-architect` with `game-architecture-tmpl`
360
+ - Focus on how new features integrate with existing Unity systems
361
+ - Plan for gradual rollout and testing
362
+
363
+ 4. **Story Creation for Enhancements**:
364
+ - Use `/bmad2du/game-sm` with `*create-game-story`
365
+ - Stories should explicitly reference existing code to modify
366
+ - Include integration testing requirements
367
+
368
+ **When to Use Each Game Development Approach**:
369
+
370
+ **Full Game Enhancement Workflow** (Recommended for):
371
+
372
+ - Major game feature additions
373
+ - Game system modernization
374
+ - Complex Unity integrations
375
+ - Multiple related gameplay changes
376
+
377
+ **Quick Story Creation** (Use when):
378
+
379
+ - Single, focused game enhancement
380
+ - Isolated gameplay fixes
381
+ - Small feature additions
382
+ - Well-documented existing Unity game
383
+
384
+ **Critical Success Factors for Game Development**:
385
+
386
+ 1. **Game Documentation First**: Always document existing code thoroughly before making changes
387
+ 2. **Unity Context Matters**: Provide agents access to relevant Unity scripts and game systems
388
+ 3. **Gameplay Integration Focus**: Emphasize compatibility and non-breaking changes to game mechanics
389
+ 4. **Incremental Approach**: Plan for gradual rollout and extensive game testing
390
+
391
+ ## Document Creation Best Practices for Game Development
392
+
393
+ ### Required File Naming for Game Framework Integration
394
+
395
+ - `docs/game-design-doc.md` - Game Design Document
396
+ - `docs/game-architecture.md` - Unity System Architecture Document
397
+
398
+ **Why These Names Matter for Game Development**:
399
+
400
+ - Game agents automatically reference these files during Unity development
401
+ - Game sharding tasks expect these specific filenames
402
+ - Game workflow automation depends on standard naming
403
+
404
+ ### Cost-Effective Game Document Creation Workflow
405
+
406
+ **Recommended for Large Game Documents (Game Design Document, Game Architecture):**
407
+
408
+ 1. **Use Web UI**: Create game documents in web interface for cost efficiency
409
+ 2. **Copy Final Output**: Save complete markdown to your Unity project
410
+ 3. **Standard Names**: Save as `docs/game-design-doc.md` and `docs/game-architecture.md`
411
+ 4. **Switch to Unity IDE**: Use IDE agents for Unity development and smaller game documents
412
+
413
+ ### Game Document Sharding
414
+
415
+ Game templates with Level 2 headings (`##`) can be automatically sharded:
416
+
417
+ **Original Game Design Document**:
418
+
419
+ ```markdown
420
+ ## Core Gameplay Mechanics
421
+
422
+ ## Player Progression System
423
+
424
+ ## Level Design Framework
425
+
426
+ ## Technical Requirements
427
+ ```
428
+
429
+ **After Sharding**:
430
+
431
+ - `docs/game-design/core-gameplay-mechanics.md`
432
+ - `docs/game-design/player-progression-system.md`
433
+ - `docs/game-design/level-design-framework.md`
434
+ - `docs/game-design/technical-requirements.md`
435
+
436
+ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic game document sharding.
437
+
438
+ ## Game Agent System
439
+
440
+ ### Core Game Development Team
441
+
442
+ | Agent | Role | Primary Functions | When to Use |
443
+ | ---------------- | ----------------- | ------------------------------------------- | ------------------------------------------- |
444
+ | `game-designer` | Game Designer | Game mechanics, creative design, GDD | Game concept, mechanics, creative direction |
445
+ | `game-developer` | Unity Developer | C# implementation, Unity optimization | All Unity development tasks |
446
+ | `game-sm` | Game Scrum Master | Game story creation, sprint planning | Game project management, workflow |
447
+ | `game-architect` | Game Architect | Unity system design, technical architecture | Complex Unity systems, performance planning |
448
+
449
+ **Note**: For QA and other roles, use the core BMad agents (e.g., `@qa` from bmad-core).
450
+
451
+ ### Game Agent Interaction Commands
452
+
453
+ #### IDE-Specific Syntax for Game Development
454
+
455
+ **Game Agent Loading by IDE**:
456
+
457
+ - **Claude Code**: `/bmad2du/game-designer`, `/bmad2du/game-developer`, `/bmad2du/game-sm`, `/bmad2du/game-architect`
458
+ - **Cursor**: `@bmad2du/game-designer`, `@bmad2du/game-developer`, `@bmad2du/game-sm`, `@bmad2du/game-architect`
459
+ - **Windsurf**: `/bmad2du/game-designer`, `/bmad2du/game-developer`, `/bmad2du/game-sm`, `/bmad2du/game-architect`
460
+ - **Trae**: `@bmad2du/game-designer`, `@bmad2du/game-developer`, `@bmad2du/game-sm`, `@bmad2du/game-architect`
461
+ - **Roo Code**: Select mode from mode selector with bmad2du prefix
462
+ - **GitHub Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select the appropriate game agent.
463
+
464
+ **Common Game Development Task Commands**:
465
+
466
+ - `*help` - Show available game development commands
467
+ - `*status` - Show current game development context/progress
468
+ - `*exit` - Exit the game agent mode
469
+ - `*game-design-brainstorming` - Brainstorm game concepts and mechanics (Game Designer)
470
+ - `*draft` - Create next game development story (Game SM agent)
471
+ - `*validate-game-story` - Validate a game story implementation (with core QA agent)
472
+ - `*correct-course-game` - Course correction for game development issues
473
+ - `*advanced-elicitation` - Deep dive into game requirements
474
+
475
+ **In Web UI (after building with unity-2d-game-team)**:
476
+
477
+ ```text
478
+ /bmad2du/game-designer - Access game designer agent
479
+ /bmad2du/game-architect - Access game architect agent
480
+ /bmad2du/game-developer - Access game developer agent
481
+ /bmad2du/game-sm - Access game scrum master agent
482
+ /help - Show available game development commands
483
+ /switch agent-name - Change active agent (if orchestrator available)
484
+ ```
485
+
486
+ ## Game-Specific Development Guidelines
487
+
488
+ ### Unity + C# Standards
489
+
490
+ **Project Structure:**
491
+
492
+ ```text
493
+ UnityProject/
494
+ ├── Assets/
495
+ │ └── _Project
496
+ │ ├── Scenes/ # Game scenes (Boot, Menu, Game, etc.)
497
+ │ ├── Scripts/ # C# scripts
498
+ │ │ ├── Editor/ # Editor-specific scripts
499
+ │ │ └── Runtime/ # Runtime scripts
500
+ │ ├── Prefabs/ # Reusable game objects
501
+ │ ├── Art/ # Art assets (sprites, models, etc.)
502
+ │ ├── Audio/ # Audio assets
503
+ │ ├── Data/ # ScriptableObjects and other data
504
+ │ └── Tests/ # Unity Test Framework tests
505
+ │ ├── EditMode/
506
+ │ └── PlayMode/
507
+ ├── Packages/ # Package Manager manifest
508
+ └── ProjectSettings/ # Unity project settings
509
+ ```
510
+
511
+ **Performance Requirements:**
512
+
513
+ - Maintain stable frame rate on target devices
514
+ - Memory usage under specified limits per level
515
+ - Loading times under 3 seconds for levels
516
+ - Smooth animation and responsive controls
517
+
518
+ **Code Quality:**
519
+
520
+ - C# best practices compliance
521
+ - Component-based architecture (SOLID principles)
522
+ - Efficient use of the MonoBehaviour lifecycle
523
+ - Error handling and graceful degradation
524
+
525
+ ### Game Development Story Structure
526
+
527
+ **Story Requirements:**
528
+
529
+ - Clear reference to Game Design Document section
530
+ - Specific acceptance criteria for game functionality
531
+ - Technical implementation details for Unity and C#
532
+ - Performance requirements and optimization considerations
533
+ - Testing requirements including gameplay validation
534
+
535
+ **Story Categories:**
536
+
537
+ - **Core Mechanics**: Fundamental gameplay systems
538
+ - **Level Content**: Individual levels and content implementation
539
+ - **UI/UX**: User interface and player experience features
540
+ - **Performance**: Optimization and technical improvements
541
+ - **Polish**: Visual effects, audio, and game feel enhancements
542
+
543
+ ### Quality Assurance for Games
544
+
545
+ **Testing Approach:**
546
+
547
+ - Unit tests for C# logic (EditMode tests)
548
+ - Integration tests for game systems (PlayMode tests)
549
+ - Performance benchmarking and profiling with Unity Profiler
550
+ - Gameplay testing and balance validation
551
+ - Cross-platform compatibility testing
552
+
553
+ **Performance Monitoring:**
554
+
555
+ - Frame rate consistency tracking
556
+ - Memory usage monitoring
557
+ - Asset loading performance
558
+ - Input responsiveness validation
559
+ - Battery usage optimization (mobile)
560
+
561
+ ## Usage Patterns and Best Practices for Game Development
562
+
563
+ ### Environment-Specific Usage for Games
564
+
565
+ **Web UI Best For Game Development**:
566
+
567
+ - Initial game design and creative brainstorming phases
568
+ - Cost-effective large game document creation
569
+ - Game agent consultation and mechanics refinement
570
+ - Multi-agent game workflows with orchestrator
571
+
572
+ **Unity IDE Best For Game Development**:
573
+
574
+ - Active Unity development and C# implementation
575
+ - Unity asset operations and project integration
576
+ - Game story management and development cycles
577
+ - Unity testing, profiling, and debugging
578
+
579
+ ### Quality Assurance for Game Development
580
+
581
+ - Use appropriate game agents for specialized tasks
582
+ - Follow Agile ceremonies and game review processes
583
+ - Use game-specific checklists:
584
+ - `game-architect-checklist` for architecture reviews
585
+ - `game-change-checklist` for change validation
586
+ - `game-design-checklist` for design reviews
587
+ - `game-story-dod-checklist` for story quality
588
+ - Regular validation with game templates
589
+
590
+ ### Performance Optimization for Game Development
591
+
592
+ - Use specific game agents vs. `bmad-master` for focused Unity tasks
593
+ - Choose appropriate game team size for project needs
594
+ - Leverage game-specific technical preferences for consistency
595
+ - Regular context management and cache clearing for Unity workflows
596
+
597
+ ## Game Development Team Roles
598
+
599
+ ### Game Designer
600
+
601
+ - **Primary Focus**: Game mechanics, player experience, design documentation
602
+ - **Key Outputs**: Game Brief, Game Design Document, Level Design Framework
603
+ - **Specialties**: Brainstorming, game balance, player psychology, creative direction
604
+
605
+ ### Game Developer
606
+
607
+ - **Primary Focus**: Unity implementation, C# excellence, performance optimization
608
+ - **Key Outputs**: Working game features, optimized Unity code, technical architecture
609
+ - **Specialties**: C#/Unity, performance optimization, cross-platform development
610
+
611
+ ### Game Scrum Master
612
+
613
+ - **Primary Focus**: Game story creation, development planning, agile process
614
+ - **Key Outputs**: Detailed implementation stories, sprint planning, quality assurance
615
+ - **Specialties**: Story breakdown, developer handoffs, process optimization
616
+
617
+ ## Platform-Specific Considerations
618
+
619
+ ### Cross-Platform Development
620
+
621
+ - Abstract input using the new Input System
622
+ - Use platform-dependent compilation for specific logic
623
+ - Test on all target platforms regularly
624
+ - Optimize for different screen resolutions and aspect ratios
625
+
626
+ ### Mobile Optimization
627
+
628
+ - Touch gesture support and responsive controls
629
+ - Battery usage optimization
630
+ - Performance scaling for different device capabilities
631
+ - App store compliance and packaging
632
+
633
+ ### Performance Targets
634
+
635
+ - **PC/Console**: 60+ FPS at target resolution
636
+ - **Mobile**: 60 FPS on mid-range devices, 30 FPS minimum on low-end
637
+ - **Loading**: Initial load under 5 seconds, scene transitions under 2 seconds
638
+ - **Memory**: Within platform-specific memory budgets
639
+
640
+ ## Success Metrics for Game Development
641
+
642
+ ### Technical Metrics
643
+
644
+ - Frame rate consistency (>90% of time at target FPS)
645
+ - Memory usage within budgets
646
+ - Loading time targets met
647
+ - Zero critical bugs in core gameplay systems
648
+
649
+ ### Player Experience Metrics
650
+
651
+ - Tutorial completion rate >80%
652
+ - Level completion rates appropriate for difficulty curve
653
+ - Average session length meets design targets
654
+ - Player retention and engagement metrics
655
+
656
+ ### Development Process Metrics
657
+
658
+ - Story completion within estimated timeframes
659
+ - Code quality metrics (test coverage, code analysis)
660
+ - Documentation completeness and accuracy
661
+ - Team velocity and delivery consistency
662
+
663
+ ## Common Unity Development Patterns
664
+
665
+ ### Scene Management
666
+
667
+ - Use a loading scene for asynchronous loading of game scenes
668
+ - Use additive scene loading for large levels or streaming
669
+ - Manage scenes with a dedicated SceneManager class
670
+
671
+ ### Game State Management
672
+
673
+ - Use ScriptableObjects to store shared game state
674
+ - Implement a finite state machine (FSM) for complex behaviors
675
+ - Use a GameManager singleton for global state management
676
+
677
+ ### Input Handling
678
+
679
+ - Use the new Input System for robust, cross-platform input
680
+ - Create Action Maps for different input contexts (e.g., menu, gameplay)
681
+ - Use PlayerInput component for easy player input handling
682
+
683
+ ### Performance Optimization
684
+
685
+ - Object pooling for frequently instantiated objects (e.g., bullets, enemies)
686
+ - Use the Unity Profiler to identify performance bottlenecks
687
+ - Optimize physics settings and collision detection
688
+ - Use LOD (Level of Detail) for complex models
689
+
690
+ ## Success Tips for Game Development
691
+
692
+ - **Use Gemini for game design planning** - The team-game-dev bundle provides collaborative game expertise
693
+ - **Use bmad-master for game document organization** - Sharding creates manageable game feature chunks
694
+ - **Follow the Game SM → Game Dev cycle religiously** - This ensures systematic game progress
695
+ - **Keep conversations focused** - One game agent, one Unity task per conversation
696
+ - **Review everything** - Always review and approve before marking game features complete
697
+
698
+ ## Contributing to BMad-Method Game Development
699
+
700
+ ### Game Development Contribution Guidelines
701
+
702
+ For full details, see `CONTRIBUTING.md`. Key points for game development:
703
+
704
+ **Fork Workflow for Game Development**:
705
+
706
+ 1. Fork the repository
707
+ 2. Create game development feature branches
708
+ 3. Submit PRs to `next` branch (default) or `main` for critical game development fixes only
709
+ 4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
710
+ 5. One game feature/fix per PR
711
+
712
+ **Game Development PR Requirements**:
713
+
714
+ - Clear descriptions (max 200 words) with What/Why/How/Testing for game features
715
+ - Use conventional commits (feat:, fix:, docs:) with game context
716
+ - Atomic commits - one logical game change per commit
717
+ - Must align with game development guiding principles
718
+
719
+ **Game Development Core Principles**:
720
+
721
+ - **Game Dev Agents Must Be Lean**: Minimize dependencies, save context for Unity code
722
+ - **Natural Language First**: Everything in markdown, no code in game development core
723
+ - **Core vs Game Expansion Packs**: Core for universal needs, game packs for Unity specialization
724
+ - **Game Design Philosophy**: "Game dev agents code Unity, game planning agents plan gameplay"
725
+
726
+ ## Game Development Expansion Pack System
727
+
728
+ ### This Game Development Expansion Pack
729
+
730
+ This 2D Unity Game Development expansion pack extends BMad-Method beyond traditional software development into professional game development. It provides specialized game agent teams, Unity templates, and game workflows while keeping the core framework lean and focused on general development.
731
+
732
+ ### Why Use This Game Development Expansion Pack?
733
+
734
+ 1. **Keep Core Lean**: Game dev agents maintain maximum context for Unity coding
735
+ 2. **Game Domain Expertise**: Deep, specialized Unity and game development knowledge
736
+ 3. **Community Game Innovation**: Game developers can contribute and share Unity patterns
737
+ 4. **Modular Game Design**: Install only game development capabilities you need
738
+
739
+ ### Using This Game Development Expansion Pack
740
+
741
+ 1. **Install via CLI**:
742
+
743
+ ```bash
744
+ npx bmad-method install
745
+ # Select "Install game development expansion pack" option
746
+ ```
747
+
748
+ 2. **Use in Your Game Workflow**: Installed game agents integrate seamlessly with existing BMad agents
749
+
750
+ ### Creating Custom Game Development Extensions
751
+
752
+ Use the **expansion-creator** pack to build your own game development extensions:
753
+
754
+ 1. **Define Game Domain**: What game development expertise are you capturing?
755
+ 2. **Design Game Agents**: Create specialized game roles with clear Unity boundaries
756
+ 3. **Build Game Resources**: Tasks, templates, checklists for your game domain
757
+ 4. **Test & Share**: Validate with real Unity use cases, share with game development community
758
+
759
+ **Key Principle**: Game development expansion packs democratize game development expertise by making specialized Unity and game design knowledge accessible through AI agents.
760
+
761
+ ## Getting Help with Game Development
762
+
763
+ - **Commands**: Use `*/*help` in any environment to see available game development commands
764
+ - **Game Agent Switching**: Use `*/*switch game-agent-name` with orchestrator for role changes
765
+ - **Game Documentation**: Check `docs/` folder for Unity project-specific context
766
+ - **Game Community**: Discord and GitHub resources available for game development support
767
+ - **Game Contributing**: See `CONTRIBUTING.md` for full game development guidelines
768
+
769
+ This knowledge base provides the foundation for effective game development using the BMad-Method framework with specialized focus on 2D game creation using Unity and C#.