@zeyue0329/xiaoma-cli 1.0.8 → 1.0.9

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 (315) hide show
  1. package/CHANGELOG.md +686 -0
  2. package/LICENSE +6 -1
  3. package/README.md +173 -460
  4. package/common/tasks/create-doc.md +3 -1
  5. package/common/tasks/execute-checklist.md +2 -7
  6. package/common/utils/bmad-doc-template.md +7 -5
  7. package/common/utils/workflow-management.md +2 -0
  8. package/dist/agents/analyst.txt +1143 -1118
  9. package/dist/agents/architect.txt +1555 -1531
  10. package/dist/agents/dev.txt +170 -22
  11. package/dist/agents/pm.txt +1103 -1106
  12. package/dist/agents/po.txt +329 -334
  13. package/dist/agents/qa.txt +1773 -154
  14. package/dist/agents/sm.txt +101 -102
  15. package/dist/agents/ux-expert.txt +93 -91
  16. package/dist/agents/xiaoma-master.txt +745 -673
  17. package/dist/agents/xiaoma-orchestrator.txt +107 -77
  18. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2386 -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 +11008 -0
  22. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4031 -0
  23. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3717 -0
  24. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +456 -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 +15450 -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 +6511 -0
  38. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2087 -0
  39. package/dist/teams/team-all.txt +5710 -3857
  40. package/dist/teams/team-fullstack.txt +3242 -3157
  41. package/dist/teams/team-ide-minimal.txt +2330 -534
  42. package/dist/teams/team-no-ui.txt +2935 -2857
  43. package/docs/GUIDING-PRINCIPLES.md +91 -0
  44. package/docs/core-architecture.md +219 -0
  45. package/docs/enhanced-ide-development-workflow.md +248 -0
  46. package/docs/expansion-packs.md +200 -0
  47. package/docs/how-to-contribute-with-pull-requests.md +158 -0
  48. package/docs/user-guide.md +530 -0
  49. package/docs/versioning-and-releases.md +155 -0
  50. package/docs/versions.md +48 -0
  51. package/docs/working-in-the-brownfield.md +597 -0
  52. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +14 -0
  53. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +73 -0
  54. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +80 -0
  55. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +66 -0
  56. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +203 -0
  57. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +162 -0
  58. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +9 -0
  59. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +252 -0
  60. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +649 -0
  61. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +112 -0
  62. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +218 -0
  63. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +292 -0
  64. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +614 -0
  65. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +357 -0
  66. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +344 -0
  67. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +254 -0
  68. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  69. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  70. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +176 -0
  71. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +15 -0
  72. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +82 -0
  73. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +79 -0
  74. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +80 -0
  75. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +67 -0
  76. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +393 -0
  77. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +205 -0
  78. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +203 -0
  79. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +126 -0
  80. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +7 -0
  81. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +771 -0
  82. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +588 -0
  83. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +112 -0
  84. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +143 -0
  85. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +186 -0
  86. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +292 -0
  87. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +202 -0
  88. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1031 -0
  89. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +357 -0
  90. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +706 -0
  91. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +257 -0
  92. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
  93. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +184 -0
  94. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +176 -0
  95. package/expansion-packs/bmad-creative-writing/README.md +146 -0
  96. package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +20 -0
  97. package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +94 -0
  98. package/expansion-packs/bmad-creative-writing/agents/book-critic.md +40 -0
  99. package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +93 -0
  100. package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +46 -0
  101. package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +92 -0
  102. package/expansion-packs/bmad-creative-writing/agents/editor.md +93 -0
  103. package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +95 -0
  104. package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +93 -0
  105. package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +95 -0
  106. package/expansion-packs/bmad-creative-writing/agents/world-builder.md +94 -0
  107. package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +23 -0
  108. package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +23 -0
  109. package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +23 -0
  110. package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +23 -0
  111. package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +21 -0
  112. package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +23 -0
  113. package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +23 -0
  114. package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +22 -0
  115. package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +22 -0
  116. package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +23 -0
  117. package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +23 -0
  118. package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +25 -0
  119. package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +23 -0
  120. package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +23 -0
  121. package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +23 -0
  122. package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +23 -0
  123. package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +59 -0
  124. package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +23 -0
  125. package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +23 -0
  126. package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +23 -0
  127. package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +22 -0
  128. package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +23 -0
  129. package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +23 -0
  130. package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +23 -0
  131. package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +23 -0
  132. package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +23 -0
  133. package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +23 -0
  134. package/expansion-packs/bmad-creative-writing/config.yaml +12 -0
  135. package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +209 -0
  136. package/expansion-packs/bmad-creative-writing/data/story-structures.md +67 -0
  137. package/expansion-packs/bmad-creative-writing/docs/brief.md +212 -0
  138. package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +119 -0
  139. package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +23 -0
  140. package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +67 -0
  141. package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +29 -0
  142. package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +23 -0
  143. package/expansion-packs/bmad-creative-writing/tasks/build-world.md +24 -0
  144. package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +22 -0
  145. package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +103 -0
  146. package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +26 -0
  147. package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +26 -0
  148. package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +24 -0
  149. package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +88 -0
  150. package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +23 -0
  151. package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +23 -0
  152. package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +23 -0
  153. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +25 -0
  154. package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +26 -0
  155. package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +23 -0
  156. package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +25 -0
  157. package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +23 -0
  158. package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +24 -0
  159. package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +23 -0
  160. package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +22 -0
  161. package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +23 -0
  162. package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +64 -0
  163. package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +97 -0
  164. package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +82 -0
  165. package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
  166. package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +98 -0
  167. package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +78 -0
  168. package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +55 -0
  169. package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
  170. package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +89 -0
  171. package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +218 -0
  172. package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +56 -0
  173. package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +50 -0
  174. package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
  175. package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +91 -0
  176. package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +85 -0
  177. package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +78 -0
  178. package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +64 -0
  179. package/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
  180. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +73 -0
  181. package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +486 -0
  182. package/expansion-packs/bmad-infrastructure-devops/config.yaml +10 -0
  183. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -0
  184. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +161 -0
  185. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +155 -0
  186. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +425 -0
  187. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +630 -0
  188. package/implement-fork-friendly-ci.sh +229 -0
  189. package/package.json +75 -45
  190. package/prettier.config.mjs +32 -0
  191. package/test.md +1 -0
  192. package/tools/builders/web-builder.js +128 -129
  193. package/tools/bump-all-versions.js +42 -33
  194. package/tools/bump-expansion-version.js +23 -16
  195. package/tools/cli.js +15 -15
  196. package/tools/flattener/aggregate.js +76 -0
  197. package/tools/flattener/binary.js +80 -0
  198. package/tools/flattener/discovery.js +71 -0
  199. package/tools/flattener/files.js +35 -0
  200. package/tools/flattener/ignoreRules.js +176 -0
  201. package/tools/flattener/main.js +458 -460
  202. package/tools/flattener/projectRoot.js +206 -0
  203. package/tools/flattener/prompts.js +44 -0
  204. package/tools/flattener/stats.helpers.js +395 -0
  205. package/tools/flattener/stats.js +80 -0
  206. package/tools/flattener/test-matrix.js +413 -0
  207. package/tools/flattener/xml.js +88 -0
  208. package/tools/installer/README.md +1 -1
  209. package/tools/installer/bin/xiaoma.js +377 -137
  210. package/tools/installer/config/ide-agent-config.yaml +3 -3
  211. package/tools/installer/config/install.config.yaml +73 -22
  212. package/tools/installer/lib/config-loader.js +48 -44
  213. package/tools/installer/lib/file-manager.js +91 -116
  214. package/tools/installer/lib/ide-base-setup.js +57 -56
  215. package/tools/installer/lib/ide-setup.js +816 -407
  216. package/tools/installer/lib/installer.js +915 -690
  217. package/tools/installer/lib/memory-profiler.js +54 -53
  218. package/tools/installer/lib/module-manager.js +19 -15
  219. package/tools/installer/lib/resource-locator.js +26 -28
  220. package/tools/installer/package-lock.json +67 -56
  221. package/tools/installer/package.json +24 -23
  222. package/tools/lib/dependency-resolver.js +30 -34
  223. package/tools/lib/yaml-utils.js +7 -7
  224. package/tools/md-assets/web-agent-startup-instructions.md +1 -1
  225. package/tools/preview-release-notes.js +66 -0
  226. package/tools/setup-hooks.sh +37 -0
  227. package/tools/shared/bannerArt.js +105 -0
  228. package/tools/sync-installer-version.js +7 -9
  229. package/tools/sync-version.sh +23 -0
  230. package/tools/update-expansion-version.js +14 -15
  231. package/tools/upgraders/v3-to-v4-upgrader.js +208 -299
  232. package/tools/version-bump.js +41 -26
  233. package/tools/xiaoma-npx-wrapper.js +11 -11
  234. package/tools/yaml-format.js +56 -43
  235. package/xiaoma-core/agent-teams/team-all.yaml +2 -1
  236. package/xiaoma-core/agent-teams/team-fullstack.yaml +1 -0
  237. package/xiaoma-core/agent-teams/team-ide-minimal.yaml +1 -0
  238. package/xiaoma-core/agent-teams/team-no-ui.yaml +1 -0
  239. package/xiaoma-core/agents/analyst.md +20 -17
  240. package/xiaoma-core/agents/architect.md +15 -14
  241. package/xiaoma-core/agents/dev.md +23 -18
  242. package/xiaoma-core/agents/pm.md +18 -15
  243. package/xiaoma-core/agents/po.md +13 -10
  244. package/xiaoma-core/agents/qa.md +46 -24
  245. package/xiaoma-core/agents/sm.md +11 -8
  246. package/xiaoma-core/agents/ux-expert.md +10 -7
  247. package/xiaoma-core/agents/xiaoma-master.md +24 -22
  248. package/xiaoma-core/agents/xiaoma-orchestrator.md +30 -33
  249. package/xiaoma-core/checklists/architect-checklist.md +2 -5
  250. package/xiaoma-core/checklists/change-checklist.md +4 -2
  251. package/xiaoma-core/checklists/pm-checklist.md +2 -5
  252. package/xiaoma-core/checklists/po-master-checklist.md +2 -9
  253. package/xiaoma-core/checklists/story-dod-checklist.md +2 -7
  254. package/xiaoma-core/checklists/story-draft-checklist.md +2 -3
  255. package/xiaoma-core/core-config.yaml +4 -1
  256. package/xiaoma-core/data/{xiaoma-kb.md → bmad-kb.md} +43 -37
  257. package/xiaoma-core/data/brainstorming-techniques.md +2 -0
  258. package/xiaoma-core/data/elicitation-methods.md +22 -0
  259. package/xiaoma-core/data/technical-preferences.md +2 -0
  260. package/xiaoma-core/data/test-levels-framework.md +148 -0
  261. package/xiaoma-core/data/test-priorities-matrix.md +174 -0
  262. package/xiaoma-core/tasks/advanced-elicitation.md +2 -0
  263. package/xiaoma-core/tasks/apply-qa-fixes.md +150 -0
  264. package/xiaoma-core/tasks/brownfield-create-epic.md +2 -0
  265. package/xiaoma-core/tasks/brownfield-create-story.md +2 -0
  266. package/xiaoma-core/tasks/correct-course.md +2 -0
  267. package/xiaoma-core/tasks/create-brownfield-story.md +14 -4
  268. package/xiaoma-core/tasks/create-deep-research-prompt.md +2 -11
  269. package/xiaoma-core/tasks/create-next-story.md +3 -1
  270. package/xiaoma-core/tasks/document-project.md +17 -13
  271. package/xiaoma-core/tasks/facilitate-brainstorming-session.md +5 -3
  272. package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +2 -0
  273. package/xiaoma-core/tasks/index-docs.md +2 -6
  274. package/xiaoma-core/tasks/kb-mode-interaction.md +17 -15
  275. package/xiaoma-core/tasks/nfr-assess.md +345 -0
  276. package/xiaoma-core/tasks/qa-gate.md +163 -0
  277. package/xiaoma-core/tasks/review-story.md +245 -74
  278. package/xiaoma-core/tasks/risk-profile.md +355 -0
  279. package/xiaoma-core/tasks/shard-doc.md +2 -2
  280. package/xiaoma-core/tasks/test-design.md +176 -0
  281. package/xiaoma-core/tasks/trace-requirements.md +266 -0
  282. package/xiaoma-core/tasks/validate-next-story.md +2 -0
  283. package/xiaoma-core/templates/architecture-tmpl.yaml +50 -49
  284. package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +5 -5
  285. package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +32 -31
  286. package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +14 -13
  287. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +20 -6
  288. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +22 -9
  289. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +25 -24
  290. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +123 -104
  291. package/xiaoma-core/templates/market-research-tmpl.yaml +3 -2
  292. package/xiaoma-core/templates/prd-tmpl.yaml +10 -9
  293. package/xiaoma-core/templates/project-brief-tmpl.yaml +5 -4
  294. package/xiaoma-core/templates/qa-gate-tmpl.yaml +103 -0
  295. package/xiaoma-core/templates/story-tmpl.yaml +13 -12
  296. package/xiaoma-core/workflows/brownfield-fullstack.yaml +13 -12
  297. package/xiaoma-core/workflows/brownfield-service.yaml +5 -4
  298. package/xiaoma-core/workflows/brownfield-ui.yaml +5 -4
  299. package/xiaoma-core/workflows/greenfield-fullstack.yaml +7 -6
  300. package/xiaoma-core/workflows/greenfield-service.yaml +5 -4
  301. package/xiaoma-core/workflows/greenfield-ui.yaml +6 -5
  302. package/.releaserc.json +0 -18
  303. package/.vscode/settings.json +0 -44
  304. 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
  305. 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
  306. 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
  307. package/XiaoMa-Web/351/241/271/347/233/256/346/200/273/347/273/223/346/212/245/345/221/212.md +0 -310
  308. package/dist/agents/dev-cn.txt +0 -428
  309. package/docs/quick-start.md +0 -179
  310. package/tools/bmad-npx-wrapper.js +0 -39
  311. package/tools/semantic-release-sync-installer.js +0 -30
  312. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  313. package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
  314. package/xiaoma-core/user-guide.md +0 -251
  315. package/xiaoma-core/working-in-the-brownfield.md +0 -364
