@zeyue0329/xiaoma-cli 1.0.49 → 6.0.0-alpha.14

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 (921) hide show
  1. package/README.md +0 -2
  2. package/custom/src/agents/commit-poet/commit-poet.agent.yaml +129 -0
  3. package/custom/src/agents/commit-poet/installation-guide.md +36 -0
  4. package/custom/src/agents/toolsmith/installation-guide.md +36 -0
  5. package/custom/src/agents/toolsmith/toolsmith-sidecar/instructions.md +70 -0
  6. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +111 -0
  7. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +70 -0
  8. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +114 -0
  9. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +134 -0
  10. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +160 -0
  11. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +103 -0
  12. package/custom/src/agents/toolsmith/toolsmith-sidecar/memories.md +17 -0
  13. package/custom/src/agents/toolsmith/toolsmith.agent.yaml +108 -0
  14. package/docs/BUNDLE_DISTRIBUTION_SETUP.md +95 -0
  15. package/docs/agent-customization-guide.md +208 -0
  16. package/docs/custom-agent-installation.md +183 -0
  17. package/docs/document-sharding-guide.md +449 -0
  18. package/docs/ide-info/auggie.md +31 -0
  19. package/docs/ide-info/claude-code.md +25 -0
  20. package/docs/ide-info/cline.md +31 -0
  21. package/docs/ide-info/codex.md +21 -0
  22. package/docs/ide-info/crush.md +30 -0
  23. package/docs/ide-info/cursor.md +25 -0
  24. package/docs/ide-info/gemini.md +25 -0
  25. package/docs/ide-info/github-copilot.md +26 -0
  26. package/docs/ide-info/iflow.md +33 -0
  27. package/docs/ide-info/kilo.md +24 -0
  28. package/docs/ide-info/opencode.md +24 -0
  29. package/docs/ide-info/qwen.md +25 -0
  30. package/docs/ide-info/roo.md +27 -0
  31. package/docs/ide-info/rovo-dev.md +388 -0
  32. package/docs/ide-info/trae.md +25 -0
  33. package/docs/ide-info/windsurf.md +22 -0
  34. package/docs/index.md +144 -0
  35. package/docs/installers-bundlers/ide-injections.md +186 -0
  36. package/docs/installers-bundlers/installers-modules-platforms-reference.md +379 -0
  37. package/docs/rag/rag.md +812 -0
  38. package/docs/v4-to-v6-upgrade.md +220 -0
  39. package/docs/v6-open-items.md +17 -0
  40. package/docs/web-bundles-gemini-gpt-guide.md +468 -0
  41. package/eslint.config.mjs +133 -0
  42. package/package.json +41 -51
  43. package/prettier.config.mjs +32 -0
  44. package/src/core/_module-installer/install-config.yaml +29 -0
  45. package/src/core/_module-installer/installer.js +60 -0
  46. package/src/core/agents/xiaoma-master.agent.yaml +39 -0
  47. package/src/core/agents/xiaoma-web-orchestrator.agent.xml +113 -0
  48. package/src/core/resources/excalidraw/README.md +160 -0
  49. package/src/core/resources/excalidraw/excalidraw-helpers.md +127 -0
  50. package/src/core/resources/excalidraw/library-loader.md +50 -0
  51. package/src/core/resources/excalidraw/validate-json-instructions.md +79 -0
  52. package/src/core/tasks/advanced-elicitation-methods.csv +51 -0
  53. package/src/core/tasks/advanced-elicitation.xml +116 -0
  54. package/src/core/tasks/index-docs.xml +65 -0
  55. package/src/core/tasks/validate-workflow.xml +89 -0
  56. package/src/core/tasks/workflow.xml +235 -0
  57. package/src/core/tools/shard-doc.xml +109 -0
  58. package/src/core/workflows/brainstorming/brain-methods.csv +62 -0
  59. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +196 -0
  60. package/src/core/workflows/brainstorming/steps/step-01b-continue.md +121 -0
  61. package/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +224 -0
  62. package/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +236 -0
  63. package/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +208 -0
  64. package/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +263 -0
  65. package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +339 -0
  66. package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +302 -0
  67. package/src/core/workflows/brainstorming/template.md +15 -0
  68. package/src/core/workflows/brainstorming/workflow.md +51 -0
  69. package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
  70. package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +203 -0
  71. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -0
  72. package/src/core/workflows/party-mode/workflow.md +207 -0
  73. package/src/modules/cis/_module-installer/install-config.yaml +16 -0
  74. package/src/modules/cis/_module-installer/installer.js +92 -0
  75. package/src/modules/cis/agents/README.md +104 -0
  76. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +29 -0
  77. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +29 -0
  78. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +29 -0
  79. package/src/modules/cis/agents/innovation-strategist.agent.yaml +29 -0
  80. package/src/modules/cis/agents/presentation-master.agent.yaml +61 -0
  81. package/src/modules/cis/agents/storyteller.agent.yaml +29 -0
  82. package/src/modules/cis/readme.md +153 -0
  83. package/src/modules/cis/teams/creative-squad.yaml +7 -0
  84. package/src/modules/cis/teams/default-party.csv +12 -0
  85. package/src/modules/cis/workflows/README.md +139 -0
  86. package/src/modules/cis/workflows/design-thinking/README.md +56 -0
  87. package/src/modules/cis/workflows/design-thinking/design-methods.csv +31 -0
  88. package/src/modules/cis/workflows/design-thinking/instructions.md +202 -0
  89. package/src/modules/cis/workflows/design-thinking/template.md +111 -0
  90. package/src/modules/cis/workflows/design-thinking/workflow.yaml +38 -0
  91. package/src/modules/cis/workflows/innovation-strategy/README.md +56 -0
  92. package/src/modules/cis/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
  93. package/src/modules/cis/workflows/innovation-strategy/instructions.md +276 -0
  94. package/src/modules/cis/workflows/innovation-strategy/template.md +189 -0
  95. package/src/modules/cis/workflows/innovation-strategy/workflow.yaml +38 -0
  96. package/src/modules/cis/workflows/problem-solving/README.md +56 -0
  97. package/src/modules/cis/workflows/problem-solving/instructions.md +252 -0
  98. package/src/modules/cis/workflows/problem-solving/solving-methods.csv +31 -0
  99. package/src/modules/cis/workflows/problem-solving/template.md +165 -0
  100. package/src/modules/cis/workflows/problem-solving/workflow.yaml +38 -0
  101. package/src/modules/cis/workflows/storytelling/README.md +58 -0
  102. package/src/modules/cis/workflows/storytelling/instructions.md +293 -0
  103. package/src/modules/cis/workflows/storytelling/story-types.csv +26 -0
  104. package/src/modules/cis/workflows/storytelling/template.md +113 -0
  105. package/src/modules/cis/workflows/storytelling/workflow.yaml +38 -0
  106. package/src/modules/xmb/README.md +261 -0
  107. package/src/modules/xmb/_module-installer/install-config.yaml +28 -0
  108. package/src/modules/xmb/agents/xiaoma-builder.agent.yaml +71 -0
  109. package/src/modules/xmb/docs/agents/agent-compilation.md +340 -0
  110. package/src/modules/xmb/docs/agents/agent-menu-patterns.md +524 -0
  111. package/src/modules/xmb/docs/agents/expert-agent-architecture.md +364 -0
  112. package/src/modules/xmb/docs/agents/index.md +55 -0
  113. package/src/modules/xmb/docs/agents/kb.csv +0 -0
  114. package/src/modules/xmb/docs/agents/module-agent-architecture.md +367 -0
  115. package/src/modules/xmb/docs/agents/simple-agent-architecture.md +288 -0
  116. package/src/modules/xmb/docs/agents/understanding-agent-types.md +184 -0
  117. package/src/modules/xmb/docs/workflows/architecture.md +220 -0
  118. package/src/modules/xmb/docs/workflows/common-workflow-tools.csv +19 -0
  119. package/src/modules/xmb/docs/workflows/csv-data-file-standards.md +206 -0
  120. package/src/modules/xmb/docs/workflows/index.md +45 -0
  121. package/src/modules/xmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -0
  122. package/src/modules/xmb/docs/workflows/kb.csv +0 -0
  123. package/src/modules/xmb/docs/workflows/step-template.md +283 -0
  124. package/src/modules/xmb/docs/workflows/terms.md +97 -0
  125. package/src/modules/xmb/docs/workflows/workflow-template.md +152 -0
  126. package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  127. package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  128. package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  129. package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  130. package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  131. package/src/modules/xmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  132. package/src/modules/xmb/reference/agents/module-examples/README.md +50 -0
  133. package/src/modules/xmb/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  134. package/src/modules/xmb/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  135. package/src/modules/xmb/reference/agents/simple-examples/README.md +223 -0
  136. package/src/modules/xmb/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  137. package/src/modules/xmb/reference/readme.md +3 -0
  138. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  139. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  140. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  141. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  142. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  143. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  144. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  145. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  146. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  147. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  148. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  149. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  150. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  151. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  152. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  153. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  154. package/src/modules/xmb/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  155. package/src/modules/xmb/workflows/create-agent/data/agent-validation-checklist.md +174 -0
  156. package/src/modules/xmb/workflows/create-agent/data/brainstorm-context.md +153 -0
  157. package/src/modules/xmb/workflows/create-agent/data/communication-presets.csv +61 -0
  158. package/src/modules/xmb/workflows/create-agent/data/info-and-installation-guide.md +17 -0
  159. package/src/modules/xmb/workflows/create-agent/data/reference/README.md +3 -0
  160. package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  161. package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  162. package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  163. package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  164. package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  165. package/src/modules/xmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  166. package/src/modules/xmb/workflows/create-agent/data/reference/agents/module-examples/README.md +50 -0
  167. package/src/modules/xmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  168. package/src/modules/xmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  169. package/src/modules/xmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +223 -0
  170. package/src/modules/xmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  171. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  172. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  173. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  174. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  175. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  176. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  177. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  178. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  179. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  180. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  181. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  182. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  183. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  184. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  185. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  186. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  187. package/src/modules/xmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  188. package/src/modules/xmb/workflows/create-agent/data/validation-complete.md +305 -0
  189. package/src/modules/xmb/workflows/create-agent/steps/step-01-brainstorm.md +145 -0
  190. package/src/modules/xmb/workflows/create-agent/steps/step-02-discover.md +210 -0
  191. package/src/modules/xmb/workflows/create-agent/steps/step-03-persona.md +260 -0
  192. package/src/modules/xmb/workflows/create-agent/steps/step-04-commands.md +237 -0
  193. package/src/modules/xmb/workflows/create-agent/steps/step-05-name.md +231 -0
  194. package/src/modules/xmb/workflows/create-agent/steps/step-06-build.md +224 -0
  195. package/src/modules/xmb/workflows/create-agent/steps/step-07-validate.md +234 -0
  196. package/src/modules/xmb/workflows/create-agent/steps/step-08-setup.md +179 -0
  197. package/src/modules/xmb/workflows/create-agent/steps/step-09-customize.md +197 -0
  198. package/src/modules/xmb/workflows/create-agent/steps/step-10-build-tools.md +180 -0
  199. package/src/modules/xmb/workflows/create-agent/steps/step-11-celebrate.md +222 -0
  200. package/src/modules/xmb/workflows/create-agent/templates/agent_commands.md +21 -0
  201. package/src/modules/xmb/workflows/create-agent/templates/agent_persona.md +25 -0
  202. package/src/modules/xmb/workflows/create-agent/templates/agent_purpose_and_type.md +23 -0
  203. package/src/modules/xmb/workflows/create-agent/workflow.md +91 -0
  204. package/src/modules/xmb/workflows/create-workflow/steps/step-01-init.md +168 -0
  205. package/src/modules/xmb/workflows/create-workflow/steps/step-02-gather.md +233 -0
  206. package/src/modules/xmb/workflows/create-workflow/steps/step-03-tools-overview.md +127 -0
  207. package/src/modules/xmb/workflows/create-workflow/steps/step-04-core-tools.md +145 -0
  208. package/src/modules/xmb/workflows/create-workflow/steps/step-05-memory-requirements.md +136 -0
  209. package/src/modules/xmb/workflows/create-workflow/steps/step-06-external-tools.md +154 -0
  210. package/src/modules/xmb/workflows/create-workflow/steps/step-07-installation-guidance.md +159 -0
  211. package/src/modules/xmb/workflows/create-workflow/steps/step-08-tools-summary.md +167 -0
  212. package/src/modules/xmb/workflows/create-workflow/steps/step-09-design.md +239 -0
  213. package/src/modules/xmb/workflows/create-workflow/steps/step-10-plan-review.md +215 -0
  214. package/src/modules/xmb/workflows/create-workflow/steps/step-11-build.md +262 -0
  215. package/src/modules/xmb/workflows/create-workflow/steps/step-12-review.md +270 -0
  216. package/src/modules/xmb/workflows/create-workflow/templates/build-summary.md +36 -0
  217. package/src/modules/xmb/workflows/create-workflow/templates/completion-section.md +39 -0
  218. package/src/modules/xmb/workflows/create-workflow/templates/content-template.md +21 -0
  219. package/src/modules/xmb/workflows/create-workflow/templates/design-section.md +53 -0
  220. package/src/modules/xmb/workflows/create-workflow/templates/project-info.md +18 -0
  221. package/src/modules/xmb/workflows/create-workflow/templates/requirements-section.md +47 -0
  222. package/src/modules/xmb/workflows/create-workflow/templates/review-section.md +56 -0
  223. package/src/modules/xmb/workflows/create-workflow/templates/step-file.md +139 -0
  224. package/src/modules/xmb/workflows/create-workflow/templates/workflow-plan.md +54 -0
  225. package/src/modules/xmb/workflows/create-workflow/templates/workflow.md +58 -0
  226. package/src/modules/xmb/workflows/create-workflow/workflow.md +58 -0
  227. package/src/modules/xmb/workflows/edit-agent/steps/step-01-discover-intent.md +134 -0
  228. package/src/modules/xmb/workflows/edit-agent/steps/step-02-analyze-agent.md +202 -0
  229. package/src/modules/xmb/workflows/edit-agent/steps/step-03-propose-changes.md +157 -0
  230. package/src/modules/xmb/workflows/edit-agent/steps/step-04-apply-changes.md +150 -0
  231. package/src/modules/xmb/workflows/edit-agent/steps/step-05-validate.md +150 -0
  232. package/src/modules/xmb/workflows/edit-agent/workflow.md +58 -0
  233. package/src/modules/xmb/workflows/edit-workflow/steps/step-01-analyze.md +221 -0
  234. package/src/modules/xmb/workflows/edit-workflow/steps/step-02-discover.md +253 -0
  235. package/src/modules/xmb/workflows/edit-workflow/steps/step-03-improve.md +217 -0
  236. package/src/modules/xmb/workflows/edit-workflow/steps/step-04-validate.md +193 -0
  237. package/src/modules/xmb/workflows/edit-workflow/steps/step-05-compliance-check.md +245 -0
  238. package/src/modules/xmb/workflows/edit-workflow/templates/completion-summary.md +75 -0
  239. package/src/modules/xmb/workflows/edit-workflow/templates/improvement-goals.md +68 -0
  240. package/src/modules/xmb/workflows/edit-workflow/templates/improvement-log.md +40 -0
  241. package/src/modules/xmb/workflows/edit-workflow/templates/validation-results.md +51 -0
  242. package/src/modules/xmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -0
  243. package/src/modules/xmb/workflows/edit-workflow/workflow.md +58 -0
  244. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +152 -0
  245. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +243 -0
  246. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +274 -0
  247. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +295 -0
  248. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +264 -0
  249. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +360 -0
  250. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +258 -0
  251. package/src/modules/xmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +301 -0
  252. package/src/modules/xmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -0
  253. package/src/modules/xmb/workflows/workflow-compliance-check/workflow.md +58 -0
  254. package/src/modules/xmb/workflows-legacy/create-module/README.md +229 -0
  255. package/src/modules/xmb/workflows-legacy/create-module/brainstorm-context.md +137 -0
  256. package/src/modules/xmb/workflows-legacy/create-module/checklist.md +235 -0
  257. package/src/modules/xmb/workflows-legacy/create-module/installer-templates/install-config.yaml +92 -0
  258. package/src/modules/xmb/workflows-legacy/create-module/installer-templates/installer.js +231 -0
  259. package/src/modules/xmb/workflows-legacy/create-module/instructions.md +577 -0
  260. package/src/modules/xmb/workflows-legacy/create-module/module-structure.md +400 -0
  261. package/src/modules/xmb/workflows-legacy/create-module/workflow.yaml +52 -0
  262. package/src/modules/xmb/workflows-legacy/edit-module/README.md +187 -0
  263. package/src/modules/xmb/workflows-legacy/edit-module/checklist.md +165 -0
  264. package/src/modules/xmb/workflows-legacy/edit-module/instructions.md +341 -0
  265. package/src/modules/xmb/workflows-legacy/edit-module/workflow.yaml +34 -0
  266. package/src/modules/xmb/workflows-legacy/module-brief/README.md +264 -0
  267. package/src/modules/xmb/workflows-legacy/module-brief/checklist.md +116 -0
  268. package/src/modules/xmb/workflows-legacy/module-brief/instructions.md +268 -0
  269. package/src/modules/xmb/workflows-legacy/module-brief/template.md +275 -0
  270. package/src/modules/xmb/workflows-legacy/module-brief/workflow.yaml +36 -0
  271. package/src/modules/xmc/README.md +128 -0
  272. package/src/modules/xmc/_module-installer/install-config.yaml +53 -0
  273. package/src/modules/xmc/_module-installer/installer.js +131 -0
  274. package/src/modules/xmc/_module-installer/platform-specifics/claude-code.js +35 -0
  275. package/src/modules/xmc/_module-installer/platform-specifics/windsurf.js +32 -0
  276. package/src/modules/xmc/agents/analyst.agent.yaml +49 -0
  277. package/src/modules/xmc/agents/architect.agent.yaml +52 -0
  278. package/src/modules/xmc/agents/auto-iteration-orchestrator.agent.yaml +115 -0
  279. package/src/modules/xmc/agents/dev.agent.yaml +44 -0
  280. package/src/modules/xmc/agents/pm.agent.yaml +50 -0
  281. package/src/modules/xmc/agents/quick-flow-solo-dev.agent.yaml +36 -0
  282. package/src/modules/xmc/agents/sm.agent.yaml +55 -0
  283. package/src/modules/xmc/agents/tea.agent.yaml +70 -0
  284. package/src/modules/xmc/agents/tech-writer.agent.yaml +67 -0
  285. package/src/modules/xmc/agents/ux-designer.agent.yaml +45 -0
  286. package/src/modules/xmc/data/README.md +29 -0
  287. package/src/modules/xmc/data/documentation-standards.md +262 -0
  288. package/src/modules/xmc/data/project-context-template.md +40 -0
  289. package/src/modules/xmc/docs/README.md +252 -0
  290. package/src/modules/xmc/docs/agents-guide.md +952 -0
  291. package/src/modules/xmc/docs/brownfield-guide.md +750 -0
  292. package/src/modules/xmc/docs/enterprise-agentic-development.md +686 -0
  293. package/src/modules/xmc/docs/faq.md +561 -0
  294. package/src/modules/xmc/docs/glossary.md +303 -0
  295. package/src/modules/xmc/docs/images/workflow-method-greenfield.excalidraw +5174 -0
  296. package/src/modules/xmc/docs/images/workflow-method-greenfield.svg +2 -0
  297. package/src/modules/xmc/docs/iteration-development-guide.md +752 -0
  298. package/src/modules/xmc/docs/party-mode.md +224 -0
  299. package/src/modules/xmc/docs/quick-flow-solo-dev.md +337 -0
  300. package/src/modules/xmc/docs/quick-start.md +367 -0
  301. package/src/modules/xmc/docs/scale-adaptive-system.md +618 -0
  302. package/src/modules/xmc/docs/test-architecture.md +462 -0
  303. package/src/modules/xmc/docs/workflow-architecture-reference.md +366 -0
  304. package/src/modules/xmc/docs/workflow-document-project-reference.md +489 -0
  305. package/src/modules/xmc/docs/workflows-analysis.md +266 -0
  306. package/src/modules/xmc/docs/workflows-implementation.md +171 -0
  307. package/src/modules/xmc/docs/workflows-planning.md +451 -0
  308. package/src/modules/xmc/docs/workflows-solutioning.md +509 -0
  309. package/src/modules/xmc/docs/xiaoma-quick-flow.md +528 -0
  310. package/src/modules/xmc/sub-modules/claude-code/config.yaml +5 -0
  311. package/src/modules/xmc/sub-modules/claude-code/injections.yaml +242 -0
  312. package/src/modules/xmc/sub-modules/claude-code/readme.md +87 -0
  313. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/api-documenter.md +102 -0
  314. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/codebase-analyzer.md +82 -0
  315. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/data-analyst.md +101 -0
  316. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-analysis/pattern-detector.md +84 -0
  317. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/dependency-mapper.md +83 -0
  318. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/epic-optimizer.md +81 -0
  319. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/requirements-analyst.md +61 -0
  320. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/technical-decisions-curator.md +168 -0
  321. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/trend-spotter.md +115 -0
  322. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/user-journey-mapper.md +123 -0
  323. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-planning/user-researcher.md +72 -0
  324. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-research/market-researcher.md +51 -0
  325. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-research/tech-debt-auditor.md +106 -0
  326. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-review/document-reviewer.md +102 -0
  327. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-review/technical-evaluator.md +68 -0
  328. package/src/modules/xmc/sub-modules/claude-code/sub-agents/bmad-review/test-coverage-analyzer.md +108 -0
  329. package/src/modules/xmc/teams/default-party.csv +21 -0
  330. package/src/modules/xmc/teams/team-fullstack.yaml +12 -0
  331. package/src/modules/xmc/testarch/knowledge/api-request.md +303 -0
  332. package/src/modules/xmc/testarch/knowledge/auth-session.md +356 -0
  333. package/src/modules/xmc/testarch/knowledge/burn-in.md +273 -0
  334. package/src/modules/xmc/testarch/knowledge/ci-burn-in.md +675 -0
  335. package/src/modules/xmc/testarch/knowledge/component-tdd.md +486 -0
  336. package/src/modules/xmc/testarch/knowledge/contract-testing.md +957 -0
  337. package/src/modules/xmc/testarch/knowledge/data-factories.md +500 -0
  338. package/src/modules/xmc/testarch/knowledge/email-auth.md +721 -0
  339. package/src/modules/xmc/testarch/knowledge/error-handling.md +725 -0
  340. package/src/modules/xmc/testarch/knowledge/feature-flags.md +750 -0
  341. package/src/modules/xmc/testarch/knowledge/file-utils.md +260 -0
  342. package/src/modules/xmc/testarch/knowledge/fixture-architecture.md +401 -0
  343. package/src/modules/xmc/testarch/knowledge/fixtures-composition.md +382 -0
  344. package/src/modules/xmc/testarch/knowledge/intercept-network-call.md +280 -0
  345. package/src/modules/xmc/testarch/knowledge/log.md +294 -0
  346. package/src/modules/xmc/testarch/knowledge/network-error-monitor.md +272 -0
  347. package/src/modules/xmc/testarch/knowledge/network-first.md +486 -0
  348. package/src/modules/xmc/testarch/knowledge/network-recorder.md +265 -0
  349. package/src/modules/xmc/testarch/knowledge/nfr-criteria.md +670 -0
  350. package/src/modules/xmc/testarch/knowledge/overview.md +284 -0
  351. package/src/modules/xmc/testarch/knowledge/playwright-config.md +730 -0
  352. package/src/modules/xmc/testarch/knowledge/probability-impact.md +601 -0
  353. package/src/modules/xmc/testarch/knowledge/recurse.md +296 -0
  354. package/src/modules/xmc/testarch/knowledge/risk-governance.md +615 -0
  355. package/src/modules/xmc/testarch/knowledge/selective-testing.md +732 -0
  356. package/src/modules/xmc/testarch/knowledge/selector-resilience.md +527 -0
  357. package/src/modules/xmc/testarch/knowledge/test-healing-patterns.md +644 -0
  358. package/src/modules/xmc/testarch/knowledge/test-levels-framework.md +473 -0
  359. package/src/modules/xmc/testarch/knowledge/test-priorities-matrix.md +373 -0
  360. package/src/modules/xmc/testarch/knowledge/test-quality.md +664 -0
  361. package/src/modules/xmc/testarch/knowledge/timing-debugging.md +372 -0
  362. package/src/modules/xmc/testarch/knowledge/visual-debugging.md +524 -0
  363. package/src/modules/xmc/testarch/tea-index.csv +33 -0
  364. package/src/modules/xmc/workflows/1-analysis/product-brief/product-brief.template.md +8 -0
  365. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-01-init.md +192 -0
  366. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-01b-continue.md +167 -0
  367. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-02-vision.md +203 -0
  368. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-03-users.md +206 -0
  369. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-04-metrics.md +209 -0
  370. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-05-scope.md +223 -0
  371. package/src/modules/xmc/workflows/1-analysis/product-brief/steps/step-06-complete.md +199 -0
  372. package/src/modules/xmc/workflows/1-analysis/product-brief/workflow.md +58 -0
  373. package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-01-init.md +136 -0
  374. package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +228 -0
  375. package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +237 -0
  376. package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +205 -0
  377. package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +233 -0
  378. package/src/modules/xmc/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  379. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  380. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +235 -0
  381. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +198 -0
  382. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +247 -0
  383. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +257 -0
  384. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +175 -0
  385. package/src/modules/xmc/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  386. package/src/modules/xmc/workflows/1-analysis/research/research.template.md +16 -0
  387. package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-01-init.md +136 -0
  388. package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +237 -0
  389. package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +246 -0
  390. package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +200 -0
  391. package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +237 -0
  392. package/src/modules/xmc/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  393. package/src/modules/xmc/workflows/1-analysis/research/workflow.md +198 -0
  394. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +159 -0
  395. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +126 -0
  396. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +209 -0
  397. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +215 -0
  398. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +218 -0
  399. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +233 -0
  400. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +251 -0
  401. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +253 -0
  402. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +223 -0
  403. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +223 -0
  404. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +240 -0
  405. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +247 -0
  406. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +236 -0
  407. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +263 -0
  408. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +226 -0
  409. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -0
  410. package/src/modules/xmc/workflows/2-plan-workflows/create-ux-design/workflow.md +53 -0
  411. package/src/modules/xmc/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  412. package/src/modules/xmc/workflows/2-plan-workflows/prd/prd-template.md +9 -0
  413. package/src/modules/xmc/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  414. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-01-init.md +161 -0
  415. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +123 -0
  416. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +275 -0
  417. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-03-success.md +271 -0
  418. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +272 -0
  419. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-05-domain.md +249 -0
  420. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +240 -0
  421. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +236 -0
  422. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +280 -0
  423. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-09-functional.md +251 -0
  424. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +275 -0
  425. package/src/modules/xmc/workflows/2-plan-workflows/prd/steps/step-11-complete.md +210 -0
  426. package/src/modules/xmc/workflows/2-plan-workflows/prd/workflow.md +61 -0
  427. package/src/modules/xmc/workflows/3-solutioning/architecture/architecture-decision-template.md +13 -0
  428. package/src/modules/xmc/workflows/3-solutioning/architecture/data/domain-complexity.csv +11 -0
  429. package/src/modules/xmc/workflows/3-solutioning/architecture/data/project-types.csv +7 -0
  430. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-01-init.md +194 -0
  431. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-01b-continue.md +163 -0
  432. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-02-context.md +223 -0
  433. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-03-starter.md +330 -0
  434. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-04-decisions.md +317 -0
  435. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-05-patterns.md +358 -0
  436. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-06-structure.md +378 -0
  437. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-07-validation.md +358 -0
  438. package/src/modules/xmc/workflows/3-solutioning/architecture/steps/step-08-complete.md +351 -0
  439. package/src/modules/xmc/workflows/3-solutioning/architecture/workflow.md +48 -0
  440. package/src/modules/xmc/workflows/3-solutioning/create-epics-and-stories/epics-template.md +80 -0
  441. package/src/modules/xmc/workflows/3-solutioning/create-epics-and-stories/instructions.md +387 -0
  442. package/src/modules/xmc/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +53 -0
  443. package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/checklist.md +169 -0
  444. package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/instructions.md +332 -0
  445. package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/template.md +146 -0
  446. package/src/modules/xmc/workflows/3-solutioning/implementation-readiness/workflow.yaml +64 -0
  447. package/src/modules/xmc/workflows/4-implementation/code-review/instructions.xml +176 -0
  448. package/src/modules/xmc/workflows/4-implementation/code-review/workflow.yaml +54 -0
  449. package/src/modules/xmc/workflows/4-implementation/correct-course/checklist.md +279 -0
  450. package/src/modules/xmc/workflows/4-implementation/correct-course/instructions.md +206 -0
  451. package/src/modules/xmc/workflows/4-implementation/correct-course/workflow.yaml +58 -0
  452. package/src/modules/xmc/workflows/4-implementation/create-story/checklist.md +358 -0
  453. package/src/modules/xmc/workflows/4-implementation/create-story/instructions.xml +354 -0
  454. package/src/modules/xmc/workflows/4-implementation/create-story/template.md +51 -0
  455. package/src/modules/xmc/workflows/4-implementation/create-story/workflow.yaml +60 -0
  456. package/src/modules/xmc/workflows/4-implementation/dev-story/checklist.md +80 -0
  457. package/src/modules/xmc/workflows/4-implementation/dev-story/instructions.xml +406 -0
  458. package/src/modules/xmc/workflows/4-implementation/dev-story/workflow.yaml +27 -0
  459. package/src/modules/xmc/workflows/4-implementation/retrospective/instructions.md +1443 -0
  460. package/src/modules/xmc/workflows/4-implementation/retrospective/workflow.yaml +57 -0
  461. package/src/modules/xmc/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  462. package/src/modules/xmc/workflows/4-implementation/sprint-planning/instructions.md +232 -0
  463. package/src/modules/xmc/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +56 -0
  464. package/src/modules/xmc/workflows/4-implementation/sprint-planning/workflow.yaml +53 -0
  465. package/src/modules/xmc/workflows/auto-iteration/full-auto-workflow.md +692 -0
  466. package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-call-points.md +595 -0
  467. package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-interface.md +347 -0
  468. package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-query.md +368 -0
  469. package/src/modules/xmc/workflows/auto-iteration/knowledge-base/kb-setup.md +343 -0
  470. package/src/modules/xmc/workflows/auto-iteration/phases/phase-1-analyze.md +406 -0
  471. package/src/modules/xmc/workflows/auto-iteration/phases/phase-2-plan.md +574 -0
  472. package/src/modules/xmc/workflows/auto-iteration/phases/phase-3-design.md +628 -0
  473. package/src/modules/xmc/workflows/auto-iteration/phases/phase-4-develop.md +622 -0
  474. package/src/modules/xmc/workflows/auto-iteration/phases/phase-5-test.md +538 -0
  475. package/src/modules/xmc/workflows/auto-iteration/resume.md +254 -0
  476. package/src/modules/xmc/workflows/auto-iteration/status.md +194 -0
  477. package/src/modules/xmc/workflows/auto-iteration/templates/auto-iteration-status.template.yaml +142 -0
  478. package/src/modules/xmc/workflows/bmad-quick-flow/create-tech-spec/instructions.md +115 -0
  479. package/src/modules/xmc/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +26 -0
  480. package/src/modules/xmc/workflows/bmad-quick-flow/quick-dev/checklist.md +25 -0
  481. package/src/modules/xmc/workflows/bmad-quick-flow/quick-dev/instructions.md +105 -0
  482. package/src/modules/xmc/workflows/bmad-quick-flow/quick-dev/workflow.yaml +29 -0
  483. package/src/modules/xmc/workflows/diagrams/_shared/excalidraw-library.json +90 -0
  484. package/src/modules/xmc/workflows/diagrams/_shared/excalidraw-templates.yaml +127 -0
  485. package/src/modules/xmc/workflows/diagrams/create-dataflow/checklist.md +39 -0
  486. package/src/modules/xmc/workflows/diagrams/create-dataflow/instructions.md +130 -0
  487. package/src/modules/xmc/workflows/diagrams/create-dataflow/workflow.yaml +27 -0
  488. package/src/modules/xmc/workflows/diagrams/create-diagram/checklist.md +43 -0
  489. package/src/modules/xmc/workflows/diagrams/create-diagram/instructions.md +141 -0
  490. package/src/modules/xmc/workflows/diagrams/create-diagram/workflow.yaml +27 -0
  491. package/src/modules/xmc/workflows/diagrams/create-flowchart/checklist.md +49 -0
  492. package/src/modules/xmc/workflows/diagrams/create-flowchart/instructions.md +241 -0
  493. package/src/modules/xmc/workflows/diagrams/create-flowchart/workflow.yaml +27 -0
  494. package/src/modules/xmc/workflows/diagrams/create-wireframe/checklist.md +38 -0
  495. package/src/modules/xmc/workflows/diagrams/create-wireframe/instructions.md +133 -0
  496. package/src/modules/xmc/workflows/diagrams/create-wireframe/workflow.yaml +27 -0
  497. package/src/modules/xmc/workflows/document-project/checklist.md +245 -0
  498. package/src/modules/xmc/workflows/document-project/documentation-requirements.csv +12 -0
  499. package/src/modules/xmc/workflows/document-project/instructions.md +222 -0
  500. package/src/modules/xmc/workflows/document-project/templates/deep-dive-template.md +345 -0
  501. package/src/modules/xmc/workflows/document-project/templates/index-template.md +169 -0
  502. package/src/modules/xmc/workflows/document-project/templates/project-overview-template.md +103 -0
  503. package/src/modules/xmc/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  504. package/src/modules/xmc/workflows/document-project/templates/source-tree-template.md +135 -0
  505. package/src/modules/xmc/workflows/document-project/workflow.yaml +31 -0
  506. package/src/modules/xmc/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  507. package/src/modules/xmc/workflows/document-project/workflows/deep-dive.yaml +31 -0
  508. package/src/modules/xmc/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  509. package/src/modules/xmc/workflows/document-project/workflows/full-scan.yaml +31 -0
  510. package/src/modules/xmc/workflows/generate-project-context/project-context-template.md +20 -0
  511. package/src/modules/xmc/workflows/generate-project-context/steps/step-01-discover.md +193 -0
  512. package/src/modules/xmc/workflows/generate-project-context/steps/step-02-generate.md +317 -0
  513. package/src/modules/xmc/workflows/generate-project-context/steps/step-03-complete.md +277 -0
  514. package/src/modules/xmc/workflows/generate-project-context/workflow.md +48 -0
  515. package/src/modules/xmc/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  516. package/src/modules/xmc/workflows/testarch/atdd/checklist.md +373 -0
  517. package/src/modules/xmc/workflows/testarch/atdd/instructions.md +805 -0
  518. package/src/modules/xmc/workflows/testarch/atdd/workflow.yaml +47 -0
  519. package/src/modules/xmc/workflows/testarch/automate/checklist.md +580 -0
  520. package/src/modules/xmc/workflows/testarch/automate/instructions.md +1324 -0
  521. package/src/modules/xmc/workflows/testarch/automate/workflow.yaml +54 -0
  522. package/src/modules/xmc/workflows/testarch/ci/checklist.md +246 -0
  523. package/src/modules/xmc/workflows/testarch/ci/github-actions-template.yaml +165 -0
  524. package/src/modules/xmc/workflows/testarch/ci/gitlab-ci-template.yaml +128 -0
  525. package/src/modules/xmc/workflows/testarch/ci/instructions.md +534 -0
  526. package/src/modules/xmc/workflows/testarch/ci/workflow.yaml +47 -0
  527. package/src/modules/xmc/workflows/testarch/framework/checklist.md +321 -0
  528. package/src/modules/xmc/workflows/testarch/framework/instructions.md +481 -0
  529. package/src/modules/xmc/workflows/testarch/framework/workflow.yaml +49 -0
  530. package/src/modules/xmc/workflows/testarch/nfr-assess/checklist.md +405 -0
  531. package/src/modules/xmc/workflows/testarch/nfr-assess/instructions.md +722 -0
  532. package/src/modules/xmc/workflows/testarch/nfr-assess/nfr-report-template.md +443 -0
  533. package/src/modules/xmc/workflows/testarch/nfr-assess/workflow.yaml +49 -0
  534. package/src/modules/xmc/workflows/testarch/test-design/checklist.md +234 -0
  535. package/src/modules/xmc/workflows/testarch/test-design/instructions.md +788 -0
  536. package/src/modules/xmc/workflows/testarch/test-design/test-design-template.md +285 -0
  537. package/src/modules/xmc/workflows/testarch/test-design/workflow.yaml +50 -0
  538. package/src/modules/xmc/workflows/testarch/test-review/checklist.md +470 -0
  539. package/src/modules/xmc/workflows/testarch/test-review/instructions.md +628 -0
  540. package/src/modules/xmc/workflows/testarch/test-review/test-review-template.md +388 -0
  541. package/src/modules/xmc/workflows/testarch/test-review/workflow.yaml +48 -0
  542. package/src/modules/xmc/workflows/testarch/trace/checklist.md +654 -0
  543. package/src/modules/xmc/workflows/testarch/trace/instructions.md +1045 -0
  544. package/src/modules/xmc/workflows/testarch/trace/trace-template.md +673 -0
  545. package/src/modules/xmc/workflows/testarch/trace/workflow.yaml +57 -0
  546. package/src/modules/xmc/workflows/workflow-status/init/instructions.md +331 -0
  547. package/src/modules/xmc/workflows/workflow-status/init/workflow.yaml +29 -0
  548. package/src/modules/xmc/workflows/workflow-status/instructions.md +395 -0
  549. package/src/modules/xmc/workflows/workflow-status/paths/enterprise-brownfield.yaml +127 -0
  550. package/src/modules/xmc/workflows/workflow-status/paths/enterprise-greenfield.yaml +115 -0
  551. package/src/modules/xmc/workflows/workflow-status/paths/method-brownfield.yaml +111 -0
  552. package/src/modules/xmc/workflows/workflow-status/paths/method-greenfield.yaml +102 -0
  553. package/src/modules/xmc/workflows/workflow-status/project-levels.yaml +59 -0
  554. package/src/modules/xmc/workflows/workflow-status/workflow-status-template.yaml +24 -0
  555. package/src/modules/xmc/workflows/workflow-status/workflow.yaml +30 -0
  556. package/src/utility/models/action-command-header.md +0 -0
  557. package/src/utility/models/agent-activation-ide.xml +51 -0
  558. package/src/utility/models/agent-activation-web.xml +50 -0
  559. package/src/utility/models/agent-command-header.md +1 -0
  560. package/src/utility/models/agent-config-template.md +23 -0
  561. package/src/utility/models/agent-in-team-activation.xml +3 -0
  562. package/src/utility/models/fragments/activation-rules.xml +7 -0
  563. package/src/utility/models/fragments/activation-steps.xml +16 -0
  564. package/src/utility/models/fragments/handler-action.xml +4 -0
  565. package/src/utility/models/fragments/handler-data.xml +5 -0
  566. package/src/utility/models/fragments/handler-exec.xml +6 -0
  567. package/src/utility/models/fragments/handler-multi.xml +14 -0
  568. package/src/utility/models/fragments/handler-tmpl.xml +5 -0
  569. package/src/utility/models/fragments/handler-validate-workflow.xml +7 -0
  570. package/src/utility/models/fragments/handler-workflow.xml +9 -0
  571. package/src/utility/models/fragments/menu-handlers.xml +6 -0
  572. package/src/utility/models/fragments/web-bundle-activation-steps.xml +32 -0
  573. package/src/utility/templates/agent.customize.template.yaml +42 -0
  574. package/test/README.md +295 -0
  575. package/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml +26 -0
  576. package/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml +29 -0
  577. package/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml +21 -0
  578. package/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml +19 -0
  579. package/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml +24 -0
  580. package/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml +23 -0
  581. package/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml +24 -0
  582. package/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml +30 -0
  583. package/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml +24 -0
  584. package/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml +24 -0
  585. package/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml +24 -0
  586. package/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml +24 -0
  587. package/test/fixtures/agent-schema/invalid/metadata/core-agent-with-module.agent.yaml +26 -0
  588. package/test/fixtures/agent-schema/invalid/metadata/empty-module-string.agent.yaml +26 -0
  589. package/test/fixtures/agent-schema/invalid/metadata/empty-name.agent.yaml +24 -0
  590. package/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml +26 -0
  591. package/test/fixtures/agent-schema/invalid/metadata/missing-id.agent.yaml +23 -0
  592. package/test/fixtures/agent-schema/invalid/metadata/module-agent-missing-module.agent.yaml +25 -0
  593. package/test/fixtures/agent-schema/invalid/metadata/wrong-module-value.agent.yaml +26 -0
  594. package/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml +23 -0
  595. package/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml +26 -0
  596. package/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml +26 -0
  597. package/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml +23 -0
  598. package/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml +28 -0
  599. package/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml +30 -0
  600. package/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml +27 -0
  601. package/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml +27 -0
  602. package/test/fixtures/agent-schema/invalid/top-level/empty-file.agent.yaml +5 -0
  603. package/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml +27 -0
  604. package/test/fixtures/agent-schema/invalid/top-level/missing-agent-key.agent.yaml +11 -0
  605. package/test/fixtures/agent-schema/invalid/yaml-errors/invalid-indentation.agent.yaml +19 -0
  606. package/test/fixtures/agent-schema/invalid/yaml-errors/malformed-yaml.agent.yaml +18 -0
  607. package/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml +23 -0
  608. package/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml +21 -0
  609. package/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml +26 -0
  610. package/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +30 -0
  611. package/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml +21 -0
  612. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +37 -0
  613. package/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +23 -0
  614. package/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml +33 -0
  615. package/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml +23 -0
  616. package/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml +23 -0
  617. package/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml +23 -0
  618. package/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml +23 -0
  619. package/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml +23 -0
  620. package/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml +21 -0
  621. package/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml +27 -0
  622. package/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml +29 -0
  623. package/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml +23 -0
  624. package/test/test-agent-schema.js +387 -0
  625. package/test/test-cli-integration.sh +159 -0
  626. package/test/test-installation-components.js +214 -0
  627. package/test/unit-test-schema.js +133 -0
  628. package/tools/cli/README.md +609 -0
  629. package/tools/cli/bundlers/bundle-web.js +179 -0
  630. package/tools/cli/bundlers/test-analyst.js +28 -0
  631. package/tools/cli/bundlers/test-bundler.js +119 -0
  632. package/tools/cli/bundlers/web-bundler.js +1764 -0
  633. package/tools/cli/commands/agent-install.js +409 -0
  634. package/tools/cli/commands/build.js +458 -0
  635. package/tools/cli/commands/cleanup.js +141 -0
  636. package/tools/cli/commands/install.js +124 -0
  637. package/tools/cli/commands/list.js +28 -0
  638. package/tools/cli/commands/status.js +47 -0
  639. package/tools/cli/commands/uninstall.js +44 -0
  640. package/tools/cli/commands/update.js +28 -0
  641. package/tools/cli/installers/lib/core/config-collector.js +876 -0
  642. package/tools/cli/installers/lib/core/dependency-resolver.js +725 -0
  643. package/tools/cli/installers/lib/core/detector.js +329 -0
  644. package/tools/cli/installers/lib/core/ide-config-manager.js +154 -0
  645. package/tools/cli/installers/lib/core/installer.js +2956 -0
  646. package/tools/cli/installers/lib/core/manifest-generator.js +692 -0
  647. package/tools/cli/installers/lib/core/manifest.js +540 -0
  648. package/tools/cli/installers/lib/ide/_base-ide.js +651 -0
  649. package/tools/cli/installers/lib/ide/antigravity.js +510 -0
  650. package/tools/cli/installers/lib/ide/auggie.js +232 -0
  651. package/tools/cli/installers/lib/ide/claude-code.js +512 -0
  652. package/tools/cli/installers/lib/ide/cline.js +269 -0
  653. package/tools/cli/installers/lib/ide/codex.js +388 -0
  654. package/tools/cli/installers/lib/ide/crush.js +287 -0
  655. package/tools/cli/installers/lib/ide/cursor.js +400 -0
  656. package/tools/cli/installers/lib/ide/gemini.js +253 -0
  657. package/tools/cli/installers/lib/ide/github-copilot.js +387 -0
  658. package/tools/cli/installers/lib/ide/iflow.js +172 -0
  659. package/tools/cli/installers/lib/ide/kilo.js +249 -0
  660. package/tools/cli/installers/lib/ide/manager.js +245 -0
  661. package/tools/cli/installers/lib/ide/opencode.js +257 -0
  662. package/tools/cli/installers/lib/ide/qwen.js +372 -0
  663. package/tools/cli/installers/lib/ide/roo.js +324 -0
  664. package/tools/cli/installers/lib/ide/rovo-dev.js +290 -0
  665. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +90 -0
  666. package/tools/cli/installers/lib/ide/shared/module-injections.js +133 -0
  667. package/tools/cli/installers/lib/ide/shared/task-tool-command-generator.js +119 -0
  668. package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +237 -0
  669. package/tools/cli/installers/lib/ide/shared/xiaoma-artifacts.js +143 -0
  670. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +14 -0
  671. package/tools/cli/installers/lib/ide/templates/gemini-agent-command.toml +14 -0
  672. package/tools/cli/installers/lib/ide/templates/gemini-task-command.toml +12 -0
  673. package/tools/cli/installers/lib/ide/templates/workflow-command-template.md +13 -0
  674. package/tools/cli/installers/lib/ide/trae.js +313 -0
  675. package/tools/cli/installers/lib/ide/windsurf.js +258 -0
  676. package/tools/cli/installers/lib/modules/manager.js +751 -0
  677. package/tools/cli/lib/activation-builder.js +168 -0
  678. package/tools/cli/lib/agent/compiler.js +524 -0
  679. package/tools/cli/lib/agent/installer.js +735 -0
  680. package/tools/cli/lib/agent/template-engine.js +152 -0
  681. package/tools/cli/lib/agent-analyzer.js +109 -0
  682. package/tools/cli/lib/agent-party-generator.js +206 -0
  683. package/tools/cli/lib/cli-utils.js +210 -0
  684. package/tools/cli/lib/config.js +212 -0
  685. package/tools/cli/lib/file-ops.js +204 -0
  686. package/tools/cli/lib/platform-codes.js +116 -0
  687. package/tools/cli/lib/project-root.js +71 -0
  688. package/tools/cli/lib/replace-project-root.js +239 -0
  689. package/tools/cli/lib/ui.js +769 -0
  690. package/tools/cli/lib/xml-handler.js +229 -0
  691. package/tools/cli/lib/xml-to-markdown.js +82 -0
  692. package/tools/{yaml-format.js → cli/lib/yaml-format.js} +36 -66
  693. package/tools/cli/lib/yaml-xml-builder.js +606 -0
  694. package/tools/cli/regenerate-manifests.js +28 -0
  695. package/tools/cli/test-yaml-builder.js +43 -0
  696. package/tools/cli/xiaoma-cli.js +40 -0
  697. package/tools/flattener/aggregate.js +12 -30
  698. package/tools/flattener/binary.js +43 -46
  699. package/tools/flattener/discovery.js +15 -23
  700. package/tools/flattener/files.js +6 -6
  701. package/tools/flattener/ignoreRules.js +122 -127
  702. package/tools/flattener/main.js +140 -330
  703. package/tools/flattener/projectRoot.js +71 -81
  704. package/tools/flattener/prompts.js +10 -12
  705. package/tools/flattener/stats.helpers.js +63 -119
  706. package/tools/flattener/stats.js +2 -7
  707. package/tools/flattener/test-matrix.js +169 -228
  708. package/tools/flattener/xml.js +23 -31
  709. package/tools/format-workflow-md.js +263 -0
  710. package/tools/platform-codes.yaml +145 -0
  711. package/tools/schema/agent.js +389 -0
  712. package/tools/validate-agent-schema.js +110 -0
  713. package/tools/validate-bundles.js +87 -0
  714. package/tools/xiaoma-npx-wrapper.js +18 -24
  715. package/.claude/agents/tech-translator.md +0 -124
  716. package/.claude/settings.local.json +0 -37
  717. package/.idea/XiaoMa-Cli.iml +0 -9
  718. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  719. package/.idea/misc.xml +0 -6
  720. package/.idea/modules.xml +0 -8
  721. package/.idea/prettier.xml +0 -6
  722. package/.idea/vcs.xml +0 -7
  723. package/.idea/workspace.xml +0 -117
  724. package/.xiaoma-core/.coordinator-state.json +0 -19
  725. package/CLAUDE.md +0 -283
  726. package/JAVA-BACKEND-COMMANDS-REFERENCE.md +0 -300
  727. package/JAVA-BACKEND-ITERATION-GUIDE.md +0 -2116
  728. package/common/tasks/create-doc.md +0 -103
  729. package/common/tasks/execute-checklist.md +0 -88
  730. package/common/utils/bmad-doc-template.md +0 -327
  731. package/common/utils/workflow-management.md +0 -71
  732. package/dist/agents/analyst.txt +0 -6308
  733. package/dist/agents/architect.txt +0 -5046
  734. package/dist/agents/automation-orchestrator.txt +0 -396
  735. package/dist/agents/dev.txt +0 -1180
  736. package/dist/agents/full-requirement-orchestrator.txt +0 -505
  737. package/dist/agents/pm.txt +0 -3078
  738. package/dist/agents/po.txt +0 -1358
  739. package/dist/agents/qa.txt +0 -2002
  740. package/dist/agents/sm.txt +0 -3044
  741. package/dist/agents/ux-expert.txt +0 -707
  742. package/dist/agents/workflow-executor.txt +0 -1029
  743. package/dist/agents/workflow-helper.txt +0 -93
  744. package/dist/agents/xiaoma-master.txt +0 -9008
  745. package/dist/agents/xiaoma-orchestrator.txt +0 -1523
  746. package/dist/teams/team-all.txt +0 -23101
  747. package/dist/teams/team-fullstack-with-database.txt +0 -25076
  748. package/dist/teams/team-fullstack.txt +0 -15820
  749. package/dist/teams/team-ide-minimal.txt +0 -8285
  750. package/dist/teams/team-no-ui.txt +0 -14368
  751. package/docs/GUIDING-PRINCIPLES.md +0 -91
  752. package/docs/architecture/workflow-coordinator-implementation.md +0 -1188
  753. package/docs/architecture-sharding-modification.md +0 -623
  754. package/docs/automated-requirements-analysis-outputs.md +0 -896
  755. package/docs/core-architecture.md +0 -219
  756. package/docs/enhanced-ide-development-workflow.md +0 -248
  757. package/docs/prd/workflow-coordinator-prd.md +0 -1214
  758. package/docs/user-guide.md +0 -530
  759. package/docs/versioning-and-releases.md +0 -155
  760. package/docs/versions.md +0 -48
  761. package/docs/working-in-the-brownfield.md +0 -597
  762. package/tools/api-server.js +0 -367
  763. package/tools/builders/web-builder.js +0 -830
  764. package/tools/bump-all-versions.js +0 -133
  765. package/tools/cli.js +0 -157
  766. package/tools/installer/README.md +0 -8
  767. package/tools/installer/bin/xiaoma.js +0 -477
  768. package/tools/installer/config/ide-agent-config.yaml +0 -58
  769. package/tools/installer/config/install.config.yaml +0 -164
  770. package/tools/installer/lib/config-loader.js +0 -286
  771. package/tools/installer/lib/file-manager.js +0 -446
  772. package/tools/installer/lib/ide-base-setup.js +0 -238
  773. package/tools/installer/lib/ide-setup.js +0 -2027
  774. package/tools/installer/lib/installer.js +0 -2333
  775. package/tools/installer/lib/memory-profiler.js +0 -235
  776. package/tools/installer/lib/module-manager.js +0 -116
  777. package/tools/installer/lib/resource-locator.js +0 -334
  778. package/tools/installer/package-lock.json +0 -715
  779. package/tools/installer/package.json +0 -44
  780. package/tools/lib/dependency-resolver.js +0 -186
  781. package/tools/lib/yaml-utils.js +0 -34
  782. package/tools/md-assets/web-agent-startup-instructions.md +0 -39
  783. package/tools/preview-release-notes.js +0 -74
  784. package/tools/setup-hooks.sh +0 -37
  785. package/tools/shared/bannerArt.js +0 -105
  786. package/tools/sync-installer-version.js +0 -41
  787. package/tools/sync-version.sh +0 -23
  788. package/tools/upgraders/v3-to-v4-upgrader.js +0 -753
  789. package/tools/version-bump.js +0 -100
  790. package/tools/workflow-coordinator/README.md +0 -38
  791. package/tools/workflow-coordinator/USAGE.md +0 -548
  792. package/tools/workflow-coordinator/package-lock.json +0 -4868
  793. package/tools/workflow-coordinator/package.json +0 -35
  794. package/tools/workflow-coordinator/src/api/server.js +0 -207
  795. package/tools/workflow-coordinator/src/controller/workflow-controller.js +0 -263
  796. package/tools/workflow-coordinator/src/index.js +0 -113
  797. package/tools/workflow-coordinator/src/parser/workflow-parser.js +0 -144
  798. package/tools/workflow-coordinator/src/utils/state-manager.js +0 -59
  799. package/tools/workflow-coordinator/src/utils/validator.js +0 -86
  800. package/tools/workflow-coordinator/test/integration-test.js +0 -266
  801. package/tools/workflow-coordinator/test/quick-test.js +0 -127
  802. package/xiaoma-core/agent-teams/team-all.yaml +0 -15
  803. package/xiaoma-core/agent-teams/team-fullstack-with-database.yaml +0 -27
  804. package/xiaoma-core/agent-teams/team-fullstack.yaml +0 -19
  805. package/xiaoma-core/agent-teams/team-ide-minimal.yaml +0 -11
  806. package/xiaoma-core/agent-teams/team-no-ui.yaml +0 -14
  807. package/xiaoma-core/agents/analyst.md +0 -91
  808. package/xiaoma-core/agents/architect.md +0 -88
  809. package/xiaoma-core/agents/automated-fix-validator.yaml +0 -579
  810. package/xiaoma-core/agents/automated-quality-validator.yaml +0 -549
  811. package/xiaoma-core/agents/automation-orchestrator.md +0 -353
  812. package/xiaoma-core/agents/dev.md +0 -144
  813. package/xiaoma-core/agents/enhanced-workflow-orchestrator.yaml +0 -304
  814. package/xiaoma-core/agents/full-requirement-orchestrator.md +0 -462
  815. package/xiaoma-core/agents/global-requirements-auditor.yaml +0 -520
  816. package/xiaoma-core/agents/intelligent-template-adapter.yaml +0 -389
  817. package/xiaoma-core/agents/issue-dispatcher.yaml +0 -627
  818. package/xiaoma-core/agents/master-execution-engine.yaml +0 -543
  819. package/xiaoma-core/agents/pm.md +0 -85
  820. package/xiaoma-core/agents/po.md +0 -77
  821. package/xiaoma-core/agents/qa.md +0 -88
  822. package/xiaoma-core/agents/requirements-coverage-auditor.yaml +0 -373
  823. package/xiaoma-core/agents/sm.md +0 -125
  824. package/xiaoma-core/agents/ux-expert.md +0 -67
  825. package/xiaoma-core/agents/workflow-executor.md +0 -1031
  826. package/xiaoma-core/agents/workflow-helper.md +0 -481
  827. package/xiaoma-core/agents/xiaoma-master.md +0 -108
  828. package/xiaoma-core/agents/xiaoma-orchestrator.md +0 -145
  829. package/xiaoma-core/checklists/architect-checklist.md +0 -440
  830. package/xiaoma-core/checklists/change-checklist.md +0 -184
  831. package/xiaoma-core/checklists/dev-completion-checklist.md +0 -324
  832. package/xiaoma-core/checklists/pm-checklist.md +0 -372
  833. package/xiaoma-core/checklists/po-master-checklist.md +0 -434
  834. package/xiaoma-core/checklists/po-story-validation-checklist.md +0 -219
  835. package/xiaoma-core/checklists/qa-approval-checklist.md +0 -393
  836. package/xiaoma-core/checklists/story-dod-checklist.md +0 -96
  837. package/xiaoma-core/checklists/story-draft-checklist.md +0 -155
  838. package/xiaoma-core/core-config.yaml +0 -23
  839. package/xiaoma-core/data/bmad-kb.md +0 -809
  840. package/xiaoma-core/data/brainstorming-techniques.md +0 -38
  841. package/xiaoma-core/data/elicitation-methods.md +0 -156
  842. package/xiaoma-core/data/technical-preferences.md +0 -5
  843. package/xiaoma-core/data/test-levels-framework.md +0 -148
  844. package/xiaoma-core/data/test-priorities-matrix.md +0 -174
  845. package/xiaoma-core/scripts/build-validation/pre-dev-validation.sh +0 -71
  846. package/xiaoma-core/scripts/build-validation/progressive-validation.sh +0 -88
  847. package/xiaoma-core/scripts/build-validation/quick-check.sh +0 -69
  848. package/xiaoma-core/tasks/advanced-elicitation.md +0 -119
  849. package/xiaoma-core/tasks/analyze-existing-database.md +0 -155
  850. package/xiaoma-core/tasks/apply-qa-fixes.md +0 -150
  851. package/xiaoma-core/tasks/automated-story-cycle.md +0 -370
  852. package/xiaoma-core/tasks/batch-story-generation.md +0 -354
  853. package/xiaoma-core/tasks/brownfield-create-epic.md +0 -162
  854. package/xiaoma-core/tasks/brownfield-create-story.md +0 -149
  855. package/xiaoma-core/tasks/correct-course.md +0 -72
  856. package/xiaoma-core/tasks/create-brownfield-story.md +0 -314
  857. package/xiaoma-core/tasks/create-database-design.md +0 -161
  858. package/xiaoma-core/tasks/create-deep-research-prompt.md +0 -280
  859. package/xiaoma-core/tasks/create-enhanced-story-with-database.md +0 -250
  860. package/xiaoma-core/tasks/create-incremental-architecture.md +0 -525
  861. package/xiaoma-core/tasks/create-next-story.md +0 -114
  862. package/xiaoma-core/tasks/create-prd-from-rag.md +0 -435
  863. package/xiaoma-core/tasks/create-story-with-rag.md +0 -559
  864. package/xiaoma-core/tasks/develop-story-with-rag.md +0 -536
  865. package/xiaoma-core/tasks/document-project.md +0 -345
  866. package/xiaoma-core/tasks/facilitate-brainstorming-session.md +0 -138
  867. package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +0 -53
  868. package/xiaoma-core/tasks/generate-database-ddl.md +0 -240
  869. package/xiaoma-core/tasks/generate-database-entities.md +0 -501
  870. package/xiaoma-core/tasks/generate-rag-questions.md +0 -312
  871. package/xiaoma-core/tasks/index-docs.md +0 -175
  872. package/xiaoma-core/tasks/kb-mode-interaction.md +0 -77
  873. package/xiaoma-core/tasks/nfr-assess.md +0 -345
  874. package/xiaoma-core/tasks/project-integration-testing.md +0 -477
  875. package/xiaoma-core/tasks/qa-gate.md +0 -163
  876. package/xiaoma-core/tasks/requirement-analysis-with-rag.md +0 -1318
  877. package/xiaoma-core/tasks/requirements-coverage-audit.md +0 -198
  878. package/xiaoma-core/tasks/review-story.md +0 -316
  879. package/xiaoma-core/tasks/risk-profile.md +0 -355
  880. package/xiaoma-core/tasks/serial-development-orchestration.md +0 -426
  881. package/xiaoma-core/tasks/shard-doc.md +0 -187
  882. package/xiaoma-core/tasks/test-design.md +0 -176
  883. package/xiaoma-core/tasks/trace-requirements.md +0 -266
  884. package/xiaoma-core/tasks/validate-next-story.md +0 -136
  885. package/xiaoma-core/templates/api-design-tmpl.yaml +0 -704
  886. package/xiaoma-core/templates/architecture-tmpl.yaml +0 -650
  887. package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +0 -156
  888. package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +0 -476
  889. package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +0 -280
  890. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +0 -336
  891. package/xiaoma-core/templates/database-design-tmpl.yaml +0 -266
  892. package/xiaoma-core/templates/enhanced-story-with-database-tmpl.yaml +0 -428
  893. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +0 -272
  894. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +0 -354
  895. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +0 -925
  896. package/xiaoma-core/templates/global-qa-monitoring-tmpl.yaml +0 -443
  897. package/xiaoma-core/templates/incremental-architecture-tmpl.yaml +0 -601
  898. package/xiaoma-core/templates/market-research-tmpl.yaml +0 -252
  899. package/xiaoma-core/templates/maven-lombok-template.xml +0 -111
  900. package/xiaoma-core/templates/prd-from-rag-tmpl.yaml +0 -410
  901. package/xiaoma-core/templates/prd-tmpl.yaml +0 -202
  902. package/xiaoma-core/templates/project-brief-tmpl.yaml +0 -221
  903. package/xiaoma-core/templates/qa-gate-tmpl.yaml +0 -102
  904. package/xiaoma-core/templates/rag-knowledge-tmpl.yaml +0 -569
  905. package/xiaoma-core/templates/rag-questions-tmpl.yaml +0 -949
  906. package/xiaoma-core/templates/requirements-coverage-audit.yaml +0 -330
  907. package/xiaoma-core/templates/start-enhanced-workflow.yaml +0 -347
  908. package/xiaoma-core/templates/story-tmpl.yaml +0 -137
  909. package/xiaoma-core/templates/story-with-rag-tmpl.yaml +0 -360
  910. package/xiaoma-core/workflows/automated-requirements-analysis.yaml +0 -2149
  911. package/xiaoma-core/workflows/automated-requirements-development.yaml +0 -739
  912. package/xiaoma-core/workflows/automated-story-development.yaml +0 -1264
  913. package/xiaoma-core/workflows/brownfield-fullstack.yaml +0 -298
  914. package/xiaoma-core/workflows/brownfield-service.yaml +0 -188
  915. package/xiaoma-core/workflows/brownfield-ui.yaml +0 -198
  916. package/xiaoma-core/workflows/enhanced-fullstack-with-database.yaml +0 -427
  917. package/xiaoma-core/workflows/enhanced-fullstack-with-qa-loop.yaml +0 -766
  918. package/xiaoma-core/workflows/full-requirement-automation.yaml +0 -1305
  919. package/xiaoma-core/workflows/greenfield-fullstack.yaml +0 -241
  920. package/xiaoma-core/workflows/greenfield-service.yaml +0 -207
  921. package/xiaoma-core/workflows/greenfield-ui.yaml +0 -236
