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,444 +0,0 @@
1
- # Document Project Workflow
2
-
3
- **Version:** 1.2.0
4
- **Module:** BMM (BMAD Method Module)
5
- **Type:** Action Workflow (Documentation Generator)
6
-
7
- ## Purpose
8
-
9
- Analyzes and documents brownfield projects by scanning codebase, architecture, and patterns to create comprehensive reference documentation for AI-assisted development. Generates a master index and multiple documentation files tailored to project structure and type.
10
-
11
- **NEW in v1.2.0:** Context-safe architecture with scan levels, resumability, and write-as-you-go pattern to prevent context exhaustion.
12
-
13
- ## Key Features
14
-
15
- - **Multi-Project Type Support**: Handles web, backend, mobile, CLI, game, embedded, data, infra, library, desktop, and extension projects
16
- - **Multi-Part Detection**: Automatically detects and documents projects with separate client/server or multiple services
17
- - **Three Scan Levels** (NEW v1.2.0): Quick (2-5 min), Deep (10-30 min), Exhaustive (30-120 min)
18
- - **Resumability** (NEW v1.2.0): Interrupt and resume workflows without losing progress
19
- - **Write-as-you-go** (NEW v1.2.0): Documents written immediately to prevent context exhaustion
20
- - **Intelligent Batching** (NEW v1.2.0): Subfolder-based processing for deep/exhaustive scans
21
- - **Data-Driven Analysis**: Uses CSV-based project type detection and documentation requirements
22
- - **Comprehensive Scanning**: Analyzes APIs, data models, UI components, configuration, security patterns, and more
23
- - **Architecture Matching**: Matches projects to 170+ architecture templates from the solutioning registry
24
- - **Brownfield PRD Ready**: Generates documentation specifically designed for AI agents planning new features
25
-
26
- ## How to Invoke
27
-
28
- ```bash
29
- workflow document-project
30
- ```
31
-
32
- Or from BMAD CLI:
33
-
34
- ```bash
35
- /bmad:bmm:workflows:document-project
36
- ```
37
-
38
- ## Scan Levels (NEW in v1.2.0)
39
-
40
- Choose the right scan depth for your needs:
41
-
42
- ### 1. Quick Scan (Default)
43
-
44
- **Duration:** 2-5 minutes
45
- **What it does:** Pattern-based analysis without reading source files
46
- **Reads:** Config files, package manifests, directory structure, README
47
- **Use when:**
48
-
49
- - You need a fast project overview
50
- - Initial understanding of project structure
51
- - Planning next steps before deeper analysis
52
-
53
- **Does NOT read:** Source code files (_.js, _.ts, _.py, _.go, etc.)
54
-
55
- ### 2. Deep Scan
56
-
57
- **Duration:** 10-30 minutes
58
- **What it does:** Reads files in critical directories based on project type
59
- **Reads:** Files in critical paths defined by documentation requirements
60
- **Use when:**
61
-
62
- - Creating comprehensive documentation for brownfield PRD
63
- - Need detailed analysis of key areas
64
- - Want balance between depth and speed
65
-
66
- **Example:** For a web app, reads controllers/, models/, components/, but not every utility file
67
-
68
- ### 3. Exhaustive Scan
69
-
70
- **Duration:** 30-120 minutes
71
- **What it does:** Reads ALL source files in project
72
- **Reads:** Every source file (excludes node_modules, dist, build, .git)
73
- **Use when:**
74
-
75
- - Complete project analysis needed
76
- - Migration planning requires full understanding
77
- - Detailed audit of entire codebase
78
- - Deep technical debt assessment
79
-
80
- **Note:** Deep-dive mode ALWAYS uses exhaustive scan (no choice)
81
-
82
- ## Resumability (NEW in v1.2.0)
83
-
84
- The workflow can be interrupted and resumed without losing progress:
85
-
86
- - **State Tracking:** Progress saved in `project-scan-report.json`
87
- - **Auto-Detection:** Workflow detects incomplete runs (<24 hours old)
88
- - **Resume Prompt:** Choose to resume or start fresh
89
- - **Step-by-Step:** Resume from exact step where interrupted
90
- - **Archiving:** Old state files automatically archived
91
-
92
- **Example Resume Flow:**
93
-
94
- ```
95
- > workflow document-project
96
-
97
- I found an in-progress workflow state from 2025-10-11 14:32:15.
98
-
99
- Current Progress:
100
- - Mode: initial_scan
101
- - Scan Level: deep
102
- - Completed Steps: 5/12
103
- - Last Step: step_5
104
-
105
- Would you like to:
106
- 1. Resume from where we left off - Continue from step 6
107
- 2. Start fresh - Archive old state and begin new scan
108
- 3. Cancel - Exit without changes
109
-
110
- Your choice [1/2/3]:
111
- ```
112
-
113
- ## What It Does
114
-
115
- ### Step-by-Step Process
116
-
117
- 1. **Detects Project Structure** - Identifies if project is single-part or multi-part (client/server/etc.)
118
- 2. **Classifies Project Type** - Matches against 12 project types (web, backend, mobile, etc.)
119
- 3. **Discovers Documentation** - Finds existing README, CONTRIBUTING, ARCHITECTURE files
120
- 4. **Analyzes Tech Stack** - Parses package files, identifies frameworks, versions, dependencies
121
- 5. **Conditional Scanning** - Performs targeted analysis based on project type requirements:
122
- - API routes and endpoints
123
- - Database models and schemas
124
- - State management patterns
125
- - UI component libraries
126
- - Configuration and security
127
- - CI/CD and deployment configs
128
- 6. **Generates Source Tree** - Creates annotated directory structure with critical paths
129
- 7. **Extracts Dev Instructions** - Documents setup, build, run, and test commands
130
- 8. **Creates Architecture Docs** - Generates detailed architecture using matched templates
131
- 9. **Builds Master Index** - Creates comprehensive index.md as primary AI retrieval source
132
- 10. **Validates Output** - Runs 140+ point checklist to ensure completeness
133
-
134
- ### Output Files
135
-
136
- **Single-Part Projects:**
137
-
138
- - `index.md` - Master index
139
- - `project-overview.md` - Executive summary
140
- - `architecture.md` - Detailed architecture
141
- - `source-tree-analysis.md` - Annotated directory tree
142
- - `component-inventory.md` - Component catalog (if applicable)
143
- - `development-guide.md` - Local dev instructions
144
- - `api-contracts.md` - API documentation (if applicable)
145
- - `data-models.md` - Database schema (if applicable)
146
- - `deployment-guide.md` - Deployment process (optional)
147
- - `contribution-guide.md` - Contributing guidelines (optional)
148
- - `project-scan-report.json` - State file for resumability (NEW v1.2.0)
149
-
150
- **Multi-Part Projects (e.g., client + server):**
151
-
152
- - `index.md` - Master index with part navigation
153
- - `project-overview.md` - Multi-part summary
154
- - `architecture-{part_id}.md` - Per-part architecture docs
155
- - `source-tree-analysis.md` - Full tree with part annotations
156
- - `component-inventory-{part_id}.md` - Per-part components
157
- - `development-guide-{part_id}.md` - Per-part dev guides
158
- - `integration-architecture.md` - How parts communicate
159
- - `project-parts.json` - Machine-readable metadata
160
- - `project-scan-report.json` - State file for resumability (NEW v1.2.0)
161
- - Additional conditional files per part (API, data models, etc.)
162
-
163
- ## Data Files
164
-
165
- The workflow uses a single comprehensive CSV file:
166
-
167
- **documentation-requirements.csv** - Complete project analysis guide
168
-
169
- - Location: `/bmad/bmm/workflows/document-project/documentation-requirements.csv`
170
- - 12 project types (web, mobile, backend, cli, library, desktop, game, data, extension, infra, embedded)
171
- - 24 columns combining:
172
- - **Detection columns**: `project_type_id`, `key_file_patterns` (identifies project type from codebase)
173
- - **Requirement columns**: `requires_api_scan`, `requires_data_models`, `requires_ui_components`, etc.
174
- - **Pattern columns**: `critical_directories`, `test_file_patterns`, `config_patterns`, etc.
175
- - Self-contained: All project detection AND scanning requirements in one file
176
- - Architecture patterns inferred from tech stack (no external registry needed)
177
-
178
- ## Use Cases
179
-
180
- ### Primary Use Case: Brownfield PRD Creation
181
-
182
- After running this workflow, use the generated `index.md` as input to brownfield PRD workflows:
183
-
184
- ```
185
- User: "I want to add a new dashboard feature"
186
- PRD Workflow: Loads docs/index.md
187
- → Understands existing architecture
188
- → Identifies reusable components
189
- → Plans integration with existing APIs
190
- → Creates contextual PRD with epics and stories
191
- ```
192
-
193
- ### Other Use Cases
194
-
195
- - **Onboarding New Developers** - Comprehensive project documentation
196
- - **Architecture Review** - Structured analysis of existing system
197
- - **Technical Debt Assessment** - Identify patterns and anti-patterns
198
- - **Migration Planning** - Understand current state before refactoring
199
-
200
- ## Requirements
201
-
202
- ### Recommended Inputs (Optional)
203
-
204
- - Project root directory (defaults to current directory)
205
- - README.md or similar docs (auto-discovered if present)
206
- - User guidance on key areas to focus (workflow will ask)
207
-
208
- ### Tools Used
209
-
210
- - File system scanning (Glob, Read, Grep)
211
- - Code analysis
212
- - Git repository analysis (optional)
213
-
214
- ## Configuration
215
-
216
- ### Default Output Location
217
-
218
- Files are saved to: `{output_folder}` (from config.yaml)
219
-
220
- Default: `/docs/` folder in project root
221
-
222
- ### Customization
223
-
224
- - Modify `documentation-requirements.csv` to adjust scanning patterns for project types
225
- - Add new project types to `project-types.csv`
226
- - Add new architecture templates to `registry.csv`
227
-
228
- ## Example: Multi-Part Web App
229
-
230
- **Input:**
231
-
232
- ```
233
- my-app/
234
- ├── client/ # React frontend
235
- ├── server/ # Express backend
236
- └── README.md
237
- ```
238
-
239
- **Detection Result:**
240
-
241
- - Repository Type: Monorepo
242
- - Part 1: client (web/React)
243
- - Part 2: server (backend/Express)
244
-
245
- **Output (10+ files):**
246
-
247
- ```
248
- docs/
249
- ├── index.md
250
- ├── project-overview.md
251
- ├── architecture-client.md
252
- ├── architecture-server.md
253
- ├── source-tree-analysis.md
254
- ├── component-inventory-client.md
255
- ├── development-guide-client.md
256
- ├── development-guide-server.md
257
- ├── api-contracts-server.md
258
- ├── data-models-server.md
259
- ├── integration-architecture.md
260
- └── project-parts.json
261
- ```
262
-
263
- ## Example: Simple CLI Tool
264
-
265
- **Input:**
266
-
267
- ```
268
- hello-cli/
269
- ├── main.go
270
- ├── go.mod
271
- └── README.md
272
- ```
273
-
274
- **Detection Result:**
275
-
276
- - Repository Type: Monolith
277
- - Part 1: main (cli/Go)
278
-
279
- **Output (4 files):**
280
-
281
- ```
282
- docs/
283
- ├── index.md
284
- ├── project-overview.md
285
- ├── architecture.md
286
- └── source-tree-analysis.md
287
- ```
288
-
289
- ## Deep-Dive Mode
290
-
291
- ### What is Deep-Dive Mode?
292
-
293
- When you run the workflow on a project that already has documentation, you'll be offered a choice:
294
-
295
- 1. **Rescan entire project** - Update all documentation with latest changes
296
- 2. **Deep-dive into specific area** - Generate EXHAUSTIVE documentation for a particular feature/module/folder
297
- 3. **Cancel** - Keep existing documentation
298
-
299
- Deep-dive mode performs **comprehensive, file-by-file analysis** of a specific area, reading EVERY file completely and documenting:
300
-
301
- - All exports with complete signatures
302
- - All imports and dependencies
303
- - Dependency graphs and data flow
304
- - Code patterns and implementations
305
- - Testing coverage and strategies
306
- - Integration points
307
- - Reuse opportunities
308
-
309
- ### When to Use Deep-Dive Mode
310
-
311
- - **Before implementing a feature** - Deep-dive the area you'll be modifying
312
- - **During architecture review** - Deep-dive complex modules
313
- - **For code understanding** - Deep-dive unfamiliar parts of codebase
314
- - **When creating PRDs** - Deep-dive areas affected by new features
315
-
316
- ### Deep-Dive Process
317
-
318
- 1. Workflow detects existing `index.md`
319
- 2. Offers deep-dive option
320
- 3. Suggests areas based on project structure:
321
- - API route groups
322
- - Feature modules
323
- - UI component areas
324
- - Services/business logic
325
- 4. You select area or specify custom path
326
- 5. Workflow reads EVERY file in that area
327
- 6. Generates `deep-dive-{area-name}.md` with complete analysis
328
- 7. Updates `index.md` with link to deep-dive doc
329
- 8. Offers to deep-dive another area or finish
330
-
331
- ### Deep-Dive Output Example
332
-
333
- **docs/deep-dive-dashboard-feature.md:**
334
-
335
- - Complete file inventory (47 files analyzed)
336
- - Every export with signatures
337
- - Dependency graph
338
- - Data flow analysis
339
- - Integration points
340
- - Testing coverage
341
- - Related code references
342
- - Implementation guidance
343
- - ~3,000 LOC documented in detail
344
-
345
- ### Incremental Deep-Diving
346
-
347
- You can deep-dive multiple areas over time:
348
-
349
- - First run: Scan entire project → generates index.md
350
- - Second run: Deep-dive dashboard feature
351
- - Third run: Deep-dive API layer
352
- - Fourth run: Deep-dive authentication system
353
-
354
- All deep-dive docs are linked from the master index.
355
-
356
- ## Validation
357
-
358
- The workflow includes a comprehensive 160+ point checklist covering:
359
-
360
- - Project detection accuracy
361
- - Technology stack completeness
362
- - Codebase scanning thoroughness
363
- - Architecture documentation quality
364
- - Multi-part handling (if applicable)
365
- - Brownfield PRD readiness
366
- - Deep-dive completeness (if applicable)
367
-
368
- ## Next Steps After Completion
369
-
370
- 1. **Review** `docs/index.md` - Your master documentation index
371
- 2. **Validate** - Check generated docs for accuracy
372
- 3. **Use for PRD** - Point brownfield PRD workflow to index.md
373
- 4. **Maintain** - Re-run workflow when architecture changes significantly
374
-
375
- ## File Structure
376
-
377
- ```
378
- document-project/
379
- ├── workflow.yaml # Workflow configuration
380
- ├── instructions.md # Step-by-step workflow logic
381
- ├── checklist.md # Validation criteria
382
- ├── documentation-requirements.csv # Project type scanning patterns
383
- ├── templates/ # Output templates
384
- │ ├── index-template.md
385
- │ ├── project-overview-template.md
386
- │ └── source-tree-template.md
387
- └── README.md # This file
388
- ```
389
-
390
- ## Troubleshooting
391
-
392
- **Issue: Project type not detected correctly**
393
-
394
- - Solution: Workflow will ask for confirmation; manually select correct type
395
-
396
- **Issue: Missing critical information**
397
-
398
- - Solution: Provide additional context when prompted; re-run specific analysis steps
399
-
400
- **Issue: Multi-part detection missed a part**
401
-
402
- - Solution: When asked to confirm parts, specify the missing part and its path
403
-
404
- **Issue: Architecture template doesn't match well**
405
-
406
- - Solution: Check registry.csv; may need to add new template or adjust matching criteria
407
-
408
- ## Architecture Improvements in v1.2.0
409
-
410
- ### Context-Safe Design
411
-
412
- The workflow now uses a write-as-you-go architecture:
413
-
414
- - Documents written immediately to disk (not accumulated in memory)
415
- - Detailed findings purged after writing (only summaries kept)
416
- - State tracking enables resumption from any step
417
- - Batching strategy prevents context exhaustion on large projects
418
-
419
- ### Batching Strategy
420
-
421
- For deep/exhaustive scans:
422
-
423
- - Process ONE subfolder at a time
424
- - Read files → Extract info → Write output → Validate → Purge context
425
- - Primary concern is file SIZE (not count)
426
- - Track batches in state file for resumability
427
-
428
- ### State File Format
429
-
430
- Optimized JSON (no pretty-printing):
431
-
432
- ```json
433
- {
434
- "workflow_version": "1.2.0",
435
- "timestamps": {...},
436
- "mode": "initial_scan",
437
- "scan_level": "deep",
438
- "completed_steps": [...],
439
- "current_step": "step_6",
440
- "findings": {"summary": "only"},
441
- "outputs_generated": [...],
442
- "resume_instructions": "..."
443
- }
444
- ```
@@ -1,38 +0,0 @@
1
- # Document Project Workflow Templates
2
-
3
- This directory contains template files for the `document-project` workflow.
4
-
5
- ## Template Files
6
-
7
- - **index-template.md** - Master index template (adapts for single/multi-part projects)
8
- - **project-overview-template.md** - Executive summary and high-level overview
9
- - **source-tree-template.md** - Annotated directory structure
10
-
11
- ## Template Usage
12
-
13
- The workflow dynamically selects and populates templates based on:
14
-
15
- 1. **Project structure** (single part vs multi-part)
16
- 2. **Project type** (web, backend, mobile, etc.)
17
- 3. **Documentation requirements** (from documentation-requirements.csv)
18
-
19
- ## Variable Naming Convention
20
-
21
- Templates use Handlebars-style variables:
22
-
23
- - `{{variable_name}}` - Simple substitution
24
- - `{{#if condition}}...{{/if}}` - Conditional blocks
25
- - `{{#each collection}}...{{/each}}` - Iteration
26
-
27
- ## Additional Templates
28
-
29
- Architecture-specific templates are dynamically loaded from:
30
- `/bmad/bmm/workflows/3-solutioning/templates/`
31
-
32
- Based on the matched architecture type from the registry.
33
-
34
- ## Notes
35
-
36
- - Templates support both simple and complex project structures
37
- - Multi-part projects get part-specific file naming (e.g., `architecture-{part_id}.md`)
38
- - Single-part projects use simplified naming (e.g., `architecture.md`)
@@ -1,26 +0,0 @@
1
- # Test Architect Workflows
2
-
3
- This directory houses the per-command workflows used by the Test Architect agent (`tea`). Each workflow wraps the standalone instructions that used to live under `testarch/` so they can run through the standard BMAD workflow runner.
4
-
5
- ## Available workflows
6
-
7
- - `framework` – scaffolds Playwright/Cypress harnesses.
8
- - `atdd` – generates failing acceptance tests before coding.
9
- - `automate` – expands regression coverage after implementation.
10
- - `ci` – bootstraps CI/CD pipelines aligned with TEA practices.
11
- - `test-design` – combines risk assessment and coverage planning.
12
- - `trace` – maps requirements to tests (Phase 1) and makes quality gate decisions (Phase 2).
13
- - `nfr-assess` – evaluates non-functional requirements.
14
- - `test-review` – reviews test quality using knowledge base patterns and generates quality score.
15
-
16
- **Note**: The `gate` workflow has been merged into `trace` as Phase 2. The `*trace` command now performs both requirements-to-tests traceability mapping AND quality gate decision (PASS/CONCERNS/FAIL/WAIVED) in a single atomic operation.
17
-
18
- Each subdirectory contains:
19
-
20
- - `README.md` – comprehensive workflow documentation with usage, inputs, outputs, and integration notes.
21
- - `instructions.md` – detailed workflow steps in pure markdown v4.0 format.
22
- - `workflow.yaml` – metadata, variables, and configuration for BMAD workflow runner.
23
- - `checklist.md` – validation checklist for quality assurance and completeness verification.
24
- - `template.md` – output template for workflow deliverables (where applicable).
25
-
26
- The TEA agent now invokes these workflows via `run-workflow` rather than executing instruction files directly.