@@ -0,0 +1,148 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Test Levels Framework
4
+
5
+ Comprehensive guide for determining appropriate test levels (unit, integration, E2E) for different scenarios.
6
+
7
+ ## Test Level Decision Matrix
8
+
9
+ ### Unit Tests
10
+
11
+ **When to use:**
12
+
13
+ - Testing pure functions and business logic
14
+ - Algorithm correctness
15
+ - Input validation and data transformation
16
+ - Error handling in isolated components
17
+ - Complex calculations or state machines
18
+
19
+ **Characteristics:**
20
+
21
+ - Fast execution (immediate feedback)
22
+ - No external dependencies (DB, API, file system)
23
+ - Highly maintainable and stable
24
+ - Easy to debug failures
25
+
26
+ **Example scenarios:**
27
+
28
+ ```yaml
29
+ unit_test:
30
+ component: 'PriceCalculator'
31
+ scenario: 'Calculate discount with multiple rules'
32
+ justification: 'Complex business logic with multiple branches'
33
+ mock_requirements: 'None - pure function'
34
+ ```
35
+
36
+ ### Integration Tests
37
+
38
+ **When to use:**
39
+
40
+ - Component interaction verification
41
+ - Database operations and transactions
42
+ - API endpoint contracts
43
+ - Service-to-service communication
44
+ - Middleware and interceptor behavior
45
+
46
+ **Characteristics:**
47
+
48
+ - Moderate execution time
49
+ - Tests component boundaries
50
+ - May use test databases or containers
51
+ - Validates system integration points
52
+
53
+ **Example scenarios:**
54
+
55
+ ```yaml
56
+ integration_test:
57
+ components: ['UserService', 'AuthRepository']
58
+ scenario: 'Create user with role assignment'
59
+ justification: 'Critical data flow between service and persistence'
60
+ test_environment: 'In-memory database'
61
+ ```
62
+
63
+ ### End-to-End Tests
64
+
65
+ **When to use:**
66
+
67
+ - Critical user journeys
68
+ - Cross-system workflows
69
+ - Visual regression testing
70
+ - Compliance and regulatory requirements
71
+ - Final validation before release
72
+
73
+ **Characteristics:**
74
+
75
+ - Slower execution
76
+ - Tests complete workflows
77
+ - Requires full environment setup
78
+ - Most realistic but most brittle
79
+
80
+ **Example scenarios:**
81
+
82
+ ```yaml
83
+ e2e_test:
84
+ journey: 'Complete checkout process'
85
+ scenario: 'User purchases with saved payment method'
86
+ justification: 'Revenue-critical path requiring full validation'
87
+ environment: 'Staging with test payment gateway'
88
+ ```
89
+
90
+ ## Test Level Selection Rules
91
+
92
+ ### Favor Unit Tests When:
93
+
94
+ - Logic can be isolated
95
+ - No side effects involved
96
+ - Fast feedback needed
97
+ - High cyclomatic complexity
98
+
99
+ ### Favor Integration Tests When:
100
+
101
+ - Testing persistence layer
102
+ - Validating service contracts
103
+ - Testing middleware/interceptors
104
+ - Component boundaries critical
105
+
106
+ ### Favor E2E Tests When:
107
+
108
+ - User-facing critical paths
109
+ - Multi-system interactions
110
+ - Regulatory compliance scenarios
111
+ - Visual regression important
112
+
113
+ ## Anti-patterns to Avoid
114
+
115
+ - E2E testing for business logic validation
116
+ - Unit testing framework behavior
117
+ - Integration testing third-party libraries
118
+ - Duplicate coverage across levels
119
+
120
+ ## Duplicate Coverage Guard
121
+
122
+ **Before adding any test, check:**
123
+
124
+ 1. Is this already tested at a lower level?
125
+ 2. Can a unit test cover this instead of integration?
126
+ 3. Can an integration test cover this instead of E2E?
127
+
128
+ **Coverage overlap is only acceptable when:**
129
+
130
+ - Testing different aspects (unit: logic, integration: interaction, e2e: user experience)
131
+ - Critical paths requiring defense in depth
132
+ - Regression prevention for previously broken functionality
133
+
134
+ ## Test Naming Conventions
135
+
136
+ - Unit: `test_{component}_{scenario}`
137
+ - Integration: `test_{flow}_{interaction}`
138
+ - E2E: `test_{journey}_{outcome}`
139
+
140
+ ## Test ID Format
141
+
142
+ `{EPIC}.{STORY}-{LEVEL}-{SEQ}`
143
+
144
+ Examples:
145
+
146
+ - `1.3-UNIT-001`
147
+ - `1.3-INT-002`
148
+ - `1.3-E2E-001`
@@ -0,0 +1,174 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Test Priorities Matrix
4
+
5
+ Guide for prioritizing test scenarios based on risk, criticality, and business impact.
6
+
7
+ ## Priority Levels
8
+
9
+ ### P0 - Critical (Must Test)
10
+
11
+ **Criteria:**
12
+
13
+ - Revenue-impacting functionality
14
+ - Security-critical paths
15
+ - Data integrity operations
16
+ - Regulatory compliance requirements
17
+ - Previously broken functionality (regression prevention)
18
+
19
+ **Examples:**
20
+
21
+ - Payment processing
22
+ - Authentication/authorization
23
+ - User data creation/deletion
24
+ - Financial calculations
25
+ - GDPR/privacy compliance
26
+
27
+ **Testing Requirements:**
28
+
29
+ - Comprehensive coverage at all levels
30
+ - Both happy and unhappy paths
31
+ - Edge cases and error scenarios
32
+ - Performance under load
33
+
34
+ ### P1 - High (Should Test)
35
+
36
+ **Criteria:**
37
+
38
+ - Core user journeys
39
+ - Frequently used features
40
+ - Features with complex logic
41
+ - Integration points between systems
42
+ - Features affecting user experience
43
+
44
+ **Examples:**
45
+
46
+ - User registration flow
47
+ - Search functionality
48
+ - Data import/export
49
+ - Notification systems
50
+ - Dashboard displays
51
+
52
+ **Testing Requirements:**
53
+
54
+ - Primary happy paths required
55
+ - Key error scenarios
56
+ - Critical edge cases
57
+ - Basic performance validation
58
+
59
+ ### P2 - Medium (Nice to Test)
60
+
61
+ **Criteria:**
62
+
63
+ - Secondary features
64
+ - Admin functionality
65
+ - Reporting features
66
+ - Configuration options
67
+ - UI polish and aesthetics
68
+
69
+ **Examples:**
70
+
71
+ - Admin settings panels
72
+ - Report generation
73
+ - Theme customization
74
+ - Help documentation
75
+ - Analytics tracking
76
+
77
+ **Testing Requirements:**
78
+
79
+ - Happy path coverage
80
+ - Basic error handling
81
+ - Can defer edge cases
82
+
83
+ ### P3 - Low (Test if Time Permits)
84
+
85
+ **Criteria:**
86
+
87
+ - Rarely used features
88
+ - Nice-to-have functionality
89
+ - Cosmetic issues
90
+ - Non-critical optimizations
91
+
92
+ **Examples:**
93
+
94
+ - Advanced preferences
95
+ - Legacy feature support
96
+ - Experimental features
97
+ - Debug utilities
98
+
99
+ **Testing Requirements:**
100
+
101
+ - Smoke tests only
102
+ - Can rely on manual testing
103
+ - Document known limitations
104
+
105
+ ## Risk-Based Priority Adjustments
106
+
107
+ ### Increase Priority When:
108
+
109
+ - High user impact (affects >50% of users)
110
+ - High financial impact (>$10K potential loss)
111
+ - Security vulnerability potential
112
+ - Compliance/legal requirements
113
+ - Customer-reported issues
114
+ - Complex implementation (>500 LOC)
115
+ - Multiple system dependencies
116
+
117
+ ### Decrease Priority When:
118
+
119
+ - Feature flag protected
120
+ - Gradual rollout planned
121
+ - Strong monitoring in place
122
+ - Easy rollback capability
123
+ - Low usage metrics
124
+ - Simple implementation
125
+ - Well-isolated component
126
+
127
+ ## Test Coverage by Priority
128
+
129
+ | Priority | Unit Coverage | Integration Coverage | E2E Coverage |
130
+ | -------- | ------------- | -------------------- | ------------------ |
131
+ | P0 | >90% | >80% | All critical paths |
132
+ | P1 | >80% | >60% | Main happy paths |
133
+ | P2 | >60% | >40% | Smoke tests |
134
+ | P3 | Best effort | Best effort | Manual only |
135
+
136
+ ## Priority Assignment Rules
137
+
138
+ 1. **Start with business impact** - What happens if this fails?
139
+ 2. **Consider probability** - How likely is failure?
140
+ 3. **Factor in detectability** - Would we know if it failed?
141
+ 4. **Account for recoverability** - Can we fix it quickly?
142
+
143
+ ## Priority Decision Tree
144
+
145
+ ```
146
+ Is it revenue-critical?
147
+ ├─ YES → P0
148
+ └─ NO → Does it affect core user journey?
149
+ ├─ YES → Is it high-risk?
150
+ │ ├─ YES → P0
151
+ │ └─ NO → P1
152
+ └─ NO → Is it frequently used?
153
+ ├─ YES → P1
154
+ └─ NO → Is it customer-facing?
155
+ ├─ YES → P2
156
+ └─ NO → P3
157
+ ```
158
+
159
+ ## Test Execution Order
160
+
161
+ 1. Execute P0 tests first (fail fast on critical issues)
162
+ 2. Execute P1 tests second (core functionality)
163
+ 3. Execute P2 tests if time permits
164
+ 4. P3 tests only in full regression cycles
165
+
166
+ ## Continuous Adjustment
167
+
168
+ Review and adjust priorities based on:
169
+
170
+ - Production incident patterns
171
+ - User feedback and complaints
172
+ - Usage analytics
173
+ - Test failure history
174
+ - Business priority changes
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Advanced Elicitation Task
2
4
 
