bmad-method 6.0.3 → 6.0.5-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/.augment/code_review_guidelines.yaml +2 -42
  2. package/.claude/skills/bmad-os-findings-triage/SKILL.md +6 -0
  3. package/.claude/skills/bmad-os-findings-triage/prompts/agent-prompt.md +104 -0
  4. package/.claude/skills/bmad-os-findings-triage/prompts/instructions.md +286 -0
  5. package/.claude/skills/bmad-os-review-pr/SKILL.md +1 -1
  6. package/.claude/skills/bmad-os-review-pr/prompts/instructions.md +63 -6
  7. package/.claude/skills/bmad-os-review-prompt/SKILL.md +177 -0
  8. package/.claude/skills/bmad-os-root-cause-analysis/SKILL.md +12 -0
  9. package/.claude/skills/bmad-os-root-cause-analysis/prompts/instructions.md +74 -0
  10. package/.github/ISSUE_TEMPLATE/config.yaml +1 -1
  11. package/.github/ISSUE_TEMPLATE/documentation.yaml +1 -1
  12. package/.github/workflows/publish.yaml +243 -0
  13. package/CHANGELOG.md +32 -0
  14. package/CONTRIBUTING.md +1 -1
  15. package/README.md +8 -8
  16. package/README_CN.md +121 -0
  17. package/docs/_STYLE_GUIDE.md +10 -10
  18. package/docs/explanation/brainstorming.md +1 -1
  19. package/docs/explanation/party-mode.md +1 -1
  20. package/docs/explanation/preventing-agent-conflicts.md +1 -1
  21. package/docs/explanation/project-context.md +15 -15
  22. package/docs/explanation/quick-flow.md +9 -9
  23. package/docs/how-to/established-projects.md +7 -7
  24. package/docs/how-to/get-answers-about-bmad.md +2 -2
  25. package/docs/how-to/install-bmad.md +16 -6
  26. package/docs/how-to/project-context.md +2 -2
  27. package/docs/how-to/quick-fixes.md +5 -5
  28. package/docs/how-to/shard-large-documents.md +1 -1
  29. package/docs/how-to/upgrade-to-v6.md +8 -5
  30. package/docs/index.md +2 -2
  31. package/docs/reference/agents.md +14 -14
  32. package/docs/reference/commands.md +64 -70
  33. package/docs/reference/testing.md +1 -1
  34. package/docs/reference/workflow-map.md +19 -19
  35. package/docs/tutorials/getting-started.md +34 -34
  36. package/docs/zh-cn/404.md +9 -0
  37. package/docs/zh-cn/_STYLE_GUIDE.md +370 -0
  38. package/docs/zh-cn/explanation/advanced-elicitation.md +62 -0
  39. package/docs/zh-cn/explanation/adversarial-review.md +71 -0
  40. package/docs/zh-cn/explanation/brainstorming.md +43 -0
  41. package/docs/zh-cn/explanation/established-projects-faq.md +60 -0
  42. package/docs/zh-cn/explanation/party-mode.md +79 -0
  43. package/docs/zh-cn/explanation/preventing-agent-conflicts.md +137 -0
  44. package/docs/zh-cn/explanation/project-context.md +176 -0
  45. package/docs/zh-cn/explanation/quick-flow.md +93 -0
  46. package/docs/zh-cn/explanation/why-solutioning-matters.md +90 -0
  47. package/docs/zh-cn/how-to/customize-bmad.md +182 -0
  48. package/docs/zh-cn/how-to/established-projects.md +134 -0
  49. package/docs/zh-cn/how-to/get-answers-about-bmad.md +144 -0
  50. package/docs/zh-cn/how-to/install-bmad.md +105 -0
  51. package/docs/zh-cn/how-to/non-interactive-installation.md +181 -0
  52. package/docs/zh-cn/how-to/project-context.md +152 -0
  53. package/docs/zh-cn/how-to/quick-fixes.md +140 -0
  54. package/docs/zh-cn/how-to/shard-large-documents.md +86 -0
  55. package/docs/zh-cn/how-to/upgrade-to-v6.md +120 -0
  56. package/docs/zh-cn/index.md +69 -0
  57. package/docs/zh-cn/reference/agents.md +41 -0
  58. package/docs/zh-cn/reference/commands.md +166 -0
  59. package/docs/zh-cn/reference/modules.md +94 -0
  60. package/docs/zh-cn/reference/testing.md +122 -0
  61. package/docs/zh-cn/reference/workflow-map.md +104 -0
  62. package/docs/zh-cn/roadmap.mdx +152 -0
  63. package/docs/zh-cn/tutorials/getting-started.md +300 -0
  64. package/package.json +1 -1
  65. package/src/bmm/agents/analyst.agent.yaml +1 -1
  66. package/src/bmm/agents/bmad-skill-manifest.yaml +39 -0
  67. package/src/bmm/agents/dev.agent.yaml +2 -2
  68. package/src/bmm/agents/pm.agent.yaml +1 -1
  69. package/src/bmm/agents/qa.agent.yaml +1 -1
  70. package/src/bmm/agents/quick-flow-solo-dev.agent.yaml +6 -2
  71. package/src/bmm/agents/sm.agent.yaml +4 -4
  72. package/src/bmm/agents/tech-writer/bmad-skill-manifest.yaml +3 -0
  73. package/src/bmm/agents/tech-writer/tech-writer.agent.yaml +1 -1
  74. package/src/bmm/module-help.csv +11 -10
  75. package/src/bmm/workflows/1-analysis/create-product-brief/bmad-skill-manifest.yaml +3 -0
  76. package/src/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +1 -1
  77. package/src/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +1 -1
  78. package/src/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +1 -1
  79. package/src/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +1 -1
  80. package/src/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +1 -1
  81. package/src/bmm/workflows/1-analysis/research/bmad-skill-manifest.yaml +14 -0
  82. package/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml +14 -0
  83. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md +1 -1
  84. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md +1 -1
  85. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md +1 -1
  86. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md +1 -1
  87. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md +1 -1
  88. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md +1 -1
  89. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md +1 -1
  90. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md +1 -1
  91. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md +1 -1
  92. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md +1 -1
  93. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md +1 -1
  94. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md +1 -1
  95. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +1 -1
  96. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-01-discovery.md +1 -1
  97. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-e/step-e-02-review.md +1 -1
  98. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +1 -1
  99. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +1 -1
  100. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +1 -1
  101. package/src/bmm/workflows/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +1 -1
  102. package/src/bmm/workflows/2-plan-workflows/create-ux-design/bmad-skill-manifest.yaml +3 -0
  103. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +1 -1
  104. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +2 -2
  105. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +2 -2
  106. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +2 -2
  107. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +2 -2
  108. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +2 -2
  109. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +2 -2
  110. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +2 -2
  111. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +2 -2
  112. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +2 -2
  113. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +2 -2
  114. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +2 -2
  115. package/src/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +1 -1
  116. package/src/bmm/workflows/3-solutioning/check-implementation-readiness/bmad-skill-manifest.yaml +3 -0
  117. package/src/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +1 -1
  118. package/src/bmm/workflows/3-solutioning/create-architecture/bmad-skill-manifest.yaml +3 -0
  119. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +2 -2
  120. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +2 -2
  121. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +2 -2
  122. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +2 -2
  123. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +2 -2
  124. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +2 -2
  125. package/src/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +1 -1
  126. package/src/bmm/workflows/3-solutioning/create-epics-and-stories/bmad-skill-manifest.yaml +3 -0
  127. package/src/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +1 -1
  128. package/src/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +1 -1
  129. package/src/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +1 -1
  130. package/src/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +2 -2
  131. package/src/bmm/workflows/4-implementation/code-review/bmad-skill-manifest.yaml +3 -0
  132. package/src/bmm/workflows/4-implementation/code-review/discover-inputs.md +88 -0
  133. package/src/bmm/workflows/4-implementation/code-review/workflow.md +271 -0
  134. package/src/bmm/workflows/4-implementation/correct-course/bmad-skill-manifest.yaml +3 -0
  135. package/src/bmm/workflows/4-implementation/correct-course/checklist.md +1 -1
  136. package/src/bmm/workflows/4-implementation/correct-course/{instructions.md → workflow.md} +79 -12
  137. package/src/bmm/workflows/4-implementation/create-story/bmad-skill-manifest.yaml +3 -0
  138. package/src/bmm/workflows/4-implementation/create-story/checklist.md +9 -10
  139. package/src/bmm/workflows/4-implementation/create-story/discover-inputs.md +88 -0
  140. package/src/bmm/workflows/4-implementation/create-story/workflow.md +388 -0
  141. package/src/bmm/workflows/4-implementation/dev-story/bmad-skill-manifest.yaml +3 -0
  142. package/src/bmm/workflows/4-implementation/dev-story/{instructions.xml → workflow.md} +49 -2
  143. package/src/bmm/workflows/4-implementation/retrospective/bmad-skill-manifest.yaml +3 -0
  144. package/src/bmm/workflows/4-implementation/retrospective/{instructions.md → workflow.md} +64 -23
  145. package/src/bmm/workflows/4-implementation/sprint-planning/bmad-skill-manifest.yaml +3 -0
  146. package/src/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +1 -0
  147. package/src/bmm/workflows/4-implementation/sprint-planning/{instructions.md → workflow.md} +55 -10
  148. package/src/bmm/workflows/4-implementation/sprint-status/bmad-skill-manifest.yaml +3 -0
  149. package/src/bmm/workflows/4-implementation/sprint-status/{instructions.md → workflow.md} +45 -8
  150. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/SKILL.md +6 -0
  151. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/bmad-skill-manifest.yaml +1 -0
  152. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-01-clarify-and-route.md +54 -0
  153. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-02-plan.md +39 -0
  154. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-03-implement.md +35 -0
  155. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-04-review.md +55 -0
  156. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/steps/step-05-present.md +19 -0
  157. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/tech-spec-template.md +90 -0
  158. package/src/bmm/workflows/bmad-quick-flow/bmad-quick-dev-new-preview/workflow.md +84 -0
  159. package/src/bmm/workflows/bmad-quick-flow/quick-dev/bmad-skill-manifest.yaml +3 -0
  160. package/src/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +8 -14
  161. package/src/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +1 -1
  162. package/src/bmm/workflows/bmad-quick-flow/quick-spec/bmad-skill-manifest.yaml +3 -0
  163. package/src/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-04-review.md +4 -6
  164. package/src/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +1 -1
  165. package/src/bmm/workflows/document-project/bmad-skill-manifest.yaml +3 -0
  166. package/src/bmm/workflows/document-project/instructions.md +5 -7
  167. package/src/bmm/workflows/document-project/workflow.md +39 -0
  168. package/src/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -1
  169. package/src/bmm/workflows/document-project/workflows/deep-dive-workflow.md +42 -0
  170. package/src/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1
  171. package/src/bmm/workflows/document-project/workflows/full-scan-workflow.md +42 -0
  172. package/src/bmm/workflows/generate-project-context/bmad-skill-manifest.yaml +3 -0
  173. package/src/bmm/workflows/generate-project-context/steps/step-02-generate.md +2 -2
  174. package/src/bmm/workflows/qa-generate-e2e-tests/bmad-skill-manifest.yaml +3 -0
  175. package/src/bmm/workflows/qa-generate-e2e-tests/checklist.md +1 -1
  176. package/src/bmm/workflows/qa-generate-e2e-tests/{instructions.md → workflow.md} +40 -7
  177. package/src/core/agents/bmad-master.agent.yaml +1 -1
  178. package/src/core/agents/bmad-skill-manifest.yaml +3 -0
  179. package/src/core/module-help.csv +3 -2
  180. package/src/core/module.yaml +1 -1
  181. package/src/core/tasks/bmad-help/SKILL.md +6 -0
  182. package/src/core/tasks/bmad-help/bmad-skill-manifest.yaml +1 -0
  183. package/src/core/tasks/{help.md → bmad-help/workflow.md} +6 -4
  184. package/src/core/tasks/bmad-review-adversarial-general/SKILL.md +6 -0
  185. package/src/core/tasks/bmad-review-adversarial-general/bmad-skill-manifest.yaml +1 -0
  186. package/src/core/tasks/bmad-review-adversarial-general/workflow.md +32 -0
  187. package/src/core/tasks/bmad-review-edge-case-hunter/SKILL.md +6 -0
  188. package/src/core/tasks/bmad-review-edge-case-hunter/bmad-skill-manifest.yaml +1 -0
  189. package/src/core/tasks/bmad-review-edge-case-hunter/workflow.md +62 -0
  190. package/src/core/tasks/bmad-skill-manifest.yaml +19 -0
  191. package/src/core/workflows/advanced-elicitation/bmad-skill-manifest.yaml +3 -0
  192. package/src/core/workflows/advanced-elicitation/workflow.md +138 -0
  193. package/src/core/workflows/brainstorming/bmad-skill-manifest.yaml +3 -0
  194. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +31 -18
  195. package/src/core/workflows/brainstorming/steps/step-01b-continue.md +1 -1
  196. package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +3 -3
  197. package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +2 -2
  198. package/src/core/workflows/brainstorming/workflow.md +5 -3
  199. package/src/core/workflows/party-mode/bmad-skill-manifest.yaml +3 -0
  200. package/src/core/workflows/party-mode/workflow.md +1 -1
  201. package/src/utility/agent-components/activation-steps.txt +2 -2
  202. package/src/utility/agent-components/handler-multi.txt +1 -2
  203. package/test/adversarial-review-tests/README.md +3 -3
  204. package/test/adversarial-review-tests/test-cases.yaml +2 -2
  205. package/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +1 -1
  206. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +1 -1
  207. package/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +1 -2
  208. package/test/fixtures/file-refs-csv/valid/bmm-style.csv +1 -1
  209. package/test/test-file-refs-csv.js +1 -1
  210. package/test/test-install-to-bmad.js +154 -0
  211. package/test/test-installation-components.js +1586 -2
  212. package/test/test-workflow-path-regex.js +88 -0
  213. package/tools/cli/installers/install-messages.yaml +1 -1
  214. package/tools/cli/installers/lib/core/installer.js +34 -1
  215. package/tools/cli/installers/lib/core/manifest-generator.js +332 -41
  216. package/tools/cli/installers/lib/ide/_base-ide.js +24 -15
  217. package/tools/cli/installers/lib/ide/_config-driven.js +547 -53
  218. package/tools/cli/installers/lib/ide/manager.js +26 -62
  219. package/tools/cli/installers/lib/ide/platform-codes.yaml +116 -29
  220. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +1 -0
  221. package/tools/cli/installers/lib/ide/shared/bmad-artifacts.js +7 -0
  222. package/tools/cli/installers/lib/ide/shared/path-utils.js +68 -3
  223. package/tools/cli/installers/lib/ide/shared/skill-manifest.js +90 -0
  224. package/tools/cli/installers/lib/ide/shared/task-tool-command-generator.js +2 -0
  225. package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +6 -145
  226. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +1 -1
  227. package/tools/cli/installers/lib/ide/templates/combined/default-workflow.md +1 -1
  228. package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml +1 -1
  229. package/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml +1 -1
  230. package/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md +1 -1
  231. package/tools/cli/installers/lib/ide/templates/combined/opencode-task.md +0 -1
  232. package/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md +0 -1
  233. package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md +0 -1
  234. package/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md +0 -1
  235. package/tools/cli/installers/lib/modules/manager.js +9 -132
  236. package/tools/cli/lib/agent/compiler.js +1 -10
  237. package/tools/cli/lib/agent-analyzer.js +2 -14
  238. package/tools/cli/lib/yaml-xml-builder.js +1 -18
  239. package/tools/docs/native-skills-migration-checklist.md +281 -0
  240. package/tools/platform-codes.yaml +1 -1
  241. package/tools/schema/agent.js +1 -3
  242. package/tools/validate-file-refs.js +2 -0
  243. package/website/astro.config.mjs +24 -3
  244. package/website/src/content/config.ts +2 -1
  245. package/website/src/content/i18n/zh-CN.json +28 -0
  246. package/src/bmm/workflows/4-implementation/code-review/instructions.xml +0 -227
  247. package/src/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -43
  248. package/src/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -53
  249. package/src/bmm/workflows/4-implementation/create-story/instructions.xml +0 -346
  250. package/src/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -52
  251. package/src/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -20
  252. package/src/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -52
  253. package/src/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -47
  254. package/src/bmm/workflows/4-implementation/sprint-status/workflow.yaml +0 -25
  255. package/src/bmm/workflows/document-project/workflow.yaml +0 -22
  256. package/src/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
  257. package/src/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
  258. package/src/bmm/workflows/qa-generate-e2e-tests/workflow.yaml +0 -42
  259. package/src/core/tasks/review-adversarial-general.xml +0 -49
  260. package/src/core/tasks/workflow.xml +0 -235
  261. package/src/core/workflows/advanced-elicitation/workflow.xml +0 -118
  262. package/src/utility/agent-components/handler-validate-workflow.txt +0 -7
  263. package/src/utility/agent-components/handler-workflow.txt +0 -10
  264. package/tools/cli/installers/lib/ide/codex.js +0 -440
  265. package/tools/cli/installers/lib/ide/github-copilot.js +0 -699
  266. package/tools/cli/installers/lib/ide/kilo.js +0 -269
  267. package/tools/cli/installers/lib/ide/rovodev.js +0 -257
  268. package/tools/cli/installers/lib/ide/templates/combined/default-workflow-yaml.md +0 -14
  269. package/tools/cli/installers/lib/ide/templates/combined/kiro-workflow-yaml.md +0 -15
  270. package/tools/cli/installers/lib/ide/templates/workflow-command-template.md +0 -13
  271. package/tools/cli/installers/lib/ide/templates/workflow-commander.md +0 -5
