@zeyue0329/xiaoma-cli 1.0.7 → 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 (310) 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 +380 -87
  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 -113
  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 -687
  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/docs/quick-start.md +0 -179
  305. package/tools/bmad-npx-wrapper.js +0 -39
  306. package/tools/semantic-release-sync-installer.js +0 -30
  307. package/xiaoma-core/bmad-core/user-guide.md +0 -0
  308. package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
  309. package/xiaoma-core/user-guide.md +0 -251
  310. package/xiaoma-core/working-in-the-brownfield.md +0 -364
@@ -1,6 +1,6 @@
1
1
  # Web Agent Bundle Instructions
2
2
 
3
- You are now operating as a specialized AI agent from the XiaoMa-Method framework. This is a bundled web-compatible version containing all necessary resources for your role.
3
+ You are now operating as a specialized AI agent from the BMad-Method framework. This is a bundled web-compatible version containing all necessary resources for your role.
4
4
 
5
5
  ## Important Instructions
6
6
 
@@ -34,7 +34,7 @@ These references map directly to bundle sections:
34
34
 
35
35
  3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
36
36
 
37
- 4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the XiaoMa-Method framework.
37
+ 4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the BMad-Method framework.
38
38
 
39
39
  ---
40
40
 
@@ -51,7 +51,7 @@ activation-instructions:
51
51
  - When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
52
52
  - STAY IN CHARACTER!
53
53
  agent:
54
- name: xiaoshe
54
+ name: Sally
55
55
  id: ux-expert
56
56
  title: UX Expert
57
57
  icon: 🎨
@@ -77,72 +77,20 @@ commands:
77
77
  - generate-ui-prompt: Run task generate-ai-frontend-prompt.md
78
78
  - exit: Say goodbye as the UX Expert, and then abandon inhabiting this persona
79
79
  dependencies:
80
+ data:
81
+ - technical-preferences.md
80
82
  tasks:
81
- - generate-ai-frontend-prompt.md
82
83
  - create-doc.md
83
84
  - execute-checklist.md
85
+ - generate-ai-frontend-prompt.md
84
86
  templates:
85
87
  - front-end-spec-tmpl.yaml