3
5
  ## Purpose
@@ -0,0 +1,150 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # apply-qa-fixes
4
+
5
+ Implement fixes based on QA results (gate and assessments) for a specific story. This task is for the Dev agent to systematically consume QA outputs and apply code/test changes while only updating allowed sections in the story file.
6
+
7
+ ## Purpose
8
+
9
+ - Read QA outputs for a story (gate YAML + assessment markdowns)
10
+ - Create a prioritized, deterministic fix plan
11
+ - Apply code and test changes to close gaps and address issues
12
+ - Update only the allowed story sections for the Dev agent
13
+
14
+ ## Inputs
15
+
16
+ ```yaml
17
+ required:
18
+ - story_id: '{epic}.{story}' # e.g., "2.2"
19
+ - qa_root: from `xiaoma-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
20
+ - story_root: from `xiaoma-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
21
+
22
+ optional:
23
+ - story_title: '{title}' # derive from story H1 if missing
24
+ - story_slug: '{slug}' # derive from title (lowercase, hyphenated) if missing
25
+ ```
26
+
27
+ ## QA Sources to Read
28
+
29
+ - Gate (YAML): `{qa_root}/gates/{epic}.{story}-*.yml`
30
+ - If multiple, use the most recent by modified time
31
+ - Assessments (Markdown):
32
+ - Test Design: `{qa_root}/assessments/{epic}.{story}-test-design-*.md`
33
+ - Traceability: `{qa_root}/assessments/{epic}.{story}-trace-*.md`
34
+ - Risk Profile: `{qa_root}/assessments/{epic}.{story}-risk-*.md`
35
+ - NFR Assessment: `{qa_root}/assessments/{epic}.{story}-nfr-*.md`
36
+
37
+ ## Prerequisites
38
+
39
+ - Repository builds and tests run locally (Deno 2)
40
+ - Lint and test commands available:
41
+ - `deno lint`
42
+ - `deno test -A`
43
+
44
+ ## Process (Do not skip steps)
45
+
46
+ ### 0) Load Core Config & Locate Story
47
+
48
+ - Read `xiaoma-core/core-config.yaml` and resolve `qa_root` and `story_root`
49
+ - Locate story file in `{story_root}/{epic}.{story}.*.md`
50
+ - HALT if missing and ask for correct story id/path
51
+
52
+ ### 1) Collect QA Findings
53
+
54
+ - Parse the latest gate YAML:
55
+ - `gate` (PASS|CONCERNS|FAIL|WAIVED)
56
+ - `top_issues[]` with `id`, `severity`, `finding`, `suggested_action`
57
+ - `nfr_validation.*.status` and notes
58
+ - `trace` coverage summary/gaps
59
+ - `test_design.coverage_gaps[]`
60
+ - `risk_summary.recommendations.must_fix[]` (if present)
61
+ - Read any present assessment markdowns and extract explicit gaps/recommendations
62
+
63
+ ### 2) Build Deterministic Fix Plan (Priority Order)
64
+
65
+ Apply in order, highest priority first:
66
+
67
+ 1. High severity items in `top_issues` (security/perf/reliability/maintainability)
68
+ 2. NFR statuses: all FAIL must be fixed → then CONCERNS
69
+ 3. Test Design `coverage_gaps` (prioritize P0 scenarios if specified)
70
+ 4. Trace uncovered requirements (AC-level)
71
+ 5. Risk `must_fix` recommendations
72
+ 6. Medium severity issues, then low
73
+
74
+ Guidance:
75
+
76
+ - Prefer tests closing coverage gaps before/with code changes
77
+ - Keep changes minimal and targeted; follow project architecture and TS/Deno rules
78
+
79
+ ### 3) Apply Changes
80
+
81
+ - Implement code fixes per plan
82
+ - Add missing tests to close coverage gaps (unit first; integration where required by AC)
83
+ - Keep imports centralized via `deps.ts` (see `docs/project/typescript-rules.md`)
84
+ - Follow DI boundaries in `src/core/di.ts` and existing patterns
85
+
86
+ ### 4) Validate
87
+
88
+ - Run `deno lint` and fix issues
89
+ - Run `deno test -A` until all tests pass
90
+ - Iterate until clean
91
+
92
+ ### 5) Update Story (Allowed Sections ONLY)
93
+
94
+ CRITICAL: Dev agent is ONLY authorized to update these sections of the story file. Do not modify any other sections (e.g., QA Results, Story, Acceptance Criteria, Dev Notes, Testing):
95
+
96
+ - Tasks / Subtasks Checkboxes (mark any fix subtask you added as done)
97
+ - Dev Agent Record →
98
+ - Agent Model Used (if changed)
99
+ - Debug Log References (commands/results, e.g., lint/tests)
100
+ - Completion Notes List (what changed, why, how)
101
+ - File List (all added/modified/deleted files)
102
+ - Change Log (new dated entry describing applied fixes)
103
+ - Status (see Rule below)
104
+
105
+ Status Rule:
106
+
107
+ - If gate was PASS and all identified gaps are closed → set `Status: Ready for Done`
108
+ - Otherwise → set `Status: Ready for Review` and notify QA to re-run the review
109
+
110
+ ### 6) Do NOT Edit Gate Files
111
+
112
+ - Dev does not modify gate YAML. If fixes address issues, request QA to re-run `review-story` to update the gate
113
+
114
+ ## Blocking Conditions
115
+
116
+ - Missing `xiaoma-core/core-config.yaml`
117
+ - Story file not found for `story_id`
118
+ - No QA artifacts found (neither gate nor assessments)
119
+ - HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
120
+
121
+ ## Completion Checklist
122
+
123
+ - deno lint: 0 problems
124
+ - deno test -A: all tests pass
125
+ - All high severity `top_issues` addressed
126
+ - NFR FAIL → resolved; CONCERNS minimized or documented
127
+ - Coverage gaps closed or explicitly documented with rationale
128
+ - Story updated (allowed sections only) including File List and Change Log
129
+ - Status set according to Status Rule
130
+
131
+ ## Example: Story 2.2
132
+
133
+ Given gate `docs/project/qa/gates/2.2-*.yml` shows
134
+
135
+ - `coverage_gaps`: Back action behavior untested (AC2)
136
+ - `coverage_gaps`: Centralized dependencies enforcement untested (AC4)
137
+
138
+ Fix plan:
139
+
140
+ - Add a test ensuring the Toolkit Menu "Back" action returns to Main Menu
141
+ - Add a static test verifying imports for service/view go through `deps.ts`
142
+ - Re-run lint/tests and update Dev Agent Record + File List accordingly
143
+
144
+ ## Key Principles
145
+
146
+ - Deterministic, risk-first prioritization
147
+ - Minimal, maintainable changes
148
+ - Tests validate behavior and close gaps
149
+ - Strict adherence to allowed story update areas
150
+ - Gate ownership remains with QA; Dev signals readiness via Status
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Create Brownfield Epic Task
2
4
 