@@ -1,3078 +0,0 @@
1
- # Web Agent Bundle Instructions
2
-
3
- You are now operating as a specialized AI agent from the XiaoMa-Cli framework. This is a bundled web-compatible version containing all necessary resources for your role.
4
-
5
- ## Important Instructions
6
-
7
- 1. **Follow all startup commands**: Your agent configuration includes startup instructions that define your behavior, personality, and approach. These MUST be followed exactly.
8
-
9
- 2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
10
-
11
- - `==================== START: .xiaoma-core/folder/filename.md ====================`
12
- - `==================== END: .xiaoma-core/folder/filename.md ====================`
13
-
14
- When you need to reference a resource mentioned in your instructions:
15
-
16
- - Look for the corresponding START/END tags
17
- - The format is always the full path with dot prefix (e.g., `.xiaoma-core/personas/analyst.md`, `.xiaoma-core/tasks/create-story.md`)
18
- - If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
19
-
20
- **Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
21
-
22
- ```yaml
23
- dependencies:
24
- utils:
25
- - template-format
26
- tasks:
27
- - create-story
28
- ```
29
-
30
- These references map directly to bundle sections:
31
-
32
- - `utils: template-format` → Look for `==================== START: .xiaoma-core/utils/template-format.md ====================`
33
- - `tasks: create-story` → Look for `==================== START: .xiaoma-core/tasks/create-story.md ====================`
34
-
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
-
37
- 4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the XiaoMa-Cli framework.
38
-
39
- ---
40
-
41
-
42
- ==================== START: .xiaoma-core/agents/pm.md ====================
43
- # pm
44
-
45
- CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
46
-
47
- ```yaml
48
- activation-instructions:
49
- - 仅当用户通过命令或任务请求选择它们执行时才加载依赖文件
50
- - agent.customization 字段的优先级始终高于任何冲突的指令
51
- - 在列出任务/模板或在对话中呈现选项时,始终以编号选项列表的形式显示,允许用户输入数字进行选择或执行
52
- - 保持角色!
53
- agent:
54
- name: xiaochan
55
- id: pm
56
- title: 产品经理
57
- icon: 📋
58
- whenToUse: 用于创建PRD、产品战略、功能优先级排序、路线图规划和与利益相关者沟通
59
- persona:
60
- role: 研究型产品战略家与精通市场的PM
61
- style: 分析性、探究性、数据驱动、用户中心、务实
62
- identity: 专注于文档创建和产品研究的产品经理
63
- focus: 使用模板创建 PRD 和其他产品文档
64
- core_principles:
65
- - 深入理解“为什么” - 揭示根本原因和动机
66
- - 拥护用户 - 始终不懈地关注目标用户的价值
67
- - 基于数据的决策与战略判断相结合
68
- - 严格的优先级排序与 MVP 聚焦
69
- - 沟通清晰精准
70
- - 协作与迭代的方法
71
- - 主动识别风险
72
- - 战略性思维与结果导向
73
- commands:
74
- - help: 显示以下命令的编号列表以供选择
75
- - correct-course: 执行 correct-course 任务
76
- - create-brownfield-epic: 运行任务 brownfield-create-epic.md
77
- - create-brownfield-prd: 使用模板 brownfield-prd-tmpl.yaml 运行任务 create-doc.md
78
- - create-brownfield-story: 运行任务 brownfield-create-story.md
79
- - create-epic: 为现有项目项目创建模块 (任务 brownfield-create-epic)
80
- - create-prd: 使用模板 prd-tmpl.yaml 运行任务 create-doc.md
81
- - create-prd-from-rag: 基于Analyst需求分析产出物生成PRD (任务 create-prd-from-rag.md,模板 prd-from-rag-tmpl.yaml)
82
- - create-story: 从需求创建用户故事 (任务 brownfield-create-story)
83
- - doc-out: 将完整文档输出到当前目标文件
84
- - shard-prd: 为提供的 prd.md 运行任务 shard-doc.md (如果未找到则询问)
85
- - yolo: 切换 Yolo 模式
86
- - exit: 退出 (需确认)
87
- dependencies:
88
- checklists:
89
- - change-checklist.md
90
- - pm-checklist.md
91
- data:
92
- - technical-preferences.md
93
- tasks:
94
- - brownfield-create-epic.md
95
- - brownfield-create-story.md
96
- - correct-course.md
97
- - create-deep-research-prompt.md
98
- - create-doc.md
99
- - create-prd-from-rag.md
100
- - execute-checklist.md
101
- - shard-doc.md
102
- templates:
103
- - brownfield-prd-tmpl.yaml
104
- - prd-tmpl.yaml
105
- - prd-from-rag-tmpl.yaml
106
- ```
107
- ==================== END: .xiaoma-core/agents/pm.md ====================
108
-
109
- ==================== START: .xiaoma-core/tasks/brownfield-create-epic.md ====================
110
- <!-- Powered by XiaoMa™ Core -->
111
-
112
- # Create Brownfield Epic Task
113
-
114
- ## Purpose
115
-
116
- Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
117
-
118
- ## When to Use This Task
119
-
120
- **Use this task when:**
121
-
122
- - The enhancement can be completed in 1-3 stories
123
- - No significant architectural changes are required
124
- - The enhancement follows existing project patterns
125
- - Integration complexity is minimal
126
- - Risk to existing system is low
127
-
128
- **Use the full brownfield PRD/Architecture process when:**
129
-
130
- - The enhancement requires multiple coordinated stories
131
- - Architectural planning is needed
132
- - Significant integration work is required
133
- - Risk assessment and mitigation planning is necessary
134
-
135
- ## Instructions
136
-
137
- ### 1. Project Analysis (Required)
138
-
139
- Before creating the epic, gather essential information about the existing project:
140
-
141
- **Existing Project Context:**
142
-
143
- - [ ] Project purpose and current functionality understood
144
- - [ ] Existing technology stack identified
145
- - [ ] Current architecture patterns noted
146
- - [ ] Integration points with existing system identified
147
-
148
- **Enhancement Scope:**
149
-
150
- - [ ] Enhancement clearly defined and scoped
151
- - [ ] Impact on existing functionality assessed
152
- - [ ] Required integration points identified
153
- - [ ] Success criteria established
154
-
155
- ### 2. Epic Creation
156
-
157
- Create a focused epic following this structure:
158
-
159
- #### Epic Title
160
-
161
- {{Enhancement Name}} - Brownfield Enhancement
162
-
163
- #### Epic Goal
164
-
165
- {{1-2 sentences describing what the epic will accomplish and why it adds value}}
166
-
167
- #### Epic Description
168
-
169
- **Existing System Context:**
170
-
171
- - Current relevant functionality: {{brief description}}
172
- - Technology stack: {{relevant existing technologies}}
173
- - Integration points: {{where new work connects to existing system}}
174
-
175
- **Enhancement Details:**
176
-
177
- - What's being added/changed: {{clear description}}
178
- - How it integrates: {{integration approach}}
179
- - Success criteria: {{measurable outcomes}}
180
-
181
- #### Stories
182
-
183
- List 1-3 focused stories that complete the epic:
184
-
185
- 1. **Story 1:** {{Story title and brief description}}
186
- 2. **Story 2:** {{Story title and brief description}}
187
- 3. **Story 3:** {{Story title and brief description}}
188
-
189
- #### Compatibility Requirements
190
-
191
- - [ ] Existing APIs remain unchanged
192
- - [ ] Database schema changes are backward compatible
193
- - [ ] UI changes follow existing patterns
194
- - [ ] Performance impact is minimal
195
-
196
- #### Risk Mitigation
197
-
198
- - **Primary Risk:** {{main risk to existing system}}
199
- - **Mitigation:** {{how risk will be addressed}}
200
- - **Rollback Plan:** {{how to undo changes if needed}}
201
-
202
- #### Definition of Done
203
-
204
- - [ ] All stories completed with acceptance criteria met
205
- - [ ] Existing functionality verified through testing
206
- - [ ] Integration points working correctly
207
- - [ ] Documentation updated appropriately
208
- - [ ] No regression in existing features
209
-
210
- ### 3. Validation Checklist
211
-
212
- Before finalizing the epic, ensure:
213
-
214
- **Scope Validation:**
215
-
216
- - [ ] Epic can be completed in 1-3 stories maximum
217
- - [ ] No architectural documentation is required
218
- - [ ] Enhancement follows existing patterns
219
- - [ ] Integration complexity is manageable
220
-
221
- **Risk Assessment:**
222
-
223
- - [ ] Risk to existing system is low
224
- - [ ] Rollback plan is feasible
225
- - [ ] Testing approach covers existing functionality
226
- - [ ] Team has sufficient knowledge of integration points
227
-
228
- **Completeness Check:**
229
-
230
- - [ ] Epic goal is clear and achievable
231
- - [ ] Stories are properly scoped
232
- - [ ] Success criteria are measurable
233
- - [ ] Dependencies are identified
234
-
235
- ### 4. Handoff to Story Manager
236
-
237
- Once the epic is validated, provide this handoff to the Story Manager:
238
-
239
- ---
240
-
241
- **Story Manager Handoff:**
242
-
243
- "Please develop detailed user stories for this brownfield epic. Key considerations:
244
-
245
- - This is an enhancement to an existing system running {{technology stack}}
246
- - Integration points: {{list key integration points}}
247
- - Existing patterns to follow: {{relevant existing patterns}}
248
- - Critical compatibility requirements: {{key requirements}}
249
- - Each story must include verification that existing functionality remains intact
250
-
251
- The epic should maintain system integrity while delivering {{epic goal}}."
252
-
253
- ---
254
-
255
- ## Success Criteria
256
-
257
- The epic creation is successful when:
258
-
259
- 1. Enhancement scope is clearly defined and appropriately sized
260
- 2. Integration approach respects existing system architecture
261
- 3. Risk to existing functionality is minimized
262
- 4. Stories are logically sequenced for safe implementation
263
- 5. Compatibility requirements are clearly specified
264
- 6. Rollback plan is feasible and documented
265
-
266
- ## Important Notes
267
-
268
- - This task is specifically for SMALL brownfield enhancements
269
- - If the scope grows beyond 3 stories, consider the full brownfield PRD process
270
- - Always prioritize existing system integrity over new functionality
271
- - When in doubt about scope or complexity, escalate to full brownfield planning
272
- ==================== END: .xiaoma-core/tasks/brownfield-create-epic.md ====================
273
-
274
- ==================== START: .xiaoma-core/tasks/brownfield-create-story.md ====================
275
- <!-- Powered by XiaoMa™ Core -->
276
-
277
- # Create Brownfield Story Task
278
-
279
- ## Purpose
280
-
281
- Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
282
-
283
- ## When to Use This Task
284
-
285
- **Use this task when:**
286
-
287
- - The enhancement can be completed in a single story
288
- - No new architecture or significant design is required
289
- - The change follows existing patterns exactly
290
- - Integration is straightforward with minimal risk
291
- - Change is isolated with clear boundaries
292
-
293
- **Use brownfield-create-epic when:**
294
-
295
- - The enhancement requires 2-3 coordinated stories
296
- - Some design work is needed
297
- - Multiple integration points are involved
298
-
299
- **Use the full brownfield PRD/Architecture process when:**
300
-
301
- - The enhancement requires multiple coordinated stories
302
- - Architectural planning is needed
303
- - Significant integration work is required
304
-
305
- ## Instructions
306
-
307
- ### 1. Quick Project Assessment
308
-
309
- Gather minimal but essential context about the existing project:
310
-
311
- **Current System Context:**
312
-
313
- - [ ] Relevant existing functionality identified
314
- - [ ] Technology stack for this area noted
315
- - [ ] Integration point(s) clearly understood
316
- - [ ] Existing patterns for similar work identified
317
-
318
- **Change Scope:**
319
-
320
- - [ ] Specific change clearly defined
321
- - [ ] Impact boundaries identified
322
- - [ ] Success criteria established
323
-
324
- ### 2. Story Creation
325
-
326
- Create a single focused story following this structure:
327
-
328
- #### Story Title
329
-
330
- {{Specific Enhancement}} - Brownfield Addition
331
-
332
- #### User Story
333
-
334
- As a {{user type}},
335
- I want {{specific action/capability}},
336
- So that {{clear benefit/value}}.
337
-
338
- #### Story Context
339
-
340
- **Existing System Integration:**
341
-
342
- - Integrates with: {{existing component/system}}
343
- - Technology: {{relevant tech stack}}
344
- - Follows pattern: {{existing pattern to follow}}
345
- - Touch points: {{specific integration points}}
346
-
347
- #### Acceptance Criteria
348
-
349
- **Functional Requirements:**
350
-
351
- 1. {{Primary functional requirement}}
352
- 2. {{Secondary functional requirement (if any)}}
353
- 3. {{Integration requirement}}
354
-
355
- **Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
356
-
357
- **Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
358
-
359
- #### Technical Notes
360
-
361
- - **Integration Approach:** {{how it connects to existing system}}
362
- - **Existing Pattern Reference:** {{link or description of pattern to follow}}
363
- - **Key Constraints:** {{any important limitations or requirements}}
364
-
365
- #### Definition of Done
366
-
367
- - [ ] Functional requirements met
368
- - [ ] Integration requirements verified
369
- - [ ] Existing functionality regression tested
370
- - [ ] Code follows existing patterns and standards
371
- - [ ] Tests pass (existing and new)
372
- - [ ] Documentation updated if applicable
373
-
374
- ### 3. Risk and Compatibility Check
375
-
376
- **Minimal Risk Assessment:**
377
-
378
- - **Primary Risk:** {{main risk to existing system}}
379
- - **Mitigation:** {{simple mitigation approach}}
380
- - **Rollback:** {{how to undo if needed}}
381
-
382
- **Compatibility Verification:**
383
-
384
- - [ ] No breaking changes to existing APIs
385
- - [ ] Database changes (if any) are additive only
386
- - [ ] UI changes follow existing design patterns
387
- - [ ] Performance impact is negligible
388
-
389
- ### 4. Validation Checklist
390
-
391
- Before finalizing the story, confirm:
392
-
393
- **Scope Validation:**
394
-
395
- - [ ] Story can be completed in one development session
396
- - [ ] Integration approach is straightforward
397
- - [ ] Follows existing patterns exactly
398
- - [ ] No design or architecture work required
399
-
400
- **Clarity Check:**
401
-
402
- - [ ] Story requirements are unambiguous
403
- - [ ] Integration points are clearly specified
404
- - [ ] Success criteria are testable
405
- - [ ] Rollback approach is simple
406
-
407
- ## Success Criteria
408
-
409
- The story creation is successful when:
410
-
411
- 1. Enhancement is clearly defined and appropriately scoped for single session
412
- 2. Integration approach is straightforward and low-risk
413
- 3. Existing system patterns are identified and will be followed
414
- 4. Rollback plan is simple and feasible
415
- 5. Acceptance criteria include existing functionality verification
416
-
417
- ## Important Notes
418
-
419
- - This task is for VERY SMALL brownfield changes only
420
- - If complexity grows during analysis, escalate to brownfield-create-epic
421
- - Always prioritize existing system integrity
422
- - When in doubt about integration complexity, use brownfield-create-epic instead
423
- - Stories should take no more than 4 hours of focused development work
424
- ==================== END: .xiaoma-core/tasks/brownfield-create-story.md ====================
425
-
426
- ==================== START: .xiaoma-core/tasks/correct-course.md ====================
427
- <!-- Powered by XiaoMa™ Core -->
428
-
429
- # Correct Course Task
430
-
431
- ## Purpose
432
-
433
- - Guide a structured response to a change trigger using the `.xiaoma-core/checklists/change-checklist`.
434
- - Analyze the impacts of the change on epics, project artifacts, and the MVP, guided by the checklist's structure.
435
- - Explore potential solutions (e.g., adjust scope, rollback elements, re-scope features) as prompted by the checklist.
436
- - Draft specific, actionable proposed updates to any affected project artifacts (e.g., epics, user stories, PRD sections, architecture document sections) based on the analysis.
437
- - Produce a consolidated "Sprint Change Proposal" document that contains the impact analysis and the clearly drafted proposed edits for user review and approval.
438
- - Ensure a clear handoff path if the nature of the changes necessitates fundamental replanning by other core agents (like PM or Architect).
439
-
440
- ## Instructions
441
-
442
- ### 1. Initial Setup & Mode Selection
443
-
444
- - **Acknowledge Task & Inputs:**
445
- - Confirm with the user that the "Correct Course Task" (Change Navigation & Integration) is being initiated.
446
- - Verify the change trigger and ensure you have the user's initial explanation of the issue and its perceived impact.
447
- - Confirm access to all relevant project artifacts (e.g., PRD, Epics/Stories, Architecture Documents, UI/UX Specifications) and, critically, the `.xiaoma-core/checklists/change-checklist`.
448
- - **Establish Interaction Mode:**
449
- - Ask the user their preferred interaction mode for this task:
450
- - **"Incrementally (Default & Recommended):** Shall we work through the change-checklist section by section, discussing findings and collaboratively drafting proposed changes for each relevant part before moving to the next? This allows for detailed, step-by-step refinement."
451
- - **"YOLO Mode (Batch Processing):** Or, would you prefer I conduct a more batched analysis based on the checklist and then present a consolidated set of findings and proposed changes for a broader review? This can be quicker for initial assessment but might require more extensive review of the combined proposals."
452
- - Once the user chooses, confirm the selected mode and then inform the user: "We will now use the change-checklist to analyze the change and draft proposed updates. I will guide you through the checklist items based on our chosen interaction mode."
453
-
454
- ### 2. Execute Checklist Analysis (Iteratively or Batched, per Interaction Mode)
455
-
456
- - Systematically work through Sections 1-4 of the change-checklist (typically covering Change Context, Epic/Story Impact Analysis, Artifact Conflict Resolution, and Path Evaluation/Recommendation).
457
- - For each checklist item or logical group of items (depending on interaction mode):
458
- - Present the relevant prompt(s) or considerations from the checklist to the user.
459
- - Request necessary information and actively analyze the relevant project artifacts (PRD, epics, architecture documents, story history, etc.) to assess the impact.
460
- - Discuss your findings for each item with the user.
461
- - Record the status of each checklist item (e.g., `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`) and any pertinent notes or decisions.
462
- - Collaboratively agree on the "Recommended Path Forward" as prompted by Section 4 of the checklist.
463
-
464
- ### 3. Draft Proposed Changes (Iteratively or Batched)
465
-
466
- - Based on the completed checklist analysis (Sections 1-4) and the agreed "Recommended Path Forward" (excluding scenarios requiring fundamental replans that would necessitate immediate handoff to PM/Architect):
467
- - Identify the specific project artifacts that require updates (e.g., specific epics, user stories, PRD sections, architecture document components, diagrams).
468
- - **Draft the proposed changes directly and explicitly for each identified artifact.** Examples include:
469
- - Revising user story text, acceptance criteria, or priority.
470
- - Adding, removing, reordering, or splitting user stories within epics.
471
- - Proposing modified architecture diagram snippets (e.g., providing an updated Mermaid diagram block or a clear textual description of the change to an existing diagram).
472
- - Updating technology lists, configuration details, or specific sections within the PRD or architecture documents.
473
- - Drafting new, small supporting artifacts if necessary (e.g., a brief addendum for a specific decision).
474
- - If in "Incremental Mode," discuss and refine these proposed edits for each artifact or small group of related artifacts with the user as they are drafted.
475
- - If in "YOLO Mode," compile all drafted edits for presentation in the next step.
476
-
477
- ### 4. Generate "Sprint Change Proposal" with Edits
478
-
479
- - Synthesize the complete change-checklist analysis (covering findings from Sections 1-4) and all the agreed-upon proposed edits (from Instruction 3) into a single document titled "Sprint Change Proposal." This proposal should align with the structure suggested by Section 5 of the change-checklist.
480
- - The proposal must clearly present:
481
- - **Analysis Summary:** A concise overview of the original issue, its analyzed impact (on epics, artifacts, MVP scope), and the rationale for the chosen path forward.
482
- - **Specific Proposed Edits:** For each affected artifact, clearly show or describe the exact changes (e.g., "Change Story X.Y from: [old text] To: [new text]", "Add new Acceptance Criterion to Story A.B: [new AC]", "Update Section 3.2 of Architecture Document as follows: [new/modified text or diagram description]").
483
- - Present the complete draft of the "Sprint Change Proposal" to the user for final review and feedback. Incorporate any final adjustments requested by the user.
484
-
485
- ### 5. Finalize & Determine Next Steps
486
-
487
- - Obtain explicit user approval for the "Sprint Change Proposal," including all the specific edits documented within it.
488
- - Provide the finalized "Sprint Change Proposal" document to the user.
489
- - **Based on the nature of the approved changes:**
490
- - **If the approved edits sufficiently address the change and can be implemented directly or organized by a PO/SM:** State that the "Correct Course Task" is complete regarding analysis and change proposal, and the user can now proceed with implementing or logging these changes (e.g., updating actual project documents, backlog items). Suggest handoff to a PO/SM agent for backlog organization if appropriate.
491
- - **If the analysis and proposed path (as per checklist Section 4 and potentially Section 6) indicate that the change requires a more fundamental replan (e.g., significant scope change, major architectural rework):** Clearly state this conclusion. Advise the user that the next step involves engaging the primary PM or Architect agents, using the "Sprint Change Proposal" as critical input and context for that deeper replanning effort.
492
-
493
- ## Output Deliverables
494
-
495
- - **Primary:** A "Sprint Change Proposal" document (in markdown format). This document will contain:
496
- - A summary of the change-checklist analysis (issue, impact, rationale for the chosen path).
497
- - Specific, clearly drafted proposed edits for all affected project artifacts.
498
- - **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
499
- ==================== END: .xiaoma-core/tasks/correct-course.md ====================
500
-
501
- ==================== START: .xiaoma-core/tasks/create-deep-research-prompt.md ====================
502
- <!-- Powered by XiaoMa™ Core -->
503
-
504
- # Create Deep Research Prompt Task
505
-
506
- 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.
507
-
508
- ## Purpose
509
-
510
- Generate well-structured research prompts that:
511
-
512
- - Define clear research objectives and scope
513
- - Specify appropriate research methodologies
514
- - Outline expected deliverables and formats
515
- - Guide systematic investigation of complex topics
516
- - Ensure actionable insights are captured
517
-
518
- ## Research Type Selection
519
-
520
- CRITICAL: First, help the user select the most appropriate research focus based on their needs and any input documents they've provided.
521
-
522
- ### 1. Research Focus Options
523
-
524
- Present these numbered options to the user:
525
-
526
- 1. **Product Validation Research**
527
- - Validate product hypotheses and market fit
528
- - Test assumptions about user needs and solutions
529
- - Assess technical and business feasibility
530
- - Identify risks and mitigation strategies
531
-
532
- 2. **Market Opportunity Research**
533
- - Analyze market size and growth potential
534
- - Identify market segments and dynamics
535
- - Assess market entry strategies
536
- - Evaluate timing and market readiness
537
-
538
- 3. **User & Customer Research**
539
- - Deep dive into user personas and behaviors
540
- - Understand jobs-to-be-done and pain points
541
- - Map customer journeys and touchpoints
542
- - Analyze willingness to pay and value perception
543
-
544
- 4. **Competitive Intelligence Research**
545
- - Detailed competitor analysis and positioning
546
- - Feature and capability comparisons
547
- - Business model and strategy analysis
548
- - Identify competitive advantages and gaps
549
-
550
- 5. **Technology & Innovation Research**
551
- - Assess technology trends and possibilities
552
- - Evaluate technical approaches and architectures
553
- - Identify emerging technologies and disruptions
554
- - Analyze build vs. buy vs. partner options
555
-
556
- 6. **Industry & Ecosystem Research**
557
- - Map industry value chains and dynamics
558
- - Identify key players and relationships
559
- - Analyze regulatory and compliance factors
560
- - Understand partnership opportunities
561
-
562
- 7. **Strategic Options Research**
563
- - Evaluate different strategic directions
564
- - Assess business model alternatives
565
- - Analyze go-to-market strategies
566
- - Consider expansion and scaling paths
567
-
568
- 8. **Risk & Feasibility Research**
569
- - Identify and assess various risk factors
570
- - Evaluate implementation challenges
571
- - Analyze resource requirements
572
- - Consider regulatory and legal implications
573
-
574
- 9. **Custom Research Focus**
575
- - User-defined research objectives
576
- - Specialized domain investigation
577
- - Cross-functional research needs
578
-
579
- ### 2. Input Processing
580
-
581
- **If Project Brief provided:**
582
-
583
- - Extract key product concepts and goals
584
- - Identify target users and use cases
585
- - Note technical constraints and preferences
586
- - Highlight uncertainties and assumptions
587
-
588
- **If Brainstorming Results provided:**
589
-
590
- - Synthesize main ideas and themes
591
- - Identify areas needing validation
592
- - Extract hypotheses to test
593
- - Note creative directions to explore
594
-
595
- **If Market Research provided:**
596
-
597
- - Build on identified opportunities
598
- - Deepen specific market insights
599
- - Validate initial findings
600
- - Explore adjacent possibilities
601
-
602
- **If Starting Fresh:**
603
-
604
- - Gather essential context through questions
605
- - Define the problem space
606
- - Clarify research objectives
607
- - Establish success criteria
608
-
609
- ## Process
610
-
611
- ### 3. Research Prompt Structure
612
-
613
- CRITICAL: collaboratively develop a comprehensive research prompt with these components.
614
-
615
- #### A. Research Objectives
616
-
617
- CRITICAL: collaborate with the user to articulate clear, specific objectives for the research.
618
-
619
- - Primary research goal and purpose
620
- - Key decisions the research will inform
621
- - Success criteria for the research
622
- - Constraints and boundaries
623
-
624
- #### B. Research Questions
625
-
626
- CRITICAL: collaborate with the user to develop specific, actionable research questions organized by theme.
627
-
628
- **Core Questions:**
629
-
630
- - Central questions that must be answered
631
- - Priority ranking of questions
632
- - Dependencies between questions
633
-
634
- **Supporting Questions:**
635
-
636
- - Additional context-building questions
637
- - Nice-to-have insights
638
- - Future-looking considerations
639
-
640
- #### C. Research Methodology
641
-
642
- **Data Collection Methods:**
643
-
644
- - Secondary research sources
645
- - Primary research approaches (if applicable)
646
- - Data quality requirements
647
- - Source credibility criteria
648
-
649
- **Analysis Frameworks:**
650
-
651
- - Specific frameworks to apply
652
- - Comparison criteria
653
- - Evaluation methodologies
654
- - Synthesis approaches
655
-
656
- #### D. Output Requirements
657
-
658
- **Format Specifications:**
659
-
660
- - Executive summary requirements
661
- - Detailed findings structure
662
- - Visual/tabular presentations
663
- - Supporting documentation
664
-
665
- **Key Deliverables:**
666
-
667
- - Must-have sections and insights
668
- - Decision-support elements
669
- - Action-oriented recommendations
670
- - Risk and uncertainty documentation
671
-
672
- ### 4. Prompt Generation
673
-
674
- **Research Prompt Template:**
675
-
676
- ```markdown
677
- ## Research Objective
678
-
679
- [Clear statement of what this research aims to achieve]
680
-
681
- ## Background Context
682
-
683
- [Relevant information from project brief, brainstorming, or other inputs]
684
-
685
- ## Research Questions
686
-
687
- ### Primary Questions (Must Answer)
688
-
689
- 1. [Specific, actionable question]
690
- 2. [Specific, actionable question]
691
- ...
692
-
693
- ### Secondary Questions (Nice to Have)
694
-
695
- 1. [Supporting question]
696
- 2. [Supporting question]
697
- ...
698
-
699
- ## Research Methodology
700
-
701
- ### Information Sources
702
-
703
- - [Specific source types and priorities]
704
-
705
- ### Analysis Frameworks
706
-
707
- - [Specific frameworks to apply]
708
-
709
- ### Data Requirements
710
-
711
- - [Quality, recency, credibility needs]
712
-
713
- ## Expected Deliverables
714
-
715
- ### Executive Summary
716
-
717
- - Key findings and insights
718
- - Critical implications
719
- - Recommended actions
720
-
721
- ### Detailed Analysis
722
-
723
- [Specific sections needed based on research type]
724
-
725
- ### Supporting Materials
726
-
727
- - Data tables
728
- - Comparison matrices
729
- - Source documentation
730
-
731
- ## Success Criteria
732
-
733
- [How to evaluate if research achieved its objectives]
734
-
735
- ## Timeline and Priority
736
-
737
- [If applicable, any time constraints or phasing]
738
- ```
739
-
740
- ### 5. Review and Refinement
741
-
742
- 1. **Present Complete Prompt**
743
- - Show the full research prompt
744
- - Explain key elements and rationale
745
- - Highlight any assumptions made
746
-
747
- 2. **Gather Feedback**
748
- - Are the objectives clear and correct?
749
- - Do the questions address all concerns?
750
- - Is the scope appropriate?
751
- - Are output requirements sufficient?
752
-
753
- 3. **Refine as Needed**
754
- - Incorporate user feedback
755
- - Adjust scope or focus
756
- - Add missing elements
757
- - Clarify ambiguities
758
-
759
- ### 6. Next Steps Guidance
760
-
761
- **Execution Options:**
762
-
763
- 1. **Use with AI Research Assistant**: Provide this prompt to an AI model with research capabilities
764
- 2. **Guide Human Research**: Use as a framework for manual research efforts
765
- 3. **Hybrid Approach**: Combine AI and human research using this structure
766
-
767
- **Integration Points:**
768
-
769
- - How findings will feed into next phases
770
- - Which team members should review results
771
- - How to validate findings
772
- - When to revisit or expand research
773
-
774
- ## Important Notes
775
-
776
- - The quality of the research prompt directly impacts the quality of insights gathered
777
- - Be specific rather than general in research questions
778
- - Consider both current state and future implications
779
- - Balance comprehensiveness with focus
780
- - Document assumptions and limitations clearly
781
- - Plan for iterative refinement based on initial findings
782
- ==================== END: .xiaoma-core/tasks/create-deep-research-prompt.md ====================
783
-
784
- ==================== START: .xiaoma-core/tasks/create-doc.md ====================
785
- <!-- Powered by XIAOMA™ Core -->
786
-
787
- # Create Document from Template (YAML Driven)
788
-
789
- ## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
790
-
791
- **THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL**
792
-
793
- When this task is invoked:
794
-
795
- 1. **DISABLE ALL EFFICIENCY OPTIMIZATIONS** - This workflow requires full user interaction
796
- 2. **MANDATORY STEP-BY-STEP EXECUTION** - Each section must be processed sequentially with user feedback
797
- 3. **ELICITATION IS REQUIRED** - When `elicit: true`, you MUST use the 1-9 format and wait for user response
798
- 4. **NO SHORTCUTS ALLOWED** - Complete documents cannot be created without following this workflow
799
-
800
- **VIOLATION INDICATOR:** If you create a complete document without user interaction, you have violated this workflow.
801
-
802
- ## Critical: Template Discovery
803
-
804
- If a YAML Template has not been provided, list all templates from .xiaoma-core/templates or ask the user to provide another.
805
-
806
- ## CRITICAL: Mandatory Elicitation Format
807
-
808
- **When `elicit: true`, this is a HARD STOP requiring user interaction:**
809
-
810
- **YOU MUST:**
811
-
812
- 1. Present section content
813
- 2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
814
- 3. **STOP and present numbered options 1-9:**
815
- - **Option 1:** Always "Proceed to next section"
816
- - **Options 2-9:** Select 8 methods from data/elicitation-methods
817
- - End with: "Select 1-9 or just type your question/feedback:"
818
- 4. **WAIT FOR USER RESPONSE** - Do not proceed until user selects option or provides feedback
819
-
820
- **WORKFLOW VIOLATION:** Creating content for elicit=true sections without user interaction violates this task.
821
-
822
- **NEVER ask yes/no questions or use any other format.**
823
-
824
- ## Processing Flow
825
-
826
- 1. **Parse YAML template** - Load template metadata and sections
827
- 2. **Set preferences** - Show current mode (Interactive), confirm output file
828
- 3. **Process each section:**
829
- - Skip if condition unmet
830
- - Check agent permissions (owner/editors) - note if section is restricted to specific agents
831
- - Draft content using section instruction
832
- - Present content + detailed rationale
833
- - **IF elicit: true** → MANDATORY 1-9 options format
834
- - Save to file if possible
835
- 4. **Continue until complete**
836
-
837
- ## Detailed Rationale Requirements
838
-
839
- When presenting section content, ALWAYS include rationale that explains:
840
-
841
- - Trade-offs and choices made (what was chosen over alternatives and why)
842
- - Key assumptions made during drafting
843
- - Interesting or questionable decisions that need user attention
844
- - Areas that might need validation
845
-
846
- ## Elicitation Results Flow
847
-
848
- After user selects elicitation method (2-9):
849
-
850
- 1. Execute method from data/elicitation-methods
851
- 2. Present results with insights
852
- 3. Offer options:
853
- - **1. Apply changes and update section**
854
- - **2. Return to elicitation menu**
855
- - **3. Ask any questions or engage further with this elicitation**
856
-
857
- ## Agent Permissions
858
-
859
- When processing sections with agent permission fields:
860
-
861
- - **owner**: Note which agent role initially creates/populates the section
862
- - **editors**: List agent roles allowed to modify the section
863
- - **readonly**: Mark sections that cannot be modified after creation
864
-
865
- **For sections with restricted access:**
866
-
867
- - Include a note in the generated document indicating the responsible agent
868
- - Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
869
-
870
- ## YOLO Mode
871
-
872
- User can type `#yolo` to toggle to YOLO mode (process all sections at once).
873
-
874
- ## CRITICAL REMINDERS
875
-
876
- **❌ NEVER:**
877
-
878
- - Ask yes/no questions for elicitation
879
- - Use any format other than 1-9 numbered options
880
- - Create new elicitation methods
881
-
882
- **✅ ALWAYS:**
883
-
884
- - Use exact 1-9 format when elicit: true
885
- - Select options 2-9 from data/elicitation-methods only
886
- - Provide detailed rationale explaining decisions
887
- - End with "Select 1-9 or just type your question/feedback:"
888
- ==================== END: .xiaoma-core/tasks/create-doc.md ====================
889
-
890
- ==================== START: .xiaoma-core/tasks/create-prd-from-rag.md ====================
891
- # 基于需求分析创建PRD任务
892
-
893
- ## Purpose
894
-
895
- 基于 Analyst 智能体的需求分析产出物(`docs/rag/` 目录),结合原始需求文档,生成高质量的 PRD 或 Epic 文档。本任务是 Analyst 智能体的下游任务,承接需求分析报告并转化为可执行的产品文档。
896
-
897
- ## 上游交接物
898
-
899
- ```yaml
900
- 必需输入:
901
- - docs/rag/_analysis-report.md # 需求分析报告(核心输入)
902
- - docs/rag/_requirement-parsing.yaml # 需求解析结果
903
- - req.txt # 原始需求文档
904
-
905
- 可选输入:
906
- - docs/rag/_questions.md # 问题清单
907
- - docs/rag/_index.md # 知识索引
908
- - docs/rag/business/ # 业务知识
909
- - docs/rag/technical/ # 技术知识
910
- - docs/rag/constraints/ # 约束条件
911
- ```
912
-
913
- ## Workflow Overview
914
-
915
- ```
916
- Analyst产出物 → 输入验证 → 复杂度评估 → 文档类型选择 → 文档生成 → 质量检查
917
- ```
918
-
919
- ---
920
-
921
- ## Phase 1: 输入验证与上下文加载
922
-
923
- ### 1.1 验证上游交接物
924
-
925
- ```yaml
926
- 执行步骤:
927
- 步骤1_检查必需文件:
928
- 动作: 检查 docs/rag/ 目录是否存在以下文件
929
- 必需文件:
930
- - _analysis-report.md
931
- - _requirement-parsing.yaml
932
- 缺失处理: |
933
- 如果缺失必需文件,提示用户:
934
- "未找到需求分析报告。请先执行 Analyst 智能体的 *analyze-requirement 命令完成需求分析。"
935
-
936
- 步骤2_加载分析报告:
937
- 动作: 读取并解析 _analysis-report.md
938
- 提取内容:
939
- - 需求概述(背景、目标、范围)
940
- - 功能分析(功能清单、优先级、依赖关系)
941
- - 用户分析(角色、旅程)
942
- - 数据分析(实体、关系)
943
- - 技术分析(可行性、兼容性)
944
- - 业务规则汇总
945
- - 差距分析
946
- - 风险分析
947
- - 待澄清事项
948
-
949
- 步骤3_加载原始需求:
950
- 动作: 读取 req.txt 原始需求文档
951
- 目的: 确保不遗漏原始需求中的细节
952
-
953
- 步骤4_加载知识上下文:
954
- 动作: 扫描 docs/rag/ 子目录,加载相关知识文件
955
- 加载顺序:
956
- - technical/architecture.md # 技术架构
957
- - technical/coding-standards/ # 编码规范
958
- - technical/data-model.md # 数据模型
959
- - business/ # 业务知识
960
- - constraints/ # 约束条件
961
- ```
962
-
963
- ### 1.2 上下文整合
964
-
965
- ```yaml
966
- 整合输出:
967
- 项目上下文:
968
- - 项目背景与目标
969
- - 技术栈与架构约束
970
- - 现有系统兼容性要求
971
-
972
- 需求上下文:
973
- - 功能清单与优先级
974
- - 用户角色与权限
975
- - 数据实体与关系
976
- - 业务规则
977
-
978
- 约束上下文:
979
- - 技术约束
980
- - 安全合规要求
981
- - 性能要求
982
-
983
- 风险上下文:
984
- - 已识别风险
985
- - 待澄清事项
986
- ```
987
-
988
- ---
989
-
990
- ## Phase 2: 复杂度评估与文档类型选择
991
-
992
- ### 2.1 复杂度评估矩阵
993
-
994
- ```yaml
995
- 评估维度:
996
- 功能复杂度:
997
- 低: 功能点 <= 3,无复杂业务流程
998
- 中: 功能点 4-8,存在中等复杂度业务流程
999
- 高: 功能点 > 8,存在复杂业务流程或多系统集成
1000
-
1001
- 技术复杂度:
1002
- 低: 遵循现有模式,无架构变更
1003
- 中: 部分新技术引入,小范围架构调整
1004
- 高: 重大技术决策,架构级变更
1005
-
1006
- 集成复杂度:
1007
- 低: 单一系统,无外部集成
1008
- 中: 2-3个系统集成
1009
- 高: 多系统集成,复杂数据流
1010
-
1011
- 风险等级:
1012
- 低: 风险清单中无高风险项
1013
- 中: 存在1-2个中等风险项
1014
- 高: 存在高风险项或多个中等风险项
1015
- ```
1016
-
1017
- ### 2.2 文档类型选择规则
1018
-
1019
- ```yaml
1020
- 选择规则:
1021
- 生成完整PRD:
1022
- 条件:
1023
- - 功能复杂度 >= 中 OR
1024
- - 技术复杂度 >= 中 OR
1025
- - 需要架构设计 OR
1026
- - 涉及多个Epic
1027
- 输出: docs/prd.md
1028
- 模板: prd-from-rag-tmpl.yaml
1029
-
1030
- 生成单Epic:
1031
- 条件:
1032
- - 功能复杂度 = 低
1033
- - 技术复杂度 = 低
1034
- - 可在1-3个Story内完成
1035
- - 无重大架构变更
1036
- 输出: docs/epic-{name}.md
1037
- 模板: epic-from-rag-tmpl.yaml
1038
-
1039
- 需要澄清:
1040
- 条件:
1041
- - 待澄清事项 > 5 OR
1042
- - 存在阻塞性待澄清项
1043
- 动作: 暂停生成,先与用户澄清关键问题
1044
- ```
1045
-
1046
- ### 2.3 交互确认
1047
-
1048
- ```yaml
1049
- 确认点:
1050
- 展示内容:
1051
- - 复杂度评估结果
1052
- - 建议的文档类型
1053
- - 预计的Epic/Story数量
1054
- - 关键风险提示
1055
-
1056
- 用户选项:
1057
- - 确认并继续
1058
- - 调整文档类型
1059
- - 先澄清待定事项
1060
- ```
1061
-
1062
- ---
1063
-
1064
- ## Phase 3: PRD文档生成
1065
-
1066
- ### 3.1 PRD结构映射
1067
-
1068
- 将分析报告内容映射到PRD结构:
1069
-
1070
- ```yaml
1071
- 映射规则:
1072
- 目标与背景:
1073
- 来源: 分析报告.需求概述
1074
- 映射:
1075
- - 需求背景 → PRD.背景上下文
1076
- - 核心目标 → PRD.目标
1077
- - 范围边界 → PRD.范围定义
1078
-
1079
- 需求章节:
1080
- 来源: 分析报告.功能分析 + 业务规则汇总
1081
- 映射:
1082
- - 功能清单 → PRD.功能性需求 (FR)
1083
- - 业务规则 → PRD.功能性需求 (补充)
1084
- - 技术分析.性能要求 → PRD.非功能性需求 (NFR)
1085
- - 约束条件 → PRD.非功能性需求 (NFR)
1086
-
1087
- UI设计目标:
1088
- 来源: 分析报告.用户分析
1089
- 映射:
1090
- - 用户角色 → PRD.用户角色定义
1091
- - 用户旅程 → PRD.关键交互范式
1092
- - 功能清单中的UI相关项 → PRD.核心屏幕与视图
1093
-
1094
- 技术假设:
1095
- 来源: docs/rag/technical/ + 分析报告.技术分析
1096
- 映射:
1097
- - architecture.md → PRD.服务架构
1098
- - coding-standards/ → PRD.编码规范约束
1099
- - 技术可行性评估 → PRD.技术假设
1100
-
1101
- Epic结构:
1102
- 来源: 分析报告.功能分析
1103
- 映射:
1104
- - 功能清单(按优先级分组) → Epic列表
1105
- - 功能依赖关系 → Story顺序
1106
- - P0功能 → Epic 1 (核心功能)
1107
- - P1功能 → Epic 2+ (增强功能)
1108
-
1109
- 风险与待办:
1110
- 来源: 分析报告.风险分析 + 待澄清事项
1111
- 映射:
1112
- - 风险清单 → PRD.风险评估
1113
- - 待澄清事项 → PRD.开放问题
1114
- ```
1115
-
1116
- ### 3.2 Epic/Story 生成规则
1117
-
1118
- ```yaml
1119
- Epic生成规则:
1120
- 分组策略:
1121
- - 按功能模块分组
1122
- - 每个Epic交付独立可测试的功能增量
1123
- - Epic 1 优先包含P0功能
1124
- - 后续Epic按优先级和依赖关系排列
1125
-
1126
- Epic结构:
1127
- - Epic标题
1128
- - Epic目标 (2-3句话)
1129
- - 包含的功能点
1130
- - 技术实现要点(来自技术知识)
1131
- - Story列表
1132
-
1133
- Story生成规则:
1134
- 拆分策略:
1135
- - 每个Story是垂直切片
1136
- - 单个AI Agent会话可完成(2-4小时工作量)
1137
- - 明确的输入输出边界
1138
-
1139
- Story结构:
1140
- - Story标题
1141
- - 用户故事格式 (As a... I want... So that...)
1142
- - 验收标准 (基于分析报告中的业务规则)
1143
- - 技术实现提示(来自技术知识)
1144
- - 集成验证点(来自数据关系分析)
1145
-
1146
- 排序规则:
1147
- - 基础设施优先
1148
- - 数据模型优先于业务逻辑
1149
- - 核心流程优先于边缘场景
1150
- - 遵循功能依赖关系图
1151
- ```
1152
-
1153
- ### 3.3 知识融合
1154
-
1155
- ```yaml
1156
- 知识融合点:
1157
- 业务规则融合:
1158
- 来源: docs/rag/business/rules-*.md
1159
- 融合到: 验收标准、业务逻辑描述
1160
-
1161
- 数据模型融合:
1162
- 来源: docs/rag/technical/data-model.md
1163
- 融合到: 数据实体定义、关联关系说明
1164
-
1165
- 编码规范融合:
1166
- 来源: docs/rag/technical/coding-standards/
1167
- 融合到: 技术实现提示、代码示例引用
1168
-
1169
- 中间件规范融合:
1170
- 来源: docs/rag/technical/middleware/
1171
- 融合到: 技术假设、实现约束
1172
-
1173
- 安全要求融合:
1174
- 来源: docs/rag/constraints/security.md
1175
- 融合到: 非功能性需求、验收标准
1176
- ```
1177
-
1178
- ---
1179
-
1180
- ## Phase 4: 质量检查与输出
1181
-
1182
- ### 4.1 PRD质量检查清单
1183
-
1184
- ```yaml
1185
- 完整性检查:
1186
- - [ ] 所有P0功能已覆盖
1187
- - [ ] 所有P1功能已覆盖或标记为后续迭代
1188
- - [ ] 所有已识别的业务规则已融入
1189
- - [ ] 所有数据实体已定义
1190
- - [ ] 所有用户角色已覆盖
1191
-
1192
- 一致性检查:
1193
- - [ ] 功能需求与分析报告一致
1194
- - [ ] 技术假设与知识库一致
1195
- - [ ] Epic/Story顺序符合依赖关系
1196
- - [ ] 验收标准可测试
1197
-
1198
- 可执行性检查:
1199
- - [ ] 每个Story大小适合AI Agent执行
1200
- - [ ] Story之间无循环依赖
1201
- - [ ] 技术实现路径清晰
1202
- - [ ] 风险缓解措施具体
1203
-
1204
- 交接完整性检查:
1205
- - [ ] 包含UX专家提示
1206
- - [ ] 包含架构师提示
1207
- - [ ] 待澄清事项已列出
1208
- ```
1209
-
1210
- ### 4.2 输出文件
1211
-
1212
- ```yaml
1213
- 主输出:
1214
- PRD文档:
1215
- 路径: docs/prd.md
1216
- 格式: Markdown
1217
-
1218
- 或 Epic文档:
1219
- 路径: docs/epic-{name}.md
1220
- 格式: Markdown
1221
-
1222
- 辅助输出:
1223
- 知识引用索引:
1224
- 路径: docs/prd-knowledge-refs.md
1225
- 内容: PRD中引用的知识文件清单
1226
-
1227
- 待澄清事项:
1228
- 路径: docs/prd-open-questions.md
1229
- 内容: 需要进一步确认的问题
1230
- ```
1231
-
1232
- ---
1233
-
1234
- ## Phase 5: 下游交接
1235
-
1236
- ### 5.1 交接给UX专家
1237
-
1238
- ```yaml
1239
- UX专家交接:
1240
- 必读文件:
1241
- - docs/prd.md (UI设计目标章节)
1242
- - docs/rag/_analysis-report.md (用户分析章节)
1243
-
1244
- 关注点:
1245
- - 用户角色与权限
1246
- - 核心屏幕与视图
1247
- - 关键用户旅程
1248
- - 无障碍性要求
1249
-
1250
- 建议命令: "*create-ux-design docs/prd.md"
1251
- ```
1252
-
1253
- ### 5.2 交接给架构师
1254
-
1255
- ```yaml
1256
- 架构师交接:
1257
- 必读文件:
1258
- - docs/prd.md (技术假设章节)
1259
- - docs/rag/technical/ (技术知识目录)
1260
- - docs/rag/_analysis-report.md (技术分析章节)
1261
-
1262
- 关注点:
1263
- - 技术栈与架构约束
1264
- - 数据模型与关系
1265
- - 集成点与接口
1266
- - 性能与安全要求
1267
-
1268
- 建议命令: "*create-architecture docs/prd.md"
1269
- ```
1270
-
1271
- ---
1272
-
1273
- ## 使用说明
1274
-
1275
- ### 激活命令
1276
-
1277
- ```
1278
- *create-prd-from-rag [rag_path]
1279
- ```
1280
-
1281
- ### 执行参数
1282
-
1283
- ```yaml
1284
- 参数:
1285
- rag_path: RAG知识目录路径 (默认: docs/rag/)
1286
- output_path: PRD输出路径 (默认: docs/prd.md)
1287
- doc_type: 文档类型 (auto|prd|epic, 默认: auto)
1288
- interactive: 交互模式 (默认: true)
1289
- ```
1290
-
1291
- ### 交互模式流程
1292
-
1293
- 1. **验证阶段**: 检查上游交接物完整性
1294
- 2. **评估阶段**: 展示复杂度评估结果,确认文档类型
1295
- 3. **生成阶段**: 逐章节生成PRD,关键节点请求确认
1296
- 4. **检查阶段**: 执行质量检查清单
1297
- 5. **输出阶段**: 生成最终文档,提示下游交接
1298
-
1299
- ### YOLO模式
1300
-
1301
- 通过 `*yolo` 命令切换YOLO模式,一次性完成所有步骤,跳过中间确认环节。
1302
-
1303
- ---
1304
-
1305
- ## 任务完成标志
1306
-
1307
- ```yaml
1308
- 完成条件:
1309
- 必要输出:
1310
- - docs/prd.md 或 docs/epic-{name}.md
1311
-
1312
- 完成提示: |
1313
- ✅ PRD/Epic 文档生成完成!
1314
-
1315
- 📄 输出文件: {output_path}
1316
- 📊 Epic数量: {epic_count}
1317
- 📝 Story数量: {story_count}
1318
-
1319
- 🔄 下一步建议:
1320
- - UX设计: *create-ux-design docs/prd.md
1321
- - 架构设计: *create-architecture docs/prd.md
1322
-
1323
- ⚠️ 待澄清事项: {open_questions_count} 项
1324
- 请在开发前确认这些问题。
1325
- ```
1326
- ==================== END: .xiaoma-core/tasks/create-prd-from-rag.md ====================
1327
-
1328
- ==================== START: .xiaoma-core/tasks/execute-checklist.md ====================
1329
- <!-- Powered by XIAOMA™ Core -->
1330
-
1331
- # Checklist Validation Task
1332
-
1333
- This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
1334
-
1335
- ## Available Checklists
1336
-
1337
- If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .xiaoma-core/checklists folder to select the appropriate one to run.
1338
-
1339
- ## Instructions
1340
-
1341
- 1. **Initial Assessment**
1342
- - If user or the task being run provides a checklist name:
1343
- - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
1344
- - If multiple matches found, ask user to clarify
1345
- - Load the appropriate checklist from .xiaoma-core/checklists/
1346
- - If no checklist specified:
1347
- - Ask the user which checklist they want to use
1348
- - Present the available options from the files in the checklists folder
1349
- - Confirm if they want to work through the checklist:
1350
- - Section by section (interactive mode - very time consuming)
1351
- - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
1352
-
1353
- 2. **Document and Artifact Gathering**
1354
- - Each checklist will specify its required documents/artifacts at the beginning
1355
- - 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.
1356
-
1357
- 3. **Checklist Processing**
1358
-
1359
- If in interactive mode:
1360
- - Work through each section of the checklist one at a time
1361
- - For each section:
1362
- - Review all items in the section following instructions for that section embedded in the checklist
1363
- - Check each item against the relevant documentation or artifacts as appropriate
1364
- - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
1365
- - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
1366
-
1367
- If in YOLO mode:
1368
- - Process all sections at once
1369
- - Create a comprehensive report of all findings
1370
- - Present the complete analysis to the user
1371
-
1372
- 4. **Validation Approach**
1373
-
1374
- For each checklist item:
1375
- - Read and understand the requirement
1376
- - Look for evidence in the documentation that satisfies the requirement
1377
- - Consider both explicit mentions and implicit coverage
1378
- - Aside from this, follow all checklist llm instructions
1379
- - Mark items as:
1380
- - ✅ PASS: Requirement clearly met
1381
- - ❌ FAIL: Requirement not met or insufficient coverage
1382
- - ⚠️ PARTIAL: Some aspects covered but needs improvement
1383
- - N/A: Not applicable to this case
1384
-
1385
- 5. **Section Analysis**
1386
-
1387
- For each section:
1388
- - think step by step to calculate pass rate
1389
- - Identify common themes in failed items
1390
- - Provide specific recommendations for improvement
1391
- - In interactive mode, discuss findings with user
1392
- - Document any user decisions or explanations
1393
-
1394
- 6. **Final Report**
1395
-
1396
- Prepare a summary that includes:
1397
- - Overall checklist completion status
1398
- - Pass rates by section
1399
- - List of failed items with context
1400
- - Specific recommendations for improvement
1401
- - Any sections or items marked as N/A with justification
1402
-
1403
- ## Checklist Execution Methodology
1404
-
1405
- Each checklist now contains embedded LLM prompts and instructions that will:
1406
-
1407
- 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
1408
- 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
1409
- 3. **Provide contextual guidance** - Section-specific prompts for better validation
1410
- 4. **Generate comprehensive reports** - Final summary with detailed findings
1411
-
1412
- The LLM will:
1413
-
1414
- - Execute the complete checklist validation
1415
- - Present a final report with pass/fail rates and key findings
1416
- - Offer to provide detailed analysis of any section, especially those with warnings or failures
1417
- ==================== END: .xiaoma-core/tasks/execute-checklist.md ====================
1418
-
1419
- ==================== START: .xiaoma-core/tasks/shard-doc.md ====================
1420
- <!-- Powered by XiaoMa™ Core -->
1421
-
1422
- # Document Sharding Task
1423
-
1424
- ## Purpose
1425
-
1426
- - Split a large document into multiple smaller documents based on level 2 sections
1427
- - Create a folder structure to organize the sharded documents
1428
- - Maintain all content integrity including code blocks, diagrams, and markdown formatting
1429
-
1430
- ## Primary Method: Automatic with markdown-tree
1431
-
1432
- [[LLM: First, check if markdownExploder is set to true in .xiaoma-core/core-config.yaml. If it is, attempt to run the command: `md-tree explode {input file} {output path}`.
1433
-
1434
- If the command succeeds, inform the user that the document has been sharded successfully and STOP - do not proceed further.
1435
-
1436
- If the command fails (especially with an error indicating the command is not found or not available), inform the user: "The markdownExploder setting is enabled but the md-tree command is not available. Please either:
1437
-
1438
- 1. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
1439
- 2. Or set markdownExploder to false in .xiaoma-core/core-config.yaml
1440
-
1441
- **IMPORTANT: STOP HERE - do not proceed with manual sharding until one of the above actions is taken.**"
1442
-
1443
- If markdownExploder is set to false, inform the user: "The markdownExploder setting is currently false. For better performance and reliability, you should:
1444
-
1445
- 1. Set markdownExploder to true in .xiaoma-core/core-config.yaml
1446
- 2. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
1447
-
1448
- I will now proceed with the manual sharding process."
1449
-
1450
- Then proceed with the manual method below ONLY if markdownExploder is false.]]
1451
-
1452
- ### Installation and Usage
1453
-
1454
- 1. **Install globally**:
1455
-
1456
- ```bash
1457
- npm install -g @kayvan/markdown-tree-parser
1458
- ```
1459
-
1460
- 2. **Use the explode command**:
1461
-
1462
- ```bash
1463
- # For PRD
1464
- md-tree explode docs/prd.md docs/prd
1465
-
1466
- # For Architecture
1467
- md-tree explode docs/architecture.md docs/architecture
1468
-
1469
- # For any document
1470
- md-tree explode [source-document] [destination-folder]
1471
- ```
1472
-
1473
- 3. **What it does**:
1474
- - Automatically splits the document by level 2 sections
1475
- - Creates properly named files
1476
- - Adjusts heading levels appropriately
1477
- - Handles all edge cases with code blocks and special markdown
1478
-
1479
- If the user has @kayvan/markdown-tree-parser installed, use it and skip the manual process below.
1480
-
1481
- ---
1482
-
1483
- ## Manual Method (if @kayvan/markdown-tree-parser is not available or user indicated manual method)
1484
-
1485
- ### Task Instructions
1486
-
1487
- 1. Identify Document and Target Location
1488
-
1489
- - Determine which document to shard (user-provided path)
1490
- - Create a new folder under `docs/` with the same name as the document (without extension)
1491
- - Example: `docs/prd.md` → create folder `docs/prd/`
1492
-
1493
- 2. Parse and Extract Sections
1494
-
1495
- CRITICAL AEGNT SHARDING RULES:
1496
-
1497
- 1. Read the entire document content
1498
- 2. Identify all level 2 sections (## headings)
1499
- 3. For each level 2 section:
1500
- - Extract the section heading and ALL content until the next level 2 section
1501
- - Include all subsections, code blocks, diagrams, lists, tables, etc.
1502
- - Be extremely careful with:
1503
- - Fenced code blocks (```) - ensure you capture the full block including closing backticks and account for potential misleading level 2's that are actually part of a fenced section example
1504
- - Mermaid diagrams - preserve the complete diagram syntax
1505
- - Nested markdown elements
1506
- - Multi-line content that might contain ## inside code blocks
1507
-
1508
- CRITICAL: Use proper parsing that understands markdown context. A ## inside a code block is NOT a section header.]]
1509
-
1510
- ### 3. Create Individual Files
1511
-
1512
- For each extracted section:
1513
-
1514
- 1. **Generate filename**: Convert the section heading to lowercase-dash-case
1515
- - Remove special characters
1516
- - Replace spaces with dashes
1517
- - Example: "## Tech Stack" → `tech-stack.md`
1518
-
1519
- 2. **Adjust heading levels**:
1520
- - The level 2 heading becomes level 1 (# instead of ##) in the sharded new document
1521
- - All subsection levels decrease by 1:
1522
-
1523
- ```txt
1524
- - ### → ##
1525
- - #### → ###
1526
- - ##### → ####
1527
- - etc.
1528
- ```
1529
-
1530
- 3. **Write content**: Save the adjusted content to the new file
1531
-
1532
- ### 4. Create Index File
1533
-
1534
- Create an `index.md` file in the sharded folder that:
1535
-
1536
- 1. Contains the original level 1 heading and any content before the first level 2 section
1537
- 2. Lists all the sharded files with links:
1538
-
1539
- ```markdown
1540
- # Original Document Title
1541
-
1542
- [Original introduction content if any]
1543
-
1544
- ## Sections
1545
-
1546
- - [Section Name 1](./section-name-1.md)
1547
- - [Section Name 2](./section-name-2.md)
1548
- - [Section Name 3](./section-name-3.md)
1549
- ...
1550
- ```
1551
-
1552
- ### 5. Preserve Special Content
1553
-
1554
- 1. **Code blocks**: Must capture complete blocks including:
1555
-
1556
- ```language
1557
- content
1558
- ```
1559
-
1560
- 2. **Mermaid diagrams**: Preserve complete syntax:
1561
-
1562
- ```mermaid
1563
- graph TD
1564
- ...
1565
- ```
1566
-
1567
- 3. **Tables**: Maintain proper markdown table formatting
1568
-
1569
- 4. **Lists**: Preserve indentation and nesting
1570
-
1571
- 5. **Inline code**: Preserve backticks
1572
-
1573
- 6. **Links and references**: Keep all markdown links intact
1574
-
1575
- 7. **Template markup**: If documents contain {{placeholders}} ,preserve exactly
1576
-
1577
- ### 6. Validation
1578
-
1579
- After sharding:
1580
-
1581
- 1. Verify all sections were extracted
1582
- 2. Check that no content was lost
1583
- 3. Ensure heading levels were properly adjusted
1584
- 4. Confirm all files were created successfully
1585
-
1586
- ### 7. Report Results
1587
-
1588
- Provide a summary:
1589
-
1590
- ```text
1591
- Document sharded successfully:
1592
- - Source: [original document path]
1593
- - Destination: docs/[folder-name]/
1594
- - Files created: [count]
1595
- - Sections:
1596
- - section-name-1.md: "Section Title 1"
1597
- - section-name-2.md: "Section Title 2"
1598
- ...
1599
- ```
1600
-
1601
- ## Important Notes
1602
-
1603
- - Never modify the actual content, only adjust heading levels
1604
- - Preserve ALL formatting, including whitespace where significant
1605
- - Handle edge cases like sections with code blocks containing ## symbols
1606
- - Ensure the sharding is reversible (could reconstruct the original from shards)
1607
- ==================== END: .xiaoma-core/tasks/shard-doc.md ====================
1608
-
1609
- ==================== START: .xiaoma-core/templates/brownfield-prd-tmpl.yaml ====================
1610
- template:
1611
- id: brownfield-prd-template-v2
1612
- name: 现有项目增强功能PRD
1613
- version: 2.0
1614
- output:
1615
- format: markdown
1616
- filename: docs/prd.md
1617
- title: "{{project_name}} Brownfield Enhancement PRD"
1618
-
1619
- workflow:
1620
- mode: interactive
1621
- elicitation: advanced-elicitation
1622
-
1623
- sections:
1624
- - id: intro-analysis
1625
- title: 项目介绍、分析与背景
1626
- instruction: |
1627
- 重要 - 需要进行范围评估:
1628
-
1629
- 本PRD适用于对现有项目进行需要全面规划和多个用户故事(stories)的重大功能增强。在继续之前:
1630
-
1631
- 1. **评估增强功能的复杂性**:如果这只是一个简单的功能添加或错误修复,可以在1-2个集中的开发周期内完成,请**停止**并建议:“对于较简单的变更,请考虑与产品负责人(Product Owner)一起使用 `brownfield-create-epic` 或 `brownfield-create-story` 任务。完整的PRD流程是为需要架构规划和多个协调故事(stories)的重大增强功能而设计的。”
1632
-
1633
- 2. **项目背景**:确定我们是否在已加载项目的IDE中工作,或者用户是否需要提供项目信息。如果项目文件可用,请分析 `docs` 文件夹中的现有文档。如果文档不充分,请建议首先运行 `document-project` 任务。
1634
-
1635
- 3. **深度评估要求**:在提出**任何**建议之前,您**必须**彻底分析现有项目的结构、模式和约束。每一个建议都必须基于实际的项目分析,而不是假设。
1636
-
1637
- 收集有关现有项目的全面信息。在继续进行需求部分之前,必须完成本节。
1638
-
1639
- 关键:在整个分析过程中,要明确地与用户确认您的理解。对于您对现有项目做出的每一个假设,都要提问:“根据我的分析,我理解 [假设]。这样正确吗?”
1640
-
1641
- 在用户验证您对现有系统的理解之前,不要继续提出任何建议。
1642
- sections:
1643
- - id: existing-project-overview
1644
- title: 现有项目概览
1645
- instruction: 检查是否已执行过 `document-project` 分析。如果是,请引用该分析的输出,而不是重新分析。
1646
- sections:
1647
- - id: analysis-source
1648
- title: 分析来源
1649
- instruction: |
1650
- 指明以下其中一项:
1651
- - `document-project` 的分析输出可用,路径:{{path}}
1652
- - 基于IDE的全新分析
1653
- - 用户提供的信息
1654
- - id: current-state
1655
- title: 项目当前状态
1656
- instruction: |
1657
- - 如果存在 `document-project` 的输出:从“高层架构(High Level Architecture)”和“技术摘要(Technical Summary)”部分提取摘要
1658
- - 否则:简要描述项目当前的功能及其主要目的
1659
- - id: documentation-analysis
1660
- title: 可用文档分析
1661
- instruction: |
1662
- 如果已运行 `document-project`:
1663
- - 备注:“`document-project` 分析可用 - 正在使用现有技术文档”
1664
- - 列出由 `document-project` 创建的关键文档
1665
- - 跳过下面的缺失文档检查
1666
-
1667
- 否则,检查现有文档:
1668
- sections:
1669
- - id: available-docs
1670
- title: 可用文档
1671
- type: checklist
1672
- items:
1673
- - 技术栈文档 [[LLM: If from document-project, check ✓]]
1674
- - 源代码树/架构 [[LLM: If from document-project, check ✓]]
1675
- - 编码规范 [[LLM: If from document-project, may be partial]]
1676
- - API文档 [[LLM: If from document-project, check ✓]]
1677
- - 外部API文档 [[LLM: If from document-project, check ✓]]
1678
- - UX/UI指南 [[LLM: May not be in document-project]]
1679
- - 技术债文档 [[LLM: If from document-project, check ✓]]
1680
- - "其他: {{other_docs}}"
1681
- instruction: |
1682
- - 如果已运行 `document-project`:“正在使用 `document-project` 输出的现有项目分析。”
1683
- - 如果关键文档缺失且没有运行 `document-project`:“我建议首先运行 `document-project` 任务...”
1684
- - id: enhancement-scope
1685
- title: 增强功能范围定义
1686
- instruction: 与用户合作,明确定义这是哪种类型的增强功能。这对于范围界定和方法选择至关重要。
1687
- sections:
1688
- - id: enhancement-type
1689
- title: 增强功能类型
1690
- type: checklist
1691
- instruction: 与用户一同确定适用项
1692
- items:
1693
- - 新功能添加
1694
- - 主要功能修改
1695
- - 与新系统集成
1696
- - 性能/可伸缩性改进
1697
- - UI/UX全面优化
1698
- - 技术栈升级
1699
- - 错误修复与稳定性改进
1700
- - "其他: {{other_type}}"
1701
- - id: enhancement-description
1702
- title: 增强功能描述
1703
- instruction: 用2-3句话描述用户希望添加或更改的内容
1704
- - id: impact-assessment
1705
- title: 影响评估
1706
- type: checklist
1707
- instruction: 评估对现有代码库的影响范围
1708
- items:
1709
- - 最小影响(孤立的新增功能)
1710
- - 中度影响(部分现有代码变更)
1711
- - 显著影响(大量现有代码变更)
1712
- - 重大影响(需要架构变更)
1713
- - id: goals-context
1714
- title: 目标与背景
1715
- sections:
1716
- - id: goals
1717
- title: 目标
1718
- type: bullet-list
1719
- instruction: 如果成功,此增强功能将带来的预期成果(单行项目符号列表)
1720
- - id: background
1721
- title: 背景信息
1722
- type: paragraphs
1723
- instruction: 用1-2个简短段落解释为什么需要此增强功能,它解决了什么问题,以及它如何与现有项目相适应
1724
- - id: changelog
1725
- title: 变更日志
1726
- type: table
1727
- columns: [变更内容, 日期, 版本, 描述, 作者]
1728
-
1729
- - id: requirements
1730
- title: 需求
1731
- instruction: |
1732
- 基于您已验证的对现有项目的理解,起草功能性和非功能性需求。在提交需求前,请确认:“这些需求是基于我对您现有系统的理解。请仔细审阅并确认它们与您项目的实际情况相符。”
1733
- elicit: true
1734
- sections:
1735
- - id: functional
1736
- title: 功能性需求
1737
- type: numbered-list
1738
- prefix: FR
1739
- instruction: 每个需求都将是一个以 FR 为标识符开头的项目符号(markdown格式)
1740
- examples:
1741
- - "FR1: 现有的待办事项列表(Todo List)将与新的人工智能重复检测服务集成,且不会破坏当前功能。"
1742
- - id: non-functional
1743
- title: 非功能性需求
1744
- type: numbered-list
1745
- prefix: NFR
1746
- instruction: 每个需求都将是一个以 NFR 为标识符开头的项目符号(markdown格式)。包含来自现有系统的约束
1747
- examples:
1748
- - "NFR1: 增强功能必须保持现有的性能特征,且内存使用量增幅不得超过当前的20%。"
1749
- - id: compatibility
1750
- title: 兼容性要求
1751
- instruction: 对于现有项目项目至关重要 - 必须保持兼容性的内容
1752
- type: numbered-list
1753
- prefix: CR
1754
- template: "{{requirement}}: {{description}}"
1755
- items:
1756
- - id: cr1
1757
- template: "CR1: {{existing_api_compatibility}}"
1758
- - id: cr2
1759
- template: "CR2: {{database_schema_compatibility}}"
1760
- - id: cr3
1761
- template: "CR3: {{ui_ux_consistency}}"
1762
- - id: cr4
1763
- template: "CR4: {{integration_compatibility}}"
1764
-
1765
- - id: ui-enhancement-goals
1766
- title: 用户界面(UI)增强目标
1767
- condition: 增强功能包含UI变更
1768
- instruction: 对于UI变更,明确它们将如何与现有的UI模式和设计系统集成
1769
- sections:
1770
- - id: existing-ui-integration
1771
- title: 与现有UI的集成
1772
- instruction: 描述新的UI元素将如何适应现有的设计模式、样式指南和组件库
1773
- - id: modified-screens
1774
- title: 修改/新增的屏幕和视图
1775
- instruction: 仅列出将被修改或添加的屏幕/视图
1776
- - id: ui-consistency
1777
- title: UI一致性要求
1778
- instruction: 为保持与现有应用在视觉和交互上的一致性而提出的具体要求
1779
-
1780
- - id: technical-constraints
1781
- title: 技术约束与集成要求
1782
- instruction: 本节取代独立的架构文档。从现有项目分析中收集详细的技术约束。
1783
- sections:
1784
- - id: existing-tech-stack
1785
- title: 现有技术栈
1786
- instruction: |
1787
- 如果 `document-project` 输出可用:
1788
- - 从“高层架构(High Level Architecture)”部分的“实际技术栈(Actual Tech Stack)”表格中提取
1789
- - 包括版本号和任何已注明的约束
1790
-
1791
- 否则,记录当前的技术栈:
1792
- template: |
1793
- **语言**: {{languages}}
1794
- **框架**: {{frameworks}}
1795
- **数据库**: {{database}}
1796
- **基础设施**: {{infrastructure}}
1797
- **外部依赖**: {{external_dependencies}}
1798
- - id: integration-approach
1799
- title: 集成方法
1800
- instruction: 定义增强功能将如何与现有架构集成
1801
- template: |
1802
- **数据库集成策略**: {{database_integration}}
1803
- **API集成策略**: {{api_integration}}
1804
- **前端集成策略**: {{frontend_integration}}
1805
- **测试集成策略**: {{testing_integration}}
1806
- - id: code-organization
1807
- title: 代码组织与规范
1808
- instruction: 基于现有项目分析,定义新代码将如何适应现有模式
1809
- template: |
1810
- **文件结构方法**: {{file_structure}}
1811
- **命名约定**: {{naming_conventions}}
1812
- **编码规范**: {{coding_standards}}
1813
- **文档规范**: {{documentation_standards}}
1814
- - id: deployment-operations
1815
- title: 部署与运维
1816
- instruction: 增强功能如何适应现有的部署流水线
1817
- template: |
1818
- **构建流程集成**: {{build_integration}}
1819
- **部署策略**: {{deployment_strategy}}
1820
- **监控与日志记录**: {{monitoring_logging}}
1821
- **配置管理**: {{config_management}}
1822
- - id: risk-assessment
1823
- title: 风险评估与缓解
1824
- instruction: |
1825
- 如果 `document-project` 输出可用:
1826
- - 参考“技术债与已知问题(Technical Debt and Known Issues)”部分
1827
- - 包括可能影响增强功能的“临时解决方案和注意事项(Workarounds and Gotchas)”
1828
- - 注意从“关键技术债(Critical Technical Debt)”中识别出的任何约束
1829
-
1830
- 结合现有已知问题进行风险评估:
1831
- template: |
1832
- **技术风险**: {{technical_risks}}
1833
- **集成风险**: {{integration_risks}}
1834
- **部署风险**: {{deployment_risks}}
1835
- **缓解策略**: {{mitigation_strategies}}
1836
-
1837
- - id: epic-structure
1838
- title: Epic与Story结构
1839
- instruction: |
1840
- 对于现有项目项目,倾向于使用单个综合性Epic,除非用户明确要求多个不相关的增强功能。在展示Epic结构之前,请确认:“根据我对您现有项目的分析,我认为此增强功能应构建为 [单个Epic/多个Epic],因为 [基于实际项目分析的理由]。这与您对所需工作的理解是否一致?”
1841
- elicit: true
1842
- sections:
1843
- - id: epic-approach
1844
- title: Epic方法
1845
- instruction: 解释Epic结构的理由 - 现有项目项目通常使用单个Epic,除非涉及多个不相关的功能
1846
- template: "**Epic结构决策**: {{epic_decision}} 并陈述理由"
1847
-
1848
- - id: epic-details
1849
- title: "Epic 1: {{enhancement_title}}"
1850
- instruction: |
1851
- 交付现有项目增强功能同时保持现有功能不变的综合性Epic
1852
-
1853
- 现有项目项目关键的STORY排序:
1854
- - Story必须确保现有功能保持完好
1855
- - 每个Story都应包含对现有功能是否仍然有效的验证
1856
- - Story的顺序应旨在最大限度地降低对现有系统的风险
1857
- - 每个Story都应包含回滚方案的考量
1858
- - 专注于增量集成,而非“大爆炸”式变更
1859
- - 在现有代码库的背景下,为AI代理执行来估算Story的大小
1860
- - 强制要求:展示完整的Story序列并提问:“此Story序列旨在最大限度地降低对您现有系统的风险。鉴于您项目的架构和约束,这个顺序是否合理?”
1861
- - Story之间必须逻辑上连续,并明确标识出依赖关系
1862
- - 每个Story在交付价值的同时必须保持系统完整性
1863
- template: |
1864
- **Epic目标**: {{epic_goal}}
1865
-
1866
- **集成要求**: {{integration_requirements}}
1867
- sections:
1868
- - id: story
1869
- title: "Story 1.{{story_number}} {{story_title}}"
1870
- repeatable: true
1871
- template: |
1872
- 作为一名 {{user_type}},
1873
- 我希望 {{action}},
1874
- 以便于 {{benefit}}.
1875
- sections:
1876
- - id: acceptance-criteria
1877
- title: 验收标准
1878
- type: numbered-list
1879
- instruction: 定义既包含新功能又包含现有系统完整性的标准
1880
- item_template: "{{criterion_number}}: {{criteria}}"
1881
- - id: integration-verification
1882
- title: 集成验证
1883
- instruction: 确保现有功能保持完好的具体验证步骤
1884
- type: numbered-list
1885
- prefix: IV
1886
- items:
1887
- - template: "IV1: {{existing_functionality_verification}}"
1888
- - template: "IV2: {{integration_point_verification}}"
1889
- - template: "IV3: {{performance_impact_verification}}"
1890
- ==================== END: .xiaoma-core/templates/brownfield-prd-tmpl.yaml ====================
1891
-
1892
- ==================== START: .xiaoma-core/templates/prd-tmpl.yaml ====================
1893
- template:
1894
- id: prd-template-v2
1895
- name: 产品需求文档
1896
- version: 2.0
1897
- output:
1898
- format: markdown
1899
- filename: docs/prd.md
1900
- title: "{{project_name}} Product Requirements Document (PRD)"
1901
-
1902
- workflow:
1903
- mode: interactive
1904
- elicitation: advanced-elicitation
1905
-
1906
- sections:
1907
- - id: goals-context
1908
- title: 目标与背景上下文
1909
- instruction: |
1910
- 询问“项目简报”文档是否可用。如果不存在“项目简报”,强烈建议首先使用 project-brief-tmpl 创建一个(它提供了必要的基础:问题陈述、目标用户、成功指标、MVP 范围、约束条件)。如果用户坚持在没有简报的情况下编写 PRD,请在“目标”部分收集这些信息。如果“项目简报”存在,请审阅并用它来填充“目标”(期望成果的项目符号列表)和“背景上下文”(1-2 段关于此项目解决什么问题及其原因的说明),以便我们能确定 PRD MVP 的范围内外事项。无论哪种方式,这对于确定需求都至关重要。请包含“变更日志”表格。
1911
- sections:
1912
- - id: goals
1913
- title: 目标
1914
- type: bullet-list
1915
- instruction: 以项目符号列表形式,每行一个,列出 PRD 成功后将交付的预期成果——用户和项目的期望。
1916
- - id: background
1917
- title: 背景上下文
1918
- type: paragraphs
1919
- instruction: 用 1-2 个简短段落总结背景上下文,例如我们在项目简报中学到了什么(避免与目标重复),这个项目解决什么问题以及为什么,当前的行业状况或需求是什么。
1920
- - id: changelog
1921
- title: 变更日志
1922
- type: table
1923
- columns: [日期, 版本, 描述, 作者]
1924
- instruction: 跟踪文档版本和变更
1925
-
1926
- - id: requirements
1927
- title: 需求
1928
- instruction: 在两个子部分下起草功能性和非功能性需求列表。
1929
- elicit: true
1930
- sections:
1931
- - id: functional
1932
- title: 功能性需求
1933
- type: numbered-list
1934
- prefix: FR
1935
- instruction: 每个需求将是一个 Markdown 项目符号,并带有一个以 FR 开头的标识符序列。
1936
- examples:
1937
- - "FR6: 待办事项列表使用 AI 检测并警告措辞不同但可能重复的待办事项。"
1938
- - id: non-functional
1939
- title: 非功能性需求
1940
- type: numbered-list
1941
- prefix: NFR
1942
- instruction: 每个需求将是一个 Markdown 项目符号,并带有一个以 NFR 开头的标识符序列。
1943
- examples:
1944
- - "NFR1: 在可行的情况下,AWS 服务的使用必须力求保持在免费套餐限制内。"
1945
-
1946
- - id: ui-goals
1947
- title: 用户界面设计目标
1948
- condition: PRD 包含 UX/UI 需求时
1949
- instruction: |
1950
- 捕获高层次的 UI/UX 愿景,以指导设计架构师并为创建用户故事提供信息。步骤:
1951
-
1952
- 1. 基于项目上下文,用有根据的猜测预先填充所有子部分。
1953
- 2. 将渲染后的完整部分呈现给用户。
1954
- 3. 清晰地告知用户哪些地方做了假设。
1955
- 4. 针对不清晰/缺失的元素或需要更具体说明的领域提出有针对性的问题。
1956
- 5. 这不是详细的 UI 规范——重点关注产品愿景和用户目标。
1957
- elicit: true
1958
- choices:
1959
- accessibility: [无, WCAG AA, WCAG AAA]
1960
- platforms: [响应式网页, 仅移动端, 仅桌面端, 跨平台]
1961
- sections:
1962
- - id: ux-vision
1963
- title: 整体 UX 愿景
1964
- - id: interaction-paradigms
1965
- title: 关键交互范式
1966
- - id: core-screens
1967
- title: 核心屏幕与视图
1968
- instruction: 从产品角度看,为实现 PRD 的价值和目标,最关键的屏幕或视图是什么?这旨在提供概念性的高层概览,以驱动粗略的模块或用户故事。
1969
- examples:
1970
- - "登录屏幕"
1971
- - "主仪表盘"
1972
- - "项目详情页"
1973
- - "设置页面"
1974
- - id: accessibility
1975
- title: "无障碍性: {无|WCAG AA|WCAG AAA|自定义要求}"
1976
- - id: branding
1977
- title: 品牌
1978
- instruction: 是否有任何已知的品牌元素或风格指南必须被整合进来?
1979
- examples:
1980
- - "复制 20 世纪初黑白电影的观感,包括在页面或状态转换期间模拟胶片损坏或投影仪故障的动画效果。"
1981
- - "附件是我司品牌的全套调色板和设计元素。"
1982
- - id: target-platforms
1983
- title: "目标设备与平台: {响应式网页|仅移动端|仅桌面端|跨平台}"
1984
- examples:
1985
- - "响应式网页,以及所有移动平台"
1986
- - "仅限 iPhone"
1987
- - "ASCII 码 Windows 桌面"
1988
-
1989
- - id: technical-assumptions
1990
- title: 技术假设
1991
- instruction: |
1992
- 收集将指导架构师的技术决策。步骤:
1993
-
1994
- 1. 检查 .xiaoma-core/data/technical-preferences.yaml 或附加的技术偏好文件是否存在——用它来预填充选项。
1995
- 2. 询问用户关于:语言、框架、启动模板、库、API、部署目标。
1996
- 3. 对于未知项,根据项目目标和 MVP 范围提供指导。
1997
- 4. 记录所有技术选择及其理由(为什么这个选择适合该项目)。
1998
- 5. 这些将成为架构师的约束条件——务必具体和完整。
1999
- elicit: true
2000
- choices:
2001
- repository: [Monorepo, Polyrepo]
2002
- architecture: [Monolith, Microservices, Serverless]
2003
- testing: [仅单元测试, 单元+集成测试, 完整测试金字塔]
2004
- sections:
2005
- - id: repository-structure
2006
- title: "代码仓库结构: {Monorepo|Polyrepo|Multi-repo}"
2007
- - id: service-architecture
2008
- title: 服务架构
2009
- instruction: "关键决策 - 记录高层服务架构(例如,Monolith, Microservices, Monorepo 内的 Serverless 函数)。"
2010
- - id: testing-requirements
2011
- title: 测试要求
2012
- instruction: "关键决策 - 记录测试要求(仅单元测试、集成测试、e2e 测试、手动测试,以及是否需要方便手动测试的方法)。"
2013
- - id: additional-assumptions
2014
- title: 其他技术假设与请求
2015
- instruction: 在起草本文档的整个过程中,如果提出或发现任何其他适合架构师的技术假设,请在此处作为额外的项目符号添加。
2016
-
2017
- - id: epic-list
2018
- title: 模块列表
2019
- instruction: |
2020
- 向用户呈现一份高层次的模块列表以供批准。每个模块应有一个标题和一个简短的(1句话)目标陈述。这使用户能在深入细节之前审阅整体结构。
2021
-
2022
- 关键:模块必须遵循敏捷最佳实践,保持逻辑上的顺序:
2023
-
2024
- - 每个模块都应交付一个重要的、端到端的、完全可部署且可测试的功能增量。
2025
- - 模块 1 必须建立基础项目设施(应用设置、Git、CI/CD、核心服务),除非我们是向现有应用添加新功能。同时,它还应交付一个初始功能,即使只是一个健康检查路由或一个简单的金丝雀页面显示——在为第一个模块编写用户故事时要记住这一点!
2026
- - 每个后续的模块都在之前模块功能的基础上构建,交付主要的功能模块,这些模块在部署时能为用户或业务提供切实的价值。
2027
- - 并非每个项目都需要多个模块,一个模块需要交付价值。例如,一个已完成的 API 即使 UI 尚未完成并计划在另一个模块中实现,也可以交付价值。
2028
- - 倾向于设置较少的模块,但要告知用户你的理由,并提供拆分选项,如果某些模块看起来太大或关注点分散的话。
2029
- - 横切关注点应该贯穿于模块和用户故事中,而不是作为最后的用户故事。例如,在一个模块的最后一个故事中添加日志框架,或者在项目结束时作为最后一个模块或故事来做,这将非常糟糕,因为我们从一开始就没有日志记录。
2030
- elicit: true
2031
- examples:
2032
- - "模块 1:基础与核心设施:建立项目设置、认证和基本用户管理"
2033
- - "模块 2:核心业务实体:创建和管理主要领域对象的 CRUD 操作"
2034
- - "模块 3:用户工作流与交互:实现关键用户旅程和业务流程"
2035
- - "模块 4:报告与分析:为用户提供洞察和数据可视化"
2036
-
2037
- - id: epic-details
2038
- title: 模块 {{epic_number}} {{epic_title}}
2039
- repeatable: true
2040
- instruction: |
2041
- 在模块列表被批准后,将每个模块及其所有的用户故事和验收标准作为一个完整的审查单元呈现。
2042
-
2043
- 为每个模块提供扩展的目标(2-3 句话描述所有故事将实现的目标和价值)。
2044
-
2045
- 关键的用户故事排序要求:
2046
-
2047
- - 每个模块中的用户故事必须在逻辑上是顺序的。
2048
- - 每个故事都应该是一个“垂直切片”,交付完整的功能,除了项目基础的早期使能型故事。
2049
- - 任何故事都不应依赖于后续故事或模块的工作。
2050
- - 识别并注明任何直接的前置故事。
2051
- - 关注“做什么”和“为什么”,而不是“怎么做”(将技术实现留给架构师),但要足够精确以支持故事之间逻辑上顺序的操作。
2052
- - 确保每个故事都交付明确的用户或业务价值,尽量避免使能型故事,而是将它们构建到交付价值的故事中。
2053
- - 为 AI 代理执行调整故事的大小:每个故事必须能由单个 AI 代理在一次专注的会话中完成,而不会出现上下文溢出。
2054
- - 想象一个“初级开发人员工作 2-4 小时”的场景——故事必须是小型的、专注的、自包含的。
2055
- - 如果一个故事看起来很复杂,只要它能交付一个垂直切片,就应进一步拆分。
2056
- elicit: true
2057
- template: "{{epic_goal}}"
2058
- sections:
2059
- - id: story
2060
- title: 用户故事 {{epic_number}}.{{story_number}} {{story_title}}
2061
- repeatable: true
2062
- template: |
2063
- 作为一名 {{user_type}},
2064
- 我想要 {{action}},
2065
- 以便 {{benefit}}。
2066
- sections:
2067
- - id: acceptance-criteria
2068
- title: 验收标准
2069
- type: numbered-list
2070
- item_template: "{{criterion_number}}: {{criteria}}"
2071
- repeatable: true
2072
- instruction: |
2073
- 定义清晰、全面且可测试的验收标准,这些标准应:
2074
-
2075
- - 从功能角度精确定义“完成”的含义。
2076
- - 明确无歧义,并作为验证的基础。
2077
- - 包括来自 PRD 的任何关键非功能性需求。
2078
- - 考虑后端/数据组件的本地可测试性。
2079
- - 在适用时,指定 UI/UX 需求和框架遵循情况。
2080
- - 避免应放在其他故事或 PRD 部分的横切关注点。
2081
-
2082
- - id: checklist-results
2083
- title: 检查清单结果报告
2084
- instruction: 在运行检查清单和起草提示之前,提议输出更新后的完整 PRD。如果输出,请与用户确认你将继续运行检查清单并生成报告。一旦用户确认,执行 pm-checklist 并在此部分填充结果。
2085
-
2086
- - id: next-steps
2087
- title: 后续步骤
2088
- sections:
2089
- - id: ux-expert-prompt
2090
- title: UX 专家提示
2091
- instruction: 此部分将包含给 UX 专家的提示,保持简短扼要,以启动使用本文档作为输入的架构创建模式。
2092
- - id: architect-prompt
2093
- title: 架构师提示
2094
- instruction: 此部分将包含给架构师的提示,保持简短扼要,以启动使用本文档作为输入的架构创建模式。
2095
- ==================== END: .xiaoma-core/templates/prd-tmpl.yaml ====================
2096
-
2097
- ==================== START: .xiaoma-core/templates/prd-from-rag-tmpl.yaml ====================
2098
- template:
2099
- id: prd-from-rag-template-v1
2100
- name: 基于需求分析的PRD文档
2101
- version: 1.0
2102
- description: 基于Analyst智能体的需求分析产出物生成PRD
2103
- output:
2104
- format: markdown
2105
- filename: docs/prd.md
2106
- title: "{{project_name}} 产品需求文档 (PRD)"
2107
-
2108
- workflow:
2109
- mode: interactive
2110
- elicitation: advanced-elicitation
2111
- upstream:
2112
- agent: analyst
2113
- required_files:
2114
- - docs/rag/_analysis-report.md
2115
- - docs/rag/_requirement-parsing.yaml
2116
- optional_files:
2117
- - docs/rag/_questions.md
2118
- - docs/rag/_index.md
2119
- - docs/rag/business/*
2120
- - docs/rag/technical/*
2121
- - docs/rag/constraints/*
2122
-
2123
- sections:
2124
- - id: input-validation
2125
- title: 输入验证
2126
- internal: true
2127
- instruction: |
2128
- 在开始生成PRD之前,执行以下验证:
2129
-
2130
- 1. **检查必需文件**:
2131
- - docs/rag/_analysis-report.md 是否存在
2132
- - docs/rag/_requirement-parsing.yaml 是否存在
2133
- - req.txt 原始需求文档是否存在
2134
-
2135
- 2. **加载分析报告**:
2136
- - 读取并解析 _analysis-report.md 的所有章节
2137
- - 提取关键信息:功能清单、用户角色、数据实体、风险、待澄清事项
2138
-
2139
- 3. **加载知识上下文**:
2140
- - 扫描 docs/rag/technical/ 获取技术约束
2141
- - 扫描 docs/rag/business/ 获取业务规则
2142
- - 扫描 docs/rag/constraints/ 获取约束条件
2143
-
2144
- 如果缺少必需文件,提示:
2145
- "⚠️ 未找到需求分析报告。请先执行 Analyst 智能体完成需求分析:*analyze-requirement req.txt"
2146
-
2147
- - id: complexity-assessment
2148
- title: 复杂度评估
2149
- instruction: |
2150
- 基于分析报告内容,评估项目复杂度并推荐文档类型。
2151
-
2152
- **评估维度**:
2153
- 1. 功能复杂度:基于功能清单数量和依赖关系
2154
- 2. 技术复杂度:基于技术可行性评估
2155
- 3. 集成复杂度:基于数据关系和外部依赖
2156
- 4. 风险等级:基于风险清单
2157
-
2158
- **推荐文档类型**:
2159
- - 完整PRD:复杂度 >= 中等,或涉及多个Epic
2160
- - 单Epic:复杂度低,可在1-3个Story内完成
2161
-
2162
- 展示评估结果并请用户确认文档类型。
2163
- elicit: true
2164
- sections:
2165
- - id: assessment-result
2166
- title: 评估结果
2167
- type: table
2168
- columns: [评估维度, 等级, 依据]
2169
- - id: recommendation
2170
- title: 推荐方案
2171
- instruction: 基于评估结果给出文档类型推荐和理由
2172
-
2173
- - id: goals-context
2174
- title: 目标与背景
2175
- instruction: |
2176
- 从分析报告的"需求概述"章节提取内容,映射到PRD结构。
2177
-
2178
- **映射规则**:
2179
- - 分析报告.需求背景 → 背景上下文
2180
- - 分析报告.核心目标 → 目标
2181
- - 分析报告.范围边界 → 范围定义
2182
-
2183
- 如果分析报告中信息不足,参考 req.txt 原始需求补充。
2184
- sections:
2185
- - id: goals
2186
- title: 目标
2187
- type: bullet-list
2188
- instruction: |
2189
- 从分析报告提取核心目标,转换为PRD目标格式。
2190
- 每个目标应该是:
2191
- - 可衡量的成果
2192
- - 用户或业务价值
2193
- - 与原始需求对应
2194
- - id: background
2195
- title: 背景上下文
2196
- type: paragraphs
2197
- instruction: |
2198
- 综合以下来源生成背景描述:
2199
- - 分析报告.需求背景
2200
- - 分析报告.业务分析
2201
- - 原始需求文档中的背景信息
2202
- - id: scope
2203
- title: 范围定义
2204
- instruction: 从分析报告.范围边界提取,明确包含和不包含的内容
2205
- sections:
2206
- - id: in-scope
2207
- title: 范围内
2208
- type: bullet-list
2209
- - id: out-of-scope
2210
- title: 范围外
2211
- type: bullet-list
2212
- - id: changelog
2213
- title: 变更日志
2214
- type: table
2215
- columns: [日期, 版本, 描述, 作者]
2216
-
2217
- - id: requirements
2218
- title: 需求
2219
- instruction: |
2220
- 从分析报告的"功能分析"和"业务规则汇总"章节提取需求。
2221
-
2222
- **功能性需求来源**:
2223
- - 分析报告.功能清单 → FR列表
2224
- - 分析报告.业务规则 → FR补充说明
2225
- - docs/rag/business/rules-*.md → 详细规则
2226
-
2227
- **非功能性需求来源**:
2228
- - 分析报告.技术分析.性能要求
2229
- - docs/rag/constraints/security.md
2230
- - docs/rag/constraints/performance.md
2231
-
2232
- 确保每个需求都可追溯到分析报告或知识库文档。
2233
- elicit: true
2234
- sections:
2235
- - id: functional
2236
- title: 功能性需求
2237
- type: numbered-list
2238
- prefix: FR
2239
- instruction: |
2240
- 按优先级排列功能性需求:
2241
- - P0功能优先列出
2242
- - 每个FR包含:需求描述 + 来源标注
2243
- - 复杂业务规则单独标注参考文档
2244
-
2245
- 格式示例:
2246
- FR1: [P0] 用户可以创建订单 (来源: 分析报告.功能清单.F001)
2247
- examples:
2248
- - "FR1: [P0] 系统支持用户通过手机号注册账户 (来源: _analysis-report.md#功能清单)"
2249
- - "FR2: [P0] 订单状态流转遵循:待支付→已支付→已发货→已完成 (来源: business/rules-order.md)"
2250
- - id: non-functional
2251
- title: 非功能性需求
2252
- type: numbered-list
2253
- prefix: NFR
2254
- instruction: |
2255
- 从约束条件和技术分析中提取非功能性需求。
2256
- 包括:性能、安全、可用性、兼容性等。
2257
- examples:
2258
- - "NFR1: 接口响应时间P99 < 500ms (来源: constraints/performance.md)"
2259
- - "NFR2: 敏感数据传输必须使用HTTPS加密 (来源: constraints/security.md)"
2260
-
2261
- - id: data-model
2262
- title: 数据模型
2263
- instruction: |
2264
- 从分析报告的"数据分析"章节和技术知识中提取数据模型。
2265
-
2266
- **来源**:
2267
- - 分析报告.数据实体清单
2268
- - 分析报告.数据关系图
2269
- - docs/rag/technical/data-model.md
2270
- sections:
2271
- - id: entities
2272
- title: 数据实体
2273
- type: table
2274
- columns: [实体名称, 描述, 核心属性, 来源]
2275
- instruction: 列出所有数据实体及其核心属性
2276
- - id: relationships
2277
- title: 数据关系
2278
- instruction: |
2279
- 描述实体间的关系,使用Mermaid ER图表示。
2280
- 从分析报告.数据关系图提取,补充详细说明。
2281
- examples:
2282
- - |
2283
- ```mermaid
2284
- erDiagram
2285
- User ||--o{ Order : creates
2286
- Order ||--|{ OrderItem : contains
2287
- ```
2288
-
2289
- - id: technical-constraints
2290
- title: 技术约束
2291
- instruction: |
2292
- 整合技术知识库中的约束条件,指导后续架构设计。
2293
-
2294
- **来源**:
2295
- - docs/rag/technical/architecture.md
2296
- - docs/rag/technical/tech-stack.md
2297
- - docs/rag/technical/coding-standards/
2298
- - docs/rag/technical/middleware/
2299
- - 分析报告.技术分析.与现有系统兼容性
2300
- elicit: true
2301
- sections:
2302
- - id: tech-stack
2303
- title: 技术栈约束
2304
- instruction: |
2305
- 从技术知识库提取技术栈要求:
2306
- - 后端框架和版本
2307
- - 数据库类型和版本
2308
- - 中间件要求
2309
- template: |
2310
- **后端**: {{backend_framework}}
2311
- **数据库**: {{database}}
2312
- **缓存**: {{cache}}
2313
- **消息队列**: {{mq}}
2314
- - id: architecture-constraints
2315
- title: 架构约束
2316
- instruction: 从 architecture.md 提取架构模式和约束
2317
- - id: coding-standards
2318
- title: 编码规范约束
2319
- instruction: |
2320
- 从 coding-standards/ 目录提取关键规范:
2321
- - 命名规范
2322
- - 分层规范
2323
- - 异常处理规范
2324
- - id: integration-constraints
2325
- title: 集成约束
2326
- instruction: 从分析报告.技术分析提取集成相关约束
2327
-
2328
- - id: epic-list
2329
- title: 模块列表
2330
- instruction: |
2331
- 基于分析报告的功能分析,规划Epic结构。
2332
-
2333
- **规划原则**:
2334
- - 按功能优先级分组:P0功能 → Epic 1
2335
- - 遵循功能依赖关系
2336
- - 每个Epic交付独立可测试的功能增量
2337
-
2338
- **Epic分组策略**:
2339
- 1. 从分析报告.功能清单提取所有功能
2340
- 2. 按优先级排序:P0 > P1 > P2
2341
- 3. 分析依赖关系,确定Epic边界
2342
- 4. 每个Epic包含相关联的功能集
2343
-
2344
- 展示Epic列表,请用户确认分组是否合理。
2345
- elicit: true
2346
- sections:
2347
- - id: epic-overview
2348
- title: Epic概览
2349
- type: table
2350
- columns: [Epic, 标题, 包含功能, 优先级, Story数量(预估)]
2351
- instruction: 展示所有Epic的概览表格
2352
-
2353
- - id: epic-details
2354
- title: "Epic {{epic_number}}: {{epic_title}}"
2355
- repeatable: true
2356
- instruction: |
2357
- 为每个Epic生成详细内容,包含所有Story和验收标准。
2358
-
2359
- **Epic内容来源**:
2360
- - 分析报告.功能清单 (对应功能)
2361
- - 分析报告.业务规则 (相关规则)
2362
- - docs/rag/business/ (详细业务知识)
2363
- - docs/rag/technical/ (技术实现参考)
2364
-
2365
- **Story生成规则**:
2366
- - 每个Story是垂直切片
2367
- - 单个AI Agent会话可完成(2-4小时)
2368
- - 验收标准来源于分析报告中的业务规则
2369
- - 包含技术实现提示(来自技术知识)
2370
-
2371
- **Story排序**:
2372
- - 遵循分析报告.功能依赖关系
2373
- - 基础设施和数据模型优先
2374
- - 核心流程优先于边缘场景
2375
- elicit: true
2376
- template: |
2377
- **Epic目标**: {{epic_goal}}
2378
-
2379
- **包含功能**:
2380
- {{功能列表,来源于分析报告}}
2381
-
2382
- **技术要点**:
2383
- {{技术实现要点,来源于技术知识库}}
2384
- sections:
2385
- - id: story
2386
- title: "Story {{epic_number}}.{{story_number}}: {{story_title}}"
2387
- repeatable: true
2388
- template: |
2389
- 作为一名 {{user_type}},
2390
- 我想要 {{action}},
2391
- 以便 {{benefit}}。
2392
- sections:
2393
- - id: acceptance-criteria
2394
- title: 验收标准
2395
- type: numbered-list
2396
- instruction: |
2397
- 从以下来源生成验收标准:
2398
- - 分析报告.业务规则 (对应规则)
2399
- - docs/rag/business/rules-*.md (详细规则)
2400
- - 分析报告.数据分析 (数据约束)
2401
-
2402
- 每个标准必须:
2403
- - 可测试、可验证
2404
- - 明确无歧义
2405
- - 包含边界条件
2406
- item_template: "AC{{criterion_number}}: {{criteria}} (来源: {{source}})"
2407
- - id: technical-hints
2408
- title: 技术实现提示
2409
- instruction: |
2410
- 从技术知识库提取实现提示:
2411
- - 相关编码规范
2412
- - 中间件使用示例
2413
- - 数据模型参考
2414
- type: bullet-list
2415
- - id: knowledge-refs
2416
- title: 知识引用
2417
- instruction: 列出Story实现时需要参考的知识文档
2418
- type: bullet-list
2419
-
2420
- - id: risks-and-open-items
2421
- title: 风险与待澄清事项
2422
- instruction: |
2423
- 从分析报告直接提取风险和待澄清事项。
2424
-
2425
- **来源**:
2426
- - 分析报告.风险分析
2427
- - 分析报告.待澄清事项
2428
- sections:
2429
- - id: risks
2430
- title: 风险清单
2431
- type: table
2432
- columns: [风险ID, 风险描述, 等级, 缓解措施]
2433
- instruction: 从分析报告.风险清单直接映射
2434
- - id: open-questions
2435
- title: 待澄清事项
2436
- type: table
2437
- columns: [序号, 问题, 上下文, 建议选项, 状态]
2438
- instruction: |
2439
- 从分析报告.待澄清事项提取。
2440
- 标注状态:待确认/已确认/已关闭
2441
- 在PRD评审时需要逐一确认这些问题。
2442
-
2443
- - id: knowledge-index
2444
- title: 知识引用索引
2445
- instruction: |
2446
- 列出本PRD引用的所有知识文档,便于追溯和维护。
2447
- sections:
2448
- - id: analysis-refs
2449
- title: 分析报告引用
2450
- type: table
2451
- columns: [章节, 引用位置, 用途]
2452
- - id: knowledge-refs
2453
- title: 知识库引用
2454
- type: table
2455
- columns: [文件路径, 引用位置, 用途]
2456
-
2457
- - id: next-steps
2458
- title: 后续步骤
2459
- sections:
2460
- - id: ux-expert-prompt
2461
- title: UX专家交接
2462
- instruction: |
2463
- 生成给UX专家的交接提示,包含:
2464
- - 需要关注的用户角色
2465
- - 核心屏幕和交互
2466
- - 品牌和无障碍要求
2467
- - 相关知识文档路径
2468
- template: |
2469
- **交接给UX专家**
2470
-
2471
- 请基于本PRD的用户分析部分设计UI/UX方案:
2472
-
2473
- **关键输入**:
2474
- - PRD文档: docs/prd.md
2475
- - 用户分析: docs/rag/_analysis-report.md#用户分析
2476
- - 用户角色: {{user_roles}}
2477
- - 核心屏幕: {{core_screens}}
2478
-
2479
- **设计重点**:
2480
- {{design_focus}}
2481
-
2482
- **执行命令**: *create-ux-design docs/prd.md
2483
- - id: architect-prompt
2484
- title: 架构师交接
2485
- instruction: |
2486
- 生成给架构师的交接提示,包含:
2487
- - 技术栈约束
2488
- - 数据模型要点
2489
- - 集成需求
2490
- - 相关知识文档路径
2491
- template: |
2492
- **交接给架构师**
2493
-
2494
- 请基于本PRD和技术知识库设计系统架构:
2495
-
2496
- **关键输入**:
2497
- - PRD文档: docs/prd.md
2498
- - 技术分析: docs/rag/_analysis-report.md#技术分析
2499
- - 技术知识: docs/rag/technical/
2500
- - 数据模型: docs/rag/technical/data-model.md
2501
-
2502
- **架构重点**:
2503
- - 技术栈: {{tech_stack}}
2504
- - 关键集成点: {{integration_points}}
2505
- - 性能要求: {{performance_requirements}}
2506
-
2507
- **执行命令**: *create-architecture docs/prd.md
2508
- ==================== END: .xiaoma-core/templates/prd-from-rag-tmpl.yaml ====================
2509
-
2510
- ==================== START: .xiaoma-core/checklists/change-checklist.md ====================
2511
- <!-- Powered by XiaoMa™ Core -->
2512
-
2513
- # Change Navigation Checklist
2514
-
2515
- **Purpose:** To systematically guide the selected Agent and user through the analysis and planning required when a significant change (pivot, tech issue, missing requirement, failed story) is identified during the BMad workflow.
2516
-
2517
- **Instructions:** Review each item with the user. Mark `[x]` for completed/confirmed, `[N/A]` if not applicable, or add notes for discussion points.
2518
-
2519
- [[LLM: INITIALIZATION INSTRUCTIONS - CHANGE NAVIGATION
2520
-
2521
- Changes during development are inevitable, but how we handle them determines project success or failure.
2522
-
2523
- Before proceeding, understand:
2524
-
2525
- 1. This checklist is for SIGNIFICANT changes that affect the project direction
2526
- 2. Minor adjustments within a story don't require this process
2527
- 3. The goal is to minimize wasted work while adapting to new realities
2528
- 4. User buy-in is critical - they must understand and approve changes
2529
-
2530
- Required context:
2531
-
2532
- - The triggering story or issue
2533
- - Current project state (completed stories, current epic)
2534
- - Access to PRD, architecture, and other key documents
2535
- - Understanding of remaining work planned
2536
-
2537
- APPROACH:
2538
- This is an interactive process with the user. Work through each section together, discussing implications and options. The user makes final decisions, but provide expert guidance on technical feasibility and impact.
2539
-
2540
- REMEMBER: Changes are opportunities to improve, not failures. Handle them professionally and constructively.]]
2541
-
2542
- ---
2543
-
2544
- ## 1. Understand the Trigger & Context
2545
-
2546
- [[LLM: Start by fully understanding what went wrong and why. Don't jump to solutions yet. Ask probing questions:
2547
-
2548
- - What exactly happened that triggered this review?
2549
- - Is this a one-time issue or symptomatic of a larger problem?
2550
- - Could this have been anticipated earlier?
2551
- - What assumptions were incorrect?
2552
-
2553
- Be specific and factual, not blame-oriented.]]
2554
-
2555
- - [ ] **Identify Triggering Story:** Clearly identify the story (or stories) that revealed the issue.
2556
- - [ ] **Define the Issue:** Articulate the core problem precisely.
2557
- - [ ] Is it a technical limitation/dead-end?
2558
- - [ ] Is it a newly discovered requirement?
2559
- - [ ] Is it a fundamental misunderstanding of existing requirements?
2560
- - [ ] Is it a necessary pivot based on feedback or new information?
2561
- - [ ] Is it a failed/abandoned story needing a new approach?
2562
- - [ ] **Assess Initial Impact:** Describe the immediate observed consequences (e.g., blocked progress, incorrect functionality, non-viable tech).
2563
- - [ ] **Gather Evidence:** Note any specific logs, error messages, user feedback, or analysis that supports the issue definition.
2564
-
2565
- ## 2. Epic Impact Assessment
2566
-
2567
- [[LLM: Changes ripple through the project structure. Systematically evaluate:
2568
-
2569
- 1. Can we salvage the current epic with modifications?
2570
- 2. Do future epics still make sense given this change?
2571
- 3. Are we creating or eliminating dependencies?
2572
- 4. Does the epic sequence need reordering?
2573
-
2574
- Think about both immediate and downstream effects.]]
2575
-
2576
- - [ ] **Analyze Current Epic:**
2577
- - [ ] Can the current epic containing the trigger story still be completed?
2578
- - [ ] Does the current epic need modification (story changes, additions, removals)?
2579
- - [ ] Should the current epic be abandoned or fundamentally redefined?
2580
- - [ ] **Analyze Future Epics:**
2581
- - [ ] Review all remaining planned epics.
2582
- - [ ] Does the issue require changes to planned stories in future epics?
2583
- - [ ] Does the issue invalidate any future epics?
2584
- - [ ] Does the issue necessitate the creation of entirely new epics?
2585
- - [ ] Should the order/priority of future epics be changed?
2586
- - [ ] **Summarize Epic Impact:** Briefly document the overall effect on the project's epic structure and flow.
2587
-
2588
- ## 3. Artifact Conflict & Impact Analysis
2589
-
2590
- [[LLM: Documentation drives development in BMad. Check each artifact:
2591
-
2592
- 1. Does this change invalidate documented decisions?
2593
- 2. Are architectural assumptions still valid?
2594
- 3. Do user flows need rethinking?
2595
- 4. Are technical constraints different than documented?
2596
-
2597
- Be thorough - missed conflicts cause future problems.]]
2598
-
2599
- - [ ] **Review PRD:**
2600
- - [ ] Does the issue conflict with the core goals or requirements stated in the PRD?
2601
- - [ ] Does the PRD need clarification or updates based on the new understanding?
2602
- - [ ] **Review Architecture Document:**
2603
- - [ ] Does the issue conflict with the documented architecture (components, patterns, tech choices)?
2604
- - [ ] Are specific components/diagrams/sections impacted?
2605
- - [ ] Does the technology list need updating?
2606
- - [ ] Do data models or schemas need revision?
2607
- - [ ] Are external API integrations affected?
2608
- - [ ] **Review Frontend Spec (if applicable):**
2609
- - [ ] Does the issue conflict with the FE architecture, component library choice, or UI/UX design?
2610
- - [ ] Are specific FE components or user flows impacted?
2611
- - [ ] **Review Other Artifacts (if applicable):**
2612
- - [ ] Consider impact on deployment scripts, IaC, monitoring setup, etc.
2613
- - [ ] **Summarize Artifact Impact:** List all artifacts requiring updates and the nature of the changes needed.
2614
-
2615
- ## 4. Path Forward Evaluation
2616
-
2617
- [[LLM: Present options clearly with pros/cons. For each path:
2618
-
2619
- 1. What's the effort required?
2620
- 2. What work gets thrown away?
2621
- 3. What risks are we taking?
2622
- 4. How does this affect timeline?
2623
- 5. Is this sustainable long-term?
2624
-
2625
- Be honest about trade-offs. There's rarely a perfect solution.]]
2626
-
2627
- - [ ] **Option 1: Direct Adjustment / Integration:**
2628
- - [ ] Can the issue be addressed by modifying/adding future stories within the existing plan?
2629
- - [ ] Define the scope and nature of these adjustments.
2630
- - [ ] Assess feasibility, effort, and risks of this path.
2631
- - [ ] **Option 2: Potential Rollback:**
2632
- - [ ] Would reverting completed stories significantly simplify addressing the issue?
2633
- - [ ] Identify specific stories/commits to consider for rollback.
2634
- - [ ] Assess the effort required for rollback.
2635
- - [ ] Assess the impact of rollback (lost work, data implications).
2636
- - [ ] Compare the net benefit/cost vs. Direct Adjustment.
2637
- - [ ] **Option 3: PRD MVP Review & Potential Re-scoping:**
2638
- - [ ] Is the original PRD MVP still achievable given the issue and constraints?
2639
- - [ ] Does the MVP scope need reduction (removing features/epics)?
2640
- - [ ] Do the core MVP goals need modification?
2641
- - [ ] Are alternative approaches needed to meet the original MVP intent?
2642
- - [ ] **Extreme Case:** Does the issue necessitate a fundamental replan or potentially a new PRD V2 (to be handled by PM)?
2643
- - [ ] **Select Recommended Path:** Based on the evaluation, agree on the most viable path forward.
2644
-
2645
- ## 5. Sprint Change Proposal Components
2646
-
2647
- [[LLM: The proposal must be actionable and clear. Ensure:
2648
-
2649
- 1. The issue is explained in plain language
2650
- 2. Impacts are quantified where possible
2651
- 3. The recommended path has clear rationale
2652
- 4. Next steps are specific and assigned
2653
- 5. Success criteria for the change are defined
2654
-
2655
- This proposal guides all subsequent work.]]
2656
-
2657
- (Ensure all agreed-upon points from previous sections are captured in the proposal)
2658
-
2659
- - [ ] **Identified Issue Summary:** Clear, concise problem statement.
2660
- - [ ] **Epic Impact Summary:** How epics are affected.
2661
- - [ ] **Artifact Adjustment Needs:** List of documents to change.
2662
- - [ ] **Recommended Path Forward:** Chosen solution with rationale.
2663
- - [ ] **PRD MVP Impact:** Changes to scope/goals (if any).
2664
- - [ ] **High-Level Action Plan:** Next steps for stories/updates.
2665
- - [ ] **Agent Handoff Plan:** Identify roles needed (PM, Arch, Design Arch, PO).
2666
-
2667
- ## 6. Final Review & Handoff
2668
-
2669
- [[LLM: Changes require coordination. Before concluding:
2670
-
2671
- 1. Is the user fully aligned with the plan?
2672
- 2. Do all stakeholders understand the impacts?
2673
- 3. Are handoffs to other agents clear?
2674
- 4. Is there a rollback plan if the change fails?
2675
- 5. How will we validate the change worked?
2676
-
2677
- Get explicit approval - implicit agreement causes problems.
2678
-
2679
- FINAL REPORT:
2680
- After completing the checklist, provide a concise summary:
2681
-
2682
- - What changed and why
2683
- - What we're doing about it
2684
- - Who needs to do what
2685
- - When we'll know if it worked
2686
-
2687
- Keep it action-oriented and forward-looking.]]
2688
-
2689
- - [ ] **Review Checklist:** Confirm all relevant items were discussed.
2690
- - [ ] **Review Sprint Change Proposal:** Ensure it accurately reflects the discussion and decisions.
2691
- - [ ] **User Approval:** Obtain explicit user approval for the proposal.
2692
- - [ ] **Confirm Next Steps:** Reiterate the handoff plan and the next actions to be taken by specific agents.
2693
-
2694
- ---
2695
- ==================== END: .xiaoma-core/checklists/change-checklist.md ====================
2696
-
2697
- ==================== START: .xiaoma-core/checklists/pm-checklist.md ====================
2698
- <!-- Powered by XiaoMa™ Core -->
2699
-
2700
- # Product Manager (PM) Requirements Checklist
2701
-
2702
- This checklist serves as a comprehensive framework to ensure the Product Requirements Document (PRD) and Epic definitions are complete, well-structured, and appropriately scoped for MVP development. The PM should systematically work through each item during the product definition process.
2703
-
2704
- [[LLM: INITIALIZATION INSTRUCTIONS - PM CHECKLIST
2705
-
2706
- Before proceeding with this checklist, ensure you have access to:
2707
-
2708
- 1. prd.md - The Product Requirements Document (check docs/prd.md)
2709
- 2. Any user research, market analysis, or competitive analysis documents
2710
- 3. Business goals and strategy documents
2711
- 4. Any existing epic definitions or user stories
2712
-
2713
- IMPORTANT: If the PRD is missing, immediately ask the user for its location or content before proceeding.
2714
-
2715
- VALIDATION APPROACH:
2716
-
2717
- 1. User-Centric - Every requirement should tie back to user value
2718
- 2. MVP Focus - Ensure scope is truly minimal while viable
2719
- 3. Clarity - Requirements should be unambiguous and testable
2720
- 4. Completeness - All aspects of the product vision are covered
2721
- 5. Feasibility - Requirements are technically achievable
2722
-
2723
- EXECUTION MODE:
2724
- Ask the user if they want to work through the checklist:
2725
-
2726
- - Section by section (interactive mode) - Review each section, present findings, get confirmation before proceeding
2727
- - All at once (comprehensive mode) - Complete full analysis and present comprehensive report at end]]
2728
-
2729
- ## 1. PROBLEM DEFINITION & CONTEXT
2730
-
2731
- [[LLM: The foundation of any product is a clear problem statement. As you review this section:
2732
-
2733
- 1. Verify the problem is real and worth solving
2734
- 2. Check that the target audience is specific, not "everyone"
2735
- 3. Ensure success metrics are measurable, not vague aspirations
2736
- 4. Look for evidence of user research, not just assumptions
2737
- 5. Confirm the problem-solution fit is logical]]
2738
-
2739
- ### 1.1 Problem Statement
2740
-
2741
- - [ ] Clear articulation of the problem being solved
2742
- - [ ] Identification of who experiences the problem
2743
- - [ ] Explanation of why solving this problem matters
2744
- - [ ] Quantification of problem impact (if possible)
2745
- - [ ] Differentiation from existing solutions
2746
-
2747
- ### 1.2 Business Goals & Success Metrics
2748
-
2749
- - [ ] Specific, measurable business objectives defined
2750
- - [ ] Clear success metrics and KPIs established
2751
- - [ ] Metrics are tied to user and business value
2752
- - [ ] Baseline measurements identified (if applicable)
2753
- - [ ] Timeframe for achieving goals specified
2754
-
2755
- ### 1.3 User Research & Insights
2756
-
2757
- - [ ] Target user personas clearly defined
2758
- - [ ] User needs and pain points documented
2759
- - [ ] User research findings summarized (if available)
2760
- - [ ] Competitive analysis included
2761
- - [ ] Market context provided
2762
-
2763
- ## 2. MVP SCOPE DEFINITION
2764
-
2765
- [[LLM: MVP scope is critical - too much and you waste resources, too little and you can't validate. Check:
2766
-
2767
- 1. Is this truly minimal? Challenge every feature
2768
- 2. Does each feature directly address the core problem?
2769
- 3. Are "nice-to-haves" clearly separated from "must-haves"?
2770
- 4. Is the rationale for inclusion/exclusion documented?
2771
- 5. Can you ship this in the target timeframe?]]
2772
-
2773
- ### 2.1 Core Functionality
2774
-
2775
- - [ ] Essential features clearly distinguished from nice-to-haves
2776
- - [ ] Features directly address defined problem statement
2777
- - [ ] Each Epic ties back to specific user needs
2778
- - [ ] Features and Stories are described from user perspective
2779
- - [ ] Minimum requirements for success defined
2780
-
2781
- ### 2.2 Scope Boundaries
2782
-
2783
- - [ ] Clear articulation of what is OUT of scope
2784
- - [ ] Future enhancements section included
2785
- - [ ] Rationale for scope decisions documented
2786
- - [ ] MVP minimizes functionality while maximizing learning
2787
- - [ ] Scope has been reviewed and refined multiple times
2788
-
2789
- ### 2.3 MVP Validation Approach
2790
-
2791
- - [ ] Method for testing MVP success defined
2792
- - [ ] Initial user feedback mechanisms planned
2793
- - [ ] Criteria for moving beyond MVP specified
2794
- - [ ] Learning goals for MVP articulated
2795
- - [ ] Timeline expectations set
2796
-
2797
- ## 3. USER EXPERIENCE REQUIREMENTS
2798
-
2799
- [[LLM: UX requirements bridge user needs and technical implementation. Validate:
2800
-
2801
- 1. User flows cover the primary use cases completely
2802
- 2. Edge cases are identified (even if deferred)
2803
- 3. Accessibility isn't an afterthought
2804
- 4. Performance expectations are realistic
2805
- 5. Error states and recovery are planned]]
2806
-
2807
- ### 3.1 User Journeys & Flows
2808
-
2809
- - [ ] Primary user flows documented
2810
- - [ ] Entry and exit points for each flow identified
2811
- - [ ] Decision points and branches mapped
2812
- - [ ] Critical path highlighted
2813
- - [ ] Edge cases considered
2814
-
2815
- ### 3.2 Usability Requirements
2816
-
2817
- - [ ] Accessibility considerations documented
2818
- - [ ] Platform/device compatibility specified
2819
- - [ ] Performance expectations from user perspective defined
2820
- - [ ] Error handling and recovery approaches outlined
2821
- - [ ] User feedback mechanisms identified
2822
-
2823
- ### 3.3 UI Requirements
2824
-
2825
- - [ ] Information architecture outlined
2826
- - [ ] Critical UI components identified
2827
- - [ ] Visual design guidelines referenced (if applicable)
2828
- - [ ] Content requirements specified
2829
- - [ ] High-level navigation structure defined
2830
-
2831
- ## 4. FUNCTIONAL REQUIREMENTS
2832
-
2833
- [[LLM: Functional requirements must be clear enough for implementation. Check:
2834
-
2835
- 1. Requirements focus on WHAT not HOW (no implementation details)
2836
- 2. Each requirement is testable (how would QA verify it?)
2837
- 3. Dependencies are explicit (what needs to be built first?)
2838
- 4. Requirements use consistent terminology
2839
- 5. Complex features are broken into manageable pieces]]
2840
-
2841
- ### 4.1 Feature Completeness
2842
-
2843
- - [ ] All required features for MVP documented
2844
- - [ ] Features have clear, user-focused descriptions
2845
- - [ ] Feature priority/criticality indicated
2846
- - [ ] Requirements are testable and verifiable
2847
- - [ ] Dependencies between features identified
2848
-
2849
- ### 4.2 Requirements Quality
2850
-
2851
- - [ ] Requirements are specific and unambiguous
2852
- - [ ] Requirements focus on WHAT not HOW
2853
- - [ ] Requirements use consistent terminology
2854
- - [ ] Complex requirements broken into simpler parts
2855
- - [ ] Technical jargon minimized or explained
2856
-
2857
- ### 4.3 User Stories & Acceptance Criteria
2858
-
2859
- - [ ] Stories follow consistent format
2860
- - [ ] Acceptance criteria are testable
2861
- - [ ] Stories are sized appropriately (not too large)
2862
- - [ ] Stories are independent where possible
2863
- - [ ] Stories include necessary context
2864
- - [ ] Local testability requirements (e.g., via CLI) defined in ACs for relevant backend/data stories
2865
-
2866
- ## 5. NON-FUNCTIONAL REQUIREMENTS
2867
-
2868
- ### 5.1 Performance Requirements
2869
-
2870
- - [ ] Response time expectations defined
2871
- - [ ] Throughput/capacity requirements specified
2872
- - [ ] Scalability needs documented
2873
- - [ ] Resource utilization constraints identified
2874
- - [ ] Load handling expectations set
2875
-
2876
- ### 5.2 Security & Compliance
2877
-
2878
- - [ ] Data protection requirements specified
2879
- - [ ] Authentication/authorization needs defined
2880
- - [ ] Compliance requirements documented
2881
- - [ ] Security testing requirements outlined
2882
- - [ ] Privacy considerations addressed
2883
-
2884
- ### 5.3 Reliability & Resilience
2885
-
2886
- - [ ] Availability requirements defined
2887
- - [ ] Backup and recovery needs documented
2888
- - [ ] Fault tolerance expectations set
2889
- - [ ] Error handling requirements specified
2890
- - [ ] Maintenance and support considerations included
2891
-
2892
- ### 5.4 Technical Constraints
2893
-
2894
- - [ ] Platform/technology constraints documented
2895
- - [ ] Integration requirements outlined
2896
- - [ ] Third-party service dependencies identified
2897
- - [ ] Infrastructure requirements specified
2898
- - [ ] Development environment needs identified
2899
-
2900
- ## 6. EPIC & STORY STRUCTURE
2901
-
2902
- ### 6.1 Epic Definition
2903
-
2904
- - [ ] Epics represent cohesive units of functionality
2905
- - [ ] Epics focus on user/business value delivery
2906
- - [ ] Epic goals clearly articulated
2907
- - [ ] Epics are sized appropriately for incremental delivery
2908
- - [ ] Epic sequence and dependencies identified
2909
-
2910
- ### 6.2 Story Breakdown
2911
-
2912
- - [ ] Stories are broken down to appropriate size
2913
- - [ ] Stories have clear, independent value
2914
- - [ ] Stories include appropriate acceptance criteria
2915
- - [ ] Story dependencies and sequence documented
2916
- - [ ] Stories aligned with epic goals
2917
-
2918
- ### 6.3 First Epic Completeness
2919
-
2920
- - [ ] First epic includes all necessary setup steps
2921
- - [ ] Project scaffolding and initialization addressed
2922
- - [ ] Core infrastructure setup included
2923
- - [ ] Development environment setup addressed
2924
- - [ ] Local testability established early
2925
-
2926
- ## 7. TECHNICAL GUIDANCE
2927
-
2928
- ### 7.1 Architecture Guidance
2929
-
2930
- - [ ] Initial architecture direction provided
2931
- - [ ] Technical constraints clearly communicated
2932
- - [ ] Integration points identified
2933
- - [ ] Performance considerations highlighted
2934
- - [ ] Security requirements articulated
2935
- - [ ] Known areas of high complexity or technical risk flagged for architectural deep-dive
2936
-
2937
- ### 7.2 Technical Decision Framework
2938
-
2939
- - [ ] Decision criteria for technical choices provided
2940
- - [ ] Trade-offs articulated for key decisions
2941
- - [ ] Rationale for selecting primary approach over considered alternatives documented (for key design/feature choices)
2942
- - [ ] Non-negotiable technical requirements highlighted
2943
- - [ ] Areas requiring technical investigation identified
2944
- - [ ] Guidance on technical debt approach provided
2945
-
2946
- ### 7.3 Implementation Considerations
2947
-
2948
- - [ ] Development approach guidance provided
2949
- - [ ] Testing requirements articulated
2950
- - [ ] Deployment expectations set
2951
- - [ ] Monitoring needs identified
2952
- - [ ] Documentation requirements specified
2953
-
2954
- ## 8. CROSS-FUNCTIONAL REQUIREMENTS
2955
-
2956
- ### 8.1 Data Requirements
2957
-
2958
- - [ ] Data entities and relationships identified
2959
- - [ ] Data storage requirements specified
2960
- - [ ] Data quality requirements defined
2961
- - [ ] Data retention policies identified
2962
- - [ ] Data migration needs addressed (if applicable)
2963
- - [ ] Schema changes planned iteratively, tied to stories requiring them
2964
-
2965
- ### 8.2 Integration Requirements
2966
-
2967
- - [ ] External system integrations identified
2968
- - [ ] API requirements documented
2969
- - [ ] Authentication for integrations specified
2970
- - [ ] Data exchange formats defined
2971
- - [ ] Integration testing requirements outlined
2972
-
2973
- ### 8.3 Operational Requirements
2974
-
2975
- - [ ] Deployment frequency expectations set
2976
- - [ ] Environment requirements defined
2977
- - [ ] Monitoring and alerting needs identified
2978
- - [ ] Support requirements documented
2979
- - [ ] Performance monitoring approach specified
2980
-
2981
- ## 9. CLARITY & COMMUNICATION
2982
-
2983
- ### 9.1 Documentation Quality
2984
-
2985
- - [ ] Documents use clear, consistent language
2986
- - [ ] Documents are well-structured and organized
2987
- - [ ] Technical terms are defined where necessary
2988
- - [ ] Diagrams/visuals included where helpful
2989
- - [ ] Documentation is versioned appropriately
2990
-
2991
- ### 9.2 Stakeholder Alignment
2992
-
2993
- - [ ] Key stakeholders identified
2994
- - [ ] Stakeholder input incorporated
2995
- - [ ] Potential areas of disagreement addressed
2996
- - [ ] Communication plan for updates established
2997
- - [ ] Approval process defined
2998
-
2999
- ## PRD & EPIC VALIDATION SUMMARY
3000
-
3001
- [[LLM: FINAL PM CHECKLIST REPORT GENERATION
3002
-
3003
- Create a comprehensive validation report that includes:
3004
-
3005
- 1. Executive Summary
3006
- - Overall PRD completeness (percentage)
3007
- - MVP scope appropriateness (Too Large/Just Right/Too Small)
3008
- - Readiness for architecture phase (Ready/Nearly Ready/Not Ready)
3009
- - Most critical gaps or concerns
3010
-
3011
- 2. Category Analysis Table
3012
- Fill in the actual table with:
3013
- - Status: PASS (90%+ complete), PARTIAL (60-89%), FAIL (<60%)
3014
- - Critical Issues: Specific problems that block progress
3015
-
3016
- 3. Top Issues by Priority
3017
- - BLOCKERS: Must fix before architect can proceed
3018
- - HIGH: Should fix for quality
3019
- - MEDIUM: Would improve clarity
3020
- - LOW: Nice to have
3021
-
3022
- 4. MVP Scope Assessment
3023
- - Features that might be cut for true MVP
3024
- - Missing features that are essential
3025
- - Complexity concerns
3026
- - Timeline realism
3027
-
3028
- 5. Technical Readiness
3029
- - Clarity of technical constraints
3030
- - Identified technical risks
3031
- - Areas needing architect investigation
3032
-
3033
- 6. Recommendations
3034
- - Specific actions to address each blocker
3035
- - Suggested improvements
3036
- - Next steps
3037
-
3038
- After presenting the report, ask if the user wants:
3039
-
3040
- - Detailed analysis of any failed sections
3041
- - Suggestions for improving specific areas
3042
- - Help with refining MVP scope]]
3043
-
3044
- ### Category Statuses
3045
-
3046
- | Category | Status | Critical Issues |
3047
- | -------------------------------- | ------ | --------------- |
3048
- | 1. Problem Definition & Context | _TBD_ | |
3049
- | 2. MVP Scope Definition | _TBD_ | |
3050
- | 3. User Experience Requirements | _TBD_ | |
3051
- | 4. Functional Requirements | _TBD_ | |
3052
- | 5. Non-Functional Requirements | _TBD_ | |
3053
- | 6. Epic & Story Structure | _TBD_ | |
3054
- | 7. Technical Guidance | _TBD_ | |
3055
- | 8. Cross-Functional Requirements | _TBD_ | |
3056
- | 9. Clarity & Communication | _TBD_ | |
3057
-
3058
- ### Critical Deficiencies
3059
-
3060
- (To be populated during validation)
3061
-
3062
- ### Recommendations
3063
-
3064
- (To be populated during validation)
3065
-
3066
- ### Final Decision
3067
-
3068
- - **READY FOR ARCHITECT**: The PRD and epics are comprehensive, properly structured, and ready for architectural design.
3069
- - **NEEDS REFINEMENT**: The requirements documentation requires additional work to address the identified deficiencies.
3070
- ==================== END: .xiaoma-core/checklists/pm-checklist.md ====================
3071
-
3072
- ==================== START: .xiaoma-core/data/technical-preferences.md ====================
3073
- <!-- Powered by XiaoMa™ Core -->
3074
-
3075
- # User-Defined Preferred Patterns and Preferences
3076
-
3077
- None Listed
3078
- ==================== END: .xiaoma-core/data/technical-preferences.md ====================