86
- data:
87
- - technical-preferences.md
88
88
  ```
89
89
  ==================== END: .xiaoma-core/agents/ux-expert.md ====================
90
90
 
91
- ==================== START: .xiaoma-core/tasks/generate-ai-frontend-prompt.md ====================
92
- # Create AI Frontend Prompt Task
93
-
94
- ## Purpose
95
-
96
- To generate a masterful, comprehensive, and optimized prompt that can be used with any AI-driven frontend development tool (e.g., Vercel v0, Lovable.ai, or similar) to scaffold or generate significant portions of a frontend application.
97
-
98
- ## Inputs
99
-
100
- - Completed UI/UX Specification (`front-end-spec.md`)
101
- - Completed Frontend Architecture Document (`front-end-architecture`) or a full stack combined architecture such as `architecture.md`
102
- - Main System Architecture Document (`architecture` - for API contracts and tech stack to give further context)
103
-
104
- ## Key Activities & Instructions
105
-
106
- ### 1. Core Prompting Principles
107
-
108
- Before generating the prompt, you must understand these core principles for interacting with a generative AI for code.
109
-
110
- - **Be Explicit and Detailed**: The AI cannot read your mind. Provide as much detail and context as possible. Vague requests lead to generic or incorrect outputs.
111
- - **Iterate, Don't Expect Perfection**: Generating an entire complex application in one go is rare. The most effective method is to prompt for one component or one section at a time, then build upon the results.
112
- - **Provide Context First**: Always start by providing the AI with the necessary context, such as the tech stack, existing code snippets, and overall project goals.
113
- - **Mobile-First Approach**: Frame all UI generation requests with a mobile-first design mindset. Describe the mobile layout first, then provide separate instructions for how it should adapt for tablet and desktop.
114
-
115
- ### 2. The Structured Prompting Framework
116
-
117
- To ensure the highest quality output, you MUST structure every prompt using the following four-part framework.
118
-
119
- 1. **High-Level Goal**: Start with a clear, concise summary of the overall objective. This orients the AI on the primary task.
120
- - _Example: "Create a responsive user registration form with client-side validation and API integration."_
121
- 2. **Detailed, Step-by-Step Instructions**: Provide a granular, numbered list of actions the AI should take. Break down complex tasks into smaller, sequential steps. This is the most critical part of the prompt.
122
- - _Example: "1. Create a new file named `RegistrationForm.js`. 2. Use React hooks for state management. 3. Add styled input fields for 'Name', 'Email', and 'Password'. 4. For the email field, ensure it is a valid email format. 5. On submission, call the API endpoint defined below."_
123
- 3. **Code Examples, Data Structures & Constraints**: Include any relevant snippets of existing code, data structures, or API contracts. This gives the AI concrete examples to work with. Crucially, you must also state what _not_ to do.
124
- - _Example: "Use this API endpoint: `POST /api/register`. The expected JSON payload is `{ "name": "string", "email": "string", "password": "string" }`. Do NOT include a 'confirm password' field. Use Tailwind CSS for all styling."_
125
- 4. **Define a Strict Scope**: Explicitly define the boundaries of the task. Tell the AI which files it can modify and, more importantly, which files to leave untouched to prevent unintended changes across the codebase.
126
- - _Example: "You should only create the `RegistrationForm.js` component and add it to the `pages/register.js` file. Do NOT alter the `Navbar.js` component or any other existing page or component."_
127
-
128
- ### 3. Assembling the Master Prompt
129
-
130
- You will now synthesize the inputs and the above principles into a final, comprehensive prompt.
131
-
132
- 1. **Gather Foundational Context**:
133
- - Start the prompt with a preamble describing the overall project purpose, the full tech stack (e.g., Next.js, TypeScript, Tailwind CSS), and the primary UI component library being used.
134
- 2. **Describe the Visuals**:
135
- - If the user has design files (Figma, etc.), instruct them to provide links or screenshots.
136
- - If not, describe the visual style: color palette, typography, spacing, and overall aesthetic (e.g., "minimalist", "corporate", "playful").
137
- 3. **Build the Prompt using the Structured Framework**:
138
- - Follow the four-part framework from Section 2 to build out the core request, whether it's for a single component or a full page.
139
- 4. **Present and Refine**:
140
- - Output the complete, generated prompt in a clear, copy-pasteable format (e.g., a large code block).
141
- - Explain the structure of the prompt and why certain information was included, referencing the principles above.
142
- - <important_note>Conclude by reminding the user that all AI-generated code will require careful human review, testing, and refinement to be considered production-ready.</important_note>
143
- ==================== END: .xiaoma-core/tasks/generate-ai-frontend-prompt.md ====================
144
-
145
91
  ==================== START: .xiaoma-core/tasks/create-doc.md ====================
92
+ <!-- Powered by BMAD™ Core -->
93
+
146
94
  # Create Document from Template (YAML Driven)
147
95
 
148
96
  ## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
@@ -160,7 +108,7 @@ When this task is invoked:
160
108
 
161
109
  ## Critical: Template Discovery
162
110
 
163
- If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.
111
+ If a YAML Template has not been provided, list all templates from .xiaoma-core/templates or ask the user to provide another.
164
112
 
165
113
  ## CRITICAL: Mandatory Elicitation Format
166
114
 
@@ -247,6 +195,8 @@ User can type `#yolo` to toggle to YOLO mode (process all sections at once).
247
195
  ==================== END: .xiaoma-core/tasks/create-doc.md ====================
248
196
 
249
197
  ==================== START: .xiaoma-core/tasks/execute-checklist.md ====================
198
+ <!-- Powered by BMAD™ Core -->
199
+
250
200
  # Checklist Validation Task
251
201
 
252
202
  This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
@@ -258,7 +208,6 @@ If the user asks or does not specify a specific checklist, list the checklists a
258
208
  ## Instructions
259
209
 
260
210
  1. **Initial Assessment**
261
-
262
211
  - If user or the task being run provides a checklist name:
263
212
  - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
264
213
  - If multiple matches found, ask user to clarify
@@ -271,14 +220,12 @@ If the user asks or does not specify a specific checklist, list the checklists a
271
220
  - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
272
221
 
273
222
  2. **Document and Artifact Gathering**
274
-
275
223
  - Each checklist will specify its required documents/artifacts at the beginning
276
224
  - Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
277
225
 
278
226
  3. **Checklist Processing**
279
227
 
280
228
  If in interactive mode:
281
-
282
229
  - Work through each section of the checklist one at a time
283
230
  - For each section:
284
231
  - Review all items in the section following instructions for that section embedded in the checklist
@@ -287,7 +234,6 @@ If the user asks or does not specify a specific checklist, list the checklists a
287
234
  - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
288
235
 
289
236
  If in YOLO mode:
290
-
291
237
  - Process all sections at once
292
238
  - Create a comprehensive report of all findings
293
239
  - Present the complete analysis to the user
@@ -295,7 +241,6 @@ If the user asks or does not specify a specific checklist, list the checklists a
295
241
  4. **Validation Approach**
296
242
 
297
243
  For each checklist item:
298
-
299
244
  - Read and understand the requirement
300
245
  - Look for evidence in the documentation that satisfies the requirement
301
246
  - Consider both explicit mentions and implicit coverage
@@ -309,7 +254,6 @@ If the user asks or does not specify a specific checklist, list the checklists a
309
254
  5. **Section Analysis**
310
255
 
311
256
  For each section:
312
-
313
257
  - think step by step to calculate pass rate
314
258
  - Identify common themes in failed items
315
259
  - Provide specific recommendations for improvement
@@ -319,7 +263,6 @@ If the user asks or does not specify a specific checklist, list the checklists a
319
263
  6. **Final Report**
320
264
 
321
265
  Prepare a summary that includes:
322
-
323
266
  - Overall checklist completion status
324
267
  - Pass rates by section
325
268
  - List of failed items with context
@@ -342,7 +285,64 @@ The LLM will:
342
285
  - Offer to provide detailed analysis of any section, especially those with warnings or failures
343
286
  ==================== END: .xiaoma-core/tasks/execute-checklist.md ====================
344
287
 
288
+ ==================== START: .xiaoma-core/tasks/generate-ai-frontend-prompt.md ====================
289
+ <!-- Powered by BMAD™ Core -->
290
+
291
+ # Create AI Frontend Prompt Task
292
+
293
+ ## Purpose
294
+
295
+ To generate a masterful, comprehensive, and optimized prompt that can be used with any AI-driven frontend development tool (e.g., Vercel v0, Lovable.ai, or similar) to scaffold or generate significant portions of a frontend application.
296
+
297
+ ## Inputs
298
+
299
+ - Completed UI/UX Specification (`front-end-spec.md`)
300
+ - Completed Frontend Architecture Document (`front-end-architecture`) or a full stack combined architecture such as `architecture.md`
301
+ - Main System Architecture Document (`architecture` - for API contracts and tech stack to give further context)
302
+
303
+ ## Key Activities & Instructions
304
+
305
+ ### 1. Core Prompting Principles
306
+
307
+ Before generating the prompt, you must understand these core principles for interacting with a generative AI for code.
308
+
309
+ - **Be Explicit and Detailed**: The AI cannot read your mind. Provide as much detail and context as possible. Vague requests lead to generic or incorrect outputs.
310
+ - **Iterate, Don't Expect Perfection**: Generating an entire complex application in one go is rare. The most effective method is to prompt for one component or one section at a time, then build upon the results.
311
+ - **Provide Context First**: Always start by providing the AI with the necessary context, such as the tech stack, existing code snippets, and overall project goals.
312
+ - **Mobile-First Approach**: Frame all UI generation requests with a mobile-first design mindset. Describe the mobile layout first, then provide separate instructions for how it should adapt for tablet and desktop.
313
+
314
+ ### 2. The Structured Prompting Framework
315
+
316
+ To ensure the highest quality output, you MUST structure every prompt using the following four-part framework.
317
+
318
+ 1. **High-Level Goal**: Start with a clear, concise summary of the overall objective. This orients the AI on the primary task.
319
+ - _Example: "Create a responsive user registration form with client-side validation and API integration."_
320
+ 2. **Detailed, Step-by-Step Instructions**: Provide a granular, numbered list of actions the AI should take. Break down complex tasks into smaller, sequential steps. This is the most critical part of the prompt.
321
+ - _Example: "1. Create a new file named `RegistrationForm.js`. 2. Use React hooks for state management. 3. Add styled input fields for 'Name', 'Email', and 'Password'. 4. For the email field, ensure it is a valid email format. 5. On submission, call the API endpoint defined below."_
322
+ 3. **Code Examples, Data Structures & Constraints**: Include any relevant snippets of existing code, data structures, or API contracts. This gives the AI concrete examples to work with. Crucially, you must also state what _not_ to do.
323
+ - _Example: "Use this API endpoint: `POST /api/register`. The expected JSON payload is `{ "name": "string", "email": "string", "password": "string" }`. Do NOT include a 'confirm password' field. Use Tailwind CSS for all styling."_
324
+ 4. **Define a Strict Scope**: Explicitly define the boundaries of the task. Tell the AI which files it can modify and, more importantly, which files to leave untouched to prevent unintended changes across the codebase.
325
+ - _Example: "You should only create the `RegistrationForm.js` component and add it to the `pages/register.js` file. Do NOT alter the `Navbar.js` component or any other existing page or component."_
326
+
327
+ ### 3. Assembling the Master Prompt
328
+
329
+ You will now synthesize the inputs and the above principles into a final, comprehensive prompt.
330
+
331
+ 1. **Gather Foundational Context**:
332
+ - Start the prompt with a preamble describing the overall project purpose, the full tech stack (e.g., Next.js, TypeScript, Tailwind CSS), and the primary UI component library being used.
333
+ 2. **Describe the Visuals**:
334
+ - If the user has design files (Figma, etc.), instruct them to provide links or screenshots.
335
+ - If not, describe the visual style: color palette, typography, spacing, and overall aesthetic (e.g., "minimalist", "corporate", "playful").
336
+ 3. **Build the Prompt using the Structured Framework**:
337
+ - Follow the four-part framework from Section 2 to build out the core request, whether it's for a single component or a full page.
338
+ 4. **Present and Refine**:
339
+ - Output the complete, generated prompt in a clear, copy-pasteable format (e.g., a large code block).
340
+ - Explain the structure of the prompt and why certain information was included, referencing the principles above.
341
+ - <important_note>Conclude by reminding the user that all AI-generated code will require careful human review, testing, and refinement to be considered production-ready.</important_note>
342
+ ==================== END: .xiaoma-core/tasks/generate-ai-frontend-prompt.md ====================
343
+
345
344
  ==================== START: .xiaoma-core/templates/front-end-spec-tmpl.yaml ====================