3
5
  ## Purpose
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Create Brownfield Story Task
2
4
 
3
5
  ## Purpose
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Correct Course Task
2
4
 
3
5
  ## Purpose
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Create Brownfield Story Task
2
4
 
3
5
  ## Purpose
@@ -11,7 +13,7 @@ Create detailed, implementation-ready stories for brownfield projects where trad
11
13
  - Working on brownfield projects with non-standard documentation
12
14
  - Stories need to be created from document-project output
13
15
  - Working from brownfield epics without full PRD/architecture
14
- - Existing project documentation doesn't follow XiaoMa v4+ structure
16
+ - Existing project documentation doesn't follow BMad v4+ structure
15
17
  - Need to gather additional context from user during story creation
16
18
 
17
19
  **Use create-next-story when:**
@@ -128,7 +130,7 @@ Critical: For brownfield, ALWAYS include criteria about maintaining existing fun
128
130
  Standard structure:
129
131
 
130
132
  1. New functionality works as specified
131
- 2. Existing {{affected feature}} continues to work unchanged
133
+ 2. Existing {{affected feature}} continues to work unchanged
132
134
  3. Integration with {{existing system}} maintains current behavior
133
135
  4. No regression in {{related area}}
134
136
  5. Performance remains within acceptable bounds
@@ -139,16 +141,19 @@ Critical: This is where you'll need to be interactive with the user if informati
139
141
 
