siesa-agents 2.1.40 → 2.1.41

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 (552) hide show
  1. package/README.md +147 -147
  2. package/bin/install.js +534 -534
  3. package/bin/prepare-publish.js +26 -26
  4. package/bin/restore-folders.js +26 -26
  5. package/bmad/_config/agent-manifest.csv +20 -20
  6. package/bmad/_config/agents/bmb-agent-builder.customize.yaml +41 -41
  7. package/bmad/_config/agents/bmb-module-builder.customize.yaml +41 -41
  8. package/bmad/_config/agents/bmb-workflow-builder.customize.yaml +41 -41
  9. package/bmad/_config/files-manifest.csv +469 -469
  10. package/bmad/_config/ides/claude-code.yaml +6 -6
  11. package/bmad/_config/manifest.yaml +14 -14
  12. package/bmad/_config/task-manifest.csv +6 -6
  13. package/bmad/_config/tool-manifest.csv +1 -1
  14. package/bmad/_config/workflow-manifest.csv +45 -45
  15. package/bmad/_memory/config.yaml +11 -11
  16. package/bmad/bmb/README.md +25 -25
  17. package/bmad/bmb/agents/agent-builder.md +57 -57
  18. package/bmad/bmb/agents/module-builder.md +60 -60
  19. package/bmad/bmb/agents/workflow-builder.md +56 -56
  20. package/bmad/bmb/config.yaml +12 -12
  21. package/bmad/bmb/docs/workflows/architecture.md +220 -220
  22. package/bmad/bmb/docs/workflows/common-workflow-tools.csv +18 -18
  23. package/bmad/bmb/docs/workflows/csv-data-file-standards.md +206 -206
  24. package/bmad/bmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -220
  25. package/bmad/bmb/docs/workflows/step-file-rules.md +469 -469
  26. package/bmad/bmb/docs/workflows/templates/step-01-init-continuable-template.md +241 -241
  27. package/bmad/bmb/docs/workflows/templates/step-1b-template.md +223 -223
  28. package/bmad/bmb/docs/workflows/templates/step-file.md +139 -139
  29. package/bmad/bmb/docs/workflows/templates/step-template.md +290 -290
  30. package/bmad/bmb/docs/workflows/templates/workflow-template.md +104 -104
  31. package/bmad/bmb/docs/workflows/templates/workflow.md +58 -58
  32. package/bmad/bmb/docs/workflows/terms.md +97 -97
  33. package/bmad/bmb/reference/agents/simple-examples/README.md +223 -223
  34. package/bmad/bmb/reference/readme.md +3 -3
  35. package/bmad/bmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +17 -17
  36. package/bmad/bmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +15 -15
  37. package/bmad/bmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +27 -27
  38. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -177
  39. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +121 -121
  40. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +165 -165
  41. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +154 -154
  42. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +183 -183
  43. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +168 -168
  44. package/bmad/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +195 -195
  45. package/bmad/bmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -25
  46. package/bmad/bmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -68
  47. package/bmad/bmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -29
  48. package/bmad/bmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -47
  49. package/bmad/bmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -37
  50. package/bmad/bmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -18
  51. package/bmad/bmb/reference/workflows/meal-prep-nutrition/workflow.md +59 -59
  52. package/bmad/bmb/workflows/agent/data/agent-compilation.md +273 -273
  53. package/bmad/bmb/workflows/agent/data/agent-menu-patterns.md +233 -233
  54. package/bmad/bmb/workflows/agent/data/agent-metadata.md +208 -208
  55. package/bmad/bmb/workflows/agent/data/brainstorm-context.md +146 -146
  56. package/bmad/bmb/workflows/agent/data/communication-presets.csv +61 -61
  57. package/bmad/bmb/workflows/agent/data/critical-actions.md +120 -120
  58. package/bmad/bmb/workflows/agent/data/expert-agent-architecture.md +236 -236
  59. package/bmad/bmb/workflows/agent/data/expert-agent-validation.md +173 -173
  60. package/bmad/bmb/workflows/agent/data/module-agent-validation.md +124 -124
  61. package/bmad/bmb/workflows/agent/data/persona-properties.md +266 -266
  62. package/bmad/bmb/workflows/agent/data/principles-crafting.md +292 -292
  63. package/bmad/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/entries/yy-mm-dd-entry-template.md +16 -16
  64. package/bmad/bmb/workflows/agent/data/reference/module-examples/architect.md +68 -68
  65. package/bmad/bmb/workflows/agent/data/simple-agent-architecture.md +204 -204
  66. package/bmad/bmb/workflows/agent/data/simple-agent-validation.md +132 -132
  67. package/bmad/bmb/workflows/agent/data/understanding-agent-types.md +222 -222
  68. package/bmad/bmb/workflows/agent/steps-c/step-01-brainstorm.md +126 -126
  69. package/bmad/bmb/workflows/agent/steps-c/step-02-discovery.md +168 -168
  70. package/bmad/bmb/workflows/agent/steps-c/step-03-type-metadata.md +294 -294
  71. package/bmad/bmb/workflows/agent/steps-c/step-04-persona.md +210 -210
  72. package/bmad/bmb/workflows/agent/steps-c/step-05-commands-menu.md +176 -176
  73. package/bmad/bmb/workflows/agent/steps-c/step-06-activation.md +275 -275
  74. package/bmad/bmb/workflows/agent/steps-c/step-07a-build-simple.md +185 -185
  75. package/bmad/bmb/workflows/agent/steps-c/step-07b-build-expert.md +201 -201
  76. package/bmad/bmb/workflows/agent/steps-c/step-07c-build-module.md +258 -258
  77. package/bmad/bmb/workflows/agent/steps-c/step-08a-plan-traceability.md +203 -203
  78. package/bmad/bmb/workflows/agent/steps-c/step-08b-metadata-validation.md +135 -135
  79. package/bmad/bmb/workflows/agent/steps-c/step-08c-persona-validation.md +161 -161
  80. package/bmad/bmb/workflows/agent/steps-c/step-08d-menu-validation.md +158 -158
  81. package/bmad/bmb/workflows/agent/steps-c/step-08e-structure-validation.md +306 -306
  82. package/bmad/bmb/workflows/agent/steps-c/step-08f-sidecar-validation.md +462 -462
  83. package/bmad/bmb/workflows/agent/steps-c/step-09-celebrate.md +244 -244
  84. package/bmad/bmb/workflows/agent/steps-e/e-01-load-existing.md +214 -214
  85. package/bmad/bmb/workflows/agent/steps-e/e-02-discover-edits.md +191 -191
  86. package/bmad/bmb/workflows/agent/steps-e/e-03a-validate-metadata.md +78 -78
  87. package/bmad/bmb/workflows/agent/steps-e/e-03b-validate-persona.md +76 -76
  88. package/bmad/bmb/workflows/agent/steps-e/e-03c-validate-menu.md +75 -75
  89. package/bmad/bmb/workflows/agent/steps-e/e-03d-validate-structure.md +75 -75
  90. package/bmad/bmb/workflows/agent/steps-e/e-03e-validate-sidecar.md +78 -78
  91. package/bmad/bmb/workflows/agent/steps-e/e-03f-validation-summary.md +119 -119
  92. package/bmad/bmb/workflows/agent/steps-e/e-04-type-metadata.md +122 -122
  93. package/bmad/bmb/workflows/agent/steps-e/e-05-persona.md +132 -132
  94. package/bmad/bmb/workflows/agent/steps-e/e-06-commands-menu.md +120 -120
  95. package/bmad/bmb/workflows/agent/steps-e/e-07-activation.md +122 -122
  96. package/bmad/bmb/workflows/agent/steps-e/e-08a-edit-simple.md +134 -134
  97. package/bmad/bmb/workflows/agent/steps-e/e-08b-edit-expert.md +117 -117
  98. package/bmad/bmb/workflows/agent/steps-e/e-08c-edit-module.md +120 -120
  99. package/bmad/bmb/workflows/agent/steps-e/e-09a-validate-metadata.md +70 -70
  100. package/bmad/bmb/workflows/agent/steps-e/e-09b-validate-persona.md +70 -70
  101. package/bmad/bmb/workflows/agent/steps-e/e-09c-validate-menu.md +69 -69
  102. package/bmad/bmb/workflows/agent/steps-e/e-09d-validate-structure.md +69 -69
  103. package/bmad/bmb/workflows/agent/steps-e/e-09e-validate-sidecar.md +70 -70
  104. package/bmad/bmb/workflows/agent/steps-e/e-09f-validation-summary.md +111 -111
  105. package/bmad/bmb/workflows/agent/steps-e/e-10-celebrate.md +150 -150
  106. package/bmad/bmb/workflows/agent/steps-v/v-01-load-review.md +128 -128
  107. package/bmad/bmb/workflows/agent/steps-v/v-02a-validate-metadata.md +73 -73
  108. package/bmad/bmb/workflows/agent/steps-v/v-02b-validate-persona.md +72 -72
  109. package/bmad/bmb/workflows/agent/steps-v/v-02c-validate-menu.md +71 -71
  110. package/bmad/bmb/workflows/agent/steps-v/v-02d-validate-structure.md +71 -71
  111. package/bmad/bmb/workflows/agent/steps-v/v-02e-validate-sidecar.md +76 -76
  112. package/bmad/bmb/workflows/agent/steps-v/v-03-summary.md +100 -100
  113. package/bmad/bmb/workflows/agent/templates/agent-plan.template.md +5 -5
  114. package/bmad/bmb/workflows/agent/templates/expert-agent-template/expert-agent.template.md +76 -76
  115. package/bmad/bmb/workflows/agent/templates/simple-agent.template.md +71 -71
  116. package/bmad/bmb/workflows/agent/workflow.md +123 -123
  117. package/bmad/bmb/workflows/create-module/steps/step-01-init.md +156 -156
  118. package/bmad/bmb/workflows/create-module/steps/step-01b-continue.md +170 -170
  119. package/bmad/bmb/workflows/create-module/steps/step-02-concept.md +218 -218
  120. package/bmad/bmb/workflows/create-module/steps/step-03-components.md +268 -268
  121. package/bmad/bmb/workflows/create-module/steps/step-04-structure.md +229 -229
  122. package/bmad/bmb/workflows/create-module/steps/step-05-config.md +234 -234
  123. package/bmad/bmb/workflows/create-module/steps/step-06-agents.md +297 -297
  124. package/bmad/bmb/workflows/create-module/steps/step-07-workflows.md +229 -229
  125. package/bmad/bmb/workflows/create-module/steps/step-08-installer.md +187 -187
  126. package/bmad/bmb/workflows/create-module/steps/step-09-documentation.md +310 -310
  127. package/bmad/bmb/workflows/create-module/steps/step-10-roadmap.md +338 -338
  128. package/bmad/bmb/workflows/create-module/steps/step-11-validate.md +336 -336
  129. package/bmad/bmb/workflows/create-module/templates/agent.template.md +313 -313
  130. package/bmad/bmb/workflows/create-module/templates/installer.template.js +47 -47
  131. package/bmad/bmb/workflows/create-module/templates/module-plan.template.md +5 -5
  132. package/bmad/bmb/workflows/create-module/templates/module.template.yaml +53 -53
  133. package/bmad/bmb/workflows/create-module/templates/workflow-plan-template.md +23 -23
  134. package/bmad/bmb/workflows/create-module/validation.md +126 -126
  135. package/bmad/bmb/workflows/create-module/workflow.md +56 -56
  136. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/dietary-restrictions.csv +17 -17
  137. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/macro-calculator.csv +15 -15
  138. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/recipe-database.csv +27 -27
  139. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-01-init.md +177 -177
  140. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-01b-continue.md +150 -150
  141. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-02-profile.md +164 -164
  142. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-03-assessment.md +152 -152
  143. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-04-strategy.md +182 -182
  144. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-05-shopping.md +167 -167
  145. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -194
  146. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/assessment-section.md +25 -25
  147. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/nutrition-plan.md +68 -68
  148. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/prep-schedule-section.md +29 -29
  149. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/profile-section.md +47 -47
  150. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/shopping-section.md +37 -37
  151. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/strategy-section.md +18 -18
  152. package/bmad/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/workflow.md +58 -58
  153. package/bmad/bmb/workflows/create-workflow/steps/step-01-init.md +158 -158
  154. package/bmad/bmb/workflows/create-workflow/steps/step-02-gather.md +212 -212
  155. package/bmad/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md +251 -251
  156. package/bmad/bmb/workflows/create-workflow/steps/step-04-plan-review.md +217 -217
  157. package/bmad/bmb/workflows/create-workflow/steps/step-05-output-format-design.md +290 -290
  158. package/bmad/bmb/workflows/create-workflow/steps/step-06-design.md +272 -272
  159. package/bmad/bmb/workflows/create-workflow/steps/step-07-build.md +323 -323
  160. package/bmad/bmb/workflows/create-workflow/steps/step-08-review.md +285 -285
  161. package/bmad/bmb/workflows/create-workflow/steps/step-09-complete.md +188 -188
  162. package/bmad/bmb/workflows/create-workflow/workflow.md +59 -59
  163. package/bmad/bmb/workflows/edit-workflow/steps/step-01-analyze.md +217 -217
  164. package/bmad/bmb/workflows/edit-workflow/steps/step-02-discover.md +254 -254
  165. package/bmad/bmb/workflows/edit-workflow/steps/step-03-improve.md +218 -218
  166. package/bmad/bmb/workflows/edit-workflow/steps/step-04-validate.md +194 -194
  167. package/bmad/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +246 -246
  168. package/bmad/bmb/workflows/edit-workflow/templates/completion-summary.md +75 -75
  169. package/bmad/bmb/workflows/edit-workflow/templates/improvement-goals.md +68 -68
  170. package/bmad/bmb/workflows/edit-workflow/templates/improvement-log.md +40 -40
  171. package/bmad/bmb/workflows/edit-workflow/templates/validation-results.md +51 -51
  172. package/bmad/bmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -56
  173. package/bmad/bmb/workflows/edit-workflow/workflow.md +59 -59
  174. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +153 -153
  175. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +244 -244
  176. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +275 -275
  177. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +296 -296
  178. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +265 -265
  179. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +361 -361
  180. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +259 -259
  181. package/bmad/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +302 -302
  182. package/bmad/bmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -140
  183. package/bmad/bmb/workflows/workflow-compliance-check/workflow.md +59 -59
  184. package/bmad/bmb/workflows-legacy/edit-module/README.md +171 -171
  185. package/bmad/bmb/workflows-legacy/edit-module/checklist.md +163 -163
  186. package/bmad/bmb/workflows-legacy/edit-module/instructions.md +340 -340
  187. package/bmad/bmb/workflows-legacy/edit-module/workflow.yaml +32 -32
  188. package/bmad/bmb/workflows-legacy/module-brief/README.md +264 -264
  189. package/bmad/bmb/workflows-legacy/module-brief/checklist.md +116 -116
  190. package/bmad/bmb/workflows-legacy/module-brief/instructions.md +268 -268
  191. package/bmad/bmb/workflows-legacy/module-brief/template.md +275 -275
  192. package/bmad/bmb/workflows-legacy/module-brief/workflow.yaml +34 -34
  193. package/bmad/bmm/agents/analyst.md +76 -76
  194. package/bmad/bmm/agents/architect.md +68 -68
  195. package/bmad/bmm/agents/dev.md +70 -70
  196. package/bmad/bmm/agents/pm.md +70 -70
  197. package/bmad/bmm/agents/quick-flow-solo-dev.md +68 -68
  198. package/bmad/bmm/agents/sm.md +71 -71
  199. package/bmad/bmm/agents/tea.md +71 -71
  200. package/bmad/bmm/agents/tech-writer.md +72 -72
  201. package/bmad/bmm/agents/ux-designer.md +68 -68
  202. package/bmad/bmm/config.yaml +18 -18
  203. package/bmad/bmm/data/README.md +29 -29
  204. package/bmad/bmm/data/documentation-standards.md +262 -262
  205. package/bmad/bmm/data/project-context-template.md +40 -40
  206. package/bmad/bmm/teams/default-party.csv +21 -21
  207. package/bmad/bmm/teams/team-fullstack.yaml +12 -12
  208. package/bmad/bmm/testarch/knowledge/api-request.md +303 -303
  209. package/bmad/bmm/testarch/knowledge/auth-session.md +356 -356
  210. package/bmad/bmm/testarch/knowledge/burn-in.md +273 -273
  211. package/bmad/bmm/testarch/knowledge/ci-burn-in.md +675 -675
  212. package/bmad/bmm/testarch/knowledge/component-tdd.md +486 -486
  213. package/bmad/bmm/testarch/knowledge/contract-testing.md +957 -957
  214. package/bmad/bmm/testarch/knowledge/data-factories.md +500 -500
  215. package/bmad/bmm/testarch/knowledge/email-auth.md +721 -721
  216. package/bmad/bmm/testarch/knowledge/error-handling.md +725 -725
  217. package/bmad/bmm/testarch/knowledge/feature-flags.md +750 -750
  218. package/bmad/bmm/testarch/knowledge/file-utils.md +260 -260
  219. package/bmad/bmm/testarch/knowledge/fixture-architecture.md +401 -401
  220. package/bmad/bmm/testarch/knowledge/fixtures-composition.md +382 -382
  221. package/bmad/bmm/testarch/knowledge/intercept-network-call.md +280 -280
  222. package/bmad/bmm/testarch/knowledge/log.md +294 -294
  223. package/bmad/bmm/testarch/knowledge/network-error-monitor.md +272 -272
  224. package/bmad/bmm/testarch/knowledge/network-first.md +486 -486
  225. package/bmad/bmm/testarch/knowledge/network-recorder.md +265 -265
  226. package/bmad/bmm/testarch/knowledge/nfr-criteria.md +670 -670
  227. package/bmad/bmm/testarch/knowledge/overview.md +283 -283
  228. package/bmad/bmm/testarch/knowledge/playwright-config.md +730 -730
  229. package/bmad/bmm/testarch/knowledge/probability-impact.md +601 -601
  230. package/bmad/bmm/testarch/knowledge/recurse.md +296 -296
  231. package/bmad/bmm/testarch/knowledge/risk-governance.md +615 -615
  232. package/bmad/bmm/testarch/knowledge/selective-testing.md +732 -732
  233. package/bmad/bmm/testarch/knowledge/selector-resilience.md +527 -527
  234. package/bmad/bmm/testarch/knowledge/test-healing-patterns.md +644 -644
  235. package/bmad/bmm/testarch/knowledge/test-levels-framework.md +473 -473
  236. package/bmad/bmm/testarch/knowledge/test-priorities-matrix.md +373 -373
  237. package/bmad/bmm/testarch/knowledge/test-quality.md +664 -664
  238. package/bmad/bmm/testarch/knowledge/timing-debugging.md +372 -372
  239. package/bmad/bmm/testarch/knowledge/visual-debugging.md +524 -524
  240. package/bmad/bmm/testarch/tea-index.csv +33 -33
  241. package/bmad/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +10 -10
  242. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +182 -182
  243. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +166 -166
  244. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +204 -204
  245. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +207 -207
  246. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +210 -210
  247. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +224 -224
  248. package/bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +199 -199
  249. package/bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +58 -58
  250. package/bmad/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +137 -137
  251. package/bmad/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +229 -229
  252. package/bmad/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +238 -238
  253. package/bmad/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +206 -206
  254. package/bmad/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +234 -234
  255. package/bmad/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -443
  256. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -182
  257. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +237 -237
  258. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +200 -200
  259. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +249 -249
  260. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +259 -259
  261. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +177 -177
  262. package/bmad/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -475
  263. package/bmad/bmm/workflows/1-analysis/research/research.template.md +29 -29
  264. package/bmad/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +137 -137
  265. package/bmad/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +239 -239
  266. package/bmad/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +248 -248
  267. package/bmad/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +202 -202
  268. package/bmad/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +239 -239
  269. package/bmad/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -486
  270. package/bmad/bmm/workflows/1-analysis/research/workflow.md +173 -173
  271. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +135 -135
  272. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +127 -127
  273. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +190 -190
  274. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +216 -216
  275. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +219 -219
  276. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +234 -234
  277. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +252 -252
  278. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +254 -254
  279. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +224 -224
  280. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +224 -224
  281. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +241 -241
  282. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +248 -248
  283. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +237 -237
  284. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +264 -264
  285. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +228 -228
  286. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -13
  287. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +43 -43
  288. package/bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +12 -12
  289. package/bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +11 -11
  290. package/bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +10 -10
  291. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +197 -197
  292. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +166 -166
  293. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +421 -421
  294. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +290 -290
  295. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +291 -291
  296. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +271 -271
  297. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +262 -262
  298. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +258 -258
  299. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +299 -299
  300. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +270 -270
  301. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +294 -294
  302. package/bmad/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +186 -186
  303. package/bmad/bmm/workflows/2-plan-workflows/prd/workflow.md +63 -63
  304. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +190 -190
  305. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +178 -178
  306. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -179
  307. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +139 -139
  308. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +252 -252
  309. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +133 -133
  310. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +4 -4
  311. package/bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +55 -55
  312. package/bmad/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +12 -12
  313. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/company-standards/architecture-patterns.md +415 -415
  314. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/company-standards/backend-standards.md +811 -811
  315. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/company-standards/frontend-standards.md +375 -375
  316. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/company-standards/technical-preferences-ux.md +422 -422
  317. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/company-standards/technology-stack.md +235 -235
  318. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +10 -10
  319. package/bmad/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +6 -6
  320. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +166 -166
  321. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +164 -164
  322. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +224 -224
  323. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +342 -342
  324. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +328 -328
  325. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +368 -368
  326. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +379 -379
  327. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +366 -366
  328. package/bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +352 -352
  329. package/bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +51 -51
  330. package/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +259 -259
  331. package/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +233 -233
  332. package/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +272 -272
  333. package/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +145 -145
  334. package/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -57
  335. package/bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +59 -59
  336. package/bmad/bmm/workflows/4-implementation/code-review/checklist.md +23 -23
  337. package/bmad/bmm/workflows/4-implementation/code-review/instructions.xml +224 -224
  338. package/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +49 -49
  339. package/bmad/bmm/workflows/4-implementation/correct-course/checklist.md +279 -279
  340. package/bmad/bmm/workflows/4-implementation/correct-course/instructions.md +206 -206
  341. package/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +58 -58
  342. package/bmad/bmm/workflows/4-implementation/create-story/checklist.md +358 -358
  343. package/bmad/bmm/workflows/4-implementation/create-story/steps/step-01-determine-story.md +85 -85
  344. package/bmad/bmm/workflows/4-implementation/create-story/steps/step-02-analyze.md +67 -67
  345. package/bmad/bmm/workflows/4-implementation/create-story/steps/step-03-architecture.md +71 -71
  346. package/bmad/bmm/workflows/4-implementation/create-story/steps/step-04-web-research.md +58 -58
  347. package/bmad/bmm/workflows/4-implementation/create-story/steps/step-05-create-file.md +76 -76
  348. package/bmad/bmm/workflows/4-implementation/create-story/steps/step-06-finalize.md +66 -66
  349. package/bmad/bmm/workflows/4-implementation/create-story/template.md +49 -49
  350. package/bmad/bmm/workflows/4-implementation/create-story/workflow.md +58 -58
  351. package/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml.bak +63 -63
  352. package/bmad/bmm/workflows/4-implementation/dev-story/checklist.md +85 -85
  353. package/bmad/bmm/workflows/4-implementation/dev-story/instructions.xml +470 -470
  354. package/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +25 -25
  355. package/bmad/bmm/workflows/4-implementation/retrospective/instructions.md +1443 -1443
  356. package/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +56 -56
  357. package/bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -33
  358. package/bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +225 -225
  359. package/bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -55
  360. package/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +52 -52
  361. package/bmad/bmm/workflows/4-implementation/sprint-status/instructions.md +229 -229
  362. package/bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +34 -34
  363. package/bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md +189 -189
  364. package/bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md +144 -144
  365. package/bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md +128 -128
  366. package/bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md +173 -173
  367. package/bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/tech-spec-template.md +74 -74
  368. package/bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md +79 -79
  369. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +156 -156
  370. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -120
  371. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +113 -113
  372. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +113 -113
  373. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -106
  374. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +140 -140
  375. package/bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +52 -52
  376. package/bmad/bmm/workflows/document-project/checklist.md +245 -245
  377. package/bmad/bmm/workflows/document-project/documentation-requirements.csv +12 -12
  378. package/bmad/bmm/workflows/document-project/instructions.md +221 -221
  379. package/bmad/bmm/workflows/document-project/templates/deep-dive-template.md +345 -345
  380. package/bmad/bmm/workflows/document-project/templates/index-template.md +169 -169
  381. package/bmad/bmm/workflows/document-project/templates/project-overview-template.md +103 -103
  382. package/bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -160
  383. package/bmad/bmm/workflows/document-project/templates/source-tree-template.md +135 -135
  384. package/bmad/bmm/workflows/document-project/workflow.yaml +28 -28
  385. package/bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -298
  386. package/bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -31
  387. package/bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -1106
  388. package/bmad/bmm/workflows/document-project/workflows/full-scan.yaml +31 -31
  389. package/bmad/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-library.json +90 -90
  390. package/bmad/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-templates.yaml +127 -127
  391. package/bmad/bmm/workflows/excalidraw-diagrams/create-dataflow/checklist.md +39 -39
  392. package/bmad/bmm/workflows/excalidraw-diagrams/create-dataflow/instructions.md +130 -130
  393. package/bmad/bmm/workflows/excalidraw-diagrams/create-dataflow/workflow.yaml +25 -25
  394. package/bmad/bmm/workflows/excalidraw-diagrams/create-diagram/checklist.md +43 -43
  395. package/bmad/bmm/workflows/excalidraw-diagrams/create-diagram/instructions.md +141 -141
  396. package/bmad/bmm/workflows/excalidraw-diagrams/create-diagram/workflow.yaml +25 -25
  397. package/bmad/bmm/workflows/excalidraw-diagrams/create-flowchart/checklist.md +49 -49
  398. package/bmad/bmm/workflows/excalidraw-diagrams/create-flowchart/instructions.md +241 -241
  399. package/bmad/bmm/workflows/excalidraw-diagrams/create-flowchart/workflow.yaml +25 -25
  400. package/bmad/bmm/workflows/excalidraw-diagrams/create-wireframe/checklist.md +38 -38
  401. package/bmad/bmm/workflows/excalidraw-diagrams/create-wireframe/instructions.md +133 -133
  402. package/bmad/bmm/workflows/excalidraw-diagrams/create-wireframe/workflow.yaml +25 -25
  403. package/bmad/bmm/workflows/generate-project-context/project-context-template.md +21 -21
  404. package/bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md +218 -218
  405. package/bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md +318 -318
  406. package/bmad/bmm/workflows/generate-project-context/steps/step-03-complete.md +278 -278
  407. package/bmad/bmm/workflows/generate-project-context/workflow.md +50 -50
  408. package/bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +364 -364
  409. package/bmad/bmm/workflows/testarch/atdd/checklist.md +374 -374
  410. package/bmad/bmm/workflows/testarch/atdd/instructions.md +806 -806
  411. package/bmad/bmm/workflows/testarch/atdd/workflow.yaml +45 -45
  412. package/bmad/bmm/workflows/testarch/automate/checklist.md +582 -582
  413. package/bmad/bmm/workflows/testarch/automate/instructions.md +1324 -1324
  414. package/bmad/bmm/workflows/testarch/automate/workflow.yaml +52 -52
  415. package/bmad/bmm/workflows/testarch/ci/checklist.md +248 -248
  416. package/bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +198 -198
  417. package/bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +149 -149
  418. package/bmad/bmm/workflows/testarch/ci/instructions.md +536 -536
  419. package/bmad/bmm/workflows/testarch/ci/workflow.yaml +45 -45
  420. package/bmad/bmm/workflows/testarch/framework/checklist.md +321 -321
  421. package/bmad/bmm/workflows/testarch/framework/instructions.md +481 -481
  422. package/bmad/bmm/workflows/testarch/framework/workflow.yaml +47 -47
  423. package/bmad/bmm/workflows/testarch/nfr-assess/checklist.md +407 -407
  424. package/bmad/bmm/workflows/testarch/nfr-assess/instructions.md +722 -722
  425. package/bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +445 -445
  426. package/bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +47 -47
  427. package/bmad/bmm/workflows/testarch/test-design/checklist.md +235 -235
  428. package/bmad/bmm/workflows/testarch/test-design/instructions.md +788 -788
  429. package/bmad/bmm/workflows/testarch/test-design/test-design-template.md +294 -294
  430. package/bmad/bmm/workflows/testarch/test-design/workflow.yaml +54 -54
  431. package/bmad/bmm/workflows/testarch/test-review/checklist.md +472 -472
  432. package/bmad/bmm/workflows/testarch/test-review/instructions.md +628 -628
  433. package/bmad/bmm/workflows/testarch/test-review/test-review-template.md +390 -390
  434. package/bmad/bmm/workflows/testarch/test-review/workflow.yaml +46 -46
  435. package/bmad/bmm/workflows/testarch/trace/checklist.md +655 -655
  436. package/bmad/bmm/workflows/testarch/trace/instructions.md +1047 -1047
  437. package/bmad/bmm/workflows/testarch/trace/trace-template.md +675 -675
  438. package/bmad/bmm/workflows/testarch/trace/workflow.yaml +55 -55
  439. package/bmad/bmm/workflows/workflow-status/init/instructions.md +346 -346
  440. package/bmad/bmm/workflows/workflow-status/init/workflow.yaml +28 -28
  441. package/bmad/bmm/workflows/workflow-status/instructions.md +395 -395
  442. package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +103 -103
  443. package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +100 -100
  444. package/bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +103 -103
  445. package/bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +100 -100
  446. package/bmad/bmm/workflows/workflow-status/project-levels.yaml +59 -59
  447. package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +24 -24
  448. package/bmad/bmm/workflows/workflow-status/workflow.yaml +30 -30
  449. package/bmad/cis/agents/brainstorming-coach.md +60 -60
  450. package/bmad/cis/agents/creative-problem-solver.md +60 -60
  451. package/bmad/cis/agents/design-thinking-coach.md +60 -60
  452. package/bmad/cis/agents/innovation-strategist.md +60 -60
  453. package/bmad/cis/agents/presentation-master.md +66 -66
  454. package/bmad/cis/agents/storyteller/storyteller.md +57 -57
  455. package/bmad/cis/config.yaml +11 -11
  456. package/bmad/cis/teams/creative-squad.yaml +7 -7
  457. package/bmad/cis/teams/default-party.csv +12 -12
  458. package/bmad/cis/workflows/README.md +139 -139
  459. package/bmad/cis/workflows/design-thinking/README.md +56 -56
  460. package/bmad/cis/workflows/design-thinking/design-methods.csv +30 -30
  461. package/bmad/cis/workflows/design-thinking/instructions.md +202 -202
  462. package/bmad/cis/workflows/design-thinking/template.md +111 -111
  463. package/bmad/cis/workflows/design-thinking/workflow.yaml +27 -27
  464. package/bmad/cis/workflows/innovation-strategy/README.md +56 -56
  465. package/bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +30 -30
  466. package/bmad/cis/workflows/innovation-strategy/instructions.md +276 -276
  467. package/bmad/cis/workflows/innovation-strategy/template.md +189 -189
  468. package/bmad/cis/workflows/innovation-strategy/workflow.yaml +27 -27
  469. package/bmad/cis/workflows/problem-solving/README.md +56 -56
  470. package/bmad/cis/workflows/problem-solving/instructions.md +252 -252
  471. package/bmad/cis/workflows/problem-solving/solving-methods.csv +30 -30
  472. package/bmad/cis/workflows/problem-solving/template.md +165 -165
  473. package/bmad/cis/workflows/problem-solving/workflow.yaml +27 -27
  474. package/bmad/cis/workflows/storytelling/README.md +58 -58
  475. package/bmad/cis/workflows/storytelling/instructions.md +293 -293
  476. package/bmad/cis/workflows/storytelling/story-types.csv +25 -25
  477. package/bmad/cis/workflows/storytelling/template.md +113 -113
  478. package/bmad/cis/workflows/storytelling/workflow.yaml +27 -27
  479. package/bmad/core/agents/bmad-master.md +57 -57
  480. package/bmad/core/config.yaml +9 -9
  481. package/bmad/core/resources/excalidraw/README.md +160 -160
  482. package/bmad/core/resources/excalidraw/excalidraw-helpers.md +127 -127
  483. package/bmad/core/resources/excalidraw/library-loader.md +50 -50
  484. package/bmad/core/resources/excalidraw/validate-json-instructions.md +79 -79
  485. package/bmad/core/tasks/index-docs.xml +64 -64
  486. package/bmad/core/tasks/review-adversarial-general.xml +41 -41
  487. package/bmad/core/tasks/shard-doc.xml +108 -108
  488. package/bmad/core/tasks/validate-workflow.xml +88 -88
  489. package/bmad/core/tasks/workflow.xml +234 -234
  490. package/bmad/core/workflows/advanced-elicitation/methods.csv +51 -51
  491. package/bmad/core/workflows/advanced-elicitation/workflow.xml +116 -116
  492. package/bmad/core/workflows/brainstorming/brain-methods.csv +61 -61
  493. package/bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +197 -197
  494. package/bmad/core/workflows/brainstorming/steps/step-01b-continue.md +122 -122
  495. package/bmad/core/workflows/brainstorming/steps/step-02a-user-selected.md +225 -225
  496. package/bmad/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +237 -237
  497. package/bmad/core/workflows/brainstorming/steps/step-02c-random-selection.md +209 -209
  498. package/bmad/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +264 -264
  499. package/bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +340 -340
  500. package/bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +303 -303
  501. package/bmad/core/workflows/brainstorming/template.md +15 -15
  502. package/bmad/core/workflows/brainstorming/workflow.md +51 -51
  503. package/bmad/core/workflows/party-mode/steps/step-01-agent-loading.md +139 -139
  504. package/bmad/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +204 -204
  505. package/bmad/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -159
  506. package/bmad/core/workflows/party-mode/workflow.md +206 -206
  507. package/claude/hooks/file-restriction-hook.py +51 -51
  508. package/claude/hooks/track-agent.py +67 -67
  509. package/claude/settings.local.json +76 -76
  510. package/gemini/commands/BMad/agents/analyst.toml +6 -0
  511. package/gemini/commands/BMad/agents/architect.toml +6 -0
  512. package/gemini/commands/BMad/agents/bmad-master.toml +6 -0
  513. package/gemini/commands/BMad/agents/bmad-orchestrator.toml +6 -0
  514. package/gemini/commands/BMad/agents/dev.toml +6 -0
  515. package/gemini/commands/BMad/agents/pm.toml +6 -0
  516. package/gemini/commands/BMad/agents/po.toml +6 -0
  517. package/gemini/commands/BMad/agents/qa.toml +6 -0
  518. package/gemini/commands/BMad/agents/sm.toml +6 -0
  519. package/gemini/commands/BMad/agents/ux-expert.toml +6 -0
  520. package/gemini/commands/BMad/tasks/advanced-elicitation.toml +6 -0
  521. package/gemini/commands/BMad/tasks/apply-qa-fixes.toml +6 -0
  522. package/gemini/commands/BMad/tasks/brownfield-create-epic.toml +6 -0
  523. package/gemini/commands/BMad/tasks/brownfield-create-story.toml +6 -0
  524. package/gemini/commands/BMad/tasks/correct-course.toml +6 -0
  525. package/gemini/commands/BMad/tasks/create-brownfield-story.toml +6 -0
  526. package/gemini/commands/BMad/tasks/create-deep-research-prompt.toml +6 -0
  527. package/gemini/commands/BMad/tasks/create-doc.toml +6 -0
  528. package/gemini/commands/BMad/tasks/create-next-story.toml +6 -0
  529. package/gemini/commands/BMad/tasks/document-project.toml +6 -0
  530. package/gemini/commands/BMad/tasks/execute-checklist.toml +6 -0
  531. package/gemini/commands/BMad/tasks/facilitate-brainstorming-session.toml +6 -0
  532. package/gemini/commands/BMad/tasks/generate-ai-frontend-prompt.toml +6 -0
  533. package/gemini/commands/BMad/tasks/index-docs.toml +6 -0
  534. package/gemini/commands/BMad/tasks/kb-mode-interaction.toml +6 -0
  535. package/gemini/commands/BMad/tasks/nfr-assess.toml +6 -0
  536. package/gemini/commands/BMad/tasks/qa-gate.toml +6 -0
  537. package/gemini/commands/BMad/tasks/review-story.toml +6 -0
  538. package/gemini/commands/BMad/tasks/risk-profile.toml +6 -0
  539. package/gemini/commands/BMad/tasks/shard-doc.toml +6 -0
  540. package/gemini/commands/BMad/tasks/test-design.toml +6 -0
  541. package/gemini/commands/BMad/tasks/trace-requirements.toml +6 -0
  542. package/gemini/commands/BMad/tasks/validate-next-story.toml +6 -0
  543. package/github/workflows/publish.yml +150 -150
  544. package/index.js +9 -9
  545. package/mcp.json +14 -14
  546. package/package.json +41 -40
  547. package/resources/images/Siesa_Logosimbolo_Azul.svg +24 -24
  548. package/resources/images/Siesa_Logosimbolo_Blanco.svg +24 -24
  549. package/resources/images/Siesa_Simbolo_Azul.svg +14 -14
  550. package/resources/images/Siesa_Simbolo_Blanco.svg +14 -14
  551. package/vscode/mcp.json +15 -15
  552. package/vscode/settings.json +12 -12