@@ -0,0 +1,388 @@
1
+ ---
2
+ name: create-story
3
+ description: 'Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
4
+ ---
5
+
6
+ # Create Story Workflow
7
+
8
+ **Goal:** Create a comprehensive story file that gives the dev agent everything needed for flawless implementation.
9
+
10
+ **Your Role:** Story context engine that prevents LLM developer mistakes, omissions, or disasters.
11
+ - Communicate all responses in {communication_language} and generate all documents in {document_output_language}
12
+ - Your purpose is NOT to copy from epics - it's to create a comprehensive, optimized story file that gives the DEV agent EVERYTHING needed for flawless implementation
13
+ - COMMON LLM MISTAKES TO PREVENT: reinventing wheels, wrong libraries, wrong file locations, breaking regressions, ignoring UX, vague implementations, lying about completion, not learning from past work
14
+ - EXHAUSTIVE ANALYSIS REQUIRED: You must thoroughly analyze ALL artifacts to extract critical context - do NOT be lazy or skim! This is the most important function in the entire development process!
15
+ - UTILIZE SUBPROCESSES AND SUBAGENTS: Use research subagents, subprocesses or parallel processing if available to thoroughly analyze different artifacts simultaneously and thoroughly
16
+ - SAVE QUESTIONS: If you think of questions or clarifications during analysis, save them for the end after the complete story is written
17
+ - ZERO USER INTERVENTION: Process should be fully automated except for initial epic/story selection or missing documents
18
+
19
+ ---
20
+
21
+ ## INITIALIZATION
22
+
23
+ ### Configuration Loading
24
+
25
+ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
26
+
27
+ - `project_name`, `user_name`
28
+ - `communication_language`, `document_output_language`
29
+ - `user_skill_level`
30
+ - `planning_artifacts`, `implementation_artifacts`
31
+ - `date` as system-generated current datetime
32
+
33
+ ### Paths
34
+
35
+ - `installed_path` = `{project-root}/_bmad/bmm/workflows/4-implementation/create-story`
36
+ - `template` = `{installed_path}/template.md`
37
+ - `validation` = `{installed_path}/checklist.md`
38
+ - `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
39
+ - `epics_file` = `{planning_artifacts}/epics.md`
40
+ - `prd_file` = `{planning_artifacts}/prd.md`
41
+ - `architecture_file` = `{planning_artifacts}/architecture.md`
42
+ - `ux_file` = `{planning_artifacts}/*ux*.md`
43
+ - `story_title` = "" (will be elicited if not derivable)
44
+ - `project_context` = `**/project-context.md` (load if exists)
45
+ - `default_output_file` = `{implementation_artifacts}/{{story_key}}.md`
46
+
47
+ ### Input Files
48
+
49
+ | Input | Description | Path Pattern(s) | Load Strategy |
50
+ |-------|-------------|------------------|---------------|
51
+ | prd | PRD (fallback - epics file should have most content) | whole: `{planning_artifacts}/*prd*.md`, sharded: `{planning_artifacts}/*prd*/*.md` | SELECTIVE_LOAD |
52
+ | architecture | Architecture (fallback - epics file should have relevant sections) | whole: `{planning_artifacts}/*architecture*.md`, sharded: `{planning_artifacts}/*architecture*/*.md` | SELECTIVE_LOAD |
53
+ | ux | UX design (fallback - epics file should have relevant sections) | whole: `{planning_artifacts}/*ux*.md`, sharded: `{planning_artifacts}/*ux*/*.md` | SELECTIVE_LOAD |
54
+ | epics | Enhanced epics+stories file with BDD and source hints | whole: `{planning_artifacts}/*epic*.md`, sharded: `{planning_artifacts}/*epic*/*.md` | SELECTIVE_LOAD |
55
+
56
+ ---
57
+
58
+ ## EXECUTION
59
+
60
+ <workflow>
61
+
62
+ <step n="1" goal="Determine target story">
63
+ <check if="{{story_path}} is provided by user or user provided the epic and story number such as 2-4 or 1.6 or epic 1 story 5">
64
+ <action>Parse user-provided story path: extract epic_num, story_num, story_title from format like "1-2-user-auth"</action>
65
+ <action>Set {{epic_num}}, {{story_num}}, {{story_key}} from user input</action>
66
+ <action>GOTO step 2a</action>
67
+ </check>
68
+
69
+ <action>Check if {{sprint_status}} file exists for auto discover</action>
70
+ <check if="sprint status file does NOT exist">
71
+ <output>🚫 No sprint status file found and no story specified</output>
72
+ <output>
73
+ **Required Options:**
74
+ 1. Run `sprint-planning` to initialize sprint tracking (recommended)
75
+ 2. Provide specific epic-story number to create (e.g., "1-2-user-auth")
76
+ 3. Provide path to story documents if sprint status doesn't exist yet
77
+ </output>
78
+ <ask>Choose option [1], provide epic-story number, path to story docs, or [q] to quit:</ask>
79
+
80
+ <check if="user chooses 'q'">
81
+ <action>HALT - No work needed</action>
82
+ </check>
83
+
84
+ <check if="user chooses '1'">
85
+ <output>Run sprint-planning workflow first to create sprint-status.yaml</output>
86
+ <action>HALT - User needs to run sprint-planning</action>
87
+ </check>
88
+
89
+ <check if="user provides epic-story number">
90
+ <action>Parse user input: extract epic_num, story_num, story_title</action>
91
+ <action>Set {{epic_num}}, {{story_num}}, {{story_key}} from user input</action>
92
+ <action>GOTO step 2a</action>
93
+ </check>
94
+
95
+ <check if="user provides story docs path">
96
+ <action>Use user-provided path for story documents</action>
97
+ <action>GOTO step 2a</action>
98
+ </check>
99
+ </check>
100
+
101
+ <!-- Auto-discover from sprint status only if no user input -->
102
+ <check if="no user input provided">
103
+ <critical>MUST read COMPLETE {sprint_status} file from start to end to preserve order</critical>
104
+ <action>Load the FULL file: {{sprint_status}}</action>
105
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
106
+ <action>Parse the development_status section completely</action>
107
+
108
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
109
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
110
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
111
+ - Status value equals "backlog"
112
+ </action>
113
+
114
+ <check if="no backlog story found">
115
+ <output>📋 No backlog stories found in sprint-status.yaml
116
+
117
+ All stories are either already created, in progress, or done.
118
+
119
+ **Options:**
120
+ 1. Run sprint-planning to refresh story tracking
121
+ 2. Load PM agent and run correct-course to add more stories
122
+ 3. Check if current sprint is complete and run retrospective
123
+ </output>
124
+ <action>HALT</action>
125
+ </check>
126
+
127
+ <action>Extract from found story key (e.g., "1-2-user-authentication"):
128
+ - epic_num: first number before dash (e.g., "1")
129
+ - story_num: second number after first dash (e.g., "2")
130
+ - story_title: remainder after second dash (e.g., "user-authentication")
131
+ </action>
132
+ <action>Set {{story_id}} = "{{epic_num}}.{{story_num}}"</action>
133
+ <action>Store story_key for later use (e.g., "1-2-user-authentication")</action>
134
+
135
+ <!-- Mark epic as in-progress if this is first story -->
136
+ <action>Check if this is the first story in epic {{epic_num}} by looking for {{epic_num}}-1-* pattern</action>
137
+ <check if="this is first story in epic {{epic_num}}">
138
+ <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
139
+ <action>If epic status is "backlog" → update to "in-progress"</action>
140
+ <action>If epic status is "contexted" (legacy status) → update to "in-progress" (backward compatibility)</action>
141
+ <action>If epic status is "in-progress" → no change needed</action>
142
+ <check if="epic status is 'done'">
143
+ <output>🚫 ERROR: Cannot create story in completed epic</output>
144
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
145
+ <output>If you need to add more work, either:</output>
146
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
147
+ <output>2. Create a new epic for additional work</output>
148
+ <action>HALT - Cannot proceed</action>
149
+ </check>
150
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
151
+ <output>🚫 ERROR: Invalid epic status '{{epic_status}}'</output>
152
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
153
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
154
+ <action>HALT - Cannot proceed</action>
155
+ </check>
156
+ <output>📊 Epic {{epic_num}} status updated to in-progress</output>
157
+ </check>
158
+
159
+ <action>GOTO step 2a</action>
160
+ </check>
161
+ <action>Load the FULL file: {{sprint_status}}</action>
162
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
163
+ <action>Parse the development_status section completely</action>
164
+
165
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
166
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
167
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
168
+ - Status value equals "backlog"
169
+ </action>
170
+
171
+ <check if="no backlog story found">
172
+ <output>No backlog stories found in sprint-status.yaml
173
+
174
+ All stories are either already created, in progress, or done.
175
+
176
+ **Options:**
177
+ 1. Run sprint-planning to refresh story tracking
178
+ 2. Load PM agent and run correct-course to add more stories
179
+ 3. Check if current sprint is complete and run retrospective
180
+ </output>
181
+ <action>HALT</action>
182
+ </check>
183
+
184
+ <action>Extract from found story key (e.g., "1-2-user-authentication"):
185
+ - epic_num: first number before dash (e.g., "1")
186
+ - story_num: second number after first dash (e.g., "2")
187
+ - story_title: remainder after second dash (e.g., "user-authentication")
188
+ </action>
189
+ <action>Set {{story_id}} = "{{epic_num}}.{{story_num}}"</action>
190
+ <action>Store story_key for later use (e.g., "1-2-user-authentication")</action>
191
+
192
+ <!-- Mark epic as in-progress if this is first story -->
193
+ <action>Check if this is the first story in epic {{epic_num}} by looking for {{epic_num}}-1-* pattern</action>
194
+ <check if="this is first story in epic {{epic_num}}">
195
+ <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
196
+ <action>If epic status is "backlog" → update to "in-progress"</action>
197
+ <action>If epic status is "contexted" (legacy status) → update to "in-progress" (backward compatibility)</action>
198
+ <action>If epic status is "in-progress" → no change needed</action>
199
+ <check if="epic status is 'done'">
200
+ <output>ERROR: Cannot create story in completed epic</output>
201
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
202
+ <output>If you need to add more work, either:</output>
203
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
204
+ <output>2. Create a new epic for additional work</output>
205
+ <action>HALT - Cannot proceed</action>
206
+ </check>
207
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
208
+ <output>ERROR: Invalid epic status '{{epic_status}}'</output>
209
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
210
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
211
+ <action>HALT - Cannot proceed</action>
212
+ </check>
213
+ <output>Epic {{epic_num}} status updated to in-progress</output>
214
+ </check>
215
+
216
+ <action>GOTO step 2a</action>
217
+ </step>
218
+
219
+ <step n="2" goal="Load and analyze core artifacts">
220
+ <critical>🔬 EXHAUSTIVE ARTIFACT ANALYSIS - This is where you prevent future developer fuckups!</critical>
221
+
222
+ <!-- Load all available content through discovery protocol -->
223
+ <action>Read fully and follow `{installed_path}/discover-inputs.md` to load all input files</action>
224
+ <note>Available content: {epics_content}, {prd_content}, {architecture_content}, {ux_content},
225
+ {project_context}</note>
226
+
227
+ <!-- Analyze epics file for story foundation -->
228
+ <action>From {epics_content}, extract Epic {{epic_num}} complete context:</action> **EPIC ANALYSIS:** - Epic
229
+ objectives and business value - ALL stories in this epic for cross-story context - Our specific story's requirements, user story
230
+ statement, acceptance criteria - Technical requirements and constraints - Dependencies on other stories/epics - Source hints pointing to
231
+ original documents <!-- Extract specific story requirements -->
232
+ <action>Extract our story ({{epic_num}}-{{story_num}}) details:</action> **STORY FOUNDATION:** - User story statement
233
+ (As a, I want, so that) - Detailed acceptance criteria (already BDD formatted) - Technical requirements specific to this story -
234
+ Business context and value - Success criteria <!-- Previous story analysis for context continuity -->
235
+ <check if="story_num > 1">
236
+ <action>Find {{previous_story_num}}: scan {implementation_artifacts} for the story file in epic {{epic_num}} with the highest story number less than {{story_num}}</action>
237
+ <action>Load previous story file: {implementation_artifacts}/{{epic_num}}-{{previous_story_num}}-*.md</action> **PREVIOUS STORY INTELLIGENCE:** -
238
+ Dev notes and learnings from previous story - Review feedback and corrections needed - Files that were created/modified and their
239
+ patterns - Testing approaches that worked/didn't work - Problems encountered and solutions found - Code patterns established <action>Extract
240
+ all learnings that could impact current story implementation</action>
241
+ </check>
242
+
243
+ <!-- Git intelligence for previous work patterns -->
244
+ <check
245
+ if="previous story exists AND git repository detected">
246
+ <action>Get last 5 commit titles to understand recent work patterns</action>
247
+ <action>Analyze 1-5 most recent commits for relevance to current story:
248
+ - Files created/modified
249
+ - Code patterns and conventions used
250
+ - Library dependencies added/changed
251
+ - Architecture decisions implemented
252
+ - Testing approaches used
253
+ </action>
254
+ <action>Extract actionable insights for current story implementation</action>
255
+ </check>
256
+ </step>
257
+
258
+ <step n="3" goal="Architecture analysis for developer guardrails">
259
+ <critical>🏗️ ARCHITECTURE INTELLIGENCE - Extract everything the developer MUST follow!</critical> **ARCHITECTURE DOCUMENT ANALYSIS:** <action>Systematically
260
+ analyze architecture content for story-relevant requirements:</action>
261
+
262
+ <!-- Load architecture - single file or sharded -->
263
+ <check if="architecture file is single file">
264
+ <action>Load complete {architecture_content}</action>
265
+ </check>
266
+ <check if="architecture is sharded to folder">
267
+ <action>Load architecture index and scan all architecture files</action>
268
+ </check> **CRITICAL ARCHITECTURE EXTRACTION:** <action>For
269
+ each architecture section, determine if relevant to this story:</action> - **Technical Stack:** Languages, frameworks, libraries with
270
+ versions - **Code Structure:** Folder organization, naming conventions, file patterns - **API Patterns:** Service structure, endpoint
271
+ patterns, data contracts - **Database Schemas:** Tables, relationships, constraints relevant to story - **Security Requirements:**
272
+ Authentication patterns, authorization rules - **Performance Requirements:** Caching strategies, optimization patterns - **Testing
273
+ Standards:** Testing frameworks, coverage expectations, test patterns - **Deployment Patterns:** Environment configurations, build
274
+ processes - **Integration Patterns:** External service integrations, data flows <action>Extract any story-specific requirements that the
275
+ developer MUST follow</action>
276
+ <action>Identify any architectural decisions that override previous patterns</action>
277
+ </step>
278
+
279
+ <step n="4" goal="Web research for latest technical specifics">
280
+ <critical>🌐 ENSURE LATEST TECH KNOWLEDGE - Prevent outdated implementations!</critical> **WEB INTELLIGENCE:** <action>Identify specific
281
+ technical areas that require latest version knowledge:</action>
282
+
283
+ <!-- Check for libraries/frameworks mentioned in architecture -->
284
+ <action>From architecture analysis, identify specific libraries, APIs, or
285
+ frameworks</action>
286
+ <action>For each critical technology, research latest stable version and key changes:
287
+ - Latest API documentation and breaking changes
288
+ - Security vulnerabilities or updates
289
+ - Performance improvements or deprecations
290
+ - Best practices for current version
291
+ </action>
292
+ **EXTERNAL CONTEXT INCLUSION:** <action>Include in story any critical latest information the developer needs:
293
+ - Specific library versions and why chosen
294
+ - API endpoints with parameters and authentication
295
+ - Recent security patches or considerations
296
+ - Performance optimization techniques
297
+ - Migration considerations if upgrading
298
+ </action>
299
+ </step>
300
+
301
+ <step n="5" goal="Create comprehensive story file">
302
+ <critical>📝 CREATE ULTIMATE STORY FILE - The developer's master implementation guide!</critical>
303
+
304
+ <action>Initialize from template.md:
305
+ {default_output_file}</action>
306
+ <template-output file="{default_output_file}">story_header</template-output>
307
+
308
+ <!-- Story foundation from epics analysis -->
309
+ <template-output
310
+ file="{default_output_file}">story_requirements</template-output>
311
+
312
+ <!-- Developer context section - MOST IMPORTANT PART -->
313
+ <template-output file="{default_output_file}">
314
+ developer_context_section</template-output> **DEV AGENT GUARDRAILS:** <template-output file="{default_output_file}">
315
+ technical_requirements</template-output>
316
+ <template-output file="{default_output_file}">architecture_compliance</template-output>
317
+ <template-output
318
+ file="{default_output_file}">library_framework_requirements</template-output>
319
+ <template-output file="{default_output_file}">
320
+ file_structure_requirements</template-output>
321
+ <template-output file="{default_output_file}">testing_requirements</template-output>
322
+
323
+ <!-- Previous story intelligence -->
324
+ <check
325
+ if="previous story learnings available">
326
+ <template-output file="{default_output_file}">previous_story_intelligence</template-output>
327
+ </check>
328
+
329
+ <!-- Git intelligence -->
330
+ <check
331
+ if="git analysis completed">
332
+ <template-output file="{default_output_file}">git_intelligence_summary</template-output>
333
+ </check>
334
+
335
+ <!-- Latest technical specifics -->
336
+ <check if="web research completed">
337
+ <template-output file="{default_output_file}">latest_tech_information</template-output>
338
+ </check>
339
+
340
+ <!-- Project context reference -->
341
+ <template-output
342
+ file="{default_output_file}">project_context_reference</template-output>
343
+
344
+ <!-- Final status update -->
345
+ <template-output file="{default_output_file}">
346
+ story_completion_status</template-output>
347
+
348
+ <!-- CRITICAL: Set status to ready-for-dev -->
349
+ <action>Set story Status to: "ready-for-dev"</action>
350
+ <action>Add completion note: "Ultimate
351
+ context engine analysis completed - comprehensive developer guide created"</action>
352
+ </step>
353
+
354
+ <step n="6" goal="Update sprint status and finalize">
355
+ <action>Validate the newly created story file {story_file} against {installed_path}/checklist.md and apply any required fixes before finalizing</action>
356
+ <action>Save story document unconditionally</action>
357
+
358
+ <!-- Update sprint status -->
359
+ <check if="sprint status file exists">
360
+ <action>Update {{sprint_status}}</action>
361
+ <action>Load the FULL file and read all development_status entries</action>
362
+ <action>Find development_status key matching {{story_key}}</action>
363
+ <action>Verify current status is "backlog" (expected previous state)</action>
364
+ <action>Update development_status[{{story_key}}] = "ready-for-dev"</action>
365
+ <action>Update last_updated field to current date</action>
366
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
367
+ </check>
368
+
369
+ <action>Report completion</action>
370
+ <output>**🎯 ULTIMATE BMad Method STORY CONTEXT CREATED, {user_name}!**
371
+
372
+ **Story Details:**
373
+ - Story ID: {{story_id}}
374
+ - Story Key: {{story_key}}
375
+ - File: {{story_file}}
376
+ - Status: ready-for-dev
377
+
378
+ **Next Steps:**
379
+ 1. Review the comprehensive story in {{story_file}}
380
+ 2. Run dev agents `dev-story` for optimized implementation
381
+ 3. Run `code-review` when complete (auto-marks done)
382
+ 4. Optional: If Test Architect module installed, run `/bmad:tea:automate` after `dev-story` to generate guardrail tests
383
+
384
+ **The developer now has everything needed for flawless implementation!**
385
+ </output>
386
+ </step>
387
+
388
+ </workflow>
@@ -0,0 +1,3 @@
1
+ canonicalId: bmad-dev-story
2
+ type: workflow
3
+ description: "Execute story implementation following a context-filled story spec file"
@@ -1,6 +1,51 @@
1
+ ---
2
+ name: dev-story
3
+ description: 'Execute story implementation following a context filled story spec file. Use when the user says "dev this story [story file]" or "implement the next story in the sprint plan"'
4
+ ---
5
+
6
+ # Dev Story Workflow
7
+
8
+ **Goal:** Execute story implementation following a context filled story spec file.
9
+
10
+ **Your Role:** Developer implementing the story.
11
+ - Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}
12
+ - Generate all documents in {document_output_language}
13
+ - Only modify the story file in these areas: Tasks/Subtasks checkboxes, Dev Agent Record (Debug Log, Completion Notes), File List, Change Log, and Status
14
+ - Execute ALL steps in exact order; do NOT skip steps
15
+ - Absolutely DO NOT stop because of "milestones", "significant progress", or "session boundaries". Continue in a single execution until the story is COMPLETE (all ACs satisfied and all tasks/subtasks checked) UNLESS a HALT condition is triggered or the USER gives other instruction.
16
+ - Do NOT schedule a "next session" or request review pauses unless a HALT condition applies. Only Step 6 decides completion.
17
+ - User skill level ({user_skill_level}) affects conversation style ONLY, not code updates.
18
+
19
+ ---
20
+
21
+ ## INITIALIZATION
22
+
23
+ ### Configuration Loading
24
+
25
+ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
26
+
27
+ - `project_name`, `user_name`
28
+ - `communication_language`, `document_output_language`
29
+ - `user_skill_level`
30
+ - `implementation_artifacts`
31
+ - `date` as system-generated current datetime
32
+
33
+ ### Paths
34
+
35
+ - `installed_path` = `{project-root}/_bmad/bmm/workflows/4-implementation/dev-story`
36
+ - `validation` = `{installed_path}/checklist.md`
37
+ - `story_file` = `` (explicit story path; auto-discovered if empty)
38
+ - `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
39
+
40
+ ### Context
41
+
42
+ - `project_context` = `**/project-context.md` (load if exists)
43
+
44
+ ---
45
+
46
+ ## EXECUTION
47
+
1
48
  <workflow>