140
142
  Create Dev Technical Guidance section with available information:
141
143
 
142
- ```markdown
144
+ ````markdown
143
145
  ## Dev Technical Guidance
144
146
 
145
147
  ### Existing System Context
148
+
146
149
  [Extract from available documentation]
147
150
 
148
151
  ### Integration Approach
152
+
149
153
  [Based on patterns found or ask user]
150
154
 
151
155
  ### Technical Constraints
156
+
152
157
  [From documentation or user input]
153
158
 
154
159
  ### Missing Information
@@ -191,6 +196,7 @@ Example task structure for brownfield:
191
196
  - [ ] Integration test for {{integration point}}
192
197
  - [ ] Update existing tests if needed
193
198
  ```
199
+ ````
194
200
 
195
201
  ### 5. Risk Assessment and Mitigation
196
202
 
@@ -202,14 +208,17 @@ Add section for brownfield-specific risks:
202
208
  ## Risk Assessment
203
209
 
204
210
  ### Implementation Risks
211
+
205
212
  - **Primary Risk**: {{main risk to existing system}}
206
213
  - **Mitigation**: {{how to address}}
207
214
  - **Verification**: {{how to confirm safety}}
208
215
 
209
216
  ### Rollback Plan
217
+
210
218
  - {{Simple steps to undo changes if needed}}
