bmad-method 6.0.0-alpha.4 → 6.0.0-alpha.6

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 (225) hide show
  1. package/.claude/agents/bmad-analysis/api-documenter.md +102 -0
  2. package/.claude/agents/bmad-analysis/codebase-analyzer.md +82 -0
  3. package/.claude/agents/bmad-analysis/data-analyst.md +101 -0
  4. package/.claude/agents/bmad-analysis/pattern-detector.md +84 -0
  5. package/.claude/agents/bmad-planning/dependency-mapper.md +83 -0
  6. package/.claude/agents/bmad-planning/epic-optimizer.md +81 -0
  7. package/.claude/agents/bmad-planning/requirements-analyst.md +61 -0
  8. package/.claude/agents/bmad-planning/technical-decisions-curator.md +168 -0
  9. package/.claude/agents/bmad-planning/trend-spotter.md +115 -0
  10. package/.claude/agents/bmad-planning/user-journey-mapper.md +123 -0
  11. package/.claude/agents/bmad-planning/user-researcher.md +72 -0
  12. package/.claude/agents/bmad-research/market-researcher.md +51 -0
  13. package/.claude/agents/bmad-research/tech-debt-auditor.md +106 -0
  14. package/.claude/agents/bmad-review/document-reviewer.md +102 -0
  15. package/.claude/agents/bmad-review/technical-evaluator.md +68 -0
  16. package/.claude/agents/bmad-review/test-coverage-analyzer.md +108 -0
  17. package/.claude/commands/bmad/bmm/agents/architect.md +0 -1
  18. package/.claude/commands/bmad/bmm/agents/sm.md +1 -1
  19. package/.claude/commands/bmad/bmm/agents/{paige.md → tech-writer.md} +3 -3
  20. package/.claude/commands/bmad/bmm/workflows/README.md +3 -3
  21. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
  22. package/.claude/commands/bmad/bmm/workflows/prd.md +1 -1
  23. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +3 -3
  24. package/.claude/settings.local.json +3 -8
  25. package/CHANGELOG.md +305 -0
  26. package/CONTRIBUTING.md +1 -13
  27. package/README.md +88 -39
  28. package/bmad/_cfg/agent-manifest.csv +1 -6
  29. package/bmad/_cfg/files-manifest.csv +40 -114
  30. package/bmad/_cfg/ides/claude-code.yaml +4 -3
  31. package/bmad/_cfg/manifest.yaml +3 -4
  32. package/bmad/_cfg/task-manifest.csv +0 -1
  33. package/bmad/_cfg/workflow-manifest.csv +3 -7
  34. package/bmad/bmb/config.yaml +2 -2
  35. package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
  36. package/bmad/bmm/README.md +79 -120
  37. package/bmad/bmm/agents/architect.md +0 -1
  38. package/bmad/bmm/agents/sm.md +1 -1
  39. package/bmad/bmm/agents/{paige.md → tech-writer.md} +3 -3
  40. package/bmad/bmm/config.yaml +4 -3
  41. package/bmad/bmm/tasks/daily-standup.xml +1 -1
  42. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
  43. package/bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
  44. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
  45. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
  46. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
  47. package/bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
  48. package/bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +1 -1
  49. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
  50. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
  51. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
  52. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
  53. package/bmad/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
  54. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
  55. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
  56. package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
  57. package/bmad/bmm/workflows/techdoc/documentation-standards.md +26 -2
  58. package/bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +2 -2
  59. package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
  60. package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  61. package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  62. package/bmad/bmm/workflows/workflow-status/paths/{brownfield-level-3.yaml → method-brownfield.yaml} +33 -31
  63. package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  64. package/bmad/bmm/workflows/workflow-status/paths/{brownfield-level-1.yaml → quick-flow-brownfield.yaml} +18 -18
  65. package/bmad/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
  66. package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  67. package/bmad/core/config.yaml +2 -2
  68. package/bmad/core/tasks/workflow.xml +1 -11
  69. package/package.json +1 -1
  70. package/src/core/tasks/workflow.xml +1 -11
  71. package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
  72. package/src/modules/bmm/README.md +1 -1
  73. package/src/modules/bmm/_module-installer/install-config.yaml +5 -0
  74. package/src/modules/bmm/agents/architect.agent.yaml +0 -4
  75. package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
  76. package/src/modules/bmm/agents/sm.agent.yaml +1 -1
  77. package/src/modules/bmm/agents/{paige.agent.yaml → tech-writer.agent.yaml} +4 -4
  78. package/src/modules/bmm/docs/README.md +19 -18
  79. package/src/modules/bmm/docs/agents-guide.md +47 -99
  80. package/src/modules/bmm/docs/brownfield-guide.md +216 -96
  81. package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
  82. package/src/modules/bmm/docs/faq.md +16 -16
  83. package/src/modules/bmm/docs/glossary.md +44 -50
  84. package/src/modules/bmm/docs/party-mode.md +110 -1122
  85. package/src/modules/bmm/docs/quick-spec-flow.md +36 -36
  86. package/src/modules/bmm/docs/quick-start.md +34 -34
  87. package/src/modules/bmm/docs/scale-adaptive-system.md +304 -454
  88. package/{bmad/bmm/testarch/README.md → src/modules/bmm/docs/test-architecture.md} +56 -38
  89. package/src/modules/bmm/docs/troubleshooting.md +7 -7
  90. package/src/modules/bmm/docs/workflows-analysis.md +64 -28
  91. package/src/modules/bmm/docs/workflows-implementation.md +196 -1671
  92. package/src/modules/bmm/docs/workflows-planning.md +74 -35
  93. package/src/modules/bmm/docs/workflows-solutioning.md +47 -17
  94. package/src/modules/bmm/tasks/daily-standup.xml +1 -1
  95. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
  96. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
  97. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
  98. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
  99. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
  100. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
  101. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +2 -2
  102. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
  103. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
  104. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
  105. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
  106. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
  107. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
  108. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
  109. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
  110. package/src/modules/bmm/workflows/techdoc/documentation-standards.md +25 -2
  111. package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +2 -2
  112. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
  113. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  114. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  115. package/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-3.yaml → method-brownfield.yaml} +33 -31
  116. package/{bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  117. package/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-1.yaml → quick-flow-brownfield.yaml} +18 -18
  118. package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
  119. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  120. package/tools/cli/installers/lib/core/config-collector.js +39 -11
  121. package/tools/cli/installers/lib/core/ide-config-manager.js +3 -1
  122. package/tools/cli/installers/lib/core/installer.js +20 -9
  123. package/tools/cli/installers/lib/core/manifest-generator.js +3 -1
  124. package/tools/cli/installers/lib/core/manifest.js +6 -2
  125. package/tools/cli/installers/lib/modules/manager.js +6 -0
  126. package/tools/cli/lib/config.js +3 -1
  127. package/tools/cli/lib/ui.js +5 -5
  128. package/tools/cli/lib/yaml-format.js +2 -1
  129. package/tools/schema/agent.js +2 -0
  130. package/.claude/commands/bmad/bmm/workflows/tech-spec-sm.md +0 -15
  131. package/bmad/_cfg/agents/cis-brainstorming-coach.customize.yaml +0 -42
  132. package/bmad/_cfg/agents/cis-creative-problem-solver.customize.yaml +0 -42
  133. package/bmad/_cfg/agents/cis-design-thinking-coach.customize.yaml +0 -42
  134. package/bmad/_cfg/agents/cis-innovation-strategist.customize.yaml +0 -42
  135. package/bmad/_cfg/agents/cis-storyteller.customize.yaml +0 -42
  136. package/bmad/bmb/agents/bmad-builder.md.bak +0 -70
  137. package/bmad/bmb/workflows/audit-workflow/workflow.yaml.bak +0 -23
  138. package/bmad/bmb/workflows/create-module/workflow.yaml.bak +0 -42
  139. package/bmad/bmb/workflows/create-workflow/workflow-template/workflow.yaml.bak +0 -39
  140. package/bmad/bmb/workflows/create-workflow/workflow.yaml.bak +0 -40
  141. package/bmad/bmb/workflows/edit-agent/workflow.yaml.bak +0 -33
  142. package/bmad/bmb/workflows/edit-module/workflow.yaml.bak +0 -34
  143. package/bmad/bmb/workflows/edit-workflow/workflow.yaml.bak +0 -27
  144. package/bmad/bmb/workflows/module-brief/workflow.yaml.bak +0 -29
  145. package/bmad/bmb/workflows/redoc/workflow.yaml.bak +0 -32
  146. package/bmad/bmm/docs/brownfield-guide.md +0 -1260
  147. package/bmad/bmm/docs/quick-spec-flow.md +0 -645
  148. package/bmad/bmm/docs/quick-start.md +0 -341
  149. package/bmad/bmm/docs/scale-adaptive-system.md +0 -1045
  150. package/bmad/bmm/tasks/retrospective.xml +0 -104
  151. package/bmad/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
  152. package/bmad/bmm/workflows/1-analysis/product-brief/README.md +0 -180
  153. package/bmad/bmm/workflows/1-analysis/research/README.md +0 -454
  154. package/bmad/bmm/workflows/2-plan-workflows/README.md +0 -258
  155. package/bmad/bmm/workflows/3-solutioning/README.md +0 -1
  156. package/bmad/bmm/workflows/3-solutioning/architecture/README.md +0 -318
  157. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
  158. package/bmad/bmm/workflows/4-implementation/README.md +0 -221
  159. package/bmad/bmm/workflows/4-implementation/code-review/README.md +0 -69
  160. package/bmad/bmm/workflows/4-implementation/correct-course/README.md +0 -73
  161. package/bmad/bmm/workflows/4-implementation/create-story/README.md +0 -146
  162. package/bmad/bmm/workflows/4-implementation/dev-story/README.md +0 -206
  163. package/bmad/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
  164. package/bmad/bmm/workflows/4-implementation/retrospective/README.md +0 -77
  165. package/bmad/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
  166. package/bmad/bmm/workflows/4-implementation/story-context/README.md +0 -234
  167. package/bmad/bmm/workflows/README.md +0 -256
  168. package/bmad/bmm/workflows/document-project/README.md +0 -444
  169. package/bmad/bmm/workflows/document-project/templates/README.md +0 -38
  170. package/bmad/bmm/workflows/testarch/README.md +0 -26
  171. package/bmad/bmm/workflows/testarch/atdd/README.md +0 -672
  172. package/bmad/bmm/workflows/testarch/automate/README.md +0 -869
  173. package/bmad/bmm/workflows/testarch/ci/README.md +0 -493
  174. package/bmad/bmm/workflows/testarch/framework/README.md +0 -340
  175. package/bmad/bmm/workflows/testarch/nfr-assess/README.md +0 -469
  176. package/bmad/bmm/workflows/testarch/test-design/README.md +0 -493
  177. package/bmad/bmm/workflows/testarch/test-review/README.md +0 -775
  178. package/bmad/bmm/workflows/testarch/trace/README.md +0 -802
  179. package/bmad/bmm/workflows/workflow-status/README.md +0 -260
  180. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
  181. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  182. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
  183. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
  184. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
  185. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  186. package/bmad/cis/README.md +0 -153
  187. package/bmad/cis/agents/README.md +0 -104
  188. package/bmad/cis/agents/brainstorming-coach.md +0 -62
  189. package/bmad/cis/agents/creative-problem-solver.md +0 -62
  190. package/bmad/cis/agents/design-thinking-coach.md +0 -62
  191. package/bmad/cis/agents/innovation-strategist.md +0 -62
  192. package/bmad/cis/agents/storyteller.md +0 -59
  193. package/bmad/cis/config.yaml +0 -10
  194. package/bmad/cis/teams/creative-squad.yaml +0 -6
  195. package/bmad/cis/workflows/README.md +0 -139
  196. package/bmad/cis/workflows/design-thinking/README.md +0 -56
  197. package/bmad/cis/workflows/design-thinking/design-methods.csv +0 -31
  198. package/bmad/cis/workflows/design-thinking/instructions.md +0 -200
  199. package/bmad/cis/workflows/design-thinking/template.md +0 -111
  200. package/bmad/cis/workflows/design-thinking/workflow.yaml +0 -32
  201. package/bmad/cis/workflows/innovation-strategy/README.md +0 -56
  202. package/bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +0 -31
  203. package/bmad/cis/workflows/innovation-strategy/instructions.md +0 -274
  204. package/bmad/cis/workflows/innovation-strategy/template.md +0 -189
  205. package/bmad/cis/workflows/innovation-strategy/workflow.yaml +0 -32
  206. package/bmad/cis/workflows/problem-solving/README.md +0 -56
  207. package/bmad/cis/workflows/problem-solving/instructions.md +0 -250
  208. package/bmad/cis/workflows/problem-solving/solving-methods.csv +0 -31
  209. package/bmad/cis/workflows/problem-solving/template.md +0 -165
  210. package/bmad/cis/workflows/problem-solving/workflow.yaml +0 -32
  211. package/bmad/cis/workflows/storytelling/README.md +0 -58
  212. package/bmad/cis/workflows/storytelling/instructions.md +0 -291
  213. package/bmad/cis/workflows/storytelling/story-types.csv +0 -26
  214. package/bmad/cis/workflows/storytelling/template.md +0 -113
  215. package/bmad/cis/workflows/storytelling/workflow.yaml +0 -32
  216. package/bmad/core/agents/bmad-master.md.bak +0 -69
  217. package/src/modules/bmm/docs/brownfield-guide.md.backup +0 -1324
  218. package/src/modules/bmm/docs/workflows-testing.md +0 -1572
  219. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
  220. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  221. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
  222. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
  223. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
  224. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  225. /package/bmad/_cfg/agents/{bmm-paige.customize.yaml → bmm-tech-writer.customize.yaml} +0 -0
