bmad-odoo 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/LICENSE +21 -0
  3. package/README.md +317 -0
  4. package/_config/agent-manifest.csv +10 -0
  5. package/_config/manifest.yaml +10 -0
  6. package/_config/workflow-manifest.csv +10 -0
  7. package/bmm/agents/analyst.md +93 -0
  8. package/bmm/agents/architect.md +72 -0
  9. package/bmm/agents/dev.md +85 -0
  10. package/bmm/agents/pm.md +61 -0
  11. package/bmm/agents/quick-flow-solo-dev.md +58 -0
  12. package/bmm/agents/sm.md +56 -0
  13. package/bmm/agents/tea.md +57 -0
  14. package/bmm/agents/tech-writer.md +56 -0
  15. package/bmm/agents/ux-designer.md +56 -0
  16. package/bmm/config.yaml +27 -0
  17. package/bmm/data/odoo-knowledge-base.md +90 -0
  18. package/bmm/teams/default-team.md +17 -0
  19. package/bmm/testarch/odoo-test-design/steps/step-01-init.md +44 -0
  20. package/bmm/testarch/odoo-test-design/steps/step-02-test-cases.md +82 -0
  21. package/bmm/testarch/odoo-test-design/steps/step-03-complete.md +69 -0
  22. package/bmm/testarch/odoo-test-design/workflow.md +30 -0
  23. package/bmm/testarch/odoo-testing-guide.md +30 -0
  24. package/bmm/workflows/1-analysis/analyze-process/process-analysis.template.md +80 -0
  25. package/bmm/workflows/1-analysis/analyze-process/steps/step-01-init.md +44 -0
  26. package/bmm/workflows/1-analysis/analyze-process/steps/step-02-current-state.md +55 -0
  27. package/bmm/workflows/1-analysis/analyze-process/steps/step-03-pain-points.md +67 -0
  28. package/bmm/workflows/1-analysis/analyze-process/steps/step-04-odoo-mapping.md +67 -0
  29. package/bmm/workflows/1-analysis/analyze-process/steps/step-05-recommendations.md +99 -0
  30. package/bmm/workflows/1-analysis/analyze-process/steps/step-06-complete.md +62 -0
  31. package/bmm/workflows/1-analysis/analyze-process/workflow.md +60 -0
  32. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-01-init.md +45 -0
  33. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-02-users-stakeholders.md +46 -0
  34. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-03-odoo-modules.md +59 -0
  35. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-04-scope-timeline.md +64 -0
  36. package/bmm/workflows/1-analysis/create-odoo-product-brief/steps/step-05-complete.md +32 -0
  37. package/bmm/workflows/1-analysis/create-odoo-product-brief/workflow.md +35 -0
  38. package/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +10 -0
  39. package/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +182 -0
  40. package/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +166 -0
  41. package/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +204 -0
  42. package/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +207 -0
  43. package/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +210 -0
  44. package/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +224 -0
  45. package/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +199 -0
  46. package/bmm/workflows/1-analysis/create-product-brief/workflow.md +58 -0
  47. package/bmm/workflows/1-analysis/gap-analysis/steps/step-01-init.md +45 -0
  48. package/bmm/workflows/1-analysis/gap-analysis/steps/step-02-odoo-capabilities.md +36 -0
  49. package/bmm/workflows/1-analysis/gap-analysis/steps/step-03-gap-matrix.md +51 -0
  50. package/bmm/workflows/1-analysis/gap-analysis/workflow.md +45 -0
  51. package/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +137 -0
  52. package/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +229 -0
  53. package/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +238 -0
  54. package/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +206 -0
  55. package/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +234 -0
  56. package/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  57. package/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  58. package/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +237 -0
  59. package/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +200 -0
  60. package/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +249 -0
  61. package/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +259 -0
  62. package/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +177 -0
  63. package/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  64. package/bmm/workflows/1-analysis/research/research.template.md +29 -0
  65. package/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +137 -0
  66. package/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +239 -0
  67. package/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +248 -0
  68. package/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +202 -0
  69. package/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +239 -0
  70. package/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  71. package/bmm/workflows/1-analysis/research/workflow.md +173 -0
  72. package/bmm/workflows/2-plan-workflows/create-odoo-addon/steps/step-01-init.md +48 -0
  73. package/bmm/workflows/2-plan-workflows/create-odoo-addon/steps/step-02-technical-design.md +82 -0
  74. package/bmm/workflows/2-plan-workflows/create-odoo-addon/steps/step-03-generate.md +86 -0
  75. package/bmm/workflows/2-plan-workflows/create-odoo-addon/workflow.md +39 -0
  76. package/bmm/workflows/2-plan-workflows/create-odoo-epic/steps/step-01-init.md +55 -0
  77. package/bmm/workflows/2-plan-workflows/create-odoo-epic/steps/step-02-stories.md +53 -0
  78. package/bmm/workflows/2-plan-workflows/create-odoo-epic/steps/step-03-complete.md +39 -0
  79. package/bmm/workflows/2-plan-workflows/create-odoo-epic/workflow.md +35 -0
  80. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-01-init.md +46 -0
  81. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-02-functional-requirements.md +56 -0
  82. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-03-technical-requirements.md +45 -0
  83. package/bmm/workflows/2-plan-workflows/create-odoo-prd/steps/step-04-complete.md +40 -0
  84. package/bmm/workflows/2-plan-workflows/create-odoo-prd/workflow.md +29 -0
  85. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-01-init.md +52 -0
  86. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-02-form-design.md +78 -0
  87. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-03-tree-design.md +84 -0
  88. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/steps/step-04-complete.md +55 -0
  89. package/bmm/workflows/2-plan-workflows/create-odoo-ux-design/workflow.md +30 -0
  90. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +135 -0
  91. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +127 -0
  92. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +190 -0
  93. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +216 -0
  94. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +219 -0
  95. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +234 -0
  96. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +252 -0
  97. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +254 -0
  98. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +224 -0
  99. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +224 -0
  100. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +241 -0
  101. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +248 -0
  102. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +237 -0
  103. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +264 -0
  104. package/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +228 -0
  105. package/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +13 -0
  106. package/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +43 -0
  107. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/steps/step-01-init.md +49 -0
  108. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/steps/step-02-risk-assessment.md +51 -0
  109. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/steps/step-03-roadmap.md +58 -0
  110. package/bmm/workflows/2-plan-workflows/plan-odoo-migration/workflow.md +29 -0
  111. package/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  112. package/bmm/workflows/2-plan-workflows/prd/prd-template.md +11 -0
  113. package/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  114. package/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +197 -0
  115. package/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +166 -0
  116. package/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +421 -0
  117. package/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +290 -0
  118. package/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +291 -0
  119. package/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +271 -0
  120. package/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +262 -0
  121. package/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +258 -0
  122. package/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +299 -0
  123. package/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +270 -0
  124. package/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +294 -0
  125. package/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +186 -0
  126. package/bmm/workflows/2-plan-workflows/prd/workflow.md +63 -0
  127. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +190 -0
  128. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +178 -0
  129. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -0
  130. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +139 -0
  131. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +252 -0
  132. package/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +133 -0
  133. package/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +4 -0
  134. package/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +55 -0
  135. package/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +12 -0
  136. package/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +11 -0
  137. package/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +7 -0
  138. package/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +153 -0
  139. package/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +164 -0
  140. package/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +224 -0
  141. package/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +331 -0
  142. package/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +318 -0
  143. package/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +359 -0
  144. package/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +379 -0
  145. package/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +359 -0
  146. package/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +352 -0
  147. package/bmm/workflows/3-solutioning/create-architecture/workflow.md +50 -0
  148. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +259 -0
  149. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +233 -0
  150. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +272 -0
  151. package/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +145 -0
  152. package/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
  153. package/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +59 -0
  154. package/bmm/workflows/3-solutioning/enhance-existing-system/steps/step-01-init.md +44 -0
  155. package/bmm/workflows/3-solutioning/enhance-existing-system/steps/step-02-inheritance-strategy.md +75 -0
  156. package/bmm/workflows/3-solutioning/enhance-existing-system/steps/step-03-implementation.md +64 -0
  157. package/bmm/workflows/3-solutioning/enhance-existing-system/workflow.md +30 -0
  158. package/bmm/workflows/3-solutioning/quick-addon/workflow.md +23 -0
  159. package/bmm/workflows/4-implementation/code-review/checklist.md +23 -0
  160. package/bmm/workflows/4-implementation/code-review/instructions.xml +225 -0
  161. package/bmm/workflows/4-implementation/code-review/workflow.yaml +50 -0
  162. package/bmm/workflows/4-implementation/correct-course/checklist.md +279 -0
  163. package/bmm/workflows/4-implementation/correct-course/instructions.md +206 -0
  164. package/bmm/workflows/4-implementation/correct-course/workflow.yaml +58 -0
  165. package/bmm/workflows/4-implementation/create-next-story/steps/step-01-init.md +53 -0
  166. package/bmm/workflows/4-implementation/create-next-story/steps/step-02-acceptance-criteria.md +63 -0
  167. package/bmm/workflows/4-implementation/create-next-story/steps/step-03-tasks.md +68 -0
  168. package/bmm/workflows/4-implementation/create-next-story/steps/step-04-complete.md +70 -0
  169. package/bmm/workflows/4-implementation/create-next-story/workflow.md +30 -0
  170. package/bmm/workflows/4-implementation/dev-story/checklist.md +80 -0
  171. package/bmm/workflows/4-implementation/dev-story/instructions.xml +409 -0
  172. package/bmm/workflows/4-implementation/dev-story/workflow.yaml +25 -0
  173. package/bmm/workflows/4-implementation/rapid-brownfield/steps/step-01-quick-story.md +79 -0
  174. package/bmm/workflows/4-implementation/rapid-brownfield/workflow.md +29 -0
  175. package/bmm/workflows/4-implementation/retrospective/instructions.md +1443 -0
  176. package/bmm/workflows/4-implementation/retrospective/workflow.yaml +57 -0
  177. package/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  178. package/bmm/workflows/4-implementation/sprint-planning/instructions.md +225 -0
  179. package/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  180. package/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +52 -0
  181. package/bmm/workflows/4-implementation/sprint-status/instructions.md +229 -0
  182. package/bmm/workflows/4-implementation/sprint-status/workflow.yaml +35 -0
  183. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md +189 -0
  184. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md +144 -0
  185. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md +128 -0
  186. package/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md +173 -0
  187. package/bmm/workflows/bmad-quick-flow/create-tech-spec/tech-spec-template.md +74 -0
  188. package/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md +79 -0
  189. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +156 -0
  190. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -0
  191. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +113 -0
  192. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +113 -0
  193. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -0
  194. package/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +140 -0
  195. package/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +52 -0
  196. package/bmm/workflows/document-odoo/steps/step-01-init.md +43 -0
  197. package/bmm/workflows/document-odoo/steps/step-02-readme.md +98 -0
  198. package/bmm/workflows/document-odoo/steps/step-03-user-guide.md +76 -0
  199. package/bmm/workflows/document-odoo/steps/step-04-complete.md +58 -0
  200. package/bmm/workflows/document-odoo/workflow.md +30 -0
  201. package/bmm/workflows/document-project/checklist.md +245 -0
  202. package/bmm/workflows/document-project/documentation-requirements.csv +12 -0
  203. package/bmm/workflows/document-project/instructions.md +221 -0
  204. package/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
  205. package/bmm/workflows/document-project/templates/index-template.md +169 -0
  206. package/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
  207. package/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  208. package/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
  209. package/bmm/workflows/document-project/workflow.yaml +28 -0
  210. package/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  211. package/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
  212. package/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  213. package/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
  214. package/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-library.json +90 -0
  215. package/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-templates.yaml +127 -0
  216. package/bmm/workflows/excalidraw-diagrams/create-dataflow/checklist.md +39 -0
  217. package/bmm/workflows/excalidraw-diagrams/create-dataflow/instructions.md +130 -0
  218. package/bmm/workflows/excalidraw-diagrams/create-dataflow/workflow.yaml +26 -0
  219. package/bmm/workflows/excalidraw-diagrams/create-diagram/checklist.md +43 -0
  220. package/bmm/workflows/excalidraw-diagrams/create-diagram/instructions.md +141 -0
  221. package/bmm/workflows/excalidraw-diagrams/create-diagram/workflow.yaml +26 -0
  222. package/bmm/workflows/excalidraw-diagrams/create-flowchart/checklist.md +49 -0
  223. package/bmm/workflows/excalidraw-diagrams/create-flowchart/instructions.md +241 -0
  224. package/bmm/workflows/excalidraw-diagrams/create-flowchart/workflow.yaml +26 -0
  225. package/bmm/workflows/excalidraw-diagrams/create-wireframe/checklist.md +38 -0
  226. package/bmm/workflows/excalidraw-diagrams/create-wireframe/instructions.md +133 -0
  227. package/bmm/workflows/excalidraw-diagrams/create-wireframe/workflow.yaml +26 -0
  228. package/bmm/workflows/generate-project-context/project-context-template.md +21 -0
  229. package/bmm/workflows/generate-project-context/steps/step-01-discover.md +184 -0
  230. package/bmm/workflows/generate-project-context/steps/step-02-generate.md +318 -0
  231. package/bmm/workflows/generate-project-context/steps/step-03-complete.md +278 -0
  232. package/bmm/workflows/generate-project-context/workflow.md +49 -0
  233. package/bmm/workflows/testarch/atdd/atdd-checklist-template.md +364 -0
  234. package/bmm/workflows/testarch/atdd/checklist.md +374 -0
  235. package/bmm/workflows/testarch/atdd/instructions.md +806 -0
  236. package/bmm/workflows/testarch/atdd/workflow.yaml +45 -0
  237. package/bmm/workflows/testarch/automate/checklist.md +582 -0
  238. package/bmm/workflows/testarch/automate/instructions.md +1324 -0
  239. package/bmm/workflows/testarch/automate/workflow.yaml +52 -0
  240. package/bmm/workflows/testarch/ci/checklist.md +248 -0
  241. package/bmm/workflows/testarch/ci/github-actions-template.yaml +198 -0
  242. package/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +149 -0
  243. package/bmm/workflows/testarch/ci/instructions.md +536 -0
  244. package/bmm/workflows/testarch/ci/workflow.yaml +45 -0
  245. package/bmm/workflows/testarch/framework/checklist.md +321 -0
  246. package/bmm/workflows/testarch/framework/instructions.md +481 -0
  247. package/bmm/workflows/testarch/framework/workflow.yaml +47 -0
  248. package/bmm/workflows/testarch/nfr-assess/checklist.md +407 -0
  249. package/bmm/workflows/testarch/nfr-assess/instructions.md +722 -0
  250. package/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +445 -0
  251. package/bmm/workflows/testarch/nfr-assess/workflow.yaml +47 -0
  252. package/bmm/workflows/testarch/test-design/checklist.md +235 -0
  253. package/bmm/workflows/testarch/test-design/instructions.md +788 -0
  254. package/bmm/workflows/testarch/test-design/test-design-template.md +294 -0
  255. package/bmm/workflows/testarch/test-design/workflow.yaml +54 -0
  256. package/bmm/workflows/testarch/test-review/checklist.md +472 -0
  257. package/bmm/workflows/testarch/test-review/instructions.md +628 -0
  258. package/bmm/workflows/testarch/test-review/test-review-template.md +390 -0
  259. package/bmm/workflows/testarch/test-review/workflow.yaml +46 -0
  260. package/bmm/workflows/testarch/trace/checklist.md +655 -0
  261. package/bmm/workflows/testarch/trace/instructions.md +1047 -0
  262. package/bmm/workflows/testarch/trace/trace-template.md +675 -0
  263. package/bmm/workflows/testarch/trace/workflow.yaml +55 -0
  264. package/bmm/workflows/workflow-status/init/instructions.md +346 -0
  265. package/bmm/workflows/workflow-status/init/workflow.yaml +29 -0
  266. package/bmm/workflows/workflow-status/instructions.md +395 -0
  267. package/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +103 -0
  268. package/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +100 -0
  269. package/bmm/workflows/workflow-status/paths/method-brownfield.yaml +103 -0
  270. package/bmm/workflows/workflow-status/paths/method-greenfield.yaml +100 -0
  271. package/bmm/workflows/workflow-status/project-levels.yaml +59 -0
  272. package/bmm/workflows/workflow-status/workflow-status-template.yaml +24 -0
  273. package/bmm/workflows/workflow-status/workflow.yaml +30 -0
  274. package/core/agents/bmad-odoo-master.md +61 -0
  275. package/core/config.yaml +7 -0
  276. package/core/resources/README.md +5 -0
  277. package/core/tasks/README.md +7 -0
  278. package/core/workflows/README.md +8 -0
  279. package/index.js +84 -0
  280. package/package.json +48 -0
  281. package/scripts/postinstall.js +447 -0
  282. package/scripts/setup-cli.js +17 -0
