@zeyue0329/xiaoma-cli 1.0.8 → 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 (326) 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 +390 -150
  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 -117
  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 -699
  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/XiaoMa-Web/345/244/232/346/231/272/350/203/275/344/275/2230-1/351/241/271/347/233/256/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -977
  301. package/XiaoMa-Web/347/216/260/346/234/211/351/241/271/347/233/256/351/234/200/346/261/202/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -873
  302. package/XiaoMa-Web/347/272/257/345/211/215/347/253/257/351/241/271/347/233/256Claude-Code/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -372
  303. package/XiaoMa-Web/351/241/271/347/233/256/346/200/273/347/273/223/346/212/245/345/221/212.md +0 -310
  304. package/dist/agents/analyst.txt +0 -2882
  305. package/dist/agents/architect.txt +0 -3543
  306. package/dist/agents/dev-cn.txt +0 -428
  307. package/dist/agents/dev.txt +0 -428
  308. package/dist/agents/pm.txt +0 -2229
  309. package/dist/agents/po.txt +0 -1364
  310. package/dist/agents/qa.txt +0 -386
  311. package/dist/agents/sm.txt +0 -668
  312. package/dist/agents/ux-expert.txt +0 -701
  313. package/dist/agents/xiaoma-master.txt +0 -8756
  314. package/dist/agents/xiaoma-orchestrator.txt +0 -1490
  315. package/dist/teams/team-all.txt +0 -11062
  316. package/dist/teams/team-fullstack.txt +0 -10392
  317. package/dist/teams/team-ide-minimal.txt +0 -3507
  318. package/dist/teams/team-no-ui.txt +0 -8951
  319. package/docs/quick-start.md +0 -179
  320. package/tools/bmad-npx-wrapper.js +0 -39
  321. package/tools/installer/package-lock.json +0 -704
  322. package/tools/semantic-release-sync-installer.js +0 -30
  323. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  324. package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
  325. package/xiaoma-core/user-guide.md +0 -251
  326. package/xiaoma-core/working-in-the-brownfield.md +0 -364