@@ -1,206 +0,0 @@
1
- # Dev Story Workflow
2
-
3
- The dev-story workflow is where v6's just-in-time context approach delivers its primary value, enabling the Developer (DEV) agent to implement stories with expert-level guidance injected directly into their context. This workflow is run EXCLUSIVELY by the DEV agent and operates on a single story that has been prepared by the SM through create-story and enhanced with story-context. The DEV loads both the story specification and the dynamically-generated story context XML, then proceeds through implementation with the combined knowledge of requirements and domain-specific expertise.
4
-
5
- The workflow operates with two critical inputs: the story file (created by SM's create-story) containing acceptance criteria, tasks, and requirements; and the story-context XML (generated by SM's story-context) providing just-in-time expertise injection tailored to the story's technical needs. This dual-input approach ensures the developer has both the "what" (from the story) and the "how" (from the context) needed for successful implementation. The workflow iterates through tasks sequentially, implementing code, writing tests, and updating the story document's allowed sections until all tasks are complete.
6
-
7
- A critical aspect of v6 flow is that dev-story may be run multiple times for the same story. Initially run to implement the story, it may be run again after code-review identifies issues that need correction. The workflow intelligently resumes from incomplete tasks, making it ideal for both initial implementation and post-review fixes. The DEV agent maintains strict boundaries on what can be modified in the story file—only Tasks/Subtasks checkboxes, Dev Agent Record, File List, Change Log, and Status may be updated, preserving the story's requirements integrity.
8
-
9
- ## Usage
10
-
11
- ```bash
12
- # Developer implements the story with injected context
13
- bmad dev *develop
14
-
15
- # Or if returning to fix review issues
16
- bmad dev *develop # Will resume from incomplete tasks
17
- ```
18
-
19
- The DEV runs this workflow:
20
-
21
- - After SM completes both create-story and story-context
22
- - When a story status is "Draft" or "Approved" (ready for development)
23
- - After code-review identifies issues requiring fixes
24
- - To resume work on a partially completed story
25
-
26
- ## Inputs
27
-
28
- **Required Files:**
29
-
30
- - **Story Document** (`{story_dir}/story-{epic}.{story}.md`): Complete specification including:
31
- - User story statement
32
- - Acceptance criteria (immutable during dev)
33
- - Tasks and subtasks (checkable during implementation)
34
- - Dev Notes section (for context and guidance)
35
- - Status field (Draft → In Progress → Ready for Review)
36
-
37
- - **Story Context XML** (`{story_dir}/story-{epic}.{story}-context.xml`): Domain expertise including:
38
- - Technical patterns and best practices
39
- - Gotchas and common pitfalls
40
- - Testing strategies
41
- - Relevant code references
42
- - Architecture constraints
43
-
44
- **Configuration:**
45
-
46
- - `dev_story_location`: Directory containing story files (from bmm/config.yaml)
47
- - `story_selection_limit`: Number of recent stories to show (default: 10)
48
- - `run_tests_command`: Test command (default: auto-detected)
49
- - `strict`: Whether to halt on test failures (default: true)
50
-
51
- ## Outputs
52
-
53
- **Code Implementation:**
54
-
55
- - Production code satisfying acceptance criteria
56
- - Unit, integration, and E2E tests as appropriate
57
- - Documentation updates
58
- - Migration scripts if needed
59
-
60
- **Story File Updates (allowed sections only):**
61
-
62
- - **Tasks/Subtasks**: Checkboxes marked complete as work progresses
63
- - **Dev Agent Record**: Debug log and completion notes
64
- - **File List**: All files created or modified
65
- - **Change Log**: Summary of implementation changes
66
- - **Status**: Updated to "Ready for Review" when complete
67
-
68
- **Validation:**
69
-
70
- - All tests passing (existing + new)
71
- - Acceptance criteria verified
72
- - Code quality checks passed
73
- - No regression in existing functionality
74
-
75
- ## Key Features
76
-
77
- **Story-Context Integration**: The workflow loads and leverages the story-context XML throughout implementation, providing expert guidance without cluttering the main conversation. This ensures best practices are followed while maintaining developer autonomy.
78
-
79
- **Task-by-Task Iteration**: Implements one task at a time, marking completion before moving to the next. This granular approach enables progress tracking and clean resumption if interrupted or after review feedback.
80
-
81
- **Strict File Boundaries**: Only specific sections of the story file may be modified, preserving requirement integrity. The story's acceptance criteria, main description, and other planning sections remain immutable during development.
82
-
83
- **Test-Driven Approach**: For each task, the workflow emphasizes writing tests that verify acceptance criteria before or alongside implementation, ensuring requirements are actually met.
84
-
85
- **Resumable Implementation**: If the workflow is run again on a story with incomplete tasks (e.g., after code-review finds issues), it intelligently resumes from where it left off rather than starting over.
86
-
87
- ## Integration with v6 Flow
88
-
89
- The dev-story workflow is step 3 in the v6 implementation cycle:
90
-
91
- 1. SM: create-story (generates the story specification)
92
- 2. SM: story-context (adds JIT technical expertise)
93
- 3. **DEV: dev-story** ← You are here (initial implementation)
94
- 4. DEV/SR: code-review (validates completion)
95
- 5. If issues found: **DEV: dev-story** ← May return here for fixes
96
- 6. After epic: retrospective (captures learnings)
97
-
98
- This workflow may be executed multiple times for the same story as part of the review-fix cycle. Each execution picks up from incomplete tasks, making it efficient for iterative improvement.
99
-
100
- ## Workflow Process
101
-
102
- ### Phase 1: Story Selection
103
-
104
- - If `story_path` provided: Use that story directly
105
- - Otherwise: List recent stories from `dev_story_location`
106
- - Parse story structure and validate format
107
- - Load corresponding story-context XML
108
-
109
- ### Phase 2: Task Implementation Loop
110
-
111
- For each incomplete task:
112
-
113
- 1. **Plan**: Log approach in Dev Agent Record
114
- 2. **Implement**: Write code following story-context guidance
115
- 3. **Test**: Create tests verifying acceptance criteria
116
- 4. **Validate**: Run tests and quality checks
117
- 5. **Update**: Mark task complete, update File List
118
-
119
- ### Phase 3: Completion
120
-
121
- - Verify all tasks completed
122
- - Run full test suite
123
- - Update Status to "Ready for Review"
124
- - Add completion notes to Dev Agent Record
125
-
126
- ## Story File Structure
127
-
128
- The workflow expects stories with this structure:
129
-
130
- ```markdown
131
- # Story {epic}.{story}: {Title}
132
-
133
- **Status**: Draft|In Progress|Ready for Review|Done
134
- **Epic**: {epic_number}
135
- **Estimated Effort**: {estimate}
136
-
137
- ## Story
138
-
139
- As a {role}, I want to {action} so that {benefit}
140
-
141
- ## Acceptance Criteria
142
-
143
- - [ ] AC1...
144
- - [ ] AC2...
145
-
146
- ## Tasks and Subtasks
147
-
148
- - [ ] Task 1
149
- - [ ] Subtask 1.1
150
- - [ ] Task 2
151
-
152
- ## Dev Notes
153
-
154
- {Context and guidance from story creation}
155
-
156
- ## Dev Agent Record
157
-
158
- ### Debug Log
159
-
160
- {Implementation notes added during development}
161
-
162
- ### Completion Notes
163
-
164
- {Summary added when complete}
165
-
166
- ## File List
167
-
168
- {Files created/modified}
169
-
170
- ## Change Log
171
-
172
- {Implementation summary}
173
- ```
174
-
175
- ## Best Practices
176
-
177
- **Load Context First**: Always ensure the story-context XML is loaded at the start. This provides the expert guidance needed throughout implementation.
178
-
179
- **Follow Task Order**: Implement tasks in the order listed. Dependencies are typically structured in the task sequence.
180
-
181
- **Test Each Task**: Don't wait until the end to write tests. Test each task as you complete it to ensure it meets acceptance criteria.
182
-
183
- **Update Incrementally**: Update the story file after each task completion rather than batching updates at the end.
184
-
185
- **Respect Boundaries**: Never modify acceptance criteria or story description. If they seem wrong, that's a code-review or correct-course issue, not a dev-story fix.
186
-
187
- **Use Context Guidance**: Actively reference the story-context for patterns, gotchas, and best practices. It's there to help you succeed.
188
-
189
- ## Troubleshooting
190
-
191
- **Story Not Found**: Ensure story exists in `dev_story_location` and follows naming pattern `story-{epic}.{story}.md`
192
-
193
- **Context XML Missing**: The story-context workflow must be run first. Check for `story-{epic}.{story}-context.xml`
194
-
195
- **Tests Failing**: If strict mode is on, the workflow halts. Fix tests before continuing or set strict=false for development iteration.
196
-
197
- **Can't Modify Story Section**: Remember only Tasks, Dev Agent Record, File List, Change Log, and Status can be modified. Other sections are immutable.
198
-
199
- **Resuming After Review**: If code-review found issues, the workflow automatically picks up from incomplete tasks when run again.
200
-
201
- ## Related Workflows
202
-
203
- - **create-story**: Creates the story specification (run by SM)
204
- - **story-context**: Generates the context XML (run by SM)
205
- - **code-review**: Validates implementation (run by SR/DEV)
206
- - **correct-course**: Handles major issues or scope changes (run by SM)
@@ -1,195 +0,0 @@
1
- # Technical Specification Workflow
2
-
3
- ## Overview
4
-
5
- Generate a comprehensive Technical Specification for a single epic from PRD, Epics file and Architecture to produce a document with full acceptance criteria and traceability mapping. Creates detailed implementation guidance that bridges business requirements with technical execution.
6
-
7
- ## Key Features
8
-
9
- - **PRD-Architecture Integration** - Synthesizes business requirements with technical constraints
10
- - **Traceability Mapping** - Links acceptance criteria to technical components and tests
11
- - **Multi-Input Support** - Leverages PRD, architecture, front-end specs, and brownfield notes
12
- - **Implementation Focus** - Provides concrete technical guidance for development teams
13
- - **Testing Integration** - Includes test strategy aligned with acceptance criteria
14
- - **Validation Ready** - Generates specifications suitable for architectural review
15
-
16
- ## Usage
17
-
18
- ### Basic Invocation
19
-
20
- ```bash
21
- workflow tech-spec
22
- ```
23
-
24
- ### With Input Documents
25
-
26
- ```bash
27
- # With specific PRD and architecture
28
- workflow tech-spec --input PRD.md --input architecture.md
29
-
30
- # With comprehensive inputs
31
- workflow tech-spec --input PRD.md --input architecture.md --input front-end-spec.md
32
- ```
33
-
34
- ### Configuration
35
-
36
- - **output_folder**: Location for generated technical specification
37
- - **epic_id**: Used in output filename (extracted from PRD or prompted)
38
- - **recommended_inputs**: PRD, architecture, front-end spec, brownfield notes
39
-
40
- ## Workflow Structure
41
-
42
- ### Files Included
43
-
44
- ```
45
- tech-spec/
46
- ├── workflow.yaml # Configuration and metadata
47
- ├── instructions.md # Step-by-step execution guide
48
- ├── template.md # Technical specification structure
49
- ├── checklist.md # Validation criteria
50
- └── README.md # This file
51
- ```
52
-
53
- ## Workflow Process
54
-
55
- ### Phase 1: Input Collection and Analysis (Steps 1-2)
56
-
57
- - **Document Discovery**: Locates PRD and Architecture documents
58
- - **Epic Extraction**: Identifies epic title and ID from PRD content
59
- - **Template Initialization**: Creates tech-spec document from template
60
- - **Context Analysis**: Reviews complete PRD and architecture for alignment
61
-
62
- ### Phase 2: Technical Design Specification (Step 3)
63
-
64
- - **Service Architecture**: Defines services/modules with responsibilities and interfaces
65
- - **Data Modeling**: Specifies entities, schemas, and relationships
66
- - **API Design**: Documents endpoints, request/response models, and error handling
67
- - **Workflow Definition**: Details sequence flows and data processing patterns
68
-
69
- ### Phase 3: Non-Functional Requirements (Step 4)
70
-
71
- - **Performance Specs**: Defines measurable latency, throughput, and scalability targets
72
- - **Security Requirements**: Specifies authentication, authorization, and data protection
73
- - **Reliability Standards**: Documents availability, recovery, and degradation behavior
74
- - **Observability Framework**: Defines logging, metrics, and tracing requirements
75
-
76
- ### Phase 4: Dependencies and Integration (Step 5)
77
-
78
- - **Dependency Analysis**: Scans repository for package manifests and frameworks
79
- - **Integration Mapping**: Identifies external systems and API dependencies
80
- - **Version Management**: Documents version constraints and compatibility requirements
81
- - **Infrastructure Needs**: Specifies deployment and runtime dependencies
82
-
83
- ### Phase 5: Acceptance and Testing (Step 6)
84
-
85
- - **Criteria Normalization**: Extracts and refines acceptance criteria from PRD
86
- - **Traceability Matrix**: Maps acceptance criteria to technical components
87
- - **Test Strategy**: Defines testing approach for each acceptance criterion
88
- - **Component Mapping**: Links requirements to specific APIs and modules
89
-
90
- ### Phase 6: Risk and Validation (Steps 7-8)
91
-
92
- - **Risk Assessment**: Identifies technical risks, assumptions, and open questions
93
- - **Mitigation Planning**: Provides strategies for addressing identified risks
94
- - **Quality Validation**: Ensures specification meets completeness criteria
95
- - **Checklist Verification**: Validates against workflow quality standards
96
-
97
- ## Output
98
-
99
- ### Generated Files
100
-
101
- - **Primary output**: tech-spec-{epic_id}-{date}.md
102
- - **Traceability data**: Embedded mapping tables linking requirements to implementation
103
-
104
- ### Output Structure
105
-
106
- 1. **Overview and Scope** - Project context and boundaries
107
- 2. **System Architecture Alignment** - Connection to architecture
108
- 3. **Detailed Design** - Services, data models, APIs, and workflows
109
- 4. **Non-Functional Requirements** - Performance, security, reliability, observability
110
- 5. **Dependencies and Integrations** - External systems and technical dependencies
111
- 6. **Acceptance Criteria** - Testable requirements from PRD
112
- 7. **Traceability Mapping** - Requirements-to-implementation mapping
113
- 8. **Test Strategy** - Testing approach and framework alignment
114
- 9. **Risks and Assumptions** - Technical risks and mitigation strategies
115
-
116
- ## Requirements
117
-
118
- - **PRD Document**: Product Requirements Document with clear acceptance criteria
119
- - **Architecture Document**: architecture or technical design
120
- - **Repository Access**: For dependency analysis and framework detection
121
- - **Epic Context**: Clear epic identification and scope definition
122
-
123
- ## Best Practices
124
-
125
- ### Before Starting
126
-
127
- 1. **Validate Inputs**: Ensure PRD and architecture documents are complete and current
128
- 2. **Review Requirements**: Confirm acceptance criteria are specific and testable
129
- 3. **Check Dependencies**: Verify repository structure supports automated dependency analysis
130
-
131
- ### During Execution
132
-
133
- 1. **Maintain Traceability**: Ensure every acceptance criterion maps to implementation
134
- 2. **Be Implementation-Specific**: Provide concrete technical guidance, not high-level concepts
135
- 3. **Consider Constraints**: Factor in existing system limitations and brownfield challenges
136
-
137
- ### After Completion
138
-
139
- 1. **Architect Review**: Have technical lead validate design decisions
140
- 2. **Developer Walkthrough**: Ensure implementation team understands specifications
141
- 3. **Test Planning**: Use traceability matrix for test case development
142
-
143
- ## Troubleshooting
144
-
145
- ### Common Issues
146
-
147
- **Issue**: Missing or incomplete technical details
148
-
149
- - **Solution**: Review architecture document for implementation specifics
150
- - **Check**: Ensure PRD contains sufficient functional requirements detail
151
-
152
- **Issue**: Acceptance criteria don't map cleanly to technical components
153
-
154
- - **Solution**: Break down complex criteria into atomic, testable statements
155
- - **Check**: Verify PRD acceptance criteria are properly structured
156
-
157
- **Issue**: Dependency analysis fails or is incomplete
158
-
159
- - **Solution**: Check repository structure and manifest file locations
160
- - **Check**: Verify repository contains standard dependency files (package.json, etc.)
161
-
162
- **Issue**: Non-functional requirements are too vague
163
-
164
- - **Solution**: Extract specific performance and quality targets from architecture
165
- - **Check**: Ensure architecture document contains measurable NFR specifications
166
-
167
- ## Customization
168
-
169
- To customize this workflow:
170
-
171
- 1. **Modify Template**: Update template.md to match organizational technical spec standards
172
- 2. **Extend Dependencies**: Add support for additional package managers or frameworks
173
- 3. **Enhance Validation**: Extend checklist.md with company-specific technical criteria
174
- 4. **Add Sections**: Include additional technical concerns like DevOps or monitoring
175
-
176
- ## Version History
177
-
178
- - **v6.0.0** - Comprehensive technical specification with traceability
179
- - PRD-Architecture integration
180
- - Automated dependency detection
181
- - Traceability mapping
182
- - Test strategy alignment
183
-
184
- ## Support
185
-
186
- For issues or questions:
187
-
188
- - Review the workflow creation guide at `/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md`
189
- - Validate output using `checklist.md`
190
- - Ensure PRD and architecture documents are complete before starting
191
- - Consult BMAD documentation for technical specification standards
192
-
193
- ---
194
-
195
- _Part of the BMad Method v6 - BMM (Method) Module_
@@ -1,77 +0,0 @@
1
- ---
2
- last-redoc-date: 2025-10-01
3
- ---
4
-
5
- # Retrospective Workflow
6
-
7
- The retrospective workflow is v6's learning capture mechanism, run by the Scrum Master (SM) after epic completion to systematically harvest insights, patterns, and improvements discovered during implementation. Unlike traditional retrospectives that focus primarily on process and team dynamics, this workflow performs deep technical and methodological analysis of the entire epic journey—from story creation through implementation to review—identifying what worked well, what could improve, and what patterns emerged. The retrospective produces actionable intelligence that informs future epics, improves workflow templates, and evolves the team's shared knowledge.
8
-
9
- This workflow represents a critical feedback loop in the v6 methodology. Each epic is an experiment in adaptive software development, and the retrospective is where we analyze the results of that experiment. The SM examines completed stories, review feedback, course corrections made, story-context effectiveness, technical decisions, and team collaboration patterns to extract transferable learning. This learning manifests as updates to workflow templates, new story-context patterns, refined estimation approaches, and documented best practices.
10
-
11
- The retrospective is not just a compliance ritual but a genuine opportunity for continuous improvement. By systematically analyzing what happened during the epic, the team builds institutional knowledge that makes each subsequent epic smoother, faster, and higher quality. The insights captured here directly improve future story creation, context generation, development efficiency, and review effectiveness.
12
-
13
- ## Usage
14
-
15
- ```bash
16
- # Conduct retrospective after epic completion
17
- bmad run retrospective
18
- ```
19
-
20
- The SM should run this workflow:
21
-
22
- - After all stories in an epic are completed
23
- - Before starting the next major epic
24
- - When significant learning has accumulated
25
- - As preparation for improving future epic execution
26
-
27
- ## Inputs
28
-
29
- **Required Context:**
30
-
31
- - **Epic Document**: Complete epic specification and goals
32
- - **All Story Documents**: Every story created for the epic
33
- - **Review Reports**: All review feedback and findings
34
- - **Course Corrections**: Any correct-course actions taken
35
- - **Story Contexts**: Generated expert guidance for each story
36
- - **Implementation Artifacts**: Code commits, test results, deployment records
37
-
38
- **Analysis Targets:**
39
-
40
- - Story creation accuracy and sizing
41
- - Story-context effectiveness and relevance
42
- - Implementation challenges and solutions
43
- - Review findings and patterns
44
- - Technical decisions and outcomes
45
- - Estimation accuracy
46
- - Team collaboration and communication
47
- - Workflow effectiveness
48
-
49
- ## Outputs
50
-
51
- **Primary Deliverable:**
52
-
53
- - **Retrospective Report** (`[epic-id]-retrospective.xml`): Comprehensive analysis including:
54
- - Executive summary of epic outcomes
55
- - Story-by-story analysis of what was learned
56
- - Technical insights and architecture learnings
57
- - Story-context effectiveness assessment
58
- - Process improvements identified
59
- - Patterns discovered (good and bad)
60
- - Recommendations for future epics
61
- - Metrics and statistics (velocity, cycle time, etc.)
62
-
63
- **Actionable Outputs:**
64
-
65
- - **Template Updates**: Improvements to workflow templates based on learning
66
- - **Pattern Library**: New story-context patterns for common scenarios
67
- - **Best Practices**: Documented approaches that worked well
68
- - **Gotchas**: Issues to avoid in future work
69
- - **Estimation Refinements**: Better story sizing guidance
70
- - **Process Changes**: Workflow adjustments for next epic
71
-
72
- **Artifacts:**
73
-
74
- - Epic marked as complete with retrospective attached
75
- - Knowledge base updated with new patterns
76
- - Workflow templates updated if needed
77
- - Team learning captured for onboarding
@@ -1,156 +0,0 @@
1
- # Sprint Planning Workflow
2
-
3
- ## Overview
4
-
5
- The sprint-planning workflow generates and manages the sprint status tracking file that serves as the single source of truth for Phase 4 implementation. It extracts all epics and stories from epic files and tracks their progress through the development lifecycle.
6
-
7
- In Agile terminology, this workflow facilitates **Sprint Planning** or **Sprint 0 Kickoff** - the transition from planning/architecture into actual development execution.
8
-
9
- ## Purpose
10
-
11
- This workflow creates a `sprint-status.yaml` file that:
12
-
13
- - Lists all epics, stories, and retrospectives in order
14
- - Tracks the current status of each item
15
- - Provides a clear view of what needs to be worked on next
16
- - Ensures only one story is in progress at a time
17
- - Maintains the development flow from backlog to done
18
-
19
- ## When to Use
20
-
21
- Run this workflow:
22
-
23
- 1. **Initially** - After Phase 3 (solutioning) is complete and epics are finalized
24
- 2. **After epic context creation** - To update epic status to 'contexted'
25
- 3. **Periodically** - To auto-detect newly created story files
26
- 4. **For status checks** - To see overall project progress
27
-
28
- ## Status State Machine
29
-
30
- ### Epic Flow
31
-
32
- ```
33
- backlog → contexted
34
- ```
35
-
36
- ### Story Flow
37
-
38
- ```
39
- backlog → drafted → ready-for-dev → in-progress → review → done
40
- ```
41
-
42
- ### Retrospective Flow
43
-
44
- ```
45
- optional ↔ completed
46
- ```
47
-
48
- ## Key Guidelines
49
-
50
- 1. **Epic Context Recommended**: Epics should be `contexted` before their stories can be `drafted`
51
- 2. **Flexible Parallelism**: Multiple stories can be `in-progress` based on team capacity
52
- 3. **Sequential Default**: Stories within an epic are typically worked in order, but parallel work is supported
53
- 4. **Review Flow**: Stories should go through `review` before `done`
54
- 5. **Learning Transfer**: SM typically drafts next story after previous is `done`, incorporating learnings
55
-
56
- ## File Locations
57
-
58
- ### Input Files
59
-
60
- - **Epic Files**: `{output_folder}/epic*.md` or `{output_folder}/epics.md`
61
- - **Epic Context**: `{output_folder}/epic-{n}-context.md`
62
- - **Story Files**: `{story_dir}/{epic}-{story}-{title}.md`
63
- - Example: `stories/1-1-user-authentication.md`
64
- - **Story Context**: `{story_dir}/{epic}-{story}-{title}-context.md`
65
- - Example: `stories/1-1-user-authentication-context.md`
66
-
67
- ### Output File
68
-
69
- - **Status File**: `{output_folder}/sprint-status.yaml`
70
-
71
- ## Usage by Agents
72
-
73
- ### SM (Scrum Master) Agent
74
-
75
- ```yaml
76
- Tasks:
77
- - Check sprint-status.yaml for stories in 'done' status
78
- - Identify next 'backlog' story to draft
79
- - Run create-story workflow
80
- - Update status to 'drafted'
81
- - Create story context
82
- - Update status to 'ready-for-dev'
83
- ```
84
-
85
- ### Developer Agent
86
-
87
- ```yaml
88
- Tasks:
89
- - Find stories with 'ready-for-dev' status
90
- - Update to 'in-progress' when starting
91
- - Implement the story
92
- - Update to 'review' when complete
93
- - Address review feedback
94
- - Update to 'done' after review
95
- ```
96
-
97
- ### Test Architect
98
-
99
- ```yaml
100
- Tasks:
101
- - Monitor stories entering 'review'
102
- - Track epic progress
103
- - Identify when retrospectives are needed
104
- ```
105
-
106
- ## Example Output
107
-
108
- ```yaml
109
- # Sprint Status
110
- # Generated: 2025-01-20
111
- # Project: MyPlantFamily
112
-
113
- development_status:
114
- epic-1: contexted
115
- 1-1-project-foundation: done
116
- 1-2-app-shell: done
117
- 1-3-user-authentication: in-progress
118
- 1-4-plant-data-model: ready-for-dev
119
- 1-5-add-plant-manual: drafted
120
- 1-6-photo-identification: backlog
121
- epic-1-retrospective: optional
122
-
123
- epic-2: contexted
124
- 2-1-personality-system: in-progress
125
- 2-2-chat-interface: drafted
126
- 2-3-llm-integration: backlog
127
- 2-4-reminder-system: backlog
128
- epic-2-retrospective: optional
129
- ```
130
-
131
- ## Integration with BMM Workflow
132
-
133
- This workflow is part of Phase 4 (Implementation) and integrates with:
134
-
135
- 1. **epic-tech-context** - Creates technical context for epics
136
- 2. **create-story** - Drafts individual story files
137
- 3. **story-context** - Adds implementation context to stories
138
- 4. **dev-story** - Developer implements the story
139
- 5. **code-review** - SM reviews implementation
140
- 6. **retrospective** - Optional epic retrospective
141
-
142
- ## Benefits
143
-
144
- - **Clear Visibility**: Everyone knows what's being worked on
145
- - **Flexible Capacity**: Supports both sequential and parallel work patterns
146
- - **Learning Transfer**: SM can incorporate learnings when drafting next story
147
- - **Progress Tracking**: Easy to see overall project status
148
- - **Automation Friendly**: Simple YAML format for agent updates
149
-
150
- ## Tips
151
-
152
- 1. **Initial Generation**: Run immediately after epics are finalized
153
- 2. **Regular Updates**: Agents should update status as they work
154
- 3. **Manual Override**: You can manually edit the file if needed
155
- 4. **Backup First**: The workflow backs up existing status before regenerating
156
- 5. **Validation**: The workflow validates legal status transitions