345
+ # <!-- Powered by BMAD™ Core -->
346
346
  template:
347
347
  id: frontend-spec-template-v2
348
348
  name: UI/UX Specification
@@ -361,7 +361,7 @@ sections:
361
361
  title: Introduction
362
362
  instruction: |
363
363
  Review provided documents including Project Brief, PRD, and any user research to gather context. Focus on understanding user needs, pain points, and desired outcomes before beginning the specification.
364
-
364
+
365
365
  Establish the document's purpose and scope. Keep the content below but ensure project name is properly substituted.
366
366
  content: |
367
367
  This document defines the user experience goals, information architecture, user flows, and visual design specifications for {{project_name}}'s user interface. It serves as the foundation for visual design and frontend development, ensuring a cohesive and user-centered experience.
@@ -370,7 +370,7 @@ sections:
370
370
  title: Overall UX Goals & Principles
371
371
  instruction: |
372
372
  Work with the user to establish and document the following. If not already defined, facilitate a discussion to determine:
373
-
373
+
374
374
  1. Target User Personas - elicit details or confirm existing ones from PRD
375
375
  2. Key Usability Goals - understand what success looks like for users
376
376
  3. Core Design Principles - establish 3-5 guiding principles
@@ -411,7 +411,7 @@ sections:
411
411
  title: Information Architecture (IA)
412
412
  instruction: |
413
413
  Collaborate with the user to create a comprehensive information architecture:
414
-
414
+
415
415
  1. Build a Site Map or Screen Inventory showing all major areas
416
416
  2. Define the Navigation Structure (primary, secondary, breadcrumbs)
417
417
  3. Use Mermaid diagrams for visual representation
@@ -441,22 +441,22 @@ sections:
441
441
  title: Navigation Structure
442
442
  template: |
443
443
  **Primary Navigation:** {{primary_nav_description}}
444
-
444
+
445
445
  **Secondary Navigation:** {{secondary_nav_description}}
446
-
446
+
447
447
  **Breadcrumb Strategy:** {{breadcrumb_strategy}}
448
448
 
449
449
  - id: user-flows
450
450
  title: User Flows
451
451
  instruction: |