211
219
 
212
220
  ### Safety Checks
221
+
213
222
  - [ ] Existing {{feature}} tested before changes
214
223
  - [ ] Changes can be feature-flagged or isolated
215
224
  - [ ] Rollback procedure documented
@@ -252,6 +261,7 @@ Include header noting documentation context:
252
261
  <!-- Context: Brownfield enhancement to {{existing system}} -->
253
262
 
254
263
  ## Status: Draft
264
+
255
265
  [Rest of story content...]
256
266
  ```
257
267
 
@@ -272,7 +282,7 @@ Key Integration Points Identified:
272
282
  Risks Noted:
273
283
  - {{primary risk}}
274
284
 
275
- {{If missing info}}:
285
+ {{If missing info}}:
276
286
  Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
277
287
 
278
288
  Next Steps:
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Create Deep Research Prompt Task
2
4
 
3
5
  This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
@@ -21,63 +23,54 @@ CRITICAL: First, help the user select the most appropriate research focus based
21
23
  Present these numbered options to the user:
22
24
 
23
25
  1. **Product Validation Research**
24
-
25
26
  - Validate product hypotheses and market fit
26
27
  - Test assumptions about user needs and solutions
27
28
  - Assess technical and business feasibility
28
29
  - Identify risks and mitigation strategies
29
30
 
30
31
  2. **Market Opportunity Research**
31
-
32
32
  - Analyze market size and growth potential
33
33
  - Identify market segments and dynamics
34
34
  - Assess market entry strategies
35
35
  - Evaluate timing and market readiness
36
36
 
37
37
  3. **User & Customer Research**
38
-
39
38
  - Deep dive into user personas and behaviors
40
39
  - Understand jobs-to-be-done and pain points
41
40
  - Map customer journeys and touchpoints
42
41
  - Analyze willingness to pay and value perception
43
42
 
44
43
  4. **Competitive Intelligence Research**
45
-
46
44
  - Detailed competitor analysis and positioning
47
45
  - Feature and capability comparisons
48
46
  - Business model and strategy analysis
49
47
  - Identify competitive advantages and gaps
50
48
 
51
49
  5. **Technology & Innovation Research**
52
-
53
50
  - Assess technology trends and possibilities
54
51
  - Evaluate technical approaches and architectures
55
52
  - Identify emerging technologies and disruptions
56
53
  - Analyze build vs. buy vs. partner options
57
54
 
58
55
  6. **Industry & Ecosystem Research**
59
-
60
56
  - Map industry value chains and dynamics
61
57
  - Identify key players and relationships
62
58
  - Analyze regulatory and compliance factors
63
59
  - Understand partnership opportunities
64
60
 
65
61
  7. **Strategic Options Research**
66
-
67
62
  - Evaluate different strategic directions
68
63
  - Assess business model alternatives
69
64
  - Analyze go-to-market strategies
70
65
  - Consider expansion and scaling paths
71
66
 
72
67
  8. **Risk & Feasibility Research**
73
-
74
68
  - Identify and assess various risk factors
75
69
  - Evaluate implementation challenges
76
70
  - Analyze resource requirements
77
71
  - Consider regulatory and legal implications
78
72
 
79
73
  9. **Custom Research Focus**
80
-
81
74
  - User-defined research objectives
82
75
  - Specialized domain investigation
83
76
  - Cross-functional research needs
@@ -246,13 +239,11 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
246
239
  ### 5. Review and Refinement
247
240
 
248
241
  1. **Present Complete Prompt**
249
-
250
242
  - Show the full research prompt
251
243
  - Explain key elements and rationale
252
244
  - Highlight any assumptions made
253
245
 
254
246
  2. **Gather Feedback**
255
-
256
247
  - Are the objectives clear and correct?
257
248
  - Do the questions address all concerns?
258
249
  - Is the scope appropriate?
@@ -1,3 +1,5 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
1
3
  # Create Next Story Task
2
4
 
3
5
  ## Purpose
@@ -9,7 +11,7 @@ To identify the next logical story based on project progress and epic definition
9
11
  ### 0. Load Core Configuration and Check Workflow
10
12
 
11
13
  - Load `{root}/core-config.yaml` from the project root
12
- - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB xiaoma-core/core-config.yaml and configure it for your project OR 2) Run the XiaoMa installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
14
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB xiaoma-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
13
15
  - Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
14
16
 
15
17
  ### 1. Identify Next Story for Preparation