@@ -1,1443 +1,1443 @@
1
- # Retrospective - Epic Completion Review Instructions
2
-
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>
8
-
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.
11
-
12
- FACILITATION NOTES:
13
-
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
20
-
21
- PARTY MODE PROTOCOL:
22
-
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>
29
-
30
- <workflow>
31
-
32
- <step n="1" goal="Epic Discovery - Find Completed Epic with Priority Logic">
33
-
34
- <action>Explain to {user_name} the epic discovery process using natural dialogue</action>
35
-
36
- <output>
37
- Bob (Scrum Master): "Welcome to the retrospective, {user_name}. Let me help you identify which epic we just completed. I'll check sprint-status first, but you're the ultimate authority on what we're reviewing today."
38
- </output>
39
-
40
- <action>PRIORITY 1: Check {sprint_status_file} first</action>
41
-
42
- <action>Load the FULL file: {sprint_status_file}</action>
43
- <action>Read ALL development_status entries</action>
44
- <action>Find the highest epic number with at least one story marked "done"</action>
45
- <action>Extract epic number from keys like "epic-X-retrospective" or story keys like "X-Y-story-name"</action>
46
- <action>Set {{detected_epic}} = highest epic number found with completed stories</action>
47
-
48
- <check if="{{detected_epic}} found">
49
- <action>Present finding to user with context</action>
50
-
51
- <output>
52
- Bob (Scrum Master): "Based on {sprint_status_file}, it looks like Epic {{detected_epic}} was recently completed. Is that the epic you want to review today, {user_name}?"
53
- </output>
54
-
55
- <action>WAIT for {user_name} to confirm or correct</action>
56
-
57
- <check if="{user_name} confirms">
58
- <action>Set {{epic_number}} = {{detected_epic}}</action>
59
- </check>
60
-
61
- <check if="{user_name} provides different epic number">
62
- <action>Set {{epic_number}} = user-provided number</action>
63
- <output>
64
- Bob (Scrum Master): "Got it, we're reviewing Epic {{epic_number}}. Let me gather that information."
65
- </output>
66
- </check>
67
- </check>
68
-
69
- <check if="{{detected_epic}} NOT found in sprint-status">
70
- <action>PRIORITY 2: Ask user directly</action>
71
-
72
- <output>
73
- Bob (Scrum Master): "I'm having trouble detecting the completed epic from {sprint_status_file}. {user_name}, which epic number did you just complete?"
74
- </output>
75
-
76
- <action>WAIT for {user_name} to provide epic number</action>
77
- <action>Set {{epic_number}} = user-provided number</action>
78
- </check>
79
-
80
- <check if="{{epic_number}} still not determined">
81
- <action>PRIORITY 3: Fallback to stories folder</action>
82
-
83
- <action>Scan {story_directory} for highest numbered story files</action>
84
- <action>Extract epic numbers from story filenames (pattern: epic-X-Y-story-name.md)</action>
85
- <action>Set {{detected_epic}} = highest epic number found</action>
86
-
87
- <output>
88
- Bob (Scrum Master): "I found stories for Epic {{detected_epic}} in the stories folder. Is that the epic we're reviewing, {user_name}?"
89
- </output>
90
-
91
- <action>WAIT for {user_name} to confirm or correct</action>
92
- <action>Set {{epic_number}} = confirmed number</action>
93
- </check>
94
-
95
- <action>Once {{epic_number}} is determined, verify epic completion status</action>
96
-
97
- <action>Find all stories for epic {{epic_number}} in {sprint_status_file}:
98
-
99
- - Look for keys starting with "{{epic_number}}-" (e.g., "1-1-", "1-2-", etc.)
100
- - Exclude epic key itself ("epic-{{epic_number}}")
101
- - Exclude retrospective key ("epic-{{epic_number}}-retrospective")
102
- </action>
103
-
104
- <action>Count total stories found for this epic</action>
105
- <action>Count stories with status = "done"</action>
106
- <action>Collect list of pending story keys (status != "done")</action>
107
- <action>Determine if complete: true if all stories are done, false otherwise</action>
108
-
109
- <check if="epic is not complete">
110
- <output>
111
- Alice (Product Owner): "Wait, Bob - I'm seeing that Epic {{epic_number}} isn't actually complete yet."
112
-
113
- Bob (Scrum Master): "Let me check... you're right, Alice."
114
-
115
- **Epic Status:**
116
-
117
- - Total Stories: {{total_stories}}
118
- - Completed (Done): {{done_stories}}
119
- - Pending: {{pending_count}}
120
-
121
- **Pending Stories:**
122
- {{pending_story_list}}
123
-
124
- Bob (Scrum Master): "{user_name}, we typically run retrospectives after all stories are done. What would you like to do?"
125
-
126
- **Options:**
127
-
128
- 1. Complete remaining stories before running retrospective (recommended)
129
- 2. Continue with partial retrospective (not ideal, but possible)
130
- 3. Run sprint-planning to refresh story tracking
131
- </output>
132
-
133
- <ask if="{{non_interactive}} == false">Continue with incomplete epic? (yes/no)</ask>
134
-
135
- <check if="user says no">
136
- <output>
137
- Bob (Scrum Master): "Smart call, {user_name}. Let's finish those stories first and then have a proper retrospective."
138
- </output>
139
- <action>HALT</action>
140
- </check>
141
-
142
- <action if="user says yes">Set {{partial_retrospective}} = true</action>
143
- <output>
144
- Charlie (Senior Dev): "Just so everyone knows, this partial retro might miss some important lessons from those pending stories."
145
-
146
- Bob (Scrum Master): "Good point, Charlie. {user_name}, we'll document what we can now, but we may want to revisit after everything's done."
147
- </output>
148
- </check>
149
-
150
- <check if="epic is complete">
151
- <output>
152
- Alice (Product Owner): "Excellent! All {{done_stories}} stories are marked done."
153
-
154
- Bob (Scrum Master): "Perfect. Epic {{epic_number}} is complete and ready for retrospective, {user_name}."
155
- </output>
156
- </check>
157
-
158
- </step>
159
-
160
- <step n="0.5" goal="Discover and load project documents">
161
- <invoke-protocol name="discover_inputs" />
162
- <note>After discovery, these content variables are available: {epics_content} (selective load for this epic), {architecture_content}, {prd_content}, {document_project_content}</note>
163
- </step>
164
-
165
- <step n="2" goal="Deep Story Analysis - Extract Lessons from Implementation">
166
-
167
- <output>
168
- Bob (Scrum Master): "Before we start the team discussion, let me review all the story records to surface key themes. This'll help us have a richer conversation."
169
-
170
- Charlie (Senior Dev): "Good idea - those dev notes always have gold in them."
171
- </output>
172
-
173
- <action>For each story in epic {{epic_number}}, read the complete story file from {story_directory}/{{epic_number}}-{{story_num}}-\*.md</action>
174
-
175
- <action>Extract and analyze from each story:</action>
176
-
177
- **Dev Notes and Struggles:**
178
-
179
- - Look for sections like "## Dev Notes", "## Implementation Notes", "## Challenges", "## Development Log"
180
- - Identify where developers struggled or made mistakes
181
- - Note unexpected complexity or gotchas discovered
182
- - Record technical decisions that didn't work out as planned
183
- - Track where estimates were way off (too high or too low)
184
-
185
- **Review Feedback Patterns:**
186
-
187
- - Look for "## Review", "## Code Review", "## SM Review", "## Scrum Master Review" sections
188
- - Identify recurring feedback themes across stories
189
- - Note which types of issues came up repeatedly
190
- - Track quality concerns or architectural misalignments
191
- - Document praise or exemplary work called out in reviews
192
-
193
- **Lessons Learned:**
194
-
195
- - Look for "## Lessons Learned", "## Retrospective Notes", "## Takeaways" sections within stories
196
- - Extract explicit lessons documented during development
197
- - Identify "aha moments" or breakthroughs
198
- - Note what would be done differently
199
- - Track successful experiments or approaches
200
-
201
- **Technical Debt Incurred:**
202
-
203
- - Look for "## Technical Debt", "## TODO", "## Known Issues", "## Future Work" sections
204
- - Document shortcuts taken and why
205
- - Track debt items that affect next epic
206
- - Note severity and priority of debt items
207
-
208
- **Testing and Quality Insights:**
209
-
210
- - Look for "## Testing", "## QA Notes", "## Test Results" sections
211
- - Note testing challenges or surprises
212
- - Track bug patterns or regression issues
213
- - Document test coverage gaps
214
-
215
- <action>Synthesize patterns across all stories:</action>
216
-
217
- **Common Struggles:**
218
-
219
- - Identify issues that appeared in 2+ stories (e.g., "3 out of 5 stories had API authentication issues")
220
- - Note areas where team consistently struggled
221
- - Track where complexity was underestimated
222
-
223
- **Recurring Review Feedback:**
224
-
225
- - Identify feedback themes (e.g., "Error handling was flagged in every review")
226
- - Note quality patterns (positive and negative)
227
- - Track areas where team improved over the course of epic
228
-
229
- **Breakthrough Moments:**
230
-
231
- - Document key discoveries (e.g., "Story 3 discovered the caching pattern we used for rest of epic")
232
- - Note when team velocity improved dramatically
233
- - Track innovative solutions worth repeating
234
-
235
- **Velocity Patterns:**
236
-
237
- - Calculate average completion time per story
238
- - Note velocity trends (e.g., "First 2 stories took 3x longer than estimated")
239
- - Identify which types of stories went faster/slower
240
-
241
- **Team Collaboration Highlights:**
242
-
243
- - Note moments of excellent collaboration mentioned in stories
244
- - Track where pair programming or mob programming was effective
245
- - Document effective problem-solving sessions
246
-
247
- <action>Store this synthesis - these patterns will drive the retrospective discussion</action>
248
-
249
- <output>
250
- Bob (Scrum Master): "Okay, I've reviewed all {{total_stories}} story records. I found some really interesting patterns we should discuss."
251
-
252
- Dana (QA Engineer): "I'm curious what you found, Bob. I noticed some things in my testing too."
253
-
254
- Bob (Scrum Master): "We'll get to all of it. But first, let me load the previous epic's retro to see if we learned from last time."
255
- </output>
256
-
257
- </step>
258
-
259
- <step n="3" goal="Load and Integrate Previous Epic Retrospective">
260
-
261
- <action>Calculate previous epic number: {{prev_epic_num}} = {{epic_number}} - 1</action>
262
-
263
- <check if="{{prev_epic_num}} >= 1">
264
- <action>Search for previous retrospective using pattern: {retrospectives_folder}/epic-{{prev_epic_num}}-retro-*.md</action>
265
-
266
- <check if="previous retro found">
267
- <output>
268
- Bob (Scrum Master): "I found our retrospective from Epic {{prev_epic_num}}. Let me see what we committed to back then..."
269
- </output>
270
-
271
- <action>Read the complete previous retrospective file</action>
272
-
273
- <action>Extract key elements:</action>
274
- - **Action items committed**: What did the team agree to improve?
275
- - **Lessons learned**: What insights were captured?
276
- - **Process improvements**: What changes were agreed upon?
277
- - **Technical debt flagged**: What debt was documented?
278
- - **Team agreements**: What commitments were made?
279
- - **Preparation tasks**: What was needed for this epic?
280
-
281
- <action>Cross-reference with current epic execution:</action>
282
-
283
- **Action Item Follow-Through:**
284
- - For each action item from Epic {{prev_epic_num}} retro, check if it was completed
285
- - Look for evidence in current epic's story records
286
- - Mark each action item: ✅ Completed, ⏳ In Progress, ❌ Not Addressed
287
-
288
- **Lessons Applied:**
289
- - For each lesson from Epic {{prev_epic_num}}, check if team applied it in Epic {{epic_number}}
290
- - Look for evidence in dev notes, review feedback, or outcomes
291
- - Document successes and missed opportunities
292
-
293
- **Process Improvements Effectiveness:**
294
- - For each process change agreed to in Epic {{prev_epic_num}}, assess if it helped
295
- - Did the change improve velocity, quality, or team satisfaction?
296
- - Should we keep, modify, or abandon the change?
297
-
298
- **Technical Debt Status:**
299
- - For each debt item from Epic {{prev_epic_num}}, check if it was addressed
300
- - Did unaddressed debt cause problems in Epic {{epic_number}}?
301
- - Did the debt grow or shrink?
302
-
303
- <action>Prepare "continuity insights" for the retrospective discussion</action>
304
-
305
- <action>Identify wins where previous lessons were applied successfully:</action>
306
- - Document specific examples of applied learnings
307
- - Note positive impact on Epic {{epic_number}} outcomes
308
- - Celebrate team growth and improvement
309
-
310
- <action>Identify missed opportunities where previous lessons were ignored:</action>
311
- - Document where team repeated previous mistakes
312
- - Note impact of not applying lessons (without blame)
313
- - Explore barriers that prevented application
314
-
315
- <output>
316
-
317
- Bob (Scrum Master): "Interesting... in Epic {{prev_epic_num}}'s retro, we committed to {{action_count}} action items."
318
-
319
- Alice (Product Owner): "How'd we do on those, Bob?"
320
-
321
- Bob (Scrum Master): "We completed {{completed_count}}, made progress on {{in_progress_count}}, but didn't address {{not_addressed_count}}."
322
-
323
- Charlie (Senior Dev): _looking concerned_ "Which ones didn't we address?"
324
-
325
- Bob (Scrum Master): "We'll discuss that in the retro. Some of them might explain challenges we had this epic."
326
-
327
- Elena (Junior Dev): "That's... actually pretty insightful."
328
-
329
- Bob (Scrum Master): "That's why we track this stuff. Pattern recognition helps us improve."
330
- </output>
331
-
332
- </check>
333
-
334
- <check if="no previous retro found">
335
- <output>
336
- Bob (Scrum Master): "I don't see a retrospective for Epic {{prev_epic_num}}. Either we skipped it, or this is your first retro."
337
-
338
- Alice (Product Owner): "Probably our first one. Good time to start the habit!"
339
- </output>
340
- <action>Set {{first_retrospective}} = true</action>
341
- </check>
342
- </check>
343
-
344
- <check if="{{prev_epic_num}} < 1">
345
- <output>
346
- Bob (Scrum Master): "This is Epic 1, so naturally there's no previous retro to reference. We're starting fresh!"
347
-
348
- Charlie (Senior Dev): "First epic, first retro. Let's make it count."
349
- </output>
350
- <action>Set {{first_retrospective}} = true</action>
351
- </check>
352
-
353
- </step>
354
-
355
- <step n="4" goal="Preview Next Epic with Change Detection">
356
-
357
- <action>Calculate next epic number: {{next_epic_num}} = {{epic_number}} + 1</action>
358
-
359
- <output>
360
- Bob (Scrum Master): "Before we dive into the discussion, let me take a quick look at Epic {{next_epic_num}} to understand what's coming."
361
-
362
- Alice (Product Owner): "Good thinking - helps us connect what we learned to what we're about to do."
363
- </output>
364
-
365
- <action>Attempt to load next epic using selective loading strategy:</action>
366
-
367
- **Try sharded first (more specific):**
368
- <action>Check if file exists: {planning_artifacts}/epic\*/epic-{{next_epic_num}}.md</action>
369
-
370
- <check if="sharded epic file found">
371
- <action>Load {planning_artifacts}/*epic*/epic-{{next_epic_num}}.md</action>
372
- <action>Set {{next_epic_source}} = "sharded"</action>
373
- </check>
374
-
375
- **Fallback to whole document:**
376
- <check if="sharded epic not found">
377
- <action>Check if file exists: {planning_artifacts}/epic\*.md</action>
378
-
379
- <check if="whole epic file found">
380
- <action>Load entire epics document</action>
381
- <action>Extract Epic {{next_epic_num}} section</action>
382
- <action>Set {{next_epic_source}} = "whole"</action>
383
- </check>
384
- </check>
385
-
386
- <check if="next epic found">
387
- <action>Analyze next epic for:</action>
388
- - Epic title and objectives
389
- - Planned stories and complexity estimates
390
- - Dependencies on Epic {{epic_number}} work
391
- - New technical requirements or capabilities needed
392
- - Potential risks or unknowns
393
- - Business goals and success criteria
394
-
395
- <action>Identify dependencies on completed work:</action>
396
-
397
- - What components from Epic {{epic_number}} does Epic {{next_epic_num}} rely on?
398
- - Are all prerequisites complete and stable?
399
- - Any incomplete work that creates blocking dependencies?
400
-
401
- <action>Note potential gaps or preparation needed:</action>
402
-
403
- - Technical setup required (infrastructure, tools, libraries)
404
- - Knowledge gaps to fill (research, training, spikes)
405
- - Refactoring needed before starting next epic
406
- - Documentation or specifications to create
407
-
408
- <action>Check for technical prerequisites:</action>
409
-
410
- - APIs or integrations that must be ready
411
- - Data migrations or schema changes needed
412
- - Testing infrastructure requirements
413
- - Deployment or environment setup
414
-
415
- <output>
416
- Bob (Scrum Master): "Alright, I've reviewed Epic {{next_epic_num}}: '{{next_epic_title}}'"
417
-
418
- Alice (Product Owner): "What are we looking at?"
419
-
420
- Bob (Scrum Master): "{{next_epic_num}} stories planned, building on the {{dependency_description}} from Epic {{epic_number}}."
421
-
422
- Charlie (Senior Dev): "Dependencies concern me. Did we finish everything we need for that?"
423
-
424
- Bob (Scrum Master): "Good question - that's exactly what we need to explore in this retro."
425
- </output>
426
-
427
- <action>Set {{next_epic_exists}} = true</action>
428
- </check>
429
-
430
- <check if="next epic NOT found">
431
- <output>
432
- Bob (Scrum Master): "Hmm, I don't see Epic {{next_epic_num}} defined yet."
433
-
434
- Alice (Product Owner): "We might be at the end of the roadmap, or we haven't planned that far ahead yet."
435
-
436
- Bob (Scrum Master): "No problem. We'll still do a thorough retro on Epic {{epic_number}}. The lessons will be valuable whenever we plan the next work."
437
- </output>
438
-
439
- <action>Set {{next_epic_exists}} = false</action>
440
- </check>
441
-
442
- </step>
443
-
444
- <step n="5" goal="Initialize Retrospective with Rich Context">
445
-
446
- <action>Load agent configurations from {agent_manifest}</action>
447
- <action>Identify which agents participated in Epic {{epic_number}} based on story records</action>
448
- <action>Ensure key roles present: Product Owner, Scrum Master (facilitating), Devs, Testing/QA, Architect</action>
449
-
450
- <output>
451
- Bob (Scrum Master): "Alright team, everyone's here. Let me set the stage for our retrospective."
452
-
453
- ═══════════════════════════════════════════════════════════
454
- 🔄 TEAM RETROSPECTIVE - Epic {{epic_number}}: {{epic_title}}
455
- ═══════════════════════════════════════════════════════════
456
-
457
- Bob (Scrum Master): "Here's what we accomplished together."
458
-
459
- **EPIC {{epic_number}} SUMMARY:**
460
-
461
- Delivery Metrics:
462
-
463
- - Completed: {{completed_stories}}/{{total_stories}} stories ({{completion_percentage}}%)
464
- - Velocity: {{actual_points}} story points{{#if planned_points}} (planned: {{planned_points}}){{/if}}
465
- - Duration: {{actual_sprints}} sprints{{#if planned_sprints}} (planned: {{planned_sprints}}){{/if}}
466
- - Average velocity: {{points_per_sprint}} points/sprint
467
-
468
- Quality and Technical:
469
-
470
- - Blockers encountered: {{blocker_count}}
471
- - Technical debt items: {{debt_count}}
472
- - Test coverage: {{coverage_info}}
473
- - Production incidents: {{incident_count}}
474
-
475
- Business Outcomes:
476
-
477
- - Goals achieved: {{goals_met}}/{{total_goals}}
478
- - Success criteria: {{criteria_status}}
479
- - Stakeholder feedback: {{feedback_summary}}
480
-
481
- Alice (Product Owner): "Those numbers tell a good story. {{completion_percentage}}% completion is {{#if completion_percentage >= 90}}excellent{{else}}something we should discuss{{/if}}."
482
-
483
- Charlie (Senior Dev): "I'm more interested in that technical debt number - {{debt_count}} items is {{#if debt_count > 10}}concerning{{else}}manageable{{/if}}."
484
-
485
- Dana (QA Engineer): "{{incident_count}} production incidents - {{#if incident_count == 0}}clean epic!{{else}}we should talk about those{{/if}}."
486
-
487
- {{#if next_epic_exists}}
488
- ═══════════════════════════════════════════════════════════
489
- **NEXT EPIC PREVIEW:** Epic {{next_epic_num}}: {{next_epic_title}}
490
- ═══════════════════════════════════════════════════════════
491
-
492
- Dependencies on Epic {{epic_number}}:
493
- {{list_dependencies}}
494
-
495
- Preparation Needed:
496
- {{list_preparation_gaps}}
497
-
498
- Technical Prerequisites:
499
- {{list_technical_prereqs}}
500
-
501
- Bob (Scrum Master): "And here's what's coming next. Epic {{next_epic_num}} builds on what we just finished."
502
-
503
- Elena (Junior Dev): "Wow, that's a lot of dependencies on our work."
504
-
505
- Charlie (Senior Dev): "Which means we better make sure Epic {{epic_number}} is actually solid before moving on."
506
- {{/if}}
507
-
508
- ═══════════════════════════════════════════════════════════
509
-
510
- Bob (Scrum Master): "Team assembled for this retrospective:"
511
-
512
- {{list_participating_agents}}
513
-
514
- Bob (Scrum Master): "{user_name}, you're joining us as Project Lead. Your perspective is crucial here."
515
-
516
- {user_name} (Project Lead): [Participating in the retrospective]
517
-
518
- Bob (Scrum Master): "Our focus today:"
519
-
520
- 1. Learning from Epic {{epic_number}} execution
521
- {{#if next_epic_exists}}2. Preparing for Epic {{next_epic_num}} success{{/if}}
522
-
523
- Bob (Scrum Master): "Ground rules: psychological safety first. No blame, no judgment. We focus on systems and processes, not individuals. Everyone's voice matters. Specific examples are better than generalizations."
524
-
525
- Alice (Product Owner): "And everything shared here stays in this room - unless we decide together to escalate something."
526
-
527
- Bob (Scrum Master): "Exactly. {user_name}, any questions before we dive in?"
528
- </output>
529
-
530
- <action>WAIT for {user_name} to respond or indicate readiness</action>
531
-
532
- </step>
533
-
534
- <step n="6" goal="Epic Review Discussion - What Went Well, What Didn't">
535
-
536
- <output>
537
- Bob (Scrum Master): "Let's start with the good stuff. What went well in Epic {{epic_number}}?"
538
-
539
- Bob (Scrum Master): _pauses, creating space_
540
-
541
- Alice (Product Owner): "I'll start. The user authentication flow we delivered exceeded my expectations. The UX is smooth, and early user feedback has been really positive."
542
-
543
- Charlie (Senior Dev): "I'll add to that - the caching strategy we implemented in Story {{breakthrough_story_num}} was a game-changer. We cut API calls by 60% and it set the pattern for the rest of the epic."
544
-
545
- Dana (QA Engineer): "From my side, testing went smoother than usual. The dev team's documentation was way better this epic - actually usable test plans!"
546
-
547
- Elena (Junior Dev): _smiling_ "That's because Charlie made me document everything after Story 1's code review!"
548
-
549
- Charlie (Senior Dev): _laughing_ "Tough love pays off."
550
- </output>
551
-
552
- <action>Bob (Scrum Master) naturally turns to {user_name} to engage them in the discussion</action>
553
-
554
- <output>
555
- Bob (Scrum Master): "{user_name}, what stood out to you as going well in this epic?"
556
- </output>
557
-
558
- <action>WAIT for {user_name} to respond - this is a KEY USER INTERACTION moment</action>
559
-
560
- <action>After {user_name} responds, have 1-2 team members react to or build on what {user_name} shared</action>
561
-
562
- <output>
563
- Alice (Product Owner): [Responds naturally to what {user_name} said, either agreeing, adding context, or offering a different perspective]
564
-
565
- Charlie (Senior Dev): [Builds on the discussion, perhaps adding technical details or connecting to specific stories]
566
- </output>
567
-
568
- <action>Continue facilitating natural dialogue, periodically bringing {user_name} back into the conversation</action>
569
-
570
- <action>After covering successes, guide the transition to challenges with care</action>
571
-
572
- <output>
573
- Bob (Scrum Master): "Okay, we've celebrated some real wins. Now let's talk about challenges - where did we struggle? What slowed us down?"
574
-
575
- Bob (Scrum Master): _creates safe space with tone and pacing_
576
-
577
- Elena (Junior Dev): _hesitates_ "Well... I really struggled with the database migrations in Story {{difficult_story_num}}. The documentation wasn't clear, and I had to redo it three times. Lost almost a full sprint on that story alone."
578
-
579
- Charlie (Senior Dev): _defensive_ "Hold on - I wrote those migration docs, and they were perfectly clear. The issue was that the requirements kept changing mid-story!"
580
-
581
- Alice (Product Owner): _frustrated_ "That's not fair, Charlie. We only clarified requirements once, and that was because the technical team didn't ask the right questions during planning!"
582
-
583
- Charlie (Senior Dev): _heat rising_ "We asked plenty of questions! You said the schema was finalized, then two days into development you wanted to add three new fields!"
584
-
585
- Bob (Scrum Master): _intervening calmly_ "Let's take a breath here. This is exactly the kind of thing we need to unpack."
586
-
587
- Bob (Scrum Master): "Elena, you spent almost a full sprint on Story {{difficult_story_num}}. Charlie, you're saying requirements changed. Alice, you feel the right questions weren't asked up front."
588
-
589
- Bob (Scrum Master): "{user_name}, you have visibility across the whole project. What's your take on this situation?"
590
- </output>
591
-
592
- <action>WAIT for {user_name} to respond and help facilitate the conflict resolution</action>
593
-
594
- <action>Use {user_name}'s response to guide the discussion toward systemic understanding rather than blame</action>
595
-
596
- <output>
597
- Bob (Scrum Master): [Synthesizes {user_name}'s input with what the team shared] "So it sounds like the core issue was {{root_cause_based_on_discussion}}, not any individual person's fault."
598
-
599
- Elena (Junior Dev): "That makes sense. If we'd had {{preventive_measure}}, I probably could have avoided those redos."
600
-
601
- Charlie (Senior Dev): _softening_ "Yeah, and I could have been clearer about assumptions in the docs. Sorry for getting defensive, Alice."
602
-
603
- Alice (Product Owner): "I appreciate that. I could've been more proactive about flagging the schema additions earlier, too."
604
-
605
- Bob (Scrum Master): "This is good. We're identifying systemic improvements, not assigning blame."
606
- </output>
607
-
608
- <action>Continue the discussion, weaving in patterns discovered from the deep story analysis (Step 2)</action>
609
-
610
- <output>
611
- Bob (Scrum Master): "Speaking of patterns, I noticed something when reviewing all the story records..."
612
-
613
- Bob (Scrum Master): "{{pattern_1_description}} - this showed up in {{pattern_1_count}} out of {{total_stories}} stories."
614
-
615
- Dana (QA Engineer): "Oh wow, I didn't realize it was that widespread."
616
-
617
- Bob (Scrum Master): "Yeah. And there's more - {{pattern_2_description}} came up in almost every code review."
618
-
619
- Charlie (Senior Dev): "That's... actually embarrassing. We should've caught that pattern earlier."
620
-
621
- Bob (Scrum Master): "No shame, Charlie. Now we know, and we can improve. {user_name}, did you notice these patterns during the epic?"
622
- </output>
623
-
624
- <action>WAIT for {user_name} to share their observations</action>
625
-
626
- <action>Continue the retrospective discussion, creating moments where:</action>
627
-
628
- - Team members ask {user_name} questions directly
629
- - {user_name}'s input shifts the discussion direction
630
- - Disagreements arise naturally and get resolved
631
- - Quieter team members are invited to contribute
632
- - Specific stories are referenced with real examples
633
- - Emotions are authentic (frustration, pride, concern, hope)
634
-
635
- <check if="previous retrospective exists">
636
- <output>
637
- Bob (Scrum Master): "Before we move on, I want to circle back to Epic {{prev_epic_num}}'s retrospective."
638
-
639
- Bob (Scrum Master): "We made some commitments in that retro. Let's see how we did."
640
-
641
- Bob (Scrum Master): "Action item 1: {{prev_action_1}}. Status: {{prev_action_1_status}}"
642
-
643
- Alice (Product Owner): {{#if prev_action_1_status == "completed"}}"We nailed that one!"{{else}}"We... didn't do that one."{{/if}}
644
-
645
- Charlie (Senior Dev): {{#if prev_action_1_status == "completed"}}"And it helped! I noticed {{evidence_of_impact}}"{{else}}"Yeah, and I think that's why we had {{consequence_of_not_doing_it}} this epic."{{/if}}
646
-
647
- Bob (Scrum Master): "Action item 2: {{prev_action_2}}. Status: {{prev_action_2_status}}"
648
-
649
- Dana (QA Engineer): {{#if prev_action_2_status == "completed"}}"This one made testing so much easier this time."{{else}}"If we'd done this, I think testing would've gone faster."{{/if}}
650
-
651
- Bob (Scrum Master): "{user_name}, looking at what we committed to last time and what we actually did - what's your reaction?"
652
- </output>
653
-
654
- <action>WAIT for {user_name} to respond</action>
655
-
656
- <action>Use the previous retro follow-through as a learning moment about commitment and accountability</action>
657
- </check>
658
-
659
- <output>
660
- Bob (Scrum Master): "Alright, we've covered a lot of ground. Let me summarize what I'm hearing..."
661
-
662
- Bob (Scrum Master): "**Successes:**"
663
- {{list_success_themes}}
664
-
665
- Bob (Scrum Master): "**Challenges:**"
666
- {{list_challenge_themes}}
667
-
668
- Bob (Scrum Master): "**Key Insights:**"
669
- {{list_insight_themes}}
670
-
671
- Bob (Scrum Master): "Does that capture it? Anyone have something important we missed?"
672
- </output>
673
-
674
- <action>Allow team members to add any final thoughts on the epic review</action>
675
- <action>Ensure {user_name} has opportunity to add their perspective</action>
676
-
677
- </step>
678
-
679
- <step n="7" goal="Next Epic Preparation Discussion - Interactive and Collaborative">
680
-
681
- <check if="{{next_epic_exists}} == false">
682
- <output>
683
- Bob (Scrum Master): "Normally we'd discuss preparing for the next epic, but since Epic {{next_epic_num}} isn't defined yet, let's skip to action items."
684
- </output>
685
- <action>Skip to Step 8</action>
686
- </check>
687
-
688
- <output>
689
- Bob (Scrum Master): "Now let's shift gears. Epic {{next_epic_num}} is coming up: '{{next_epic_title}}'"
690
-
691
- Bob (Scrum Master): "The question is: are we ready? What do we need to prepare?"
692
-
693
- Alice (Product Owner): "From my perspective, we need to make sure {{dependency_concern_1}} from Epic {{epic_number}} is solid before we start building on it."
694
-
695
- Charlie (Senior Dev): _concerned_ "I'm worried about {{technical_concern_1}}. We have {{technical_debt_item}} from this epic that'll blow up if we don't address it before Epic {{next_epic_num}}."
696
-
697
- Dana (QA Engineer): "And I need {{testing_infrastructure_need}} in place, or we're going to have the same testing bottleneck we had in Story {{bottleneck_story_num}}."
698
-
699
- Elena (Junior Dev): "I'm less worried about infrastructure and more about knowledge. I don't understand {{knowledge_gap}} well enough to work on Epic {{next_epic_num}}'s stories."
700
-
701
- Bob (Scrum Master): "{user_name}, the team is surfacing some real concerns here. What's your sense of our readiness?"
702
- </output>
703
-
704
- <action>WAIT for {user_name} to share their assessment</action>
705
-
706
- <action>Use {user_name}'s input to guide deeper exploration of preparation needs</action>
707
-
708
- <output>
709
- Alice (Product Owner): [Reacts to what {user_name} said] "I agree with {user_name} about {{point_of_agreement}}, but I'm still worried about {{lingering_concern}}."
710
-
711
- Charlie (Senior Dev): "Here's what I think we need technically before Epic {{next_epic_num}} can start..."
712
-
713
- Charlie (Senior Dev): "1. {{tech_prep_item_1}} - estimated {{hours_1}} hours"
714
- Charlie (Senior Dev): "2. {{tech_prep_item_2}} - estimated {{hours_2}} hours"
715
- Charlie (Senior Dev): "3. {{tech_prep_item_3}} - estimated {{hours_3}} hours"
716
-
717
- Elena (Junior Dev): "That's like {{total_hours}} hours! That's a full sprint of prep work!"
718
-
719
- Charlie (Senior Dev): "Exactly. We can't just jump into Epic {{next_epic_num}} on Monday."
720
-
721
- Alice (Product Owner): _frustrated_ "But we have stakeholder pressure to keep shipping features. They're not going to be happy about a 'prep sprint.'"
722
-
723
- Bob (Scrum Master): "Let's think about this differently. What happens if we DON'T do this prep work?"
724
-
725
- Dana (QA Engineer): "We'll hit blockers in the middle of Epic {{next_epic_num}}, velocity will tank, and we'll ship late anyway."
726
-
727
- Charlie (Senior Dev): "Worse - we'll ship something built on top of {{technical_concern_1}}, and it'll be fragile."
728
-
729
- Bob (Scrum Master): "{user_name}, you're balancing stakeholder pressure against technical reality. How do you want to handle this?"
730
- </output>
731
-
732
- <action>WAIT for {user_name} to provide direction on preparation approach</action>
733
-
734
- <action>Create space for debate and disagreement about priorities</action>
735
-
736
- <output>
737
- Alice (Product Owner): [Potentially disagrees with {user_name}'s approach] "I hear what you're saying, {user_name}, but from a business perspective, {{business_concern}}."
738
-
739
- Charlie (Senior Dev): [Potentially supports or challenges Alice's point] "The business perspective is valid, but {{technical_counter_argument}}."
740
-
741
- Bob (Scrum Master): "We have healthy tension here between business needs and technical reality. That's good - it means we're being honest."
742
-
743
- Bob (Scrum Master): "Let's explore a middle ground. Charlie, which of your prep items are absolutely critical vs. nice-to-have?"
744
-
745
- Charlie (Senior Dev): "{{critical_prep_item_1}} and {{critical_prep_item_2}} are non-negotiable. {{nice_to_have_prep_item}} can wait."
746
-
747
- Alice (Product Owner): "And can any of the critical prep happen in parallel with starting Epic {{next_epic_num}}?"
748
-
749
- Charlie (Senior Dev): _thinking_ "Maybe. If we tackle {{first_critical_item}} before the epic starts, we could do {{second_critical_item}} during the first sprint."
750
-
751
- Dana (QA Engineer): "But that means Story 1 of Epic {{next_epic_num}} can't depend on {{second_critical_item}}."
752
-
753
- Alice (Product Owner): _looking at epic plan_ "Actually, Stories 1 and 2 are about {{independent_work}}, so they don't depend on it. We could make that work."
754
-
755
- Bob (Scrum Master): "{user_name}, the team is finding a workable compromise here. Does this approach make sense to you?"
756
- </output>
757
-
758
- <action>WAIT for {user_name} to validate or adjust the preparation strategy</action>
759
-
760
- <action>Continue working through preparation needs across all dimensions:</action>
761
-
762
- - Dependencies on Epic {{epic_number}} work
763
- - Technical setup and infrastructure
764
- - Knowledge gaps and research needs
765
- - Documentation or specification work
766
- - Testing infrastructure
767
- - Refactoring or debt reduction
768
- - External dependencies (APIs, integrations, etc.)
769
-
770
- <action>For each preparation area, facilitate team discussion that:</action>
771
-
772
- - Identifies specific needs with concrete examples
773
- - Estimates effort realistically based on Epic {{epic_number}} experience
774
- - Assigns ownership to specific agents
775
- - Determines criticality and timing
776
- - Surfaces risks of NOT doing the preparation
777
- - Explores parallel work opportunities
778
- - Brings {user_name} in for key decisions
779
-
780
- <output>
781
- Bob (Scrum Master): "I'm hearing a clear picture of what we need before Epic {{next_epic_num}}. Let me summarize..."
782
-
783
- **CRITICAL PREPARATION (Must complete before epic starts):**
784
- {{list_critical_prep_items_with_owners_and_estimates}}
785
-
786
- **PARALLEL PREPARATION (Can happen during early stories):**
787
- {{list_parallel_prep_items_with_owners_and_estimates}}
788
-
789
- **NICE-TO-HAVE PREPARATION (Would help but not blocking):**
790
- {{list_nice_to_have_prep_items}}
791
-
792
- Bob (Scrum Master): "Total critical prep effort: {{critical_hours}} hours ({{critical_days}} days)"
793
-
794
- Alice (Product Owner): "That's manageable. We can communicate that to stakeholders."
795
-
796
- Bob (Scrum Master): "{user_name}, does this preparation plan work for you?"
797
- </output>
798
-
799
- <action>WAIT for {user_name} final validation of preparation plan</action>
800
-
801
- </step>
802
-
803
- <step n="8" goal="Synthesize Action Items with Significant Change Detection">
804
-
805
- <output>
806
- Bob (Scrum Master): "Let's capture concrete action items from everything we've discussed."
807
-
808
- Bob (Scrum Master): "I want specific, achievable actions with clear owners. Not vague aspirations."
809
- </output>
810
-
811
- <action>Synthesize themes from Epic {{epic_number}} review discussion into actionable improvements</action>
812
-
813
- <action>Create specific action items with:</action>
814
-
815
- - Clear description of the action
816
- - Assigned owner (specific agent or role)
817
- - Timeline or deadline
818
- - Success criteria (how we'll know it's done)
819
- - Category (process, technical, documentation, team, etc.)
820
-
821
- <action>Ensure action items are SMART:</action>
822
-
823
- - Specific: Clear and unambiguous
824
- - Measurable: Can verify completion
825
- - Achievable: Realistic given constraints
826
- - Relevant: Addresses real issues from retro
827
- - Time-bound: Has clear deadline
828
-
829
- <output>
830
- Bob (Scrum Master): "Based on our discussion, here are the action items I'm proposing..."
831
-
832
- ═══════════════════════════════════════════════════════════
833
- 📝 EPIC {{epic_number}} ACTION ITEMS:
834
- ═══════════════════════════════════════════════════════════
835
-
836
- **Process Improvements:**
837
-
838
- 1. {{action_item_1}}
839
- Owner: {{agent_1}}
840
- Deadline: {{timeline_1}}
841
- Success criteria: {{criteria_1}}
842
-
843
- 2. {{action_item_2}}
844
- Owner: {{agent_2}}
845
- Deadline: {{timeline_2}}
846
- Success criteria: {{criteria_2}}
847
-
848
- Charlie (Senior Dev): "I can own action item 1, but {{timeline_1}} is tight. Can we push it to {{alternative_timeline}}?"
849
-
850
- Bob (Scrum Master): "What do others think? Does that timing still work?"
851
-
852
- Alice (Product Owner): "{{alternative_timeline}} works for me, as long as it's done before Epic {{next_epic_num}} starts."
853
-
854
- Bob (Scrum Master): "Agreed. Updated to {{alternative_timeline}}."
855
-
856
- **Technical Debt:**
857
-
858
- 1. {{debt_item_1}}
859
- Owner: {{agent_3}}
860
- Priority: {{priority_1}}
861
- Estimated effort: {{effort_1}}
862
-
863
- 2. {{debt_item_2}}
864
- Owner: {{agent_4}}
865
- Priority: {{priority_2}}
866
- Estimated effort: {{effort_2}}
867
-
868
- Dana (QA Engineer): "For debt item 1, can we prioritize that as high? It caused testing issues in three different stories."
869
-
870
- Charlie (Senior Dev): "I marked it medium because {{reasoning}}, but I hear your point."
871
-
872
- Bob (Scrum Master): "{user_name}, this is a priority call. Testing impact vs. {{reasoning}} - how do you want to prioritize it?"
873
- </output>
874
-
875
- <action>WAIT for {user_name} to help resolve priority discussions</action>
876
-
877
- <output>
878
- **Documentation:**
879
- 1. {{doc_need_1}}
880
- Owner: {{agent_5}}
881
- Deadline: {{timeline_3}}
882
-
883
- 2. {{doc_need_2}}
884
- Owner: {{agent_6}}
885
- Deadline: {{timeline_4}}
886
-
887
- **Team Agreements:**
888
-
889
- - {{agreement_1}}
890
- - {{agreement_2}}
891
- - {{agreement_3}}
892
-
893
- Bob (Scrum Master): "These agreements are how we're committing to work differently going forward."
894
-
895
- Elena (Junior Dev): "I like agreement 2 - that would've saved me on Story {{difficult_story_num}}."
896
-
897
- ═══════════════════════════════════════════════════════════
898
- 🚀 EPIC {{next_epic_num}} PREPARATION TASKS:
899
- ═══════════════════════════════════════════════════════════
900
-
901
- **Technical Setup:**
902
- [ ] {{setup_task_1}}
903
- Owner: {{owner_1}}
904
- Estimated: {{est_1}}
905
-
906
- [ ] {{setup_task_2}}
907
- Owner: {{owner_2}}
908
- Estimated: {{est_2}}
909
-
910
- **Knowledge Development:**
911
- [ ] {{research_task_1}}
912
- Owner: {{owner_3}}
913
- Estimated: {{est_3}}
914
-
915
- **Cleanup/Refactoring:**
916
- [ ] {{refactor_task_1}}
917
- Owner: {{owner_4}}
918
- Estimated: {{est_4}}
919
-
920
- **Total Estimated Effort:** {{total_hours}} hours ({{total_days}} days)
921
-
922
- ═══════════════════════════════════════════════════════════
923
- ⚠️ CRITICAL PATH:
924
- ═══════════════════════════════════════════════════════════
925
-
926
- **Blockers to Resolve Before Epic {{next_epic_num}}:**
927
-
928
- 1. {{critical_item_1}}
929
- Owner: {{critical_owner_1}}
930
- Must complete by: {{critical_deadline_1}}
931
-
932
- 2. {{critical_item_2}}
933
- Owner: {{critical_owner_2}}
934
- Must complete by: {{critical_deadline_2}}
935
- </output>
936
-
937
- <action>CRITICAL ANALYSIS - Detect if discoveries require epic updates</action>
938
-
939
- <action>Check if any of the following are true based on retrospective discussion:</action>
940
-
941
- - Architectural assumptions from planning proven wrong during Epic {{epic_number}}
942
- - Major scope changes or descoping occurred that affects next epic
943
- - Technical approach needs fundamental change for Epic {{next_epic_num}}
944
- - Dependencies discovered that Epic {{next_epic_num}} doesn't account for
945
- - User needs significantly different than originally understood
946
- - Performance/scalability concerns that affect Epic {{next_epic_num}} design
947
- - Security or compliance issues discovered that change approach
948
- - Integration assumptions proven incorrect
949
- - Team capacity or skill gaps more severe than planned
950
- - Technical debt level unsustainable without intervention
951
-
952
- <check if="significant discoveries detected">
953
- <output>
954
-
955
- ═══════════════════════════════════════════════════════════
956
- 🚨 SIGNIFICANT DISCOVERY ALERT 🚨
957
- ═══════════════════════════════════════════════════════════
958
-
959
- Bob (Scrum Master): "{user_name}, we need to flag something important."
960
-
961
- Bob (Scrum Master): "During Epic {{epic_number}}, the team uncovered findings that may require updating the plan for Epic {{next_epic_num}}."
962
-
963
- **Significant Changes Identified:**
964
-
965
- 1. {{significant_change_1}}
966
- Impact: {{impact_description_1}}
967
-
968
- 2. {{significant_change_2}}
969
- Impact: {{impact_description_2}}
970
-
971
- {{#if significant_change_3}} 3. {{significant_change_3}}
972
- Impact: {{impact_description_3}}
973
- {{/if}}
974
-
975
- Charlie (Senior Dev): "Yeah, when we discovered {{technical_discovery}}, it fundamentally changed our understanding of {{affected_area}}."
976
-
977
- Alice (Product Owner): "And from a product perspective, {{product_discovery}} means Epic {{next_epic_num}}'s stories are based on wrong assumptions."
978
-
979
- Dana (QA Engineer): "If we start Epic {{next_epic_num}} as-is, we're going to hit walls fast."
980
-
981
- **Impact on Epic {{next_epic_num}}:**
982
-
983
- The current plan for Epic {{next_epic_num}} assumes:
984
-
985
- - {{wrong_assumption_1}}
986
- - {{wrong_assumption_2}}
987
-
988
- But Epic {{epic_number}} revealed:
989
-
990
- - {{actual_reality_1}}
991
- - {{actual_reality_2}}
992
-
993
- This means Epic {{next_epic_num}} likely needs:
994
- {{list_likely_changes_needed}}
995
-
996
- **RECOMMENDED ACTIONS:**
997
-
998
- 1. Review and update Epic {{next_epic_num}} definition based on new learnings
999
- 2. Update affected stories in Epic {{next_epic_num}} to reflect reality
1000
- 3. Consider updating architecture or technical specifications if applicable
1001
- 4. Hold alignment session with Product Owner before starting Epic {{next_epic_num}}
1002
- {{#if prd_update_needed}}5. Update PRD sections affected by new understanding{{/if}}
1003
-
1004
- Bob (Scrum Master): "**Epic Update Required**: YES - Schedule epic planning review session"
1005
-
1006
- Bob (Scrum Master): "{user_name}, this is significant. We need to address this before committing to Epic {{next_epic_num}}'s current plan. How do you want to handle it?"
1007
- </output>
1008
-
1009
- <action>WAIT for {user_name} to decide on how to handle the significant changes</action>
1010
-
1011
- <action>Add epic review session to critical path if user agrees</action>
1012
-
1013
- <output>
1014
- Alice (Product Owner): "I agree with {user_name}'s approach. Better to adjust the plan now than fail mid-epic."
1015
-
1016
- Charlie (Senior Dev): "This is why retrospectives matter. We caught this before it became a disaster."
1017
-
1018
- Bob (Scrum Master): "Adding to critical path: Epic {{next_epic_num}} planning review session before epic kickoff."
1019
- </output>
1020
- </check>
1021
-
1022
- <check if="no significant discoveries">
1023
- <output>
1024
- Bob (Scrum Master): "Good news - nothing from Epic {{epic_number}} fundamentally changes our plan for Epic {{next_epic_num}}. The plan is still sound."
1025
-
1026
- Alice (Product Owner): "We learned a lot, but the direction is right."
1027
- </output>
1028
- </check>
1029
-
1030
- <output>
1031
- Bob (Scrum Master): "Let me show you the complete action plan..."
1032
-
1033
- Bob (Scrum Master): "That's {{total_action_count}} action items, {{prep_task_count}} preparation tasks, and {{critical_count}} critical path items."
1034
-
1035
- Bob (Scrum Master): "Everyone clear on what they own?"
1036
- </output>
1037
-
1038
- <action>Give each agent with assignments a moment to acknowledge their ownership</action>
1039
-
1040
- <action>Ensure {user_name} approves the complete action plan</action>
1041
-
1042
- </step>
1043
-
1044
- <step n="9" goal="Critical Readiness Exploration - Interactive Deep Dive">
1045
-
1046
- <output>
1047
- Bob (Scrum Master): "Before we close, I want to do a final readiness check."
1048
-
1049
- Bob (Scrum Master): "Epic {{epic_number}} is marked complete in sprint-status, but is it REALLY done?"
1050
-
1051
- Alice (Product Owner): "What do you mean, Bob?"
1052
-
1053
- Bob (Scrum Master): "I mean truly production-ready, stakeholders happy, no loose ends that'll bite us later."
1054
-
1055
- Bob (Scrum Master): "{user_name}, let's walk through this together."
1056
- </output>
1057
-
1058
- <action>Explore testing and quality state through natural conversation</action>
1059
-
1060
- <output>
1061
- Bob (Scrum Master): "{user_name}, tell me about the testing for Epic {{epic_number}}. What verification has been done?"
1062
- </output>
1063
-
1064
- <action>WAIT for {user_name} to describe testing status</action>
1065
-
1066
- <output>
1067
- Dana (QA Engineer): [Responds to what {user_name} shared] "I can add to that - {{additional_testing_context}}."
1068
-
1069
- Dana (QA Engineer): "But honestly, {{testing_concern_if_any}}."
1070
-
1071
- Bob (Scrum Master): "{user_name}, are you confident Epic {{epic_number}} is production-ready from a quality perspective?"
1072
- </output>
1073
-
1074
- <action>WAIT for {user_name} to assess quality readiness</action>
1075
-
1076
- <check if="{user_name} expresses concerns">
1077
- <output>
1078
- Bob (Scrum Master): "Okay, let's capture that. What specific testing is still needed?"
1079
-
1080
- Dana (QA Engineer): "I can handle {{testing_work_needed}}, estimated {{testing_hours}} hours."
1081
-
1082
- Bob (Scrum Master): "Adding to critical path: Complete {{testing_work_needed}} before Epic {{next_epic_num}}."
1083
- </output>
1084
- <action>Add testing completion to critical path</action>
1085
- </check>
1086
-
1087
- <action>Explore deployment and release status</action>
1088
-
1089
- <output>
1090
- Bob (Scrum Master): "{user_name}, what's the deployment status for Epic {{epic_number}}? Is it live in production, scheduled for deployment, or still pending?"
1091
- </output>
1092
-
1093
- <action>WAIT for {user_name} to provide deployment status</action>
1094
-
1095
- <check if="not yet deployed">
1096
- <output>
1097
- Charlie (Senior Dev): "If it's not deployed yet, we need to factor that into Epic {{next_epic_num}} timing."
1098
-
1099
- Bob (Scrum Master): "{user_name}, when is deployment planned? Does that timing work for starting Epic {{next_epic_num}}?"
1100
- </output>
1101
-
1102
- <action>WAIT for {user_name} to clarify deployment timeline</action>
1103
-
1104
- <action>Add deployment milestone to critical path with agreed timeline</action>
1105
- </check>
1106
-
1107
- <action>Explore stakeholder acceptance</action>
1108
-
1109
- <output>
1110
- Bob (Scrum Master): "{user_name}, have stakeholders seen and accepted the Epic {{epic_number}} deliverables?"
1111
-
1112
- Alice (Product Owner): "This is important - I've seen 'done' epics get rejected by stakeholders and force rework."
1113
-
1114
- Bob (Scrum Master): "{user_name}, any feedback from stakeholders still pending?"
1115
- </output>
1116
-
1117
- <action>WAIT for {user_name} to describe stakeholder acceptance status</action>
1118
-
1119
- <check if="acceptance incomplete or feedback pending">
1120
- <output>
1121
- Alice (Product Owner): "We should get formal acceptance before moving on. Otherwise Epic {{next_epic_num}} might get interrupted by rework."
1122
-
1123
- Bob (Scrum Master): "{user_name}, how do you want to handle stakeholder acceptance? Should we make it a critical path item?"
1124
- </output>
1125
-
1126
- <action>WAIT for {user_name} decision</action>
1127
-
1128
- <action>Add stakeholder acceptance to critical path if user agrees</action>
1129
- </check>
1130
-
1131
- <action>Explore technical health and stability</action>
1132
-
1133
- <output>
1134
- Bob (Scrum Master): "{user_name}, this is a gut-check question: How does the codebase feel after Epic {{epic_number}}?"
1135
-
1136
- Bob (Scrum Master): "Stable and maintainable? Or are there concerns lurking?"
1137
-
1138
- Charlie (Senior Dev): "Be honest, {user_name}. We've all shipped epics that felt... fragile."
1139
- </output>
1140
-
1141
- <action>WAIT for {user_name} to assess codebase health</action>
1142
-
1143
- <check if="{user_name} expresses stability concerns">
1144
- <output>
1145
- Charlie (Senior Dev): "Okay, let's dig into that. What's causing those concerns?"
1146
-
1147
- Charlie (Senior Dev): [Helps {user_name} articulate technical concerns]
1148
-
1149
- Bob (Scrum Master): "What would it take to address these concerns and feel confident about stability?"
1150
-
1151
- Charlie (Senior Dev): "I'd say we need {{stability_work_needed}}, roughly {{stability_hours}} hours."
1152
-
1153
- Bob (Scrum Master): "{user_name}, is addressing this stability work worth doing before Epic {{next_epic_num}}?"
1154
- </output>
1155
-
1156
- <action>WAIT for {user_name} decision</action>
1157
-
1158
- <action>Add stability work to preparation sprint if user agrees</action>
1159
- </check>
1160
-
1161
- <action>Explore unresolved blockers</action>
1162
-
1163
- <output>
1164
- Bob (Scrum Master): "{user_name}, are there any unresolved blockers or technical issues from Epic {{epic_number}} that we're carrying forward?"
1165
-
1166
- Dana (QA Engineer): "Things that might create problems for Epic {{next_epic_num}} if we don't deal with them?"
1167
-
1168
- Bob (Scrum Master): "Nothing is off limits here. If there's a problem, we need to know."
1169
- </output>
1170
-
1171
- <action>WAIT for {user_name} to surface any blockers</action>
1172
-
1173
- <check if="blockers identified">
1174
- <output>
1175
- Bob (Scrum Master): "Let's capture those blockers and figure out how they affect Epic {{next_epic_num}}."
1176
-
1177
- Charlie (Senior Dev): "For {{blocker_1}}, if we leave it unresolved, it'll {{impact_description_1}}."
1178
-
1179
- Alice (Product Owner): "That sounds critical. We need to address that before moving forward."
1180
-
1181
- Bob (Scrum Master): "Agreed. Adding to critical path: Resolve {{blocker_1}} before Epic {{next_epic_num}} kickoff."
1182
-
1183
- Bob (Scrum Master): "Who owns that work?"
1184
- </output>
1185
-
1186
- <action>Assign blocker resolution to appropriate agent</action>
1187
- <action>Add to critical path with priority and deadline</action>
1188
- </check>
1189
-
1190
- <action>Synthesize the readiness assessment</action>
1191
-
1192
- <output>
1193
- Bob (Scrum Master): "Okay {user_name}, let me synthesize what we just uncovered..."
1194
-
1195
- **EPIC {{epic_number}} READINESS ASSESSMENT:**
1196
-
1197
- Testing & Quality: {{quality_status}}
1198
- {{#if quality_concerns}}⚠️ Action needed: {{quality_action_needed}}{{/if}}
1199
-
1200
- Deployment: {{deployment_status}}
1201
- {{#if deployment_pending}}⚠️ Scheduled for: {{deployment_date}}{{/if}}
1202
-
1203
- Stakeholder Acceptance: {{acceptance_status}}
1204
- {{#if acceptance_incomplete}}⚠️ Action needed: {{acceptance_action_needed}}{{/if}}
1205
-
1206
- Technical Health: {{stability_status}}
1207
- {{#if stability_concerns}}⚠️ Action needed: {{stability_action_needed}}{{/if}}
1208
-
1209
- Unresolved Blockers: {{blocker_status}}
1210
- {{#if blockers_exist}}⚠️ Must resolve: {{blocker_list}}{{/if}}
1211
-
1212
- Bob (Scrum Master): "{user_name}, does this assessment match your understanding?"
1213
- </output>
1214
-
1215
- <action>WAIT for {user_name} to confirm or correct the assessment</action>
1216
-
1217
- <output>
1218
- Bob (Scrum Master): "Based on this assessment, Epic {{epic_number}} is {{#if all_clear}}fully complete and we're clear to proceed{{else}}complete from a story perspective, but we have {{critical_work_count}} critical items before Epic {{next_epic_num}}{{/if}}."
1219
-
1220
- Alice (Product Owner): "This level of thoroughness is why retrospectives are valuable."
1221
-
1222
- Charlie (Senior Dev): "Better to catch this now than three stories into the next epic."
1223
- </output>
1224
-
1225
- </step>
1226
-
1227
- <step n="10" goal="Retrospective Closure with Celebration and Commitment">
1228
-
1229
- <output>
1230
- Bob (Scrum Master): "We've covered a lot of ground today. Let me bring this retrospective to a close."
1231
-
1232
- ═══════════════════════════════════════════════════════════
1233
- ✅ RETROSPECTIVE COMPLETE
1234
- ═══════════════════════════════════════════════════════════
1235
-
1236
- Bob (Scrum Master): "Epic {{epic_number}}: {{epic_title}} - REVIEWED"
1237
-
1238
- **Key Takeaways:**
1239
-
1240
- 1. {{key_lesson_1}}
1241
- 2. {{key_lesson_2}}
1242
- 3. {{key_lesson_3}}
1243
- {{#if key_lesson_4}}4. {{key_lesson_4}}{{/if}}
1244
-
1245
- Alice (Product Owner): "That first takeaway is huge - {{impact_of_lesson_1}}."
1246
-
1247
- Charlie (Senior Dev): "And lesson 2 is something we can apply immediately."
1248
-
1249
- Bob (Scrum Master): "Commitments made today:"
1250
-
1251
- - Action Items: {{action_count}}
1252
- - Preparation Tasks: {{prep_task_count}}
1253
- - Critical Path Items: {{critical_count}}
1254
-
1255
- Dana (QA Engineer): "That's a lot of commitments. We need to actually follow through this time."
1256
-
1257
- Bob (Scrum Master): "Agreed. Which is why we'll review these action items in our next standup."
1258
-
1259
- ═══════════════════════════════════════════════════════════
1260
- 🎯 NEXT STEPS:
1261
- ═══════════════════════════════════════════════════════════
1262
-
1263
- 1. Execute Preparation Sprint (Est: {{prep_days}} days)
1264
- 2. Complete Critical Path items before Epic {{next_epic_num}}
1265
- 3. Review action items in next standup
1266
- {{#if epic_update_needed}}4. Hold Epic {{next_epic_num}} planning review session{{else}}4. Begin Epic {{next_epic_num}} planning when preparation complete{{/if}}
1267
-
1268
- Elena (Junior Dev): "{{prep_days}} days of prep work is significant, but necessary."
1269
-
1270
- Alice (Product Owner): "I'll communicate the timeline to stakeholders. They'll understand if we frame it as 'ensuring Epic {{next_epic_num}} success.'"
1271
-
1272
- ═══════════════════════════════════════════════════════════
1273
-
1274
- Bob (Scrum Master): "Before we wrap, I want to take a moment to acknowledge the team."
1275
-
1276
- Bob (Scrum Master): "Epic {{epic_number}} delivered {{completed_stories}} stories with {{velocity_description}} velocity. We overcame {{blocker_count}} blockers. We learned a lot. That's real work by real people."
1277
-
1278
- Charlie (Senior Dev): "Hear, hear."
1279
-
1280
- Alice (Product Owner): "I'm proud of what we shipped."
1281
-
1282
- Dana (QA Engineer): "And I'm excited about Epic {{next_epic_num}} - especially now that we're prepared for it."
1283
-
1284
- Bob (Scrum Master): "{user_name}, any final thoughts before we close?"
1285
- </output>
1286
-
1287
- <action>WAIT for {user_name} to share final reflections</action>
1288
-
1289
- <output>
1290
- Bob (Scrum Master): [Acknowledges what {user_name} shared] "Thank you for that, {user_name}."
1291
-
1292
- Bob (Scrum Master): "Alright team - great work today. We learned a lot from Epic {{epic_number}}. Let's use these insights to make Epic {{next_epic_num}} even better."
1293
-
1294
- Bob (Scrum Master): "See you all when prep work is done. Meeting adjourned!"
1295
-
1296
- ═══════════════════════════════════════════════════════════
1297
- </output>
1298
-
1299
- <action>Prepare to save retrospective summary document</action>
1300
-
1301
- </step>
1302
-
1303
- <step n="11" goal="Save Retrospective and Update Sprint Status">
1304
-
1305
- <action>Ensure retrospectives folder exists: {retrospectives_folder}</action>
1306
- <action>Create folder if it doesn't exist</action>
1307
-
1308
- <action>Generate comprehensive retrospective summary document including:</action>
1309
-
1310
- - Epic summary and metrics
1311
- - Team participants
1312
- - Successes and strengths identified
1313
- - Challenges and growth areas
1314
- - Key insights and learnings
1315
- - Previous retro follow-through analysis (if applicable)
1316
- - Next epic preview and dependencies
1317
- - Action items with owners and timelines
1318
- - Preparation tasks for next epic
1319
- - Critical path items
1320
- - Significant discoveries and epic update recommendations (if any)
1321
- - Readiness assessment
1322
- - Commitments and next steps
1323
-
1324
- <action>Format retrospective document as readable markdown with clear sections</action>
1325
- <action>Set filename: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md</action>
1326
- <action>Save retrospective document</action>
1327
-
1328
- <output>
1329
- ✅ Retrospective document saved: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md
1330
- </output>
1331
-
1332
- <action>Update {sprint_status_file} to mark retrospective as completed</action>
1333
-
1334
- <action>Load the FULL file: {sprint_status_file}</action>
1335
- <action>Find development_status key "epic-{{epic_number}}-retrospective"</action>
1336
- <action>Verify current status (typically "optional" or "pending")</action>
1337
- <action>Update development_status["epic-{{epic_number}}-retrospective"] = "done"</action>
1338
- <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
1339
-
1340
- <check if="update successful">
1341
- <output>
1342
- ✅ Retrospective marked as completed in {sprint_status_file}
1343
-
1344
- Retrospective key: epic-{{epic_number}}-retrospective
1345
- Status: {{previous_status}} → done
1346
- </output>
1347
- </check>
1348
-
1349
- <check if="retrospective key not found">
1350
- <output>
1351
- ⚠️ Could not update retrospective status: epic-{{epic_number}}-retrospective not found in {sprint_status_file}
1352
-
1353
- Retrospective document was saved successfully, but {sprint_status_file} may need manual update.
1354
- </output>
1355
- </check>
1356
-
1357
- </step>
1358
-
1359
- <step n="12" goal="Final Summary and Handoff">
1360
-
1361
- <output>
1362
- **✅ Retrospective Complete, {user_name}!**
1363
-
1364
- **Epic Review:**
1365
-
1366
- - Epic {{epic_number}}: {{epic_title}} reviewed
1367
- - Retrospective Status: completed
1368
- - Retrospective saved: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md
1369
-
1370
- **Commitments Made:**
1371
-
1372
- - Action Items: {{action_count}}
1373
- - Preparation Tasks: {{prep_task_count}}
1374
- - Critical Path Items: {{critical_count}}
1375
-
1376
- **Next Steps:**
1377
-
1378
- 1. **Review retrospective summary**: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md
1379
-
1380
- 2. **Execute preparation sprint** (Est: {{prep_days}} days)
1381
- - Complete {{critical_count}} critical path items
1382
- - Execute {{prep_task_count}} preparation tasks
1383
- - Verify all action items are in progress
1384
-
1385
- 3. **Review action items in next standup**
1386
- - Ensure ownership is clear
1387
- - Track progress on commitments
1388
- - Adjust timelines if needed
1389
-
1390
- {{#if epic_update_needed}} 4. **IMPORTANT: Schedule Epic {{next_epic_num}} planning review session**
1391
-
1392
- - Significant discoveries from Epic {{epic_number}} require epic updates
1393
- - Review and update affected stories
1394
- - Align team on revised approach
1395
- - Do NOT start Epic {{next_epic_num}} until review is complete
1396
- {{else}}
1397
-
1398
- 4. **Begin Epic {{next_epic_num}} when ready**
1399
- - Start creating stories with SM agent's `create-story`
1400
- - Epic will be marked as `in-progress` automatically when first story is created
1401
- - Ensure all critical path items are done first
1402
- {{/if}}
1403
-
1404
- **Team Performance:**
1405
- Epic {{epic_number}} delivered {{completed_stories}} stories with {{velocity_summary}}. The retrospective surfaced {{insight_count}} key insights and {{significant_discovery_count}} significant discoveries. The team is well-positioned for Epic {{next_epic_num}} success.
1406
-
1407
- {{#if significant_discovery_count > 0}}
1408
- ⚠️ **REMINDER**: Epic update required before starting Epic {{next_epic_num}}
1409
- {{/if}}
1410
-
1411
- ---
1412
-
1413
- Bob (Scrum Master): "Great session today, {user_name}. The team did excellent work."
1414
-
1415
- Alice (Product Owner): "See you at epic planning!"
1416
-
1417
- Charlie (Senior Dev): "Time to knock out that prep work."
1418
-
1419
- </output>
1420
-
1421
- </step>
1422
-
1423
- </workflow>
1424
-
1425
- <facilitation-guidelines>
1426
- <guideline>PARTY MODE REQUIRED: All agent dialogue uses "Name (Role): dialogue" format</guideline>
1427
- <guideline>Scrum Master maintains psychological safety throughout - no blame or judgment</guideline>
1428
- <guideline>Focus on systems and processes, not individual performance</guideline>
1429
- <guideline>Create authentic team dynamics: disagreements, diverse perspectives, emotions</guideline>
1430
- <guideline>User ({user_name}) is active participant, not passive observer</guideline>
1431
- <guideline>Encourage specific examples over general statements</guideline>
1432
- <guideline>Balance celebration of wins with honest assessment of challenges</guideline>
1433
- <guideline>Ensure every voice is heard - all agents contribute</guideline>
1434
- <guideline>Action items must be specific, achievable, and owned</guideline>
1435
- <guideline>Forward-looking mindset - how do we improve for next epic?</guideline>
1436
- <guideline>Intent-based facilitation, not scripted phrases</guideline>
1437
- <guideline>Deep story analysis provides rich material for discussion</guideline>
1438
- <guideline>Previous retro integration creates accountability and continuity</guideline>
1439
- <guideline>Significant change detection prevents epic misalignment</guideline>
1440
- <guideline>Critical verification prevents starting next epic prematurely</guideline>
1441
- <guideline>Document everything - retrospective insights are valuable for future reference</guideline>
1442
- <guideline>Two-part structure ensures both reflection AND preparation</guideline>
1443
- </facilitation-guidelines>
1
+ # Retrospective - Epic Completion Review Instructions
2
+
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>
8
+
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.
11
+
12
+ FACILITATION NOTES:
13
+
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
20
+
21
+ PARTY MODE PROTOCOL:
22
+
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>
29
+
30
+ <workflow>
31
+
32
+ <step n="1" goal="Epic Discovery - Find Completed Epic with Priority Logic">
33
+
34
+ <action>Explain to {user_name} the epic discovery process using natural dialogue</action>
35
+
36
+ <output>
37
+ Bob (Scrum Master): "Welcome to the retrospective, {user_name}. Let me help you identify which epic we just completed. I'll check sprint-status first, but you're the ultimate authority on what we're reviewing today."
38
+ </output>
39
+
40
+ <action>PRIORITY 1: Check {sprint_status_file} first</action>
41
+
42
+ <action>Load the FULL file: {sprint_status_file}</action>
43
+ <action>Read ALL development_status entries</action>
44
+ <action>Find the highest epic number with at least one story marked "done"</action>
45
+ <action>Extract epic number from keys like "epic-X-retrospective" or story keys like "X-Y-story-name"</action>
46
+ <action>Set {{detected_epic}} = highest epic number found with completed stories</action>
47
+
48
+ <check if="{{detected_epic}} found">
49
+ <action>Present finding to user with context</action>
50
+
51
+ <output>
52
+ Bob (Scrum Master): "Based on {sprint_status_file}, it looks like Epic {{detected_epic}} was recently completed. Is that the epic you want to review today, {user_name}?"
53
+ </output>
54
+
55
+ <action>WAIT for {user_name} to confirm or correct</action>
56
+
57
+ <check if="{user_name} confirms">
58
+ <action>Set {{epic_number}} = {{detected_epic}}</action>
59
+ </check>
60
+
61
+ <check if="{user_name} provides different epic number">
62
+ <action>Set {{epic_number}} = user-provided number</action>
63
+ <output>
64
+ Bob (Scrum Master): "Got it, we're reviewing Epic {{epic_number}}. Let me gather that information."
65
+ </output>
66
+ </check>
67
+ </check>
68
+
69
+ <check if="{{detected_epic}} NOT found in sprint-status">
70
+ <action>PRIORITY 2: Ask user directly</action>
71
+
72
+ <output>
73
+ Bob (Scrum Master): "I'm having trouble detecting the completed epic from {sprint_status_file}. {user_name}, which epic number did you just complete?"
74
+ </output>
75
+
76
+ <action>WAIT for {user_name} to provide epic number</action>
77
+ <action>Set {{epic_number}} = user-provided number</action>
78
+ </check>
79
+
80
+ <check if="{{epic_number}} still not determined">
81
+ <action>PRIORITY 3: Fallback to stories folder</action>
82
+
83
+ <action>Scan {story_directory} for highest numbered story files</action>
84
+ <action>Extract epic numbers from story filenames (pattern: epic-X-Y-story-name.md)</action>
85
+ <action>Set {{detected_epic}} = highest epic number found</action>
86
+
87
+ <output>
88
+ Bob (Scrum Master): "I found stories for Epic {{detected_epic}} in the stories folder. Is that the epic we're reviewing, {user_name}?"
89
+ </output>
90
+
91
+ <action>WAIT for {user_name} to confirm or correct</action>
92
+ <action>Set {{epic_number}} = confirmed number</action>
93
+ </check>
94
+
95
+ <action>Once {{epic_number}} is determined, verify epic completion status</action>
96
+
97
+ <action>Find all stories for epic {{epic_number}} in {sprint_status_file}:
98
+
99
+ - Look for keys starting with "{{epic_number}}-" (e.g., "1-1-", "1-2-", etc.)
100
+ - Exclude epic key itself ("epic-{{epic_number}}")
101
+ - Exclude retrospective key ("epic-{{epic_number}}-retrospective")
102
+ </action>
103
+
104
+ <action>Count total stories found for this epic</action>
105
+ <action>Count stories with status = "done"</action>
106
+ <action>Collect list of pending story keys (status != "done")</action>
107
+ <action>Determine if complete: true if all stories are done, false otherwise</action>
108
+
109
+ <check if="epic is not complete">
110
+ <output>
111
+ Alice (Product Owner): "Wait, Bob - I'm seeing that Epic {{epic_number}} isn't actually complete yet."
112
+
113
+ Bob (Scrum Master): "Let me check... you're right, Alice."
114
+
115
+ **Epic Status:**
116
+
117
+ - Total Stories: {{total_stories}}
118
+ - Completed (Done): {{done_stories}}
119
+ - Pending: {{pending_count}}
120
+
121
+ **Pending Stories:**
122
+ {{pending_story_list}}
123
+
124
+ Bob (Scrum Master): "{user_name}, we typically run retrospectives after all stories are done. What would you like to do?"
125
+
126
+ **Options:**
127
+
128
+ 1. Complete remaining stories before running retrospective (recommended)
129
+ 2. Continue with partial retrospective (not ideal, but possible)
130
+ 3. Run sprint-planning to refresh story tracking
131
+ </output>
132
+
133
+ <ask if="{{non_interactive}} == false">Continue with incomplete epic? (yes/no)</ask>
134
+
135
+ <check if="user says no">
136
+ <output>
137
+ Bob (Scrum Master): "Smart call, {user_name}. Let's finish those stories first and then have a proper retrospective."
138
+ </output>
139
+ <action>HALT</action>
140
+ </check>
141
+
142
+ <action if="user says yes">Set {{partial_retrospective}} = true</action>
143
+ <output>
144
+ Charlie (Senior Dev): "Just so everyone knows, this partial retro might miss some important lessons from those pending stories."
145
+
146
+ Bob (Scrum Master): "Good point, Charlie. {user_name}, we'll document what we can now, but we may want to revisit after everything's done."
147
+ </output>
148
+ </check>
149
+
150
+ <check if="epic is complete">
151
+ <output>
152
+ Alice (Product Owner): "Excellent! All {{done_stories}} stories are marked done."
153
+
154
+ Bob (Scrum Master): "Perfect. Epic {{epic_number}} is complete and ready for retrospective, {user_name}."
155
+ </output>
156
+ </check>
157
+
158
+ </step>
159
+
160
+ <step n="0.5" goal="Discover and load project documents">
161
+ <invoke-protocol name="discover_inputs" />
162
+ <note>After discovery, these content variables are available: {epics_content} (selective load for this epic), {architecture_content}, {prd_content}, {document_project_content}</note>
163
+ </step>
164
+
165
+ <step n="2" goal="Deep Story Analysis - Extract Lessons from Implementation">
166
+
167
+ <output>
168
+ Bob (Scrum Master): "Before we start the team discussion, let me review all the story records to surface key themes. This'll help us have a richer conversation."
169
+
170
+ Charlie (Senior Dev): "Good idea - those dev notes always have gold in them."
171
+ </output>
172
+
173
+ <action>For each story in epic {{epic_number}}, read the complete story file from {story_directory}/{{epic_number}}-{{story_num}}-\*.md</action>
174
+
175
+ <action>Extract and analyze from each story:</action>
176
+
177
+ **Dev Notes and Struggles:**
178
+
179
+ - Look for sections like "## Dev Notes", "## Implementation Notes", "## Challenges", "## Development Log"
180
+ - Identify where developers struggled or made mistakes
181
+ - Note unexpected complexity or gotchas discovered
182
+ - Record technical decisions that didn't work out as planned
183
+ - Track where estimates were way off (too high or too low)
184
+
185
+ **Review Feedback Patterns:**
186
+
187
+ - Look for "## Review", "## Code Review", "## SM Review", "## Scrum Master Review" sections
188
+ - Identify recurring feedback themes across stories
189
+ - Note which types of issues came up repeatedly
190
+ - Track quality concerns or architectural misalignments
191
+ - Document praise or exemplary work called out in reviews
192
+
193
+ **Lessons Learned:**
194
+
195
+ - Look for "## Lessons Learned", "## Retrospective Notes", "## Takeaways" sections within stories
196
+ - Extract explicit lessons documented during development
197
+ - Identify "aha moments" or breakthroughs
198
+ - Note what would be done differently
199
+ - Track successful experiments or approaches
200
+
201
+ **Technical Debt Incurred:**
202
+
203
+ - Look for "## Technical Debt", "## TODO", "## Known Issues", "## Future Work" sections
204
+ - Document shortcuts taken and why
205
+ - Track debt items that affect next epic
206
+ - Note severity and priority of debt items
207
+
208
+ **Testing and Quality Insights:**
209
+
210
+ - Look for "## Testing", "## QA Notes", "## Test Results" sections
211
+ - Note testing challenges or surprises
212
+ - Track bug patterns or regression issues
213
+ - Document test coverage gaps
214
+
215
+ <action>Synthesize patterns across all stories:</action>
216
+
217
+ **Common Struggles:**
218
+
219
+ - Identify issues that appeared in 2+ stories (e.g., "3 out of 5 stories had API authentication issues")
220
+ - Note areas where team consistently struggled
221
+ - Track where complexity was underestimated
222
+
223
+ **Recurring Review Feedback:**
224
+
225
+ - Identify feedback themes (e.g., "Error handling was flagged in every review")
226
+ - Note quality patterns (positive and negative)
227
+ - Track areas where team improved over the course of epic
228
+
229
+ **Breakthrough Moments:**
230
+
231
+ - Document key discoveries (e.g., "Story 3 discovered the caching pattern we used for rest of epic")
232
+ - Note when team velocity improved dramatically
233
+ - Track innovative solutions worth repeating
234
+
235
+ **Velocity Patterns:**
236
+
237
+ - Calculate average completion time per story
238
+ - Note velocity trends (e.g., "First 2 stories took 3x longer than estimated")
239
+ - Identify which types of stories went faster/slower
240
+
241
+ **Team Collaboration Highlights:**
242
+
243
+ - Note moments of excellent collaboration mentioned in stories
244
+ - Track where pair programming or mob programming was effective
245
+ - Document effective problem-solving sessions
246
+
247
+ <action>Store this synthesis - these patterns will drive the retrospective discussion</action>
248
+
249
+ <output>
250
+ Bob (Scrum Master): "Okay, I've reviewed all {{total_stories}} story records. I found some really interesting patterns we should discuss."
251
+
252
+ Dana (QA Engineer): "I'm curious what you found, Bob. I noticed some things in my testing too."
253
+
254
+ Bob (Scrum Master): "We'll get to all of it. But first, let me load the previous epic's retro to see if we learned from last time."
255
+ </output>
256
+
257
+ </step>
258
+
259
+ <step n="3" goal="Load and Integrate Previous Epic Retrospective">
260
+
261
+ <action>Calculate previous epic number: {{prev_epic_num}} = {{epic_number}} - 1</action>
262
+
263
+ <check if="{{prev_epic_num}} >= 1">
264
+ <action>Search for previous retrospective using pattern: {retrospectives_folder}/epic-{{prev_epic_num}}-retro-*.md</action>
265
+
266
+ <check if="previous retro found">
267
+ <output>
268
+ Bob (Scrum Master): "I found our retrospective from Epic {{prev_epic_num}}. Let me see what we committed to back then..."
269
+ </output>
270
+
271
+ <action>Read the complete previous retrospective file</action>
272
+
273
+ <action>Extract key elements:</action>
274
+ - **Action items committed**: What did the team agree to improve?
275
+ - **Lessons learned**: What insights were captured?
276
+ - **Process improvements**: What changes were agreed upon?
277
+ - **Technical debt flagged**: What debt was documented?
278
+ - **Team agreements**: What commitments were made?
279
+ - **Preparation tasks**: What was needed for this epic?
280
+
281
+ <action>Cross-reference with current epic execution:</action>
282
+
283
+ **Action Item Follow-Through:**
284
+ - For each action item from Epic {{prev_epic_num}} retro, check if it was completed
285
+ - Look for evidence in current epic's story records
286
+ - Mark each action item: ✅ Completed, ⏳ In Progress, ❌ Not Addressed
287
+
288
+ **Lessons Applied:**
289
+ - For each lesson from Epic {{prev_epic_num}}, check if team applied it in Epic {{epic_number}}
290
+ - Look for evidence in dev notes, review feedback, or outcomes
291
+ - Document successes and missed opportunities
292
+
293
+ **Process Improvements Effectiveness:**
294
+ - For each process change agreed to in Epic {{prev_epic_num}}, assess if it helped
295
+ - Did the change improve velocity, quality, or team satisfaction?
296
+ - Should we keep, modify, or abandon the change?
297
+
298
+ **Technical Debt Status:**
299
+ - For each debt item from Epic {{prev_epic_num}}, check if it was addressed
300
+ - Did unaddressed debt cause problems in Epic {{epic_number}}?
301
+ - Did the debt grow or shrink?
302
+
303
+ <action>Prepare "continuity insights" for the retrospective discussion</action>
304
+
305
+ <action>Identify wins where previous lessons were applied successfully:</action>
306
+ - Document specific examples of applied learnings
307
+ - Note positive impact on Epic {{epic_number}} outcomes
308
+ - Celebrate team growth and improvement
309
+
310
+ <action>Identify missed opportunities where previous lessons were ignored:</action>
311
+ - Document where team repeated previous mistakes
312
+ - Note impact of not applying lessons (without blame)
313
+ - Explore barriers that prevented application
314
+
315
+ <output>
316
+
317
+ Bob (Scrum Master): "Interesting... in Epic {{prev_epic_num}}'s retro, we committed to {{action_count}} action items."
318
+
319
+ Alice (Product Owner): "How'd we do on those, Bob?"
320
+
321
+ Bob (Scrum Master): "We completed {{completed_count}}, made progress on {{in_progress_count}}, but didn't address {{not_addressed_count}}."
322
+
323
+ Charlie (Senior Dev): _looking concerned_ "Which ones didn't we address?"
324
+
325
+ Bob (Scrum Master): "We'll discuss that in the retro. Some of them might explain challenges we had this epic."
326
+
327
+ Elena (Junior Dev): "That's... actually pretty insightful."
328
+
329
+ Bob (Scrum Master): "That's why we track this stuff. Pattern recognition helps us improve."
330
+ </output>
331
+
332
+ </check>
333
+
334
+ <check if="no previous retro found">
335
+ <output>
336
+ Bob (Scrum Master): "I don't see a retrospective for Epic {{prev_epic_num}}. Either we skipped it, or this is your first retro."
337
+
338
+ Alice (Product Owner): "Probably our first one. Good time to start the habit!"
339
+ </output>
340
+ <action>Set {{first_retrospective}} = true</action>
341
+ </check>
342
+ </check>
343
+
344
+ <check if="{{prev_epic_num}} < 1">
345
+ <output>
346
+ Bob (Scrum Master): "This is Epic 1, so naturally there's no previous retro to reference. We're starting fresh!"
347
+
348
+ Charlie (Senior Dev): "First epic, first retro. Let's make it count."
349
+ </output>
350
+ <action>Set {{first_retrospective}} = true</action>
351
+ </check>
352
+
353
+ </step>
354
+
355
+ <step n="4" goal="Preview Next Epic with Change Detection">
356
+
357
+ <action>Calculate next epic number: {{next_epic_num}} = {{epic_number}} + 1</action>
358
+
359
+ <output>
360
+ Bob (Scrum Master): "Before we dive into the discussion, let me take a quick look at Epic {{next_epic_num}} to understand what's coming."
361
+
362
+ Alice (Product Owner): "Good thinking - helps us connect what we learned to what we're about to do."
363
+ </output>
364
+
365
+ <action>Attempt to load next epic using selective loading strategy:</action>
366
+
367
+ **Try sharded first (more specific):**
368
+ <action>Check if file exists: {planning_artifacts}/epic\*/epic-{{next_epic_num}}.md</action>
369
+
370
+ <check if="sharded epic file found">
371
+ <action>Load {planning_artifacts}/*epic*/epic-{{next_epic_num}}.md</action>
372
+ <action>Set {{next_epic_source}} = "sharded"</action>
373
+ </check>
374
+
375
+ **Fallback to whole document:**
376
+ <check if="sharded epic not found">
377
+ <action>Check if file exists: {planning_artifacts}/epic\*.md</action>
378
+
379
+ <check if="whole epic file found">
380
+ <action>Load entire epics document</action>
381
+ <action>Extract Epic {{next_epic_num}} section</action>
382
+ <action>Set {{next_epic_source}} = "whole"</action>
383
+ </check>
384
+ </check>
385
+
386
+ <check if="next epic found">
387
+ <action>Analyze next epic for:</action>
388
+ - Epic title and objectives
389
+ - Planned stories and complexity estimates
390
+ - Dependencies on Epic {{epic_number}} work
391
+ - New technical requirements or capabilities needed
392
+ - Potential risks or unknowns
393
+ - Business goals and success criteria
394
+
395
+ <action>Identify dependencies on completed work:</action>
396
+
397
+ - What components from Epic {{epic_number}} does Epic {{next_epic_num}} rely on?
398
+ - Are all prerequisites complete and stable?
399
+ - Any incomplete work that creates blocking dependencies?
400
+
401
+ <action>Note potential gaps or preparation needed:</action>
402
+
403
+ - Technical setup required (infrastructure, tools, libraries)
404
+ - Knowledge gaps to fill (research, training, spikes)
405
+ - Refactoring needed before starting next epic
406
+ - Documentation or specifications to create
407
+
408
+ <action>Check for technical prerequisites:</action>
409
+
410
+ - APIs or integrations that must be ready
411
+ - Data migrations or schema changes needed
412
+ - Testing infrastructure requirements
413
+ - Deployment or environment setup
414
+
415
+ <output>
416
+ Bob (Scrum Master): "Alright, I've reviewed Epic {{next_epic_num}}: '{{next_epic_title}}'"
417
+
418
+ Alice (Product Owner): "What are we looking at?"
419
+
420
+ Bob (Scrum Master): "{{next_epic_num}} stories planned, building on the {{dependency_description}} from Epic {{epic_number}}."
421
+
422
+ Charlie (Senior Dev): "Dependencies concern me. Did we finish everything we need for that?"
423
+
424
+ Bob (Scrum Master): "Good question - that's exactly what we need to explore in this retro."
425
+ </output>
426
+
427
+ <action>Set {{next_epic_exists}} = true</action>
428
+ </check>
429
+
430
+ <check if="next epic NOT found">
431
+ <output>
432
+ Bob (Scrum Master): "Hmm, I don't see Epic {{next_epic_num}} defined yet."
433
+
434
+ Alice (Product Owner): "We might be at the end of the roadmap, or we haven't planned that far ahead yet."
435
+
436
+ Bob (Scrum Master): "No problem. We'll still do a thorough retro on Epic {{epic_number}}. The lessons will be valuable whenever we plan the next work."
437
+ </output>
438
+
439
+ <action>Set {{next_epic_exists}} = false</action>
440
+ </check>
441
+
442
+ </step>
443
+
444
+ <step n="5" goal="Initialize Retrospective with Rich Context">
445
+
446
+ <action>Load agent configurations from {agent_manifest}</action>
447
+ <action>Identify which agents participated in Epic {{epic_number}} based on story records</action>
448
+ <action>Ensure key roles present: Product Owner, Scrum Master (facilitating), Devs, Testing/QA, Architect</action>
449
+
450
+ <output>
451
+ Bob (Scrum Master): "Alright team, everyone's here. Let me set the stage for our retrospective."
452
+
453
+ ═══════════════════════════════════════════════════════════
454
+ 🔄 TEAM RETROSPECTIVE - Epic {{epic_number}}: {{epic_title}}
455
+ ═══════════════════════════════════════════════════════════
456
+
457
+ Bob (Scrum Master): "Here's what we accomplished together."
458
+
459
+ **EPIC {{epic_number}} SUMMARY:**
460
+
461
+ Delivery Metrics:
462
+
463
+ - Completed: {{completed_stories}}/{{total_stories}} stories ({{completion_percentage}}%)
464
+ - Velocity: {{actual_points}} story points{{#if planned_points}} (planned: {{planned_points}}){{/if}}
465
+ - Duration: {{actual_sprints}} sprints{{#if planned_sprints}} (planned: {{planned_sprints}}){{/if}}
466
+ - Average velocity: {{points_per_sprint}} points/sprint
467
+
468
+ Quality and Technical:
469
+
470
+ - Blockers encountered: {{blocker_count}}
471
+ - Technical debt items: {{debt_count}}
472
+ - Test coverage: {{coverage_info}}
473
+ - Production incidents: {{incident_count}}
474
+
475
+ Business Outcomes:
476
+
477
+ - Goals achieved: {{goals_met}}/{{total_goals}}
478
+ - Success criteria: {{criteria_status}}
479
+ - Stakeholder feedback: {{feedback_summary}}
480
+
481
+ Alice (Product Owner): "Those numbers tell a good story. {{completion_percentage}}% completion is {{#if completion_percentage >= 90}}excellent{{else}}something we should discuss{{/if}}."
482
+
483
+ Charlie (Senior Dev): "I'm more interested in that technical debt number - {{debt_count}} items is {{#if debt_count > 10}}concerning{{else}}manageable{{/if}}."
484
+
485
+ Dana (QA Engineer): "{{incident_count}} production incidents - {{#if incident_count == 0}}clean epic!{{else}}we should talk about those{{/if}}."
486
+
487
+ {{#if next_epic_exists}}
488
+ ═══════════════════════════════════════════════════════════
489
+ **NEXT EPIC PREVIEW:** Epic {{next_epic_num}}: {{next_epic_title}}
490
+ ═══════════════════════════════════════════════════════════
491
+
492
+ Dependencies on Epic {{epic_number}}:
493
+ {{list_dependencies}}
494
+
495
+ Preparation Needed:
496
+ {{list_preparation_gaps}}
497
+
498
+ Technical Prerequisites:
499
+ {{list_technical_prereqs}}
500
+
501
+ Bob (Scrum Master): "And here's what's coming next. Epic {{next_epic_num}} builds on what we just finished."
502
+
503
+ Elena (Junior Dev): "Wow, that's a lot of dependencies on our work."
504
+
505
+ Charlie (Senior Dev): "Which means we better make sure Epic {{epic_number}} is actually solid before moving on."
506
+ {{/if}}
507
+
508
+ ═══════════════════════════════════════════════════════════
509
+
510
+ Bob (Scrum Master): "Team assembled for this retrospective:"
511
+
512
+ {{list_participating_agents}}
513
+
514
+ Bob (Scrum Master): "{user_name}, you're joining us as Project Lead. Your perspective is crucial here."
515
+
516
+ {user_name} (Project Lead): [Participating in the retrospective]
517
+
518
+ Bob (Scrum Master): "Our focus today:"
519
+
520
+ 1. Learning from Epic {{epic_number}} execution
521
+ {{#if next_epic_exists}}2. Preparing for Epic {{next_epic_num}} success{{/if}}
522
+
523
+ Bob (Scrum Master): "Ground rules: psychological safety first. No blame, no judgment. We focus on systems and processes, not individuals. Everyone's voice matters. Specific examples are better than generalizations."
524
+
525
+ Alice (Product Owner): "And everything shared here stays in this room - unless we decide together to escalate something."
526
+
527
+ Bob (Scrum Master): "Exactly. {user_name}, any questions before we dive in?"
528
+ </output>
529
+
530
+ <action>WAIT for {user_name} to respond or indicate readiness</action>
531
+
532
+ </step>
533
+
534
+ <step n="6" goal="Epic Review Discussion - What Went Well, What Didn't">
535
+
536
+ <output>
537
+ Bob (Scrum Master): "Let's start with the good stuff. What went well in Epic {{epic_number}}?"
538
+
539
+ Bob (Scrum Master): _pauses, creating space_
540
+
541
+ Alice (Product Owner): "I'll start. The user authentication flow we delivered exceeded my expectations. The UX is smooth, and early user feedback has been really positive."
542
+
543
+ Charlie (Senior Dev): "I'll add to that - the caching strategy we implemented in Story {{breakthrough_story_num}} was a game-changer. We cut API calls by 60% and it set the pattern for the rest of the epic."
544
+
545
+ Dana (QA Engineer): "From my side, testing went smoother than usual. The dev team's documentation was way better this epic - actually usable test plans!"
546
+
547
+ Elena (Junior Dev): _smiling_ "That's because Charlie made me document everything after Story 1's code review!"
548
+
549
+ Charlie (Senior Dev): _laughing_ "Tough love pays off."
550
+ </output>
551
+
552
+ <action>Bob (Scrum Master) naturally turns to {user_name} to engage them in the discussion</action>
553
+
554
+ <output>
555
+ Bob (Scrum Master): "{user_name}, what stood out to you as going well in this epic?"
556
+ </output>
557
+
558
+ <action>WAIT for {user_name} to respond - this is a KEY USER INTERACTION moment</action>
559
+
560
+ <action>After {user_name} responds, have 1-2 team members react to or build on what {user_name} shared</action>
561
+
562
+ <output>
563
+ Alice (Product Owner): [Responds naturally to what {user_name} said, either agreeing, adding context, or offering a different perspective]
564
+
565
+ Charlie (Senior Dev): [Builds on the discussion, perhaps adding technical details or connecting to specific stories]
566
+ </output>
567
+
568
+ <action>Continue facilitating natural dialogue, periodically bringing {user_name} back into the conversation</action>
569
+
570
+ <action>After covering successes, guide the transition to challenges with care</action>
571
+
572
+ <output>
573
+ Bob (Scrum Master): "Okay, we've celebrated some real wins. Now let's talk about challenges - where did we struggle? What slowed us down?"
574
+
575
+ Bob (Scrum Master): _creates safe space with tone and pacing_
576
+
577
+ Elena (Junior Dev): _hesitates_ "Well... I really struggled with the database migrations in Story {{difficult_story_num}}. The documentation wasn't clear, and I had to redo it three times. Lost almost a full sprint on that story alone."
578
+
579
+ Charlie (Senior Dev): _defensive_ "Hold on - I wrote those migration docs, and they were perfectly clear. The issue was that the requirements kept changing mid-story!"
580
+
581
+ Alice (Product Owner): _frustrated_ "That's not fair, Charlie. We only clarified requirements once, and that was because the technical team didn't ask the right questions during planning!"
582
+
583
+ Charlie (Senior Dev): _heat rising_ "We asked plenty of questions! You said the schema was finalized, then two days into development you wanted to add three new fields!"
584
+
585
+ Bob (Scrum Master): _intervening calmly_ "Let's take a breath here. This is exactly the kind of thing we need to unpack."
586
+
587
+ Bob (Scrum Master): "Elena, you spent almost a full sprint on Story {{difficult_story_num}}. Charlie, you're saying requirements changed. Alice, you feel the right questions weren't asked up front."
588
+
589
+ Bob (Scrum Master): "{user_name}, you have visibility across the whole project. What's your take on this situation?"
590
+ </output>
591
+
592
+ <action>WAIT for {user_name} to respond and help facilitate the conflict resolution</action>
593
+
594
+ <action>Use {user_name}'s response to guide the discussion toward systemic understanding rather than blame</action>
595
+
596
+ <output>
597
+ Bob (Scrum Master): [Synthesizes {user_name}'s input with what the team shared] "So it sounds like the core issue was {{root_cause_based_on_discussion}}, not any individual person's fault."
598
+
599
+ Elena (Junior Dev): "That makes sense. If we'd had {{preventive_measure}}, I probably could have avoided those redos."
600
+
601
+ Charlie (Senior Dev): _softening_ "Yeah, and I could have been clearer about assumptions in the docs. Sorry for getting defensive, Alice."
602
+
603
+ Alice (Product Owner): "I appreciate that. I could've been more proactive about flagging the schema additions earlier, too."
604
+
605
+ Bob (Scrum Master): "This is good. We're identifying systemic improvements, not assigning blame."
606
+ </output>
607
+
608
+ <action>Continue the discussion, weaving in patterns discovered from the deep story analysis (Step 2)</action>
609
+
610
+ <output>
611
+ Bob (Scrum Master): "Speaking of patterns, I noticed something when reviewing all the story records..."
612
+
613
+ Bob (Scrum Master): "{{pattern_1_description}} - this showed up in {{pattern_1_count}} out of {{total_stories}} stories."
614
+
615
+ Dana (QA Engineer): "Oh wow, I didn't realize it was that widespread."
616
+
617
+ Bob (Scrum Master): "Yeah. And there's more - {{pattern_2_description}} came up in almost every code review."
618
+
619
+ Charlie (Senior Dev): "That's... actually embarrassing. We should've caught that pattern earlier."
620
+
621
+ Bob (Scrum Master): "No shame, Charlie. Now we know, and we can improve. {user_name}, did you notice these patterns during the epic?"
622
+ </output>
623
+
624
+ <action>WAIT for {user_name} to share their observations</action>
625
+
626
+ <action>Continue the retrospective discussion, creating moments where:</action>
627
+
628
+ - Team members ask {user_name} questions directly
629
+ - {user_name}'s input shifts the discussion direction
630
+ - Disagreements arise naturally and get resolved
631
+ - Quieter team members are invited to contribute
632
+ - Specific stories are referenced with real examples
633
+ - Emotions are authentic (frustration, pride, concern, hope)
634
+
635
+ <check if="previous retrospective exists">
636
+ <output>
637
+ Bob (Scrum Master): "Before we move on, I want to circle back to Epic {{prev_epic_num}}'s retrospective."
638
+
639
+ Bob (Scrum Master): "We made some commitments in that retro. Let's see how we did."
640
+
641
+ Bob (Scrum Master): "Action item 1: {{prev_action_1}}. Status: {{prev_action_1_status}}"
642
+
643
+ Alice (Product Owner): {{#if prev_action_1_status == "completed"}}"We nailed that one!"{{else}}"We... didn't do that one."{{/if}}
644
+
645
+ Charlie (Senior Dev): {{#if prev_action_1_status == "completed"}}"And it helped! I noticed {{evidence_of_impact}}"{{else}}"Yeah, and I think that's why we had {{consequence_of_not_doing_it}} this epic."{{/if}}
646
+
647
+ Bob (Scrum Master): "Action item 2: {{prev_action_2}}. Status: {{prev_action_2_status}}"
648
+
649
+ Dana (QA Engineer): {{#if prev_action_2_status == "completed"}}"This one made testing so much easier this time."{{else}}"If we'd done this, I think testing would've gone faster."{{/if}}
650
+
651
+ Bob (Scrum Master): "{user_name}, looking at what we committed to last time and what we actually did - what's your reaction?"
652
+ </output>
653
+
654
+ <action>WAIT for {user_name} to respond</action>
655
+
656
+ <action>Use the previous retro follow-through as a learning moment about commitment and accountability</action>
657
+ </check>
658
+
659
+ <output>
660
+ Bob (Scrum Master): "Alright, we've covered a lot of ground. Let me summarize what I'm hearing..."
661
+
662
+ Bob (Scrum Master): "**Successes:**"
663
+ {{list_success_themes}}
664
+
665
+ Bob (Scrum Master): "**Challenges:**"
666
+ {{list_challenge_themes}}
667
+
668
+ Bob (Scrum Master): "**Key Insights:**"
669
+ {{list_insight_themes}}
670
+
671
+ Bob (Scrum Master): "Does that capture it? Anyone have something important we missed?"
672
+ </output>
673
+
674
+ <action>Allow team members to add any final thoughts on the epic review</action>
675
+ <action>Ensure {user_name} has opportunity to add their perspective</action>
676
+
677
+ </step>
678
+
679
+ <step n="7" goal="Next Epic Preparation Discussion - Interactive and Collaborative">
680
+
681
+ <check if="{{next_epic_exists}} == false">
682
+ <output>
683
+ Bob (Scrum Master): "Normally we'd discuss preparing for the next epic, but since Epic {{next_epic_num}} isn't defined yet, let's skip to action items."
684
+ </output>
685
+ <action>Skip to Step 8</action>
686
+ </check>
687
+
688
+ <output>
689
+ Bob (Scrum Master): "Now let's shift gears. Epic {{next_epic_num}} is coming up: '{{next_epic_title}}'"
690
+
691
+ Bob (Scrum Master): "The question is: are we ready? What do we need to prepare?"
692
+
693
+ Alice (Product Owner): "From my perspective, we need to make sure {{dependency_concern_1}} from Epic {{epic_number}} is solid before we start building on it."
694
+
695
+ Charlie (Senior Dev): _concerned_ "I'm worried about {{technical_concern_1}}. We have {{technical_debt_item}} from this epic that'll blow up if we don't address it before Epic {{next_epic_num}}."
696
+
697
+ Dana (QA Engineer): "And I need {{testing_infrastructure_need}} in place, or we're going to have the same testing bottleneck we had in Story {{bottleneck_story_num}}."
698
+
699
+ Elena (Junior Dev): "I'm less worried about infrastructure and more about knowledge. I don't understand {{knowledge_gap}} well enough to work on Epic {{next_epic_num}}'s stories."
700
+
701
+ Bob (Scrum Master): "{user_name}, the team is surfacing some real concerns here. What's your sense of our readiness?"
702
+ </output>
703
+
704
+ <action>WAIT for {user_name} to share their assessment</action>
705
+
706
+ <action>Use {user_name}'s input to guide deeper exploration of preparation needs</action>
707
+
708
+ <output>
709
+ Alice (Product Owner): [Reacts to what {user_name} said] "I agree with {user_name} about {{point_of_agreement}}, but I'm still worried about {{lingering_concern}}."
710
+
711
+ Charlie (Senior Dev): "Here's what I think we need technically before Epic {{next_epic_num}} can start..."
712
+
713
+ Charlie (Senior Dev): "1. {{tech_prep_item_1}} - estimated {{hours_1}} hours"
714
+ Charlie (Senior Dev): "2. {{tech_prep_item_2}} - estimated {{hours_2}} hours"
715
+ Charlie (Senior Dev): "3. {{tech_prep_item_3}} - estimated {{hours_3}} hours"
716
+
717
+ Elena (Junior Dev): "That's like {{total_hours}} hours! That's a full sprint of prep work!"
718
+
719
+ Charlie (Senior Dev): "Exactly. We can't just jump into Epic {{next_epic_num}} on Monday."
720
+
721
+ Alice (Product Owner): _frustrated_ "But we have stakeholder pressure to keep shipping features. They're not going to be happy about a 'prep sprint.'"
722
+
723
+ Bob (Scrum Master): "Let's think about this differently. What happens if we DON'T do this prep work?"
724
+
725
+ Dana (QA Engineer): "We'll hit blockers in the middle of Epic {{next_epic_num}}, velocity will tank, and we'll ship late anyway."
726
+
727
+ Charlie (Senior Dev): "Worse - we'll ship something built on top of {{technical_concern_1}}, and it'll be fragile."
728
+
729
+ Bob (Scrum Master): "{user_name}, you're balancing stakeholder pressure against technical reality. How do you want to handle this?"
730
+ </output>
731
+
732
+ <action>WAIT for {user_name} to provide direction on preparation approach</action>
733
+
734
+ <action>Create space for debate and disagreement about priorities</action>
735
+
736
+ <output>
737
+ Alice (Product Owner): [Potentially disagrees with {user_name}'s approach] "I hear what you're saying, {user_name}, but from a business perspective, {{business_concern}}."
738
+
739
+ Charlie (Senior Dev): [Potentially supports or challenges Alice's point] "The business perspective is valid, but {{technical_counter_argument}}."
740
+
741
+ Bob (Scrum Master): "We have healthy tension here between business needs and technical reality. That's good - it means we're being honest."
742
+
743
+ Bob (Scrum Master): "Let's explore a middle ground. Charlie, which of your prep items are absolutely critical vs. nice-to-have?"
744
+
745
+ Charlie (Senior Dev): "{{critical_prep_item_1}} and {{critical_prep_item_2}} are non-negotiable. {{nice_to_have_prep_item}} can wait."
746
+
747
+ Alice (Product Owner): "And can any of the critical prep happen in parallel with starting Epic {{next_epic_num}}?"
748
+
749
+ Charlie (Senior Dev): _thinking_ "Maybe. If we tackle {{first_critical_item}} before the epic starts, we could do {{second_critical_item}} during the first sprint."
750
+
751
+ Dana (QA Engineer): "But that means Story 1 of Epic {{next_epic_num}} can't depend on {{second_critical_item}}."
752
+
753
+ Alice (Product Owner): _looking at epic plan_ "Actually, Stories 1 and 2 are about {{independent_work}}, so they don't depend on it. We could make that work."
754
+
755
+ Bob (Scrum Master): "{user_name}, the team is finding a workable compromise here. Does this approach make sense to you?"
756
+ </output>
757
+
758
+ <action>WAIT for {user_name} to validate or adjust the preparation strategy</action>
759
+
760
+ <action>Continue working through preparation needs across all dimensions:</action>
761
+
762
+ - Dependencies on Epic {{epic_number}} work
763
+ - Technical setup and infrastructure
764
+ - Knowledge gaps and research needs
765
+ - Documentation or specification work
766
+ - Testing infrastructure
767
+ - Refactoring or debt reduction
768
+ - External dependencies (APIs, integrations, etc.)
769
+
770
+ <action>For each preparation area, facilitate team discussion that:</action>
771
+
772
+ - Identifies specific needs with concrete examples
773
+ - Estimates effort realistically based on Epic {{epic_number}} experience
774
+ - Assigns ownership to specific agents
775
+ - Determines criticality and timing
776
+ - Surfaces risks of NOT doing the preparation
777
+ - Explores parallel work opportunities
778
+ - Brings {user_name} in for key decisions
779
+
780
+ <output>
781
+ Bob (Scrum Master): "I'm hearing a clear picture of what we need before Epic {{next_epic_num}}. Let me summarize..."
782
+
783
+ **CRITICAL PREPARATION (Must complete before epic starts):**
784
+ {{list_critical_prep_items_with_owners_and_estimates}}
785
+
786
+ **PARALLEL PREPARATION (Can happen during early stories):**
787
+ {{list_parallel_prep_items_with_owners_and_estimates}}
788
+
789
+ **NICE-TO-HAVE PREPARATION (Would help but not blocking):**
790
+ {{list_nice_to_have_prep_items}}
791
+
792
+ Bob (Scrum Master): "Total critical prep effort: {{critical_hours}} hours ({{critical_days}} days)"
793
+
794
+ Alice (Product Owner): "That's manageable. We can communicate that to stakeholders."
795
+
796
+ Bob (Scrum Master): "{user_name}, does this preparation plan work for you?"
797
+ </output>
798
+
799
+ <action>WAIT for {user_name} final validation of preparation plan</action>
800
+
801
+ </step>
802
+
803
+ <step n="8" goal="Synthesize Action Items with Significant Change Detection">
804
+
805
+ <output>
806
+ Bob (Scrum Master): "Let's capture concrete action items from everything we've discussed."
807
+
808
+ Bob (Scrum Master): "I want specific, achievable actions with clear owners. Not vague aspirations."
809
+ </output>
810
+
811
+ <action>Synthesize themes from Epic {{epic_number}} review discussion into actionable improvements</action>
812
+
813
+ <action>Create specific action items with:</action>
814
+
815
+ - Clear description of the action
816
+ - Assigned owner (specific agent or role)
817
+ - Timeline or deadline
818
+ - Success criteria (how we'll know it's done)
819
+ - Category (process, technical, documentation, team, etc.)
820
+
821
+ <action>Ensure action items are SMART:</action>
822
+
823
+ - Specific: Clear and unambiguous
824
+ - Measurable: Can verify completion
825
+ - Achievable: Realistic given constraints
826
+ - Relevant: Addresses real issues from retro
827
+ - Time-bound: Has clear deadline
828
+
829
+ <output>
830
+ Bob (Scrum Master): "Based on our discussion, here are the action items I'm proposing..."
831
+
832
+ ═══════════════════════════════════════════════════════════
833
+ 📝 EPIC {{epic_number}} ACTION ITEMS:
834
+ ═══════════════════════════════════════════════════════════
835
+
836
+ **Process Improvements:**
837
+
838
+ 1. {{action_item_1}}
839
+ Owner: {{agent_1}}
840
+ Deadline: {{timeline_1}}
841
+ Success criteria: {{criteria_1}}
842
+
843
+ 2. {{action_item_2}}
844
+ Owner: {{agent_2}}
845
+ Deadline: {{timeline_2}}
846
+ Success criteria: {{criteria_2}}
847
+
848
+ Charlie (Senior Dev): "I can own action item 1, but {{timeline_1}} is tight. Can we push it to {{alternative_timeline}}?"
849
+
850
+ Bob (Scrum Master): "What do others think? Does that timing still work?"
851
+
852
+ Alice (Product Owner): "{{alternative_timeline}} works for me, as long as it's done before Epic {{next_epic_num}} starts."
853
+
854
+ Bob (Scrum Master): "Agreed. Updated to {{alternative_timeline}}."
855
+
856
+ **Technical Debt:**
857
+
858
+ 1. {{debt_item_1}}
859
+ Owner: {{agent_3}}
860
+ Priority: {{priority_1}}
861
+ Estimated effort: {{effort_1}}
862
+
863
+ 2. {{debt_item_2}}
864
+ Owner: {{agent_4}}
865
+ Priority: {{priority_2}}
866
+ Estimated effort: {{effort_2}}
867
+
868
+ Dana (QA Engineer): "For debt item 1, can we prioritize that as high? It caused testing issues in three different stories."
869
+
870
+ Charlie (Senior Dev): "I marked it medium because {{reasoning}}, but I hear your point."
871
+
872
+ Bob (Scrum Master): "{user_name}, this is a priority call. Testing impact vs. {{reasoning}} - how do you want to prioritize it?"
873
+ </output>
874
+
875
+ <action>WAIT for {user_name} to help resolve priority discussions</action>
876
+
877
+ <output>
878
+ **Documentation:**
879
+ 1. {{doc_need_1}}
880
+ Owner: {{agent_5}}
881
+ Deadline: {{timeline_3}}
882
+
883
+ 2. {{doc_need_2}}
884
+ Owner: {{agent_6}}
885
+ Deadline: {{timeline_4}}
886
+
887
+ **Team Agreements:**
888
+
889
+ - {{agreement_1}}
890
+ - {{agreement_2}}
891
+ - {{agreement_3}}
892
+
893
+ Bob (Scrum Master): "These agreements are how we're committing to work differently going forward."
894
+
895
+ Elena (Junior Dev): "I like agreement 2 - that would've saved me on Story {{difficult_story_num}}."
896
+
897
+ ═══════════════════════════════════════════════════════════
898
+ 🚀 EPIC {{next_epic_num}} PREPARATION TASKS:
899
+ ═══════════════════════════════════════════════════════════
900
+
901
+ **Technical Setup:**
902
+ [ ] {{setup_task_1}}
903
+ Owner: {{owner_1}}
904
+ Estimated: {{est_1}}
905
+
906
+ [ ] {{setup_task_2}}
907
+ Owner: {{owner_2}}
908
+ Estimated: {{est_2}}
909
+
910
+ **Knowledge Development:**
911
+ [ ] {{research_task_1}}
912
+ Owner: {{owner_3}}
913
+ Estimated: {{est_3}}
914
+
915
+ **Cleanup/Refactoring:**
916
+ [ ] {{refactor_task_1}}
917
+ Owner: {{owner_4}}
918
+ Estimated: {{est_4}}
919
+
920
+ **Total Estimated Effort:** {{total_hours}} hours ({{total_days}} days)
921
+
922
+ ═══════════════════════════════════════════════════════════
923
+ ⚠️ CRITICAL PATH:
924
+ ═══════════════════════════════════════════════════════════
925
+
926
+ **Blockers to Resolve Before Epic {{next_epic_num}}:**
927
+
928
+ 1. {{critical_item_1}}
929
+ Owner: {{critical_owner_1}}
930
+ Must complete by: {{critical_deadline_1}}
931
+
932
+ 2. {{critical_item_2}}
933
+ Owner: {{critical_owner_2}}
934
+ Must complete by: {{critical_deadline_2}}
935
+ </output>
936
+
937
+ <action>CRITICAL ANALYSIS - Detect if discoveries require epic updates</action>
938
+
939
+ <action>Check if any of the following are true based on retrospective discussion:</action>
940
+
941
+ - Architectural assumptions from planning proven wrong during Epic {{epic_number}}
942
+ - Major scope changes or descoping occurred that affects next epic
943
+ - Technical approach needs fundamental change for Epic {{next_epic_num}}
944
+ - Dependencies discovered that Epic {{next_epic_num}} doesn't account for
945
+ - User needs significantly different than originally understood
946
+ - Performance/scalability concerns that affect Epic {{next_epic_num}} design
947
+ - Security or compliance issues discovered that change approach
948
+ - Integration assumptions proven incorrect
949
+ - Team capacity or skill gaps more severe than planned
950
+ - Technical debt level unsustainable without intervention
951
+
952
+ <check if="significant discoveries detected">
953
+ <output>
954
+
955
+ ═══════════════════════════════════════════════════════════
956
+ 🚨 SIGNIFICANT DISCOVERY ALERT 🚨
957
+ ═══════════════════════════════════════════════════════════
958
+
959
+ Bob (Scrum Master): "{user_name}, we need to flag something important."
960
+
961
+ Bob (Scrum Master): "During Epic {{epic_number}}, the team uncovered findings that may require updating the plan for Epic {{next_epic_num}}."
962
+
963
+ **Significant Changes Identified:**
964
+
965
+ 1. {{significant_change_1}}
966
+ Impact: {{impact_description_1}}
967
+
968
+ 2. {{significant_change_2}}
969
+ Impact: {{impact_description_2}}
970
+
971
+ {{#if significant_change_3}} 3. {{significant_change_3}}
972
+ Impact: {{impact_description_3}}
973
+ {{/if}}
974
+
975
+ Charlie (Senior Dev): "Yeah, when we discovered {{technical_discovery}}, it fundamentally changed our understanding of {{affected_area}}."
976
+
977
+ Alice (Product Owner): "And from a product perspective, {{product_discovery}} means Epic {{next_epic_num}}'s stories are based on wrong assumptions."
978
+
979
+ Dana (QA Engineer): "If we start Epic {{next_epic_num}} as-is, we're going to hit walls fast."
980
+
981
+ **Impact on Epic {{next_epic_num}}:**
982
+
983
+ The current plan for Epic {{next_epic_num}} assumes:
984
+
985
+ - {{wrong_assumption_1}}
986
+ - {{wrong_assumption_2}}
987
+
988
+ But Epic {{epic_number}} revealed:
989
+
990
+ - {{actual_reality_1}}
991
+ - {{actual_reality_2}}
992
+
993
+ This means Epic {{next_epic_num}} likely needs:
994
+ {{list_likely_changes_needed}}
995
+
996
+ **RECOMMENDED ACTIONS:**
997
+
998
+ 1. Review and update Epic {{next_epic_num}} definition based on new learnings
999
+ 2. Update affected stories in Epic {{next_epic_num}} to reflect reality
1000
+ 3. Consider updating architecture or technical specifications if applicable
1001
+ 4. Hold alignment session with Product Owner before starting Epic {{next_epic_num}}
1002
+ {{#if prd_update_needed}}5. Update PRD sections affected by new understanding{{/if}}
1003
+
1004
+ Bob (Scrum Master): "**Epic Update Required**: YES - Schedule epic planning review session"
1005
+
1006
+ Bob (Scrum Master): "{user_name}, this is significant. We need to address this before committing to Epic {{next_epic_num}}'s current plan. How do you want to handle it?"
1007
+ </output>
1008
+
1009
+ <action>WAIT for {user_name} to decide on how to handle the significant changes</action>
1010
+
1011
+ <action>Add epic review session to critical path if user agrees</action>
1012
+
1013
+ <output>
1014
+ Alice (Product Owner): "I agree with {user_name}'s approach. Better to adjust the plan now than fail mid-epic."
1015
+
1016
+ Charlie (Senior Dev): "This is why retrospectives matter. We caught this before it became a disaster."
1017
+
1018
+ Bob (Scrum Master): "Adding to critical path: Epic {{next_epic_num}} planning review session before epic kickoff."
1019
+ </output>
1020
+ </check>
1021
+
1022
+ <check if="no significant discoveries">
1023
+ <output>
1024
+ Bob (Scrum Master): "Good news - nothing from Epic {{epic_number}} fundamentally changes our plan for Epic {{next_epic_num}}. The plan is still sound."
1025
+
1026
+ Alice (Product Owner): "We learned a lot, but the direction is right."
1027
+ </output>
1028
+ </check>
1029
+
1030
+ <output>
1031
+ Bob (Scrum Master): "Let me show you the complete action plan..."
1032
+
1033
+ Bob (Scrum Master): "That's {{total_action_count}} action items, {{prep_task_count}} preparation tasks, and {{critical_count}} critical path items."
1034
+
1035
+ Bob (Scrum Master): "Everyone clear on what they own?"
1036
+ </output>
1037
+
1038
+ <action>Give each agent with assignments a moment to acknowledge their ownership</action>
1039
+
1040
+ <action>Ensure {user_name} approves the complete action plan</action>
1041
+
1042
+ </step>
1043
+
1044
+ <step n="9" goal="Critical Readiness Exploration - Interactive Deep Dive">
1045
+
1046
+ <output>
1047
+ Bob (Scrum Master): "Before we close, I want to do a final readiness check."
1048
+
1049
+ Bob (Scrum Master): "Epic {{epic_number}} is marked complete in sprint-status, but is it REALLY done?"
1050
+
1051
+ Alice (Product Owner): "What do you mean, Bob?"
1052
+
1053
+ Bob (Scrum Master): "I mean truly production-ready, stakeholders happy, no loose ends that'll bite us later."
1054
+
1055
+ Bob (Scrum Master): "{user_name}, let's walk through this together."
1056
+ </output>
1057
+
1058
+ <action>Explore testing and quality state through natural conversation</action>
1059
+
1060
+ <output>
1061
+ Bob (Scrum Master): "{user_name}, tell me about the testing for Epic {{epic_number}}. What verification has been done?"
1062
+ </output>
1063
+
1064
+ <action>WAIT for {user_name} to describe testing status</action>
1065
+
1066
+ <output>
1067
+ Dana (QA Engineer): [Responds to what {user_name} shared] "I can add to that - {{additional_testing_context}}."
1068
+
1069
+ Dana (QA Engineer): "But honestly, {{testing_concern_if_any}}."
1070
+
1071
+ Bob (Scrum Master): "{user_name}, are you confident Epic {{epic_number}} is production-ready from a quality perspective?"
1072
+ </output>
1073
+
1074
+ <action>WAIT for {user_name} to assess quality readiness</action>
1075
+
1076
+ <check if="{user_name} expresses concerns">
1077
+ <output>
1078
+ Bob (Scrum Master): "Okay, let's capture that. What specific testing is still needed?"
1079
+
1080
+ Dana (QA Engineer): "I can handle {{testing_work_needed}}, estimated {{testing_hours}} hours."
1081
+
1082
+ Bob (Scrum Master): "Adding to critical path: Complete {{testing_work_needed}} before Epic {{next_epic_num}}."
1083
+ </output>
1084
+ <action>Add testing completion to critical path</action>
1085
+ </check>
1086
+
1087
+ <action>Explore deployment and release status</action>
1088
+
1089
+ <output>
1090
+ Bob (Scrum Master): "{user_name}, what's the deployment status for Epic {{epic_number}}? Is it live in production, scheduled for deployment, or still pending?"
1091
+ </output>
1092
+
1093
+ <action>WAIT for {user_name} to provide deployment status</action>
1094
+
1095
+ <check if="not yet deployed">
1096
+ <output>
1097
+ Charlie (Senior Dev): "If it's not deployed yet, we need to factor that into Epic {{next_epic_num}} timing."
1098
+
1099
+ Bob (Scrum Master): "{user_name}, when is deployment planned? Does that timing work for starting Epic {{next_epic_num}}?"
1100
+ </output>
1101
+
1102
+ <action>WAIT for {user_name} to clarify deployment timeline</action>
1103
+
1104
+ <action>Add deployment milestone to critical path with agreed timeline</action>
1105
+ </check>
1106
+
1107
+ <action>Explore stakeholder acceptance</action>
1108
+
1109
+ <output>
1110
+ Bob (Scrum Master): "{user_name}, have stakeholders seen and accepted the Epic {{epic_number}} deliverables?"
1111
+
1112
+ Alice (Product Owner): "This is important - I've seen 'done' epics get rejected by stakeholders and force rework."
1113
+
1114
+ Bob (Scrum Master): "{user_name}, any feedback from stakeholders still pending?"
1115
+ </output>
1116
+
1117
+ <action>WAIT for {user_name} to describe stakeholder acceptance status</action>
1118
+
1119
+ <check if="acceptance incomplete or feedback pending">
1120
+ <output>
1121
+ Alice (Product Owner): "We should get formal acceptance before moving on. Otherwise Epic {{next_epic_num}} might get interrupted by rework."
1122
+
1123
+ Bob (Scrum Master): "{user_name}, how do you want to handle stakeholder acceptance? Should we make it a critical path item?"
1124
+ </output>
1125
+
1126
+ <action>WAIT for {user_name} decision</action>
1127
+
1128
+ <action>Add stakeholder acceptance to critical path if user agrees</action>
1129
+ </check>
1130
+
1131
+ <action>Explore technical health and stability</action>
1132
+
1133
+ <output>
1134
+ Bob (Scrum Master): "{user_name}, this is a gut-check question: How does the codebase feel after Epic {{epic_number}}?"
1135
+
1136
+ Bob (Scrum Master): "Stable and maintainable? Or are there concerns lurking?"
1137
+
1138
+ Charlie (Senior Dev): "Be honest, {user_name}. We've all shipped epics that felt... fragile."
1139
+ </output>
1140
+
1141
+ <action>WAIT for {user_name} to assess codebase health</action>
1142
+
1143
+ <check if="{user_name} expresses stability concerns">
1144
+ <output>
1145
+ Charlie (Senior Dev): "Okay, let's dig into that. What's causing those concerns?"
1146
+
1147
+ Charlie (Senior Dev): [Helps {user_name} articulate technical concerns]
1148
+
1149
+ Bob (Scrum Master): "What would it take to address these concerns and feel confident about stability?"
1150
+
1151
+ Charlie (Senior Dev): "I'd say we need {{stability_work_needed}}, roughly {{stability_hours}} hours."
1152
+
1153
+ Bob (Scrum Master): "{user_name}, is addressing this stability work worth doing before Epic {{next_epic_num}}?"
1154
+ </output>
1155
+
1156
+ <action>WAIT for {user_name} decision</action>
1157
+
1158
+ <action>Add stability work to preparation sprint if user agrees</action>
1159
+ </check>
1160
+
1161
+ <action>Explore unresolved blockers</action>
1162
+
1163
+ <output>
1164
+ Bob (Scrum Master): "{user_name}, are there any unresolved blockers or technical issues from Epic {{epic_number}} that we're carrying forward?"
1165
+
1166
+ Dana (QA Engineer): "Things that might create problems for Epic {{next_epic_num}} if we don't deal with them?"
1167
+
1168
+ Bob (Scrum Master): "Nothing is off limits here. If there's a problem, we need to know."
1169
+ </output>
1170
+
1171
+ <action>WAIT for {user_name} to surface any blockers</action>
1172
+
1173
+ <check if="blockers identified">
1174
+ <output>
1175
+ Bob (Scrum Master): "Let's capture those blockers and figure out how they affect Epic {{next_epic_num}}."
1176
+
1177
+ Charlie (Senior Dev): "For {{blocker_1}}, if we leave it unresolved, it'll {{impact_description_1}}."
1178
+
1179
+ Alice (Product Owner): "That sounds critical. We need to address that before moving forward."
1180
+
1181
+ Bob (Scrum Master): "Agreed. Adding to critical path: Resolve {{blocker_1}} before Epic {{next_epic_num}} kickoff."
1182
+
1183
+ Bob (Scrum Master): "Who owns that work?"
1184
+ </output>
1185
+
1186
+ <action>Assign blocker resolution to appropriate agent</action>
1187
+ <action>Add to critical path with priority and deadline</action>
1188
+ </check>
1189
+
1190
+ <action>Synthesize the readiness assessment</action>
1191
+
1192
+ <output>
1193
+ Bob (Scrum Master): "Okay {user_name}, let me synthesize what we just uncovered..."
1194
+
1195
+ **EPIC {{epic_number}} READINESS ASSESSMENT:**
1196
+
1197
+ Testing & Quality: {{quality_status}}
1198
+ {{#if quality_concerns}}⚠️ Action needed: {{quality_action_needed}}{{/if}}
1199
+
1200
+ Deployment: {{deployment_status}}
1201
+ {{#if deployment_pending}}⚠️ Scheduled for: {{deployment_date}}{{/if}}
1202
+
1203
+ Stakeholder Acceptance: {{acceptance_status}}
1204
+ {{#if acceptance_incomplete}}⚠️ Action needed: {{acceptance_action_needed}}{{/if}}
1205
+
1206
+ Technical Health: {{stability_status}}
1207
+ {{#if stability_concerns}}⚠️ Action needed: {{stability_action_needed}}{{/if}}
1208
+
1209
+ Unresolved Blockers: {{blocker_status}}
1210
+ {{#if blockers_exist}}⚠️ Must resolve: {{blocker_list}}{{/if}}
1211
+
1212
+ Bob (Scrum Master): "{user_name}, does this assessment match your understanding?"
1213
+ </output>
1214
+
1215
+ <action>WAIT for {user_name} to confirm or correct the assessment</action>
1216
+
1217
+ <output>
1218
+ Bob (Scrum Master): "Based on this assessment, Epic {{epic_number}} is {{#if all_clear}}fully complete and we're clear to proceed{{else}}complete from a story perspective, but we have {{critical_work_count}} critical items before Epic {{next_epic_num}}{{/if}}."
1219
+
1220
+ Alice (Product Owner): "This level of thoroughness is why retrospectives are valuable."
1221
+
1222
+ Charlie (Senior Dev): "Better to catch this now than three stories into the next epic."
1223
+ </output>
1224
+
1225
+ </step>
1226
+
1227
+ <step n="10" goal="Retrospective Closure with Celebration and Commitment">
1228
+
1229
+ <output>
1230
+ Bob (Scrum Master): "We've covered a lot of ground today. Let me bring this retrospective to a close."
1231
+
1232
+ ═══════════════════════════════════════════════════════════
1233
+ ✅ RETROSPECTIVE COMPLETE
1234
+ ═══════════════════════════════════════════════════════════
1235
+
1236
+ Bob (Scrum Master): "Epic {{epic_number}}: {{epic_title}} - REVIEWED"
1237
+
1238
+ **Key Takeaways:**
1239
+
1240
+ 1. {{key_lesson_1}}
1241
+ 2. {{key_lesson_2}}
1242
+ 3. {{key_lesson_3}}
1243
+ {{#if key_lesson_4}}4. {{key_lesson_4}}{{/if}}
1244
+
1245
+ Alice (Product Owner): "That first takeaway is huge - {{impact_of_lesson_1}}."
1246
+
1247
+ Charlie (Senior Dev): "And lesson 2 is something we can apply immediately."
1248
+
1249
+ Bob (Scrum Master): "Commitments made today:"
1250
+
1251
+ - Action Items: {{action_count}}
1252
+ - Preparation Tasks: {{prep_task_count}}
1253
+ - Critical Path Items: {{critical_count}}
1254
+
1255
+ Dana (QA Engineer): "That's a lot of commitments. We need to actually follow through this time."
1256
+
1257
+ Bob (Scrum Master): "Agreed. Which is why we'll review these action items in our next standup."
1258
+
1259
+ ═══════════════════════════════════════════════════════════
1260
+ 🎯 NEXT STEPS:
1261
+ ═══════════════════════════════════════════════════════════
1262
+
1263
+ 1. Execute Preparation Sprint (Est: {{prep_days}} days)
1264
+ 2. Complete Critical Path items before Epic {{next_epic_num}}
1265
+ 3. Review action items in next standup
1266
+ {{#if epic_update_needed}}4. Hold Epic {{next_epic_num}} planning review session{{else}}4. Begin Epic {{next_epic_num}} planning when preparation complete{{/if}}
1267
+
1268
+ Elena (Junior Dev): "{{prep_days}} days of prep work is significant, but necessary."
1269
+
1270
+ Alice (Product Owner): "I'll communicate the timeline to stakeholders. They'll understand if we frame it as 'ensuring Epic {{next_epic_num}} success.'"
1271
+
1272
+ ═══════════════════════════════════════════════════════════
1273
+
1274
+ Bob (Scrum Master): "Before we wrap, I want to take a moment to acknowledge the team."
1275
+
1276
+ Bob (Scrum Master): "Epic {{epic_number}} delivered {{completed_stories}} stories with {{velocity_description}} velocity. We overcame {{blocker_count}} blockers. We learned a lot. That's real work by real people."
1277
+
1278
+ Charlie (Senior Dev): "Hear, hear."
1279
+
1280
+ Alice (Product Owner): "I'm proud of what we shipped."
1281
+
1282
+ Dana (QA Engineer): "And I'm excited about Epic {{next_epic_num}} - especially now that we're prepared for it."
1283
+
1284
+ Bob (Scrum Master): "{user_name}, any final thoughts before we close?"
1285
+ </output>
1286
+
1287
+ <action>WAIT for {user_name} to share final reflections</action>
1288
+
1289
+ <output>
1290
+ Bob (Scrum Master): [Acknowledges what {user_name} shared] "Thank you for that, {user_name}."
1291
+
1292
+ Bob (Scrum Master): "Alright team - great work today. We learned a lot from Epic {{epic_number}}. Let's use these insights to make Epic {{next_epic_num}} even better."
1293
+
1294
+ Bob (Scrum Master): "See you all when prep work is done. Meeting adjourned!"
1295
+
1296
+ ═══════════════════════════════════════════════════════════
1297
+ </output>
1298
+
1299
+ <action>Prepare to save retrospective summary document</action>
1300
+
1301
+ </step>
1302
+
1303
+ <step n="11" goal="Save Retrospective and Update Sprint Status">
1304
+
1305
+ <action>Ensure retrospectives folder exists: {retrospectives_folder}</action>
1306
+ <action>Create folder if it doesn't exist</action>
1307
+
1308
+ <action>Generate comprehensive retrospective summary document including:</action>
1309
+
1310
+ - Epic summary and metrics
1311
+ - Team participants
1312
+ - Successes and strengths identified
1313
+ - Challenges and growth areas
1314
+ - Key insights and learnings
1315
+ - Previous retro follow-through analysis (if applicable)
1316
+ - Next epic preview and dependencies
1317
+ - Action items with owners and timelines
1318
+ - Preparation tasks for next epic
1319
+ - Critical path items
1320
+ - Significant discoveries and epic update recommendations (if any)
1321
+ - Readiness assessment
1322
+ - Commitments and next steps
1323
+
1324
+ <action>Format retrospective document as readable markdown with clear sections</action>
1325
+ <action>Set filename: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md</action>
1326
+ <action>Save retrospective document</action>
1327
+
1328
+ <output>
1329
+ ✅ Retrospective document saved: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md
1330
+ </output>
1331
+
1332
+ <action>Update {sprint_status_file} to mark retrospective as completed</action>
1333
+
1334
+ <action>Load the FULL file: {sprint_status_file}</action>
1335
+ <action>Find development_status key "epic-{{epic_number}}-retrospective"</action>
1336
+ <action>Verify current status (typically "optional" or "pending")</action>
1337
+ <action>Update development_status["epic-{{epic_number}}-retrospective"] = "done"</action>
1338
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
1339
+
1340
+ <check if="update successful">
1341
+ <output>
1342
+ ✅ Retrospective marked as completed in {sprint_status_file}
1343
+
1344
+ Retrospective key: epic-{{epic_number}}-retrospective
1345
+ Status: {{previous_status}} → done
1346
+ </output>
1347
+ </check>
1348
+
1349
+ <check if="retrospective key not found">
1350
+ <output>
1351
+ ⚠️ Could not update retrospective status: epic-{{epic_number}}-retrospective not found in {sprint_status_file}
1352
+
1353
+ Retrospective document was saved successfully, but {sprint_status_file} may need manual update.
1354
+ </output>
1355
+ </check>
1356
+
1357
+ </step>
1358
+
1359
+ <step n="12" goal="Final Summary and Handoff">
1360
+
1361
+ <output>
1362
+ **✅ Retrospective Complete, {user_name}!**
1363
+
1364
+ **Epic Review:**
1365
+
1366
+ - Epic {{epic_number}}: {{epic_title}} reviewed
1367
+ - Retrospective Status: completed
1368
+ - Retrospective saved: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md
1369
+
1370
+ **Commitments Made:**
1371
+
1372
+ - Action Items: {{action_count}}
1373
+ - Preparation Tasks: {{prep_task_count}}
1374
+ - Critical Path Items: {{critical_count}}
1375
+
1376
+ **Next Steps:**
1377
+
1378
+ 1. **Review retrospective summary**: {retrospectives_folder}/epic-{{epic_number}}-retro-{date}.md
1379
+
1380
+ 2. **Execute preparation sprint** (Est: {{prep_days}} days)
1381
+ - Complete {{critical_count}} critical path items
1382
+ - Execute {{prep_task_count}} preparation tasks
1383
+ - Verify all action items are in progress
1384
+
1385
+ 3. **Review action items in next standup**
1386
+ - Ensure ownership is clear
1387
+ - Track progress on commitments
1388
+ - Adjust timelines if needed
1389
+
1390
+ {{#if epic_update_needed}} 4. **IMPORTANT: Schedule Epic {{next_epic_num}} planning review session**
1391
+
1392
+ - Significant discoveries from Epic {{epic_number}} require epic updates
1393
+ - Review and update affected stories
1394
+ - Align team on revised approach
1395
+ - Do NOT start Epic {{next_epic_num}} until review is complete
1396
+ {{else}}
1397
+
1398
+ 4. **Begin Epic {{next_epic_num}} when ready**
1399
+ - Start creating stories with SM agent's `create-story`
1400
+ - Epic will be marked as `in-progress` automatically when first story is created
1401
+ - Ensure all critical path items are done first
1402
+ {{/if}}
1403
+
1404
+ **Team Performance:**
1405
+ Epic {{epic_number}} delivered {{completed_stories}} stories with {{velocity_summary}}. The retrospective surfaced {{insight_count}} key insights and {{significant_discovery_count}} significant discoveries. The team is well-positioned for Epic {{next_epic_num}} success.
1406
+
1407
+ {{#if significant_discovery_count > 0}}
1408
+ ⚠️ **REMINDER**: Epic update required before starting Epic {{next_epic_num}}
1409
+ {{/if}}
1410
+
1411
+ ---
1412
+
1413
+ Bob (Scrum Master): "Great session today, {user_name}. The team did excellent work."
1414
+
1415
+ Alice (Product Owner): "See you at epic planning!"
1416
+
1417
+ Charlie (Senior Dev): "Time to knock out that prep work."
1418
+
1419
+ </output>
1420
+
1421
+ </step>
1422
+
1423
+ </workflow>
1424
+
1425
+ <facilitation-guidelines>
1426
+ <guideline>PARTY MODE REQUIRED: All agent dialogue uses "Name (Role): dialogue" format</guideline>
1427
+ <guideline>Scrum Master maintains psychological safety throughout - no blame or judgment</guideline>
1428
+ <guideline>Focus on systems and processes, not individual performance</guideline>
1429
+ <guideline>Create authentic team dynamics: disagreements, diverse perspectives, emotions</guideline>
1430
+ <guideline>User ({user_name}) is active participant, not passive observer</guideline>
1431
+ <guideline>Encourage specific examples over general statements</guideline>
1432
+ <guideline>Balance celebration of wins with honest assessment of challenges</guideline>
1433
+ <guideline>Ensure every voice is heard - all agents contribute</guideline>
1434
+ <guideline>Action items must be specific, achievable, and owned</guideline>
1435
+ <guideline>Forward-looking mindset - how do we improve for next epic?</guideline>
1436
+ <guideline>Intent-based facilitation, not scripted phrases</guideline>
1437
+ <guideline>Deep story analysis provides rich material for discussion</guideline>
1438
+ <guideline>Previous retro integration creates accountability and continuity</guideline>
1439
+ <guideline>Significant change detection prevents epic misalignment</guideline>
1440
+ <guideline>Critical verification prevents starting next epic prematurely</guideline>
1441
+ <guideline>Document everything - retrospective insights are valuable for future reference</guideline>
1442
+ <guideline>Two-part structure ensures both reflection AND preparation</guideline>
1443
+ </facilitation-guidelines>