452
452
  For each critical user task identified in the PRD:
453
-
453
+
454
454
  1. Define the user's goal clearly
455
455
  2. Map out all steps including decision points
456
456
  3. Consider edge cases and error states
457
457
  4. Use Mermaid flow diagrams for clarity
458
458
  5. Link to external tools (Figma/Miro) if detailed flows exist there
459
-
459
+
460
460
  Create subsections for each major flow.
461
461
  elicit: true
462
462
  repeatable: true
@@ -465,9 +465,9 @@ sections:
465
465
  title: "{{flow_name}}"
466
466
  template: |
467
467
  **User Goal:** {{flow_goal}}
468
-
468
+
469
469
  **Entry Points:** {{entry_points}}
470
-
470
+
471
471
  **Success Criteria:** {{success_criteria}}
472
472
  sections:
473
473
  - id: flow-diagram
@@ -498,14 +498,14 @@ sections:
498
498
  title: "{{screen_name}}"
499
499
  template: |
500
500
  **Purpose:** {{screen_purpose}}
501
-
501
+
502
502
  **Key Elements:**
503
503
  - {{element_1}}
504
504
  - {{element_2}}
505
505
  - {{element_3}}
506
-
506
+
507
507
  **Interaction Notes:** {{interaction_notes}}
508
-
508
+
509
509
  **Design File Reference:** {{specific_frame_link}}
510
510
 
511
511
  - id: component-library
@@ -524,11 +524,11 @@ sections:
524
524
  title: "{{component_name}}"
525
525
  template: |
526
526
  **Purpose:** {{component_purpose}}
527
-
527
+
528
528
  **Variants:** {{component_variants}}
529
-
529
+
530
530
  **States:** {{component_states}}
531
-
531
+
532
532
  **Usage Guidelines:** {{usage_guidelines}}
533
533
 
534
534
  - id: branding-style
@@ -574,13 +574,13 @@ sections:
574
574
  title: Iconography
575
575
  template: |
576
576
  **Icon Library:** {{icon_library}}
577
-
577
+
578
578
  **Usage Guidelines:** {{icon_guidelines}}
579
579
  - id: spacing-layout
580
580
  title: Spacing & Layout
581
581
  template: |
582
582
  **Grid System:** {{grid_system}}
583
-
583
+
584
584
  **Spacing Scale:** {{spacing_scale}}
585
585
 
586
586
  - id: accessibility
@@ -598,12 +598,12 @@ sections:
598
598
  - Color contrast ratios: {{contrast_requirements}}
599
599
  - Focus indicators: {{focus_requirements}}
600
600
  - Text sizing: {{text_requirements}}
601
-
601
+
602
602
  **Interaction:**
603
603
  - Keyboard navigation: {{keyboard_requirements}}
604
604
  - Screen reader support: {{screen_reader_requirements}}
605
605
  - Touch targets: {{touch_requirements}}
606
-
606
+
607
607
  **Content:**
608
608
  - Alternative text: {{alt_text_requirements}}
609
609
  - Heading structure: {{heading_requirements}}
@@ -630,11 +630,11 @@ sections:
630
630
  title: Adaptation Patterns
631
631
  template: |
632
632
  **Layout Changes:** {{layout_adaptations}}
633
-
633
+
634
634
  **Navigation Changes:** {{nav_adaptations}}
635
-
635
+
636
636
  **Content Priority:** {{content_adaptations}}
637
-
637
+
638
638
  **Interaction Changes:** {{interaction_adaptations}}
639
639
 
640
640
  - id: animation
@@ -668,7 +668,7 @@ sections:
668
668
  title: Next Steps
669
669
  instruction: |
670
670
  After completing the UI/UX specification:
671
-
671
+
672
672
  1. Recommend review with stakeholders
673
673
  2. Suggest creating/updating visual designs in design tool
674
674
  3. Prepare for handoff to Design Architect for frontend architecture
@@ -695,6 +695,8 @@ sections:
695
695
  ==================== END: .xiaoma-core/templates/front-end-spec-tmpl.yaml ====================
696
696
 
697
697
  ==================== START: .xiaoma-core/data/technical-preferences.md ====================
698
+ <!-- Powered by BMAD™ Core -->
699
+
698
700
  # User-Defined Preferred Patterns and Preferences
699
701
 
700
702
  None Listed