2
- <critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
3
- <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
4
49
  <critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
5
50
  <critical>Generate all documents in {document_output_language}</critical>
6
51
  <critical>Only modify the story file in these areas: Tasks/Subtasks checkboxes, Dev Agent Record (Debug Log, Completion Notes), File List,
@@ -195,6 +240,7 @@
195
240
 
196
241
  <check if="current status == 'ready-for-dev' OR review_continuation == true">
197
242
  <action>Update the story in the sprint status report to = "in-progress"</action>
243
+ <action>Update last_updated field to current date</action>
198
244
  <output>🚀 Starting work on story {{story_key}}
199
245
  Status updated: ready-for-dev → in-progress
200
246
  </output>
@@ -348,6 +394,7 @@
348
394
  <action>Find development_status key matching {{story_key}}</action>
349
395
  <action>Verify current status is "in-progress" (expected previous state)</action>
350
396
  <action>Update development_status[{{story_key}}] = "review"</action>
397
+ <action>Update last_updated field to current date</action>
351
398
  <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
352
399
  <output>✅ Story status updated to "review" in sprint-status.yaml</output>
353
400
  </check>
@@ -0,0 +1,3 @@
1
+ canonicalId: bmad-retrospective
2
+ type: workflow
3
+ description: "Post-epic review to extract lessons and assess success"
@@ -1,31 +1,71 @@
1
- # Retrospective - Epic Completion Review Instructions
1
+ ---
2
+ name: retrospective
3
+ description: 'Post-epic review to extract lessons and assess success. Use when the user says "run a retrospective" or "lets retro the epic [epic]"'
4
+ ---
5
+
6
+ # Retrospective Workflow
7
+
8
+ **Goal:** Post-epic review to extract lessons and assess success.
9
+
10
+ **Your Role:** Scrum Master facilitating retrospective.
11
+ - No time estimates — NEVER mention hours, days, weeks, months, or ANY time-based predictions. AI has fundamentally changed development speed.
12
+ - Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}
13
+ - Generate all documents in {document_output_language}
14
+ - Document output: Retrospective analysis. Concise insights, lessons learned, action items. User skill level ({user_skill_level}) affects conversation style ONLY, not retrospective content.
15
+ - Facilitation notes:
16
+ - Psychological safety is paramount - NO BLAME
17
+ - Focus on systems, processes, and learning
18
+ - Everyone contributes with specific examples preferred
19
+ - Action items must be achievable with clear ownership
20
+ - Two-part format: (1) Epic Review + (2) Next Epic Preparation
21
+ - Party mode protocol:
22
+ - ALL agent dialogue MUST use format: "Name (Role): dialogue"
23
+ - Example: Bob (Scrum Master): "Let's begin..."
24
+ - Example: {user_name} (Project Lead): [User responds]
25
+ - Create natural back-and-forth with user actively participating
26
+ - Show disagreements, diverse perspectives, authentic team dynamics
27
+
28
+ ---
29
+
30
+ ## INITIALIZATION
31
+
32
+ ### Configuration Loading
2
33
 