@@ -0,0 +1,68 @@
1
+ # Bước 3: Chia Nhỏ Tasks
2
+
3
+ ## 1. Mục Tiêu
4
+
5
+ Chia story thành các tasks và subtasks cụ thể, có thể thực hiện được.
6
+
7
+ ## 2. Tasks Breakdown
8
+
9
+ ### Task 1: {Tên task}
10
+ **Mô tả:** {mô tả chi tiết}
11
+ **Files liên quan:** {đường dẫn file}
12
+
13
+ - [ ] Subtask 1.1: {mô tả}
14
+ - [ ] Subtask 1.2: {mô tả}
15
+ - [ ] Subtask 1.3: Viết test cho task 1
16
+
17
+ ### Task 2: {Tên task}
18
+ **Mô tả:**
19
+ **Files liên quan:**
20
+
21
+ - [ ] Subtask 2.1:
22
+ - [ ] Subtask 2.2:
23
+ - [ ] Subtask 2.3: Viết test cho task 2
24
+
25
+ ### Task 3: Kiểm Thử Tích Hợp
26
+ - [ ] Subtask 3.1: Viết integration tests
27
+ - [ ] Subtask 3.2: Chạy full test suite
28
+ - [ ] Subtask 3.3: Fix any failing tests
29
+
30
+ ## 3. Ví Dụ Task Breakdown
31
+
32
+ ```markdown
33
+ ### Task 1: Thêm field mới vào Sale Order
34
+ **Files:** sale_extension/models/sale_order.py
35
+
36
+ - [ ] 1.1: Thêm field `custom_reference` (Char)
37
+ - [ ] 1.2: Thêm computed field `total_with_tax`
38
+ - [ ] 1.3: Cập nhật `__init__.py`
39
+ - [ ] 1.4: Viết unit test cho các field mới
40
+
41
+ ### Task 2: Cập nhật View
42
+ **Files:** sale_extension/views/sale_order_views.xml
43
+
44
+ - [ ] 2.1: Thêm field vào form view
45
+ - [ ] 2.2: Thêm field vào tree view
46
+ - [ ] 2.3: Thêm vào search filter
47
+ ```
48
+
49
+ ## 4. Quy Tắc
50
+
51
+ - Mỗi subtask nên hoàn thành trong 1-2 giờ
52
+ - Mỗi subtask kết thúc với test (TDD)
53
+ - Không subtask nào phụ thuộc vào subtask khác trong cùng task
54
+
55
+ ---
56
+
57
+ ## 5. Menu
58
+
59
+ ```
60
+ [C] Tiếp tục - Đã chia task xong
61
+ [A] Add - Thêm task
62
+ [E] Edit - Sửa task
63
+ [B] Quay lại
64
+ ```
65
+
66
+ ## 6. Hành Động Tiếp Theo
67
+
68
+ Khi chọn **[C]**: Tải `steps/step-04-complete.md`
@@ -0,0 +1,70 @@
1
+ # Bước 4: Hoàn Thành Story
2
+
3
+ ## 1. Tóm Tắt Story
4
+
5
+ ```
6
+ 📋 STORY ĐÃ TẠO
7
+
8
+ Story ID: {story_id}
9
+ Tiêu đề: {title}
10
+ Ưu tiên: {priority}
11
+ Story Points: {points}
12
+
13
+ ACCEPTANCE CRITERIA: {count} ACs
14
+ TASKS: {task_count} tasks, {subtask_count} subtasks
15
+ ```
16
+
17
+ ## 2. Story File Output
18
+
19
+ Tạo file story với format:
20
+
21
+ ```markdown
22
+ ---
23
+ id: {story_id}
24
+ status: draft
25
+ priority: {priority}
26
+ points: {points}
27
+ epic: {epic_id}
28
+ stepsCompleted: []
29
+ ---
30
+
31
+ # {Story Title}
32
+
33
+ ## User Story
34
+ Với vai trò {role}, tôi muốn {action} để {benefit}.
35
+
36
+ ## Acceptance Criteria
37
+
38
+ ### AC-01: {name}
39
+ - GIVEN:
40
+ - WHEN:
41
+ - THEN:
42
+
43
+ ## Tasks
44
+
45
+ ### Task 1: {name}
46
+ - [ ] Subtask 1.1
47
+ - [ ] Subtask 1.2
48
+
49
+ ## Technical Notes
50
+ {any technical notes}
51
+
52
+ ## Definition of Done
53
+ - [ ] Tất cả tasks hoàn thành
54
+ - [ ] Tất cả tests pass
55
+ - [ ] Code review hoàn thành
56
+ - [ ] Tài liệu cập nhật
57
+ ```
58
+
59
+ ## 3. Đầu Ra
60
+
61
+ File story: `{implementation_artifacts}/story-{id}-{name}.md`
62
+
63
+ ## 4. Bước Tiếp Theo
64
+
65
+ ```
66
+ [1] Bắt đầu phát triển story này (workflow dev-story)
67
+ [2] Tạo story tiếp theo
68
+ [3] Xem backlog
69
+ [X] Quay về menu chính
70
+ ```
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: create-next-story
3
+ description: Tạo story phát triển chi tiết từ Epic để AI developers có thể triển khai ngay.
4
+ web_bundle: true
5
+ ---
6
+
7
+ # Quy Trình Tạo Story Phát Triển
8
+
9
+ **Mục tiêu:** Tạo story phát triển siêu chi tiết với acceptance criteria và tasks breakdown để các nhà phát triển AI có thể triển khai ngay.
10
+
11
+ **Vai trò:** Chuyên viên Phân tích Nghiệp vụ Odoo kết hợp với Scrum Master.
12
+
13
+ ---
14
+
15
+ ## KIẾN TRÚC QUY TRÌNH
16
+
17
+ Quy trình này sử dụng **kiến trúc step-file** để thực thi có kỷ luật.
18
+
19
+ ---
20
+
21
+ ## TRÌNH TỰ KHỞI TẠO
22
+
23
+ ### 1. Tải Cấu Hình
24
+
25
+ Tải config từ {project-root}/_bmad-odoo/bmm/config.yaml:
26
+ - `implementation_artifacts`, `devStoryLocation`
27
+
28
+ ### 2. THỰC THI Bước Đầu Tiên
29
+
30
+ Tải và thực thi `{project-root}/_bmad-odoo/bmm/workflows/4-implementation/create-next-story/steps/step-01-init.md`
@@ -0,0 +1,80 @@
1
+ ---
2
+ title: 'Enhanced Dev Story Definition of Done Checklist'
3
+ validation-target: 'Story markdown ({{story_path}})'
4
+ validation-criticality: 'HIGHEST'
5
+ required-inputs:
6
+ - 'Story markdown file with enhanced Dev Notes containing comprehensive implementation context'
7
+ - 'Completed Tasks/Subtasks section with all items marked [x]'
8
+ - 'Updated File List section with all changed files'
9
+ - 'Updated Dev Agent Record with implementation notes'
10
+ optional-inputs:
11
+ - 'Test results output'
12
+ - 'CI logs'
13
+ - 'Linting reports'
14
+ validation-rules:
15
+ - 'Only permitted story sections modified: Tasks/Subtasks checkboxes, Dev Agent Record, File List, Change Log, Status'
16
+ - 'All implementation requirements from story Dev Notes must be satisfied'
17
+ - 'Definition of Done checklist must pass completely'
18
+ - 'Enhanced story context must contain sufficient technical guidance'
19
+ ---
20
+
21
+ # 🎯 Enhanced Definition of Done Checklist
22
+
23
+ **Critical validation:** Story is truly ready for review only when ALL items below are satisfied
24
+
25
+ ## 📋 Context & Requirements Validation
26
+
27
+ - [ ] **Story Context Completeness:** Dev Notes contains ALL necessary technical requirements, architecture patterns, and implementation guidance
28
+ - [ ] **Architecture Compliance:** Implementation follows all architectural requirements specified in Dev Notes
29
+ - [ ] **Technical Specifications:** All technical specifications (libraries, frameworks, versions) from Dev Notes are implemented correctly
30
+ - [ ] **Previous Story Learnings:** Previous story insights incorporated (if applicable) and build upon appropriately
31
+
32
+ ## ✅ Implementation Completion
33
+
34
+ - [ ] **All Tasks Complete:** Every task and subtask marked complete with [x]
35
+ - [ ] **Acceptance Criteria Satisfaction:** Implementation satisfies EVERY Acceptance Criterion in the story
36
+ - [ ] **No Ambiguous Implementation:** Clear, unambiguous implementation that meets story requirements
37
+ - [ ] **Edge Cases Handled:** Error conditions and edge cases appropriately addressed
38
+ - [ ] **Dependencies Within Scope:** Only uses dependencies specified in story or project-context.md
39
+
40
+ ## 🧪 Testing & Quality Assurance
41
+
42
+ - [ ] **Unit Tests:** Unit tests added/updated for ALL core functionality introduced/changed by this story
43
+ - [ ] **Integration Tests:** Integration tests added/updated for component interactions when story requirements demand them
44
+ - [ ] **End-to-End Tests:** End-to-end tests created for critical user flows when story requirements specify them
45
+ - [ ] **Test Coverage:** Tests cover acceptance criteria and edge cases from story Dev Notes
46
+ - [ ] **Regression Prevention:** ALL existing tests pass (no regressions introduced)
47
+ - [ ] **Code Quality:** Linting and static checks pass when configured in project
48
+ - [ ] **Test Framework Compliance:** Tests use project's testing frameworks and patterns from Dev Notes
49
+
50
+ ## 📝 Documentation & Tracking
51
+
52
+ - [ ] **File List Complete:** File List includes EVERY new, modified, or deleted file (paths relative to repo root)
53
+ - [ ] **Dev Agent Record Updated:** Contains relevant Implementation Notes and/or Debug Log for this work
54
+ - [ ] **Change Log Updated:** Change Log includes clear summary of what changed and why
55
+ - [ ] **Review Follow-ups:** All review follow-up tasks (marked [AI-Review]) completed and corresponding review items marked resolved (if applicable)
56
+ - [ ] **Story Structure Compliance:** Only permitted sections of story file were modified
57
+
58
+ ## 🔚 Final Status Verification
59
+
60
+ - [ ] **Story Status Updated:** Story Status set to "review"
61
+ - [ ] **Sprint Status Updated:** Sprint status updated to "review" (when sprint tracking is used)
62
+ - [ ] **Quality Gates Passed:** All quality checks and validations completed successfully
63
+ - [ ] **No HALT Conditions:** No blocking issues or incomplete work remaining
64
+ - [ ] **User Communication Ready:** Implementation summary prepared for user review
65
+
66
+ ## 🎯 Final Validation Output
67
+
68
+ ```
69
+ Definition of Done: {{PASS/FAIL}}
70
+
71
+ ✅ **Story Ready for Review:** {{story_key}}
72
+ 📊 **Completion Score:** {{completed_items}}/{{total_items}} items passed
73
+ 🔍 **Quality Gates:** {{quality_gates_status}}
74
+ 📋 **Test Results:** {{test_results_summary}}
75
+ 📝 **Documentation:** {{documentation_status}}
76
+ ```
77
+
78
+ **If FAIL:** List specific failures and required actions before story can be marked Ready for Review
79
+
80
+ **If PASS:** Story is fully ready for code review and production consideration
@@ -0,0 +1,409 @@
1
+ <workflow>
2
+ <critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
3
+ <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
4
+ <critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
5
+ <critical>Generate all documents in {document_output_language}</critical>
6
+ <critical>Only modify the story file in these areas: Tasks/Subtasks checkboxes, Dev Agent Record (Debug Log, Completion Notes), File List,
7
+ Change Log, and Status</critical>
8
+ <critical>Execute ALL steps in exact order; do NOT skip steps</critical>
9
+ <critical>Absolutely DO NOT stop because of "milestones", "significant progress", or "session boundaries". Continue in a single execution
10
+ until the story is COMPLETE (all ACs satisfied and all tasks/subtasks checked) UNLESS a HALT condition is triggered or the USER gives
11
+ other instruction.</critical>
12
+ <critical>Do NOT schedule a "next session" or request review pauses unless a HALT condition applies. Only Step 6 decides completion.</critical>
13
+ <critical>User skill level ({user_skill_level}) affects conversation style ONLY, not code updates.</critical>
14
+
15
+ <step n="1" goal="Find next ready story and load it" tag="sprint-status">
16
+ <check if="{{story_path}} is provided">
17
+ <action>Use {{story_path}} directly</action>
18
+ <action>Read COMPLETE story file</action>
19
+ <action>Extract story_key from filename or metadata</action>
20
+ <goto anchor="task_check" />
21
+ </check>
22
+
23
+ <!-- Sprint-based story discovery -->
24
+ <check if="{{sprint_status}} file exists">
25
+ <critical>MUST read COMPLETE sprint-status.yaml file from start to end to preserve order</critical>
26
+ <action>Load the FULL file: {{sprint_status}}</action>
27
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
28
+ <action>Parse the development_status section completely to understand story order</action>
29
+
30
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
31
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
32
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
33
+ - Status value equals "ready-for-dev"
34
+ </action>
35
+
36
+ <check if="no ready-for-dev or in-progress story found">
37
+ <output>📋 No ready-for-dev stories found in sprint-status.yaml
38
+
39
+ **Current Sprint Status:** {{sprint_status_summary}}
40
+
41
+ **What would you like to do?**
42
+ 1. Run `create-story` to create next story from epics with comprehensive context
43
+ 2. Run `*validate-create-story` to improve existing stories before development (recommended quality check)
44
+ 3. Specify a particular story file to develop (provide full path)
45
+ 4. Check {{sprint_status}} file to see current sprint status
46
+
47
+ 💡 **Tip:** Stories in `ready-for-dev` may not have been validated. Consider running `validate-create-story` first for a quality
48
+ check.
49
+ </output>
50
+ <ask>Choose option [1], [2], [3], or [4], or specify story file path:</ask>
51
+
52
+ <check if="user chooses '1'">
53
+ <action>HALT - Run create-story to create next story</action>
54
+ </check>
55
+
56
+ <check if="user chooses '2'">
57
+ <action>HALT - Run validate-create-story to improve existing stories</action>
58
+ </check>
59
+
60
+ <check if="user chooses '3'">
61
+ <ask>Provide the story file path to develop:</ask>
62
+ <action>Store user-provided story path as {{story_path}}</action>
63
+ <goto anchor="task_check" />
64
+ </check>
65
+
66
+ <check if="user chooses '4'">
67
+ <output>Loading {{sprint_status}} for detailed status review...</output>
68
+ <action>Display detailed sprint status analysis</action>
69
+ <action>HALT - User can review sprint status and provide story path</action>
70
+ </check>
71
+
72
+ <check if="user provides story file path">
73
+ <action>Store user-provided story path as {{story_path}}</action>
74
+ <goto anchor="task_check" />
75
+ </check>
76
+ </check>
77
+ </check>
78
+
79
+ <!-- Non-sprint story discovery -->
80
+ <check if="{{sprint_status}} file does NOT exist">
81
+ <action>Search {story_dir} for stories directly</action>
82
+ <action>Find stories with "ready-for-dev" status in files</action>
83
+ <action>Look for story files matching pattern: *-*-*.md</action>
84
+ <action>Read each candidate story file to check Status section</action>
85
+
86
+ <check if="no ready-for-dev stories found in story files">
87
+ <output>📋 No ready-for-dev stories found
88
+
89
+ **Available Options:**
90
+ 1. Run `create-story` to create next story from epics with comprehensive context
91
+ 2. Run `*validate-create-story` to improve existing stories
92
+ 3. Specify which story to develop
93
+ </output>
94
+ <ask>What would you like to do? Choose option [1], [2], or [3]:</ask>
95
+
96
+ <check if="user chooses '1'">
97
+ <action>HALT - Run create-story to create next story</action>
98
+ </check>
99
+
100
+ <check if="user chooses '2'">
101
+ <action>HALT - Run validate-create-story to improve existing stories</action>
102
+ </check>
103
+
104
+ <check if="user chooses '3'">
105
+ <ask>It's unclear what story you want developed. Please provide the full path to the story file:</ask>
106
+ <action>Store user-provided story path as {{story_path}}</action>
107
+ <action>Continue with provided story file</action>
108
+ </check>
109
+ </check>
110
+
111
+ <check if="ready-for-dev story found in files">
112
+ <action>Use discovered story file and extract story_key</action>
113
+ </check>
114
+ </check>
115
+
116
+ <action>Store the found story_key (e.g., "1-2-user-authentication") for later status updates</action>
117
+ <action>Find matching story file in {story_dir} using story_key pattern: {{story_key}}.md</action>
118
+ <action>Read COMPLETE story file from discovered path</action>
119
+
120
+ <anchor id="task_check" />
121
+
122
+ <action>Parse sections: Story, Acceptance Criteria, Tasks/Subtasks, Dev Notes, Dev Agent Record, File List, Change Log, Status</action>
123
+
124
+ <action>Load comprehensive context from story file's Dev Notes section</action>
125
+ <action>Extract developer guidance from Dev Notes: architecture requirements, previous learnings, technical specifications</action>
126
+ <action>Use enhanced story context to inform implementation decisions and approaches</action>
127
+
128
+ <action>Identify first incomplete task (unchecked [ ]) in Tasks/Subtasks</action>
129
+
130
+ <action if="no incomplete tasks">
131
+ <goto step="6">Completion sequence</goto>
132
+ </action>
133
+ <action if="story file inaccessible">HALT: "Cannot develop story without access to story file"</action>
134
+ <action if="incomplete task or subtask requirements ambiguous">ASK user to clarify or HALT</action>
135
+ </step>
136
+
137
+ <step n="2" goal="Load project context and story information">
138
+ <critical>Load all available context to inform implementation</critical>
139
+
140
+ <action>Load {project_context} for coding standards and project-wide patterns (if exists)</action>
141
+ <action>Parse sections: Story, Acceptance Criteria, Tasks/Subtasks, Dev Notes, Dev Agent Record, File List, Change Log, Status</action>
142
+ <action>Load comprehensive context from story file's Dev Notes section</action>
143
+ <action>Extract developer guidance from Dev Notes: architecture requirements, previous learnings, technical specifications</action>
144
+ <action>Use enhanced story context to inform implementation decisions and approaches</action>
145
+ <output>✅ **Context Loaded**
146
+ Story and project context available for implementation
147
+ </output>
148
+ </step>
149
+
150
+ <step n="3" goal="Detect review continuation and extract review context">
151
+ <critical>Determine if this is a fresh start or continuation after code review</critical>
152
+
153
+ <action>Check if "Senior Developer Review (AI)" section exists in the story file</action>
154
+ <action>Check if "Review Follow-ups (AI)" subsection exists under Tasks/Subtasks</action>
155
+
156
+ <check if="Senior Developer Review section exists">
157
+ <action>Set review_continuation = true</action>
158
+ <action>Extract from "Senior Developer Review (AI)" section:
159
+ - Review outcome (Approve/Changes Requested/Blocked)
160
+ - Review date
161
+ - Total action items with checkboxes (count checked vs unchecked)
162
+ - Severity breakdown (High/Med/Low counts)
163
+ </action>
164
+ <action>Count unchecked [ ] review follow-up tasks in "Review Follow-ups (AI)" subsection</action>
165
+ <action>Store list of unchecked review items as {{pending_review_items}}</action>
166
+
167
+ <output>⏯️ **Resuming Story After Code Review** ({{review_date}})
168
+
169
+ **Review Outcome:** {{review_outcome}}
170
+ **Action Items:** {{unchecked_review_count}} remaining to address
171
+ **Priorities:** {{high_count}} High, {{med_count}} Medium, {{low_count}} Low
172
+
173
+ **Strategy:** Will prioritize review follow-up tasks (marked [AI-Review]) before continuing with regular tasks.
174
+ </output>
175
+ </check>
176
+
177
+ <check if="Senior Developer Review section does NOT exist">
178
+ <action>Set review_continuation = false</action>
179
+ <action>Set {{pending_review_items}} = empty</action>
180
+
181
+ <output>🚀 **Starting Fresh Implementation**
182
+
183
+ Story: {{story_key}}
184
+ Story Status: {{current_status}}
185
+ First incomplete task: {{first_task_description}}
186
+ </output>
187
+ </check>
188
+ </step>
189
+
190
+ <step n="4" goal="Mark story in-progress" tag="sprint-status">
191
+ <check if="{{sprint_status}} file exists">
192
+ <action>Load the FULL file: {{sprint_status}}</action>
193
+ <action>Read all development_status entries to find {{story_key}}</action>
194
+ <action>Get current status value for development_status[{{story_key}}]</action>
195
+
196
+ <check if="current status == 'ready-for-dev' OR review_continuation == true">
197
+ <action>Update the story in the sprint status report to = "in-progress"</action>
198
+ <output>🚀 Starting work on story {{story_key}}
199
+ Status updated: ready-for-dev → in-progress
200
+ </output>
201
+ </check>
202
+
203
+ <check if="current status == 'in-progress'">
204
+ <output>⏯️ Resuming work on story {{story_key}}
205
+ Story is already marked in-progress
206
+ </output>
207
+ </check>
208
+
209
+ <check if="current status is neither ready-for-dev nor in-progress">
210
+ <output>⚠️ Unexpected story status: {{current_status}}
211
+ Expected ready-for-dev or in-progress. Continuing anyway...
212
+ </output>
213
+ </check>
214
+
215
+ <action>Store {{current_sprint_status}} for later use</action>
216
+ </check>
217
+
218
+ <check if="{{sprint_status}} file does NOT exist">
219
+ <output>ℹ️ No sprint status file exists - story progress will be tracked in story file only</output>
220
+ <action>Set {{current_sprint_status}} = "no-sprint-tracking"</action>
221
+ </check>
222
+ </step>
223
+
224
+ <step n="5" goal="Implement task following red-green-refactor cycle">
225
+ <critical>FOLLOW THE STORY FILE TASKS/SUBTASKS SEQUENCE EXACTLY AS WRITTEN - NO DEVIATION</critical>
226
+
227
+ <action>Review the current task/subtask from the story file - this is your authoritative implementation guide</action>
228
+ <action>Plan implementation following red-green-refactor cycle</action>
229
+
230
+ <!-- RED PHASE -->
231
+ <action>Write FAILING tests first for the task/subtask functionality</action>
232
+ <action>Confirm tests fail before implementation - this validates test correctness</action>
233
+
234
+ <!-- GREEN PHASE -->
235
+ <action>Implement MINIMAL code to make tests pass</action>
236
+ <action>Run tests to confirm they now pass</action>
237
+ <action>Handle error conditions and edge cases as specified in task/subtask</action>
238
+
239
+ <!-- REFACTOR PHASE -->
240
+ <action>Improve code structure while keeping tests green</action>
241
+ <action>Ensure code follows architecture patterns and coding standards from Dev Notes</action>
242
+
243
+ <action>Document technical approach and decisions in Dev Agent Record → Implementation Plan</action>
244
+
245
+ <action if="new dependencies required beyond story specifications">HALT: "Additional dependencies need user approval"</action>
246
+ <action if="3 consecutive implementation failures occur">HALT and request guidance</action>
247
+ <action if="required configuration is missing">HALT: "Cannot proceed without necessary configuration files"</action>
248
+
249
+ <critical>NEVER implement anything not mapped to a specific task/subtask in the story file</critical>
250
+ <critical>NEVER proceed to next task until current task/subtask is complete AND tests pass</critical>
251
+ <critical>Execute continuously without pausing until all tasks/subtasks are complete or explicit HALT condition</critical>
252
+ <critical>Do NOT propose to pause for review until Step 9 completion gates are satisfied</critical>
253
+ </step>
254
+
255
+ <step n="6" goal="Author comprehensive tests">
256
+ <action>Create unit tests for business logic and core functionality introduced/changed by the task</action>
257
+ <action>Add integration tests for component interactions specified in story requirements</action>
258
+ <action>Include end-to-end tests for critical user flows when story requirements demand them</action>
259
+ <action>Cover edge cases and error handling scenarios identified in story Dev Notes</action>
260
+ </step>
261
+
262
+ <step n="7" goal="Run validations and tests">
263
+ <action>Determine how to run tests for this repo (infer test framework from project structure)</action>
264
+ <action>Run all existing tests to ensure no regressions</action>
265
+ <action>Run the new tests to verify implementation correctness</action>
266
+ <action>Run linting and code quality checks if configured in project</action>
267
+ <action>Validate implementation meets ALL story acceptance criteria; enforce quantitative thresholds explicitly</action>
268
+ <action if="regression tests fail">STOP and fix before continuing - identify breaking changes immediately</action>
269
+ <action if="new tests fail">STOP and fix before continuing - ensure implementation correctness</action>
270
+ </step>
271
+
272
+ <step n="8" goal="Validate and mark task complete ONLY when fully done">
273
+ <critical>NEVER mark a task complete unless ALL conditions are met - NO LYING OR CHEATING</critical>
274
+
275
+ <!-- VALIDATION GATES -->
276
+ <action>Verify ALL tests for this task/subtask ACTUALLY EXIST and PASS 100%</action>
277
+ <action>Confirm implementation matches EXACTLY what the task/subtask specifies - no extra features</action>
278
+ <action>Validate that ALL acceptance criteria related to this task are satisfied</action>
279
+ <action>Run full test suite to ensure NO regressions introduced</action>
280
+
281
+ <!-- REVIEW FOLLOW-UP HANDLING -->
282
+ <check if="task is review follow-up (has [AI-Review] prefix)">
283
+ <action>Extract review item details (severity, description, related AC/file)</action>
284
+ <action>Add to resolution tracking list: {{resolved_review_items}}</action>
285
+
286
+ <!-- Mark task in Review Follow-ups section -->
287
+ <action>Mark task checkbox [x] in "Tasks/Subtasks → Review Follow-ups (AI)" section</action>
288
+
289
+ <!-- CRITICAL: Also mark corresponding action item in review section -->
290
+ <action>Find matching action item in "Senior Developer Review (AI) → Action Items" section by matching description</action>
291
+ <action>Mark that action item checkbox [x] as resolved</action>
292
+
293
+ <action>Add to Dev Agent Record → Completion Notes: "✅ Resolved review finding [{{severity}}]: {{description}}"</action>
294
+ </check>
295
+
296
+ <!-- ONLY MARK COMPLETE IF ALL VALIDATION PASS -->
297
+ <check if="ALL validation gates pass AND tests ACTUALLY exist and pass">
298
+ <action>ONLY THEN mark the task (and subtasks) checkbox with [x]</action>
299
+ <action>Update File List section with ALL new, modified, or deleted files (paths relative to repo root)</action>
300
+ <action>Add completion notes to Dev Agent Record summarizing what was ACTUALLY implemented and tested</action>
301
+ </check>
302
+
303
+ <check if="ANY validation fails">
304
+ <action>DO NOT mark task complete - fix issues first</action>
305
+ <action>HALT if unable to fix validation failures</action>
306
+ </check>
307
+
308
+ <check if="review_continuation == true and {{resolved_review_items}} is not empty">
309
+ <action>Count total resolved review items in this session</action>
310
+ <action>Add Change Log entry: "Addressed code review findings - {{resolved_count}} items resolved (Date: {{date}})"</action>
311
+ </check>
312
+
313
+ <action>Save the story file</action>
314
+ <action>Determine if more incomplete tasks remain</action>
315
+ <action if="more tasks remain">
316
+ <goto step="5">Next task</goto>
317
+ </action>
318
+ <action if="no tasks remain">
319
+ <goto step="9">Completion</goto>
320
+ </action>
321
+ </step>
322
+
323
+ <step n="9" goal="Story completion and mark for review" tag="sprint-status">
324
+ <action>Verify ALL tasks and subtasks are marked [x] (re-scan the story document now)</action>
325
+ <action>Run the full regression suite (do not skip)</action>
326
+ <action>Confirm File List includes every changed file</action>
327
+ <action>Execute enhanced definition-of-done validation</action>
328
+ <action>Update the story Status to: "review"</action>
329
+
330
+ <!-- Enhanced Definition of Done Validation -->
331
+ <action>Validate definition-of-done checklist with essential requirements:
332
+ - All tasks/subtasks marked complete with [x]
333
+ - Implementation satisfies every Acceptance Criterion
334
+ - Unit tests for core functionality added/updated
335
+ - Integration tests for component interactions added when required
336
+ - End-to-end tests for critical flows added when story demands them
337
+ - All tests pass (no regressions, new tests successful)
338
+ - Code quality checks pass (linting, static analysis if configured)
339
+ - File List includes every new/modified/deleted file (relative paths)
340
+ - Dev Agent Record contains implementation notes
341
+ - Change Log includes summary of changes
342
+ - Only permitted story sections were modified
343
+ </action>
344
+
345
+ <!-- Mark story ready for review - sprint status conditional -->
346
+ <check if="{sprint_status} file exists AND {{current_sprint_status}} != 'no-sprint-tracking'">
347
+ <action>Load the FULL file: {sprint_status}</action>
348
+ <action>Find development_status key matching {{story_key}}</action>
349
+ <action>Verify current status is "in-progress" (expected previous state)</action>
350
+ <action>Update development_status[{{story_key}}] = "review"</action>
351
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
352
+ <output>✅ Story status updated to "review" in sprint-status.yaml</output>
353
+ </check>
354
+
355
+ <check if="{sprint_status} file does NOT exist OR {{current_sprint_status}} == 'no-sprint-tracking'">
356
+ <output>ℹ️ Story status updated to "review" in story file (no sprint tracking configured)</output>
357
+ </check>
358
+
359
+ <check if="story key not found in sprint status">
360
+ <output>⚠️ Story file updated, but sprint-status update failed: {{story_key}} not found
361
+
362
+ Story status is set to "review" in file, but sprint-status.yaml may be out of sync.
363
+ </output>
364
+ </check>
365
+
366
+ <!-- Final validation gates -->
367
+ <action if="any task is incomplete">HALT - Complete remaining tasks before marking ready for review</action>
368
+ <action if="regression failures exist">HALT - Fix regression issues before completing</action>
369
+ <action if="File List is incomplete">HALT - Update File List with all changed files</action>
370
+ <action if="definition-of-done validation fails">HALT - Address DoD failures before completing</action>
371
+ </step>
372
+
373
+ <step n="10" goal="Completion communication and user support">
374
+ <action>Execute the enhanced definition-of-done checklist using the validation framework</action>
375
+ <action>Prepare a concise summary in Dev Agent Record → Completion Notes</action>
376
+
377
+ <action>Communicate to {user_name} that story implementation is complete and ready for review</action>
378
+ <action>Summarize key accomplishments: story ID, story key, title, key changes made, tests added, files modified</action>
379
+ <action>Provide the story file path and current status (now "review")</action>
380
+
381
+ <action>Based on {user_skill_level}, ask if user needs any explanations about:
382
+ - What was implemented and how it works
383
+ - Why certain technical decisions were made
384
+ - How to test or verify the changes
385
+ - Any patterns, libraries, or approaches used
386
+ - Anything else they'd like clarified
387
+ </action>
388
+
389
+ <check if="user asks for explanations">
390
+ <action>Provide clear, contextual explanations tailored to {user_skill_level}</action>
391
+ <action>Use examples and references to specific code when helpful</action>
392
+ </check>
393
+
394
+ <action>Once explanations are complete (or user indicates no questions), suggest logical next steps</action>
395
+ <action>Recommended next steps (flexible based on project setup):
396
+ - Review the implemented story and test the changes
397
+ - Verify all acceptance criteria are met
398
+ - Ensure deployment readiness if applicable
399
+ - Run `code-review` workflow for peer review
400
+ </action>
401
+
402
+ <output>💡 **Tip:** For best results, run `code-review` using a **different** LLM than the one that implemented this story.</output>
403
+ <check if="{sprint_status} file exists">
404
+ <action>Suggest checking {sprint_status} to see project progress</action>
405
+ </check>
406
+ <action>Remain flexible - allow user to choose their own path or ask for other assistance</action>
407
+ </step>
408
+
409
+ </workflow>