@@ -0,0 +1,485 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: level-design-doc-template-v2
4
+ name: Level Design Document
5
+ version: 2.1
6
+ output:
7
+ format: markdown
8
+ filename: docs/level-design-document.md
9
+ title: "{{game_title}} Level Design Document"
10
+
11
+ workflow:
12
+ mode: interactive
13
+
14
+ sections:
15
+ - id: initial-setup
16
+ instruction: |
17
+ This template creates comprehensive level design documentation that guides both content creation and technical implementation. This document should provide enough detail for developers to create level loading systems and for designers to create specific levels.
18
+
19
+ If available, review: Game Design Document (GDD), Game Architecture Document. This document should align with the game mechanics and technical systems defined in those documents.
20
+
21
+ - id: introduction
22
+ title: Introduction
23
+ instruction: Establish the purpose and scope of level design for this game
24
+ content: |
25
+ This document defines the level design framework for {{game_title}}, providing guidelines for creating engaging, balanced levels that support the core gameplay mechanics defined in the Game Design Document.
26
+
27
+ This framework ensures consistency across all levels while providing flexibility for creative level design within established technical and design constraints.
28
+ sections:
29
+ - id: change-log
30
+ title: Change Log
31
+ instruction: Track document versions and changes
32
+ type: table
33
+ template: |
34
+ | Date | Version | Description | Author |
35
+ | :--- | :------ | :---------- | :----- |
36
+
37
+ - id: level-design-philosophy
38
+ title: Level Design Philosophy
39
+ instruction: Establish the overall approach to level design based on the game's core pillars and mechanics. Apply `tasks#advanced-elicitation` after presenting this section.
40
+ sections:
41
+ - id: design-principles
42
+ title: Design Principles
43
+ instruction: Define 3-5 core principles that guide all level design decisions
44
+ type: numbered-list
45
+ template: |
46
+ **{{principle_name}}** - {{description}}
47
+ - id: player-experience-goals
48
+ title: Player Experience Goals
49
+ instruction: Define what players should feel and learn in each level category
50
+ template: |
51
+ **Tutorial Levels:** {{experience_description}}
52
+ **Standard Levels:** {{experience_description}}
53
+ **Challenge Levels:** {{experience_description}}
54
+ **Boss Levels:** {{experience_description}}
55
+ - id: level-flow-framework
56
+ title: Level Flow Framework
57
+ instruction: Define the standard structure for level progression
58
+ template: |
59
+ **Introduction Phase:** {{duration}} - {{purpose}}
60
+ **Development Phase:** {{duration}} - {{purpose}}
61
+ **Climax Phase:** {{duration}} - {{purpose}}
62
+ **Resolution Phase:** {{duration}} - {{purpose}}
63
+
64
+ - id: level-categories
65
+ title: Level Categories
66
+ instruction: Define different types of levels based on the GDD requirements. Each category should be specific enough for implementation.
67
+ repeatable: true
68
+ sections:
69
+ - id: level-category
70
+ title: "{{category_name}} Levels"
71
+ template: |
72
+ **Purpose:** {{gameplay_purpose}}
73
+
74
+ **Target Duration:** {{min_time}} - {{max_time}} minutes
75
+
76
+ **Difficulty Range:** {{difficulty_scale}}
77
+
78
+ **Key Mechanics Featured:**
79
+
80
+ - {{mechanic_1}} - {{usage_description}}
81
+ - {{mechanic_2}} - {{usage_description}}
82
+
83
+ **Player Objectives:**
84
+
85
+ - Primary: {{primary_objective}}
86
+ - Secondary: {{secondary_objective}}
87
+ - Hidden: {{secret_objective}}
88
+
89
+ **Success Criteria:**
90
+
91
+ - {{completion_requirement_1}}
92
+ - {{completion_requirement_2}}
93
+
94
+ **Technical Requirements:**
95
+
96
+ - Maximum entities: {{entity_limit}}
97
+ - Performance target: {{fps_target}} FPS
98
+ - Memory budget: {{memory_limit}}MB
99
+ - Asset requirements: {{asset_needs}}
100
+
101
+ - id: level-progression-system
102
+ title: Level Progression System
103
+ instruction: Define how players move through levels and how difficulty scales
104
+ sections:
105
+ - id: world-structure
106
+ title: World Structure
107
+ instruction: Based on GDD requirements, define the overall level organization
108
+ template: |
109
+ **Organization Type:** {{linear|hub_world|open_world}}
110
+
111
+ **Total Level Count:** {{number}}
112
+
113
+ **World Breakdown:**
114
+
115
+ - World 1: {{level_count}} levels - {{theme}} - {{difficulty_range}}
116
+ - World 2: {{level_count}} levels - {{theme}} - {{difficulty_range}}
117
+ - World 3: {{level_count}} levels - {{theme}} - {{difficulty_range}}
118
+ - id: difficulty-progression
119
+ title: Difficulty Progression
120
+ instruction: Define how challenge increases across the game
121
+ sections:
122
+ - id: progression-curve
123
+ title: Progression Curve
124
+ type: code
125
+ language: text
126
+ template: |
127
+ Difficulty
128
+ ^ ___/```
129
+ | /
130
+ | / ___/```
131
+ | / /
132
+ | / /
133
+ |/ /
134
+ +-----------> Level Number
135
+ Tutorial Early Mid Late
136
+ - id: scaling-parameters
137
+ title: Scaling Parameters
138
+ type: bullet-list
139
+ template: |
140
+ - Enemy count: {{start_count}} → {{end_count}}
141
+ - Enemy difficulty: {{start_diff}} → {{end_diff}}
142
+ - Level complexity: {{start_complex}} → {{end_complex}}
143
+ - Time pressure: {{start_time}} → {{end_time}}
144
+ - id: unlock-requirements
145
+ title: Unlock Requirements
146
+ instruction: Define how players access new levels
147
+ template: |
148
+ **Progression Gates:**
149
+
150
+ - Linear progression: Complete previous level
151
+ - Star requirements: {{star_count}} stars to unlock
152
+ - Skill gates: Demonstrate {{skill_requirement}}
153
+ - Optional content: {{unlock_condition}}
154
+
155
+ - id: level-design-components
156
+ title: Level Design Components
157
+ instruction: Define the building blocks used to create levels
158
+ sections:
159
+ - id: environmental-elements
160
+ title: Environmental Elements
161
+ instruction: Define all environmental components that can be used in levels
162
+ template: |
163
+ **Terrain Types:**
164
+
165
+ - {{terrain_1}}: {{properties_and_usage}}
166
+ - {{terrain_2}}: {{properties_and_usage}}
167
+
168
+ **Interactive Objects:**
169
+
170
+ - {{object_1}}: {{behavior_and_purpose}}
171
+ - {{object_2}}: {{behavior_and_purpose}}
172
+
173
+ **Hazards and Obstacles:**
174
+
175
+ - {{hazard_1}}: {{damage_and_behavior}}
176
+ - {{hazard_2}}: {{damage_and_behavior}}
177
+ - id: collectibles-rewards
178
+ title: Collectibles and Rewards
179
+ instruction: Define all collectible items and their placement rules
180
+ template: |
181
+ **Collectible Types:**
182
+
183
+ - {{collectible_1}}: {{value_and_purpose}}
184
+ - {{collectible_2}}: {{value_and_purpose}}
185
+
186
+ **Placement Guidelines:**
187
+
188
+ - Mandatory collectibles: {{placement_rules}}
189
+ - Optional collectibles: {{placement_rules}}
190
+ - Secret collectibles: {{placement_rules}}
191
+
192
+ **Reward Distribution:**
193
+
194
+ - Easy to find: {{percentage}}%
195
+ - Moderate challenge: {{percentage}}%
196
+ - High skill required: {{percentage}}%
197
+ - id: enemy-placement-framework
198
+ title: Enemy Placement Framework
199
+ instruction: Define how enemies should be placed and balanced in levels
200
+ template: |
201
+ **Enemy Categories:**
202
+
203
+ - {{enemy_type_1}}: {{behavior_and_usage}}
204
+ - {{enemy_type_2}}: {{behavior_and_usage}}
205
+
206
+ **Placement Principles:**
207
+
208
+ - Introduction encounters: {{guideline}}
209
+ - Standard encounters: {{guideline}}
210
+ - Challenge encounters: {{guideline}}
211
+
212
+ **Difficulty Scaling:**
213
+
214
+ - Enemy count progression: {{scaling_rule}}
215
+ - Enemy type introduction: {{pacing_rule}}
216
+ - Encounter complexity: {{complexity_rule}}
217
+
218
+ - id: level-creation-guidelines
219
+ title: Level Creation Guidelines
220
+ instruction: Provide specific guidelines for creating individual levels
221
+ sections:
222
+ - id: level-layout-principles
223
+ title: Level Layout Principles
224
+ template: |
225
+ **Spatial Design:**
226
+
227
+ - Grid size: {{grid_dimensions}}
228
+ - Minimum path width: {{width_units}}
229
+ - Maximum vertical distance: {{height_units}}
230
+ - Safe zones placement: {{safety_guidelines}}
231
+
232
+ **Navigation Design:**
233
+
234
+ - Clear path indication: {{visual_cues}}
235
+ - Landmark placement: {{landmark_rules}}
236
+ - Dead end avoidance: {{dead_end_policy}}
237
+ - Multiple path options: {{branching_rules}}
238
+ - id: pacing-and-flow
239
+ title: Pacing and Flow
240
+ instruction: Define how to control the rhythm and pace of gameplay within levels
241
+ template: |
242
+ **Action Sequences:**
243
+
244
+ - High intensity duration: {{max_duration}}
245
+ - Rest period requirement: {{min_rest_time}}
246
+ - Intensity variation: {{pacing_pattern}}
247
+
248
+ **Learning Sequences:**
249
+
250
+ - New mechanic introduction: {{teaching_method}}
251
+ - Practice opportunity: {{practice_duration}}
252
+ - Skill application: {{application_context}}
253
+ - id: challenge-design
254
+ title: Challenge Design
255
+ instruction: Define how to create appropriate challenges for each level type
256
+ template: |
257
+ **Challenge Types:**
258
+
259
+ - Execution challenges: {{skill_requirements}}
260
+ - Puzzle challenges: {{complexity_guidelines}}
261
+ - Time challenges: {{time_pressure_rules}}
262
+ - Resource challenges: {{resource_management}}
263
+
264
+ **Difficulty Calibration:**
265
+
266
+ - Skill check frequency: {{frequency_guidelines}}
267
+ - Failure recovery: {{retry_mechanics}}
268
+ - Hint system integration: {{help_system}}
269
+
270
+ - id: technical-implementation
271
+ title: Technical Implementation
272
+ instruction: Define technical requirements for level implementation
273
+ sections:
274
+ - id: level-data-structure
275
+ title: Level Data Structure
276
+ instruction: Define how level data should be structured for implementation
277
+ template: |
278
+ **Level File Format:**
279
+
280
+ - Data format: {{json|yaml|custom}}
281
+ - File naming: `level_{{world}}_{{number}}.{{extension}}`
282
+ - Data organization: {{structure_description}}
283
+ sections:
284
+ - id: required-data-fields
285
+ title: Required Data Fields
286
+ type: code
287
+ language: json
288
+ template: |
289
+ {
290
+ "levelId": "{{unique_identifier}}",
291
+ "worldId": "{{world_identifier}}",
292
+ "difficulty": {{difficulty_value}},
293
+ "targetTime": {{completion_time_seconds}},
294
+ "objectives": {
295
+ "primary": "{{primary_objective}}",
296
+ "secondary": ["{{secondary_objectives}}"],
297
+ "hidden": ["{{secret_objectives}}"]
298
+ },
299
+ "layout": {
300
+ "width": {{grid_width}},
301
+ "height": {{grid_height}},
302
+ "tilemap": "{{tilemap_reference}}"
303
+ },
304
+ "entities": [
305
+ {
306
+ "type": "{{entity_type}}",
307
+ "position": {"x": {{x}}, "y": {{y}}},
308
+ "properties": {{entity_properties}}
309
+ }
310
+ ]
311
+ }
312
+ - id: asset-integration
313
+ title: Asset Integration
314
+ instruction: Define how level assets are organized and loaded
315
+ template: |
316
+ **Tilemap Requirements:**
317
+
318
+ - Tile size: {{tile_dimensions}}px
319
+ - Tileset organization: {{tileset_structure}}
320
+ - Layer organization: {{layer_system}}
321
+ - Collision data: {{collision_format}}
322
+
323
+ **Audio Integration:**
324
+
325
+ - Background music: {{music_requirements}}
326
+ - Ambient sounds: {{ambient_system}}
327
+ - Dynamic audio: {{dynamic_audio_rules}}
328
+ - id: performance-optimization
329
+ title: Performance Optimization
330
+ instruction: Define performance requirements for level systems
331
+ template: |
332
+ **Entity Limits:**
333
+
334
+ - Maximum active entities: {{entity_limit}}
335
+ - Maximum particles: {{particle_limit}}
336
+ - Maximum audio sources: {{audio_limit}}
337
+
338
+ **Memory Management:**
339
+
340
+ - Texture memory budget: {{texture_memory}}MB
341
+ - Audio memory budget: {{audio_memory}}MB
342
+ - Level loading time: <{{load_time}}s
343
+
344
+ **Culling and LOD:**
345
+
346
+ - Off-screen culling: {{culling_distance}}
347
+ - Level-of-detail rules: {{lod_system}}
348
+ - Asset streaming: {{streaming_requirements}}
349
+
350
+ - id: level-testing-framework
351
+ title: Level Testing Framework
352
+ instruction: Define how levels should be tested and validated
353
+ sections:
354
+ - id: automated-testing
355
+ title: Automated Testing
356
+ template: |
357
+ **Performance Testing:**
358
+
359
+ - Frame rate validation: Maintain {{fps_target}} FPS
360
+ - Memory usage monitoring: Stay under {{memory_limit}}MB
361
+ - Loading time verification: Complete in <{{load_time}}s
362
+
363
+ **Gameplay Testing:**
364
+
365
+ - Completion path validation: All objectives achievable
366
+ - Collectible accessibility: All items reachable
367
+ - Softlock prevention: No unwinnable states
368
+ - id: manual-testing-protocol
369
+ title: Manual Testing Protocol
370
+ sections:
371
+ - id: playtesting-checklist
372
+ title: Playtesting Checklist
373
+ type: checklist
374
+ items:
375
+ - Level completes within target time range
376
+ - All mechanics function correctly
377
+ - Difficulty feels appropriate for level category
378
+ - Player guidance is clear and effective
379
+ - No exploits or sequence breaks (unless intended)
380
+ - id: player-experience-testing
381
+ title: Player Experience Testing
382
+ type: checklist
383
+ items:
384
+ - Tutorial levels teach effectively
385
+ - Challenge feels fair and rewarding
386
+ - Flow and pacing maintain engagement
387
+ - Audio and visual feedback support gameplay
388
+ - id: balance-validation
389
+ title: Balance Validation
390
+ template: |
391
+ **Metrics Collection:**
392
+
393
+ - Completion rate: Target {{completion_percentage}}%
394
+ - Average completion time: {{target_time}} ± {{variance}}
395
+ - Death count per level: <{{max_deaths}}
396
+ - Collectible discovery rate: {{discovery_percentage}}%
397
+
398
+ **Iteration Guidelines:**
399
+
400
+ - Adjustment criteria: {{criteria_for_changes}}
401
+ - Testing sample size: {{minimum_testers}}
402
+ - Validation period: {{testing_duration}}
403
+
404
+ - id: content-creation-pipeline
405
+ title: Content Creation Pipeline
406
+ instruction: Define the workflow for creating new levels
407
+ sections:
408
+ - id: design-phase
409
+ title: Design Phase
410
+ template: |
411
+ **Concept Development:**
412
+
413
+ 1. Define level purpose and goals
414
+ 2. Create rough layout sketch
415
+ 3. Identify key mechanics and challenges
416
+ 4. Estimate difficulty and duration
417
+
418
+ **Documentation Requirements:**
419
+
420
+ - Level design brief
421
+ - Layout diagrams
422
+ - Mechanic integration notes
423
+ - Asset requirement list
424
+ - id: implementation-phase
425
+ title: Implementation Phase
426
+ template: |
427
+ **Technical Implementation:**
428
+
429
+ 1. Create level data file
430
+ 2. Build tilemap and layout
431
+ 3. Place entities and objects
432
+ 4. Configure level logic and triggers
433
+ 5. Integrate audio and visual effects
434
+
435
+ **Quality Assurance:**
436
+
437
+ 1. Automated testing execution
438
+ 2. Internal playtesting
439
+ 3. Performance validation
440
+ 4. Bug fixing and polish
441
+ - id: integration-phase
442
+ title: Integration Phase
443
+ template: |
444
+ **Game Integration:**
445
+
446
+ 1. Level progression integration
447
+ 2. Save system compatibility
448
+ 3. Analytics integration
449
+ 4. Achievement system integration
450
+
451
+ **Final Validation:**
452
+
453
+ 1. Full game context testing
454
+ 2. Performance regression testing
455
+ 3. Platform compatibility verification
456
+ 4. Final approval and release
457
+
458
+ - id: success-metrics
459
+ title: Success Metrics
460
+ instruction: Define how to measure level design success
461
+ sections:
462
+ - id: player-engagement
463
+ title: Player Engagement
464
+ type: bullet-list
465
+ template: |
466
+ - Level completion rate: {{target_rate}}%
467
+ - Replay rate: {{replay_target}}%
468
+ - Time spent per level: {{engagement_time}}
469
+ - Player satisfaction scores: {{satisfaction_target}}/10
470
+ - id: technical-performance
471
+ title: Technical Performance
472
+ type: bullet-list
473
+ template: |
474
+ - Frame rate consistency: {{fps_consistency}}%
475
+ - Loading time compliance: {{load_compliance}}%
476
+ - Memory usage efficiency: {{memory_efficiency}}%
477
+ - Crash rate: <{{crash_threshold}}%
478
+ - id: design-quality
479
+ title: Design Quality
480
+ type: bullet-list
481
+ template: |
482
+ - Difficulty curve adherence: {{curve_accuracy}}
483
+ - Mechanic integration effectiveness: {{integration_score}}
484
+ - Player guidance clarity: {{guidance_score}}
485
+ - Content accessibility: {{accessibility_rate}}%
@@ -0,0 +1,184 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ workflow:
3
+ id: unity-game-dev-greenfield
4
+ name: Game Development - Greenfield Project (Unity)
5
+ description: Specialized workflow for creating 2D games from concept to implementation using Unity and C#. Guides teams through game concept development, design documentation, technical architecture, and story-driven development for professional game development.
6
+ type: greenfield
7
+ project_types:
8
+ - indie-game
9
+ - mobile-game
10
+ - web-game
11
+ - educational-game
12
+ - prototype-game
13
+ - game-jam
14
+ full_game_sequence:
15
+ - agent: game-designer
16
+ creates: game-brief.md
17
+ optional_steps:
18
+ - brainstorming_session
19
+ - game_research_prompt
20
+ - player_research
21
+ notes: "Start with brainstorming game concepts, then create comprehensive game brief. SAVE OUTPUT: Copy final game-brief.md to your project's docs/design/ folder."
22
+ - agent: game-designer
23
+ creates: game-design-doc.md
24
+ requires: game-brief.md
25
+ optional_steps:
26
+ - competitive_analysis
27
+ - technical_research
28
+ notes: "Create detailed Game Design Document using game-design-doc-tmpl. Defines all gameplay mechanics, progression, and technical requirements. SAVE OUTPUT: Copy final game-design-doc.md to your project's docs/design/ folder."
29
+ - agent: game-designer
30
+ creates: level-design-doc.md
31
+ requires: game-design-doc.md
32
+ optional_steps:
33
+ - level_prototyping
34
+ - difficulty_analysis
35
+ notes: "Create level design framework using level-design-doc-tmpl. Establishes content creation guidelines and performance requirements. SAVE OUTPUT: Copy final level-design-doc.md to your project's docs/design/ folder."
36
+ - agent: solution-architect
37
+ creates: game-architecture.md
38
+ requires:
39
+ - game-design-doc.md
40
+ - level-design-doc.md
41
+ optional_steps:
42
+ - technical_research_prompt
43
+ - performance_analysis
44
+ - platform_research
45
+ notes: "Create comprehensive technical architecture using game-architecture-tmpl. Defines Unity systems, performance optimization, and code structure. SAVE OUTPUT: Copy final game-architecture.md to your project's docs/architecture/ folder."
46
+ - agent: game-designer
47
+ validates: design_consistency
48
+ requires: all_design_documents
49
+ uses: game-design-checklist
50
+ notes: Validate all design documents for consistency, completeness, and implementability. May require updates to any design document.
51
+ - agent: various
52
+ updates: flagged_design_documents
53
+ condition: design_validation_issues
54
+ notes: If design validation finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder.
55
+ project_setup_guidance:
56
+ action: guide_game_project_structure
57
+ notes: Set up Unity project structure following game architecture document. Create Assets/ with subdirectories for Scenes, Scripts, Prefabs, etc.
58
+ workflow_end:
59
+ action: move_to_story_development
60
+ notes: All design artifacts complete. Begin story-driven development phase. Use Game Scrum Master to create implementation stories from design documents.
61
+ prototype_sequence:
62
+ - step: prototype_scope
63
+ action: assess_prototype_complexity
64
+ notes: First, assess if this needs full game design (use full_game_sequence) or can be a rapid prototype.
65
+ - agent: game-designer
66
+ creates: game-brief.md
67
+ optional_steps:
68
+ - quick_brainstorming
69
+ - concept_validation
70
+ notes: "Create focused game brief for prototype. Emphasize core mechanics and immediate playability. SAVE OUTPUT: Copy final game-brief.md to your project's docs/ folder."
71
+ - agent: game-designer
72
+ creates: prototype-design.md
73
+ uses: create-doc prototype-design OR create-game-story
74
+ requires: game-brief.md
75
+ notes: Create minimal design document or jump directly to implementation stories for rapid prototyping. Choose based on prototype complexity.
76
+ prototype_workflow_end:
77
+ action: move_to_rapid_implementation
78
+ notes: Prototype defined. Begin immediate implementation with Game Developer. Focus on core mechanics first, then iterate based on playtesting.
79
+ flow_diagram: |
80
+ ```mermaid
81
+ graph TD
82
+ A[Start: Game Development Project] --> B{Project Scope?}
83
+ B -->|Full Game/Production| C[game-designer: game-brief.md]
84
+ B -->|Prototype/Game Jam| D[game-designer: focused game-brief.md]
85
+
86
+ C --> E[game-designer: game-design-doc.md]
87
+ E --> F[game-designer: level-design-doc.md]
88
+ F --> G[solution-architect: game-architecture.md]
89
+ G --> H[game-designer: validate design consistency]
90
+ H --> I{Design validation issues?}
91
+ I -->|Yes| J[Return to relevant agent for fixes]
92
+ I -->|No| K[Set up game project structure]
93
+ J --> H
94
+ K --> L[Move to Story Development Phase]
95
+
96
+ D --> M[game-designer: prototype-design.md]
97
+ M --> N[Move to Rapid Implementation]
98
+
99
+ C -.-> C1[Optional: brainstorming]
100
+ C -.-> C2[Optional: game research]
101
+ E -.-> E1[Optional: competitive analysis]
102
+ F -.-> F1[Optional: level prototyping]
103
+ G -.-> G1[Optional: technical research]
104
+ D -.-> D1[Optional: quick brainstorming]
105
+
106
+ style L fill:#90EE90
107
+ style N fill:#90EE90
108
+ style C fill:#FFE4B5
109
+ style E fill:#FFE4B5
110
+ style F fill:#FFE4B5
111
+ style G fill:#FFE4B5
112
+ style D fill:#FFB6C1
113
+ style M fill:#FFB6C1
114
+ ```
115
+ decision_guidance:
116
+ use_full_sequence_when:
117
+ - Building commercial or production games
118
+ - Multiple team members involved
119
+ - Complex gameplay systems (3+ core mechanics)
120
+ - Long-term development timeline (2+ months)
121
+ - Need comprehensive documentation for team coordination
122
+ - Targeting multiple platforms
123
+ - Educational or enterprise game projects
124
+ use_prototype_sequence_when:
125
+ - Game jams or time-constrained development
126
+ - Solo developer or very small team
127
+ - Experimental or proof-of-concept games
128
+ - Simple mechanics (1-2 core systems)
129
+ - Quick validation of game concepts
130
+ - Learning projects or technical demos
131
+ handoff_prompts:
132
+ designer_to_gdd: Game brief is complete. Save it as docs/design/game-brief.md in your project, then create the comprehensive Game Design Document.
133
+ gdd_to_level: Game Design Document ready. Save it as docs/design/game-design-doc.md, then create the level design framework.
134
+ level_to_architect: Level design complete. Save it as docs/design/level-design-doc.md, then create the technical architecture.
135
+ architect_review: Architecture complete. Save it as docs/architecture/game-architecture.md. Please validate all design documents for consistency.
136
+ validation_issues: Design validation found issues with [document]. Please return to [agent] to fix and re-save the updated document.
137
+ full_complete: All design artifacts validated and saved. Set up game project structure and move to story development phase.
138
+ prototype_designer_to_dev: Prototype brief complete. Save it as docs/game-brief.md, then create minimal design or jump directly to implementation stories.
139
+ prototype_complete: Prototype defined. Begin rapid implementation focusing on core mechanics and immediate playability.
140
+ story_development_guidance:
141
+ epic_breakdown:
142
+ - Core Game Systems" - Fundamental gameplay mechanics and player controls
143
+ - Level Content" - Individual levels, progression, and content implementation
144
+ - User Interface" - Menus, HUD, settings, and player feedback systems
145
+ - Audio Integration" - Music, sound effects, and audio systems
146
+ - Performance Optimization" - Platform optimization and technical polish
147
+ - Game Polish" - Visual effects, animations, and final user experience
148
+ story_creation_process:
149
+ - Use Game Scrum Master to create detailed implementation stories
150
+ - Each story should reference specific GDD sections
151
+ - Include performance requirements (stable frame rate)
152
+ - Specify Unity implementation details (components, prefabs, scenes)
153
+ - Apply game-story-dod-checklist for quality validation
154
+ - Ensure stories are immediately actionable by Game Developer
155
+ game_development_best_practices:
156
+ performance_targets:
157
+ - Maintain stable frame rate on target devices throughout development
158
+ - Memory usage under specified limits per game system
159
+ - Loading times under 3 seconds for levels
160
+ - Smooth animation and responsive player controls
161
+ technical_standards:
162
+ - C# best practices compliance
163
+ - Component-based game architecture
164
+ - Object pooling for performance-critical objects
165
+ - Cross-platform input handling with the new Input System
166
+ - Comprehensive error handling and graceful degradation
167
+ playtesting_integration:
168
+ - Test core mechanics early and frequently
169
+ - Validate game balance through metrics and player feedback
170
+ - Iterate on design based on implementation discoveries
171
+ - Document design changes and rationale
172
+ success_criteria:
173
+ design_phase_complete:
174
+ - All design documents created and validated
175
+ - Technical architecture aligns with game design requirements
176
+ - Performance targets defined and achievable
177
+ - Story breakdown ready for implementation
178
+ - Project structure established
179
+ implementation_readiness:
180
+ - Development environment configured for Unity + C#
181
+ - Asset pipeline and build system established
182
+ - Testing framework in place
183
+ - Team roles and responsibilities defined
184
+ - First implementation stories created and ready