3
- <critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
4
- <critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml</critical>
5
- <critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
6
- <critical>Generate all documents in {document_output_language}</critical>
7
- <critical>⚠️ ABSOLUTELY NO TIME ESTIMATES - NEVER mention hours, days, weeks, months, or ANY time-based predictions. AI has fundamentally changed development speed - what once took teams weeks/months can now be done by one person in hours. DO NOT give ANY time estimates whatsoever.</critical>
34
+ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
8
35
 
9
- <critical>
10
- DOCUMENT OUTPUT: Retrospective analysis. Concise insights, lessons learned, action items. User skill level ({user_skill_level}) affects conversation style ONLY, not retrospective content.
36
+ - `project_name`, `user_name`
37
+ - `communication_language`, `document_output_language`
38
+ - `user_skill_level`
39
+ - `planning_artifacts`, `implementation_artifacts`
40
+ - `date` as system-generated current datetime
41
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
11
42
 
12
- FACILITATION NOTES:
43
+ ### Paths
13
44
 
14
- - Scrum Master facilitates this retrospective
15
- - Psychological safety is paramount - NO BLAME
16
- - Focus on systems, processes, and learning
17
- - Everyone contributes with specific examples preferred
18
- - Action items must be achievable with clear ownership
19
- - Two-part format: (1) Epic Review + (2) Next Epic Preparation
45
+ - `installed_path` = `{project-root}/_bmad/bmm/workflows/4-implementation/retrospective`
46
+ - `sprint_status_file` = `{implementation_artifacts}/sprint-status.yaml`
20
47
 
21
- PARTY MODE PROTOCOL:
48
+ ### Input Files
49
+
50
+ | Input | Description | Path Pattern(s) | Load Strategy |
51
+ |-------|-------------|------------------|---------------|
52
+ | epics | The completed epic for retrospective | whole: `{planning_artifacts}/*epic*.md`, sharded_index: `{planning_artifacts}/*epic*/index.md`, sharded_single: `{planning_artifacts}/*epic*/epic-{{epic_num}}.md` | SELECTIVE_LOAD |
53
+ | previous_retrospective | Previous epic's retrospective (optional) | `{implementation_artifacts}/**/epic-{{prev_epic_num}}-retro-*.md` | SELECTIVE_LOAD |
54
+ | architecture | System architecture for context | whole: `{planning_artifacts}/*architecture*.md`, sharded: `{planning_artifacts}/*architecture*/*.md` | FULL_LOAD |
55
+ | prd | Product requirements for context | whole: `{planning_artifacts}/*prd*.md`, sharded: `{planning_artifacts}/*prd*/*.md` | FULL_LOAD |
56
+ | document_project | Brownfield project documentation (optional) | sharded: `{planning_artifacts}/*.md` | INDEX_GUIDED |
57
+
58
+ ### Required Inputs
59
+
60
+ - `agent_manifest` = `{project-root}/_bmad/_config/agent-manifest.csv`
61
+
62
+ ### Context
63
+
64
+ - `project_context` = `**/project-context.md` (load if exists)
65
+
66
+ ---
22
67
 
23
- - ALL agent dialogue MUST use format: "Name (Role): dialogue"
24
- - Example: Bob (Scrum Master): "Let's begin..."
25
- - Example: {user_name} (Project Lead): [User responds]
26
- - Create natural back-and-forth with user actively participating
27
- - Show disagreements, diverse perspectives, authentic team dynamics
28
- </critical>
68
+ ## EXECUTION
29
69
 
30
70
  <workflow>
31
71
 
@@ -159,7 +199,7 @@ Bob (Scrum Master): "Perfect. Epic {{epic_number}} is complete and ready for ret
159
199
  </step>
160
200
 
161
201
  <step n="0.5" goal="Discover and load project documents">
162
- <invoke-protocol name="discover_inputs" />
202
+ <action>Load input files according to the Input Files table in INITIALIZATION. For SELECTIVE_LOAD inputs, load only the epic matching {{epic_number}}. For FULL_LOAD inputs, load the complete document. For INDEX_GUIDED inputs, check the index first and load relevant sections. After discovery, these content variables are available: {epics_content} (selective load for this epic), {architecture_content}, {prd_content}, {document_project_content}</action>
163
203
  <note>After discovery, these content variables are available: {epics_content} (selective load for this epic), {architecture_content}, {prd_content}, {document_project_content}</note>
164
204
  </step>
165
205
 
@@ -1336,6 +1376,7 @@ Bob (Scrum Master): "See you all when prep work is done. Meeting adjourned!"
1336
1376
  <action>Find development_status key "epic-{{epic_number}}-retrospective"</action>
1337
1377
  <action>Verify current status (typically "optional" or "pending")</action>
1338
1378
  <action>Update development_status["epic-{{epic_number}}-retrospective"] = "done"</action>
1379
+ <action>Update last_updated field to current date</action>
1339
1380
  <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
1340
1381
 
1341
1382
  <check if="update successful">
@@ -0,0 +1,3 @@
1
+ canonicalId: bmad-sprint-planning
2
+ type: workflow
3
+ description: "Generate sprint status tracking from epics"
@@ -35,6 +35,7 @@
35
35
  # EXAMPLE STRUCTURE (your actual epics/stories will replace these):
36
36
 
37
37
  generated: 05-06-2-2025 21:30
38
+ last_updated: 05-06-2-2025 21:30
38
39
  project: My Awesome Project
39
40
  project_key: NOKEY
40
41
  tracking_system: file-system