bmad-method 6.0.0-alpha.4 → 6.0.0-alpha.5
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.
- package/.claude/commands/bmad/bmm/agents/architect.md +0 -1
- package/.claude/commands/bmad/bmm/agents/sm.md +1 -1
- package/.claude/commands/bmad/bmm/agents/tech-writer.md +82 -0
- package/.claude/commands/bmad/bmm/workflows/README.md +1 -1
- package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
- package/.claude/commands/bmad/core/workflows/README.md +10 -0
- package/.claude/settings.local.json +4 -8
- package/CHANGELOG.md +305 -0
- package/README.md +88 -39
- package/bmad/_cfg/agent-manifest.csv +2 -1
- package/bmad/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
- package/bmad/_cfg/files-manifest.csv +40 -62
- package/bmad/_cfg/ides/claude-code.yaml +1 -1
- package/bmad/_cfg/manifest.yaml +4 -3
- package/bmad/_cfg/task-manifest.csv +4 -1
- package/bmad/_cfg/tool-manifest.csv +1 -0
- package/bmad/_cfg/workflow-manifest.csv +3 -1
- package/bmad/bmb/config.yaml +2 -2
- package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
- package/bmad/bmm/README.md +79 -120
- package/bmad/bmm/README.md.bak +169 -0
- package/bmad/bmm/agents/analyst.md.bak +67 -0
- package/bmad/bmm/agents/architect.md +0 -1
- package/bmad/bmm/agents/architect.md.bak +73 -0
- package/bmad/bmm/agents/dev.md.bak +69 -0
- package/bmad/bmm/agents/pm.md.bak +76 -0
- package/bmad/bmm/agents/sm.md +1 -1
- package/bmad/bmm/agents/sm.md.bak +85 -0
- package/bmad/bmm/agents/tea.md.bak +72 -0
- package/bmad/bmm/agents/tech-writer.md +82 -0
- package/bmad/bmm/agents/ux-designer.md.bak +71 -0
- package/bmad/bmm/config.yaml +2 -2
- package/bmad/bmm/docs/README.md +235 -0
- package/bmad/bmm/docs/agents-guide.md +1057 -0
- package/bmad/bmm/docs/brownfield-guide.md +471 -972
- package/bmad/bmm/docs/enterprise-agentic-development.md +680 -0
- package/bmad/bmm/docs/faq.md +589 -0
- package/bmad/bmm/docs/glossary.md +321 -0
- package/bmad/bmm/docs/party-mode.md +224 -0
- package/bmad/bmm/docs/quick-spec-flow.md +64 -57
- package/bmad/bmm/docs/quick-start.md +72 -47
- package/bmad/bmm/docs/scale-adaptive-system.md +332 -778
- package/bmad/bmm/docs/troubleshooting.md +680 -0
- package/bmad/bmm/{workflows/3-solutioning/architecture/README.md → docs/workflow-architecture-reference.md} +130 -77
- package/bmad/bmm/{workflows/document-project/README.md → docs/workflow-document-project-reference.md} +45 -2
- package/bmad/bmm/docs/workflows-analysis.md +670 -0
- package/bmad/bmm/docs/workflows-implementation.md +1758 -0
- package/bmad/bmm/docs/workflows-planning.md +1086 -0
- package/bmad/bmm/docs/workflows-solutioning.md +726 -0
- package/bmad/bmm/tasks/daily-standup.xml +1 -1
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml.bak +60 -0
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md +2 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md.bak +238 -0
- package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
- package/bmad/bmm/workflows/workflow-status/init/workflow.yaml.bak +27 -0
- package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
- package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
- package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
- package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
- package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
- package/bmad/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
- package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
- package/bmad/cis/agents/brainstorming-coach.md.bak +62 -0
- package/bmad/cis/agents/creative-problem-solver.md.bak +62 -0
- package/bmad/cis/agents/design-thinking-coach.md.bak +62 -0
- package/bmad/cis/agents/innovation-strategist.md.bak +62 -0
- package/bmad/cis/agents/storyteller.md.bak +59 -0
- package/bmad/cis/config.yaml +2 -2
- package/bmad/core/agents/bmad-master.md.bak +15 -13
- package/bmad/core/config.yaml +2 -2
- package/bmad/core/tasks/workflow.xml +1 -11
- package/package.json +1 -1
- package/src/core/tasks/workflow.xml +1 -11
- package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
- package/src/modules/bmm/README.md +1 -1
- package/src/modules/bmm/agents/architect.agent.yaml +0 -4
- package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
- package/src/modules/bmm/agents/sm.agent.yaml +1 -1
- package/src/modules/bmm/agents/{paige.agent.yaml → tech-writer.agent.yaml} +4 -4
- package/src/modules/bmm/docs/README.md +9 -9
- package/src/modules/bmm/docs/agents-guide.md +46 -98
- package/src/modules/bmm/docs/brownfield-guide.md +211 -90
- package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
- package/src/modules/bmm/docs/faq.md +10 -10
- package/src/modules/bmm/docs/glossary.md +36 -42
- package/src/modules/bmm/docs/party-mode.md +110 -1122
- package/src/modules/bmm/docs/quick-spec-flow.md +33 -33
- package/src/modules/bmm/docs/quick-start.md +29 -29
- package/src/modules/bmm/docs/scale-adaptive-system.md +303 -453
- package/src/modules/bmm/docs/troubleshooting.md +1 -1
- package/src/modules/bmm/docs/workflows-implementation.md +20 -21
- package/src/modules/bmm/docs/workflows-solutioning.md +1 -1
- package/src/modules/bmm/tasks/daily-standup.xml +1 -1
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
- package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
- package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
- package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/src/modules/bmm/workflows/techdoc/documentation-standards.md +1 -1
- package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
- package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
- package/{bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
- package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
- package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
- package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
- package/bmad/bmm/tasks/retrospective.xml +0 -104
- package/bmad/bmm/testarch/README.md +0 -311
- package/bmad/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
- package/bmad/bmm/workflows/1-analysis/product-brief/README.md +0 -180
- package/bmad/bmm/workflows/1-analysis/research/README.md +0 -454
- package/bmad/bmm/workflows/2-plan-workflows/README.md +0 -258
- package/bmad/bmm/workflows/3-solutioning/README.md +0 -1
- package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
- package/bmad/bmm/workflows/4-implementation/README.md +0 -221
- package/bmad/bmm/workflows/4-implementation/code-review/README.md +0 -69
- package/bmad/bmm/workflows/4-implementation/correct-course/README.md +0 -73
- package/bmad/bmm/workflows/4-implementation/create-story/README.md +0 -146
- package/bmad/bmm/workflows/4-implementation/dev-story/README.md +0 -206
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
- package/bmad/bmm/workflows/4-implementation/retrospective/README.md +0 -77
- package/bmad/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
- package/bmad/bmm/workflows/4-implementation/story-context/README.md +0 -234
- package/bmad/bmm/workflows/README.md +0 -256
- package/bmad/bmm/workflows/document-project/templates/README.md +0 -38
- package/bmad/bmm/workflows/testarch/README.md +0 -26
- package/bmad/bmm/workflows/testarch/atdd/README.md +0 -672
- package/bmad/bmm/workflows/testarch/automate/README.md +0 -869
- package/bmad/bmm/workflows/testarch/ci/README.md +0 -493
- package/bmad/bmm/workflows/testarch/framework/README.md +0 -340
- package/bmad/bmm/workflows/testarch/nfr-assess/README.md +0 -469
- package/bmad/bmm/workflows/testarch/test-design/README.md +0 -493
- package/bmad/bmm/workflows/testarch/test-review/README.md +0 -775
- package/bmad/bmm/workflows/testarch/trace/README.md +0 -802
- package/bmad/bmm/workflows/workflow-status/README.md +0 -260
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
- package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
- package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
- package/src/modules/bmm/docs/brownfield-guide.md.backup +0 -1324
- package/src/modules/bmm/docs/workflows-testing.md +0 -1572
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
- package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
- package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
- /package/bmad/bmm/agents/{paige.md → paige.md.bak} +0 -0
|
@@ -3,182 +3,289 @@
|
|
|
3
3
|
<critical>The workflow execution engine is governed by: {project-root}/bmad/core/tasks/workflow.xml</critical>
|
|
4
4
|
<critical>You MUST have already loaded and processed: workflow-init/workflow.yaml</critical>
|
|
5
5
|
<critical>Communicate in {communication_language} with {user_name}</critical>
|
|
6
|
+
<critical>This workflow handles BOTH new projects AND legacy projects being migrated to BMad Method</critical>
|
|
6
7
|
|
|
7
8
|
<workflow>
|
|
8
9
|
|
|
9
|
-
<step n="1" goal="
|
|
10
|
+
<step n="1" goal="Comprehensive scan for existing work and project state">
|
|
10
11
|
<output>Welcome to BMad Method, {user_name}!</output>
|
|
11
12
|
|
|
12
|
-
<action>
|
|
13
|
+
<action>Perform comprehensive scan for ALL existing work (not just quick scan):
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
15
|
+
**Check for BMM planning artifacts:**
|
|
16
|
+
|
|
17
|
+
- PRD files: {output*folder}/\_prd*.md or {output*folder}/\_prd*/index.md
|
|
18
|
+
- Tech-spec files: {output*folder}/\_tech-spec*.md or {output*folder}/\_spec*.md
|
|
19
|
+
- Epic files: {output*folder}/\_epic*.md or {output*folder}/\_epic*/index.md
|
|
20
|
+
- Architecture: {output*folder}/\_architecture*.md or {output*folder}/\_arch*.md
|
|
21
|
+
- UX Design: {output*folder}/\_ux*.md or {output*folder}/\_design*.md
|
|
22
|
+
- Product Brief: {output*folder}/\_brief*.md
|
|
23
|
+
- Research docs: {output*folder}/\_research*.md
|
|
24
|
+
- Brainstorm docs: {output*folder}/\_brainstorm*.md
|
|
25
|
+
|
|
26
|
+
**Check for implementation artifacts:**
|
|
27
|
+
|
|
28
|
+
- Story files: {output_folder}/stories/\*.md
|
|
29
|
+
- Sprint status: {output*folder}/\_sprint*.yaml or {output_folder}/sprint-status.yaml
|
|
30
|
+
- Existing workflow status: {output_folder}/bmm-workflow-status.yaml
|
|
31
|
+
|
|
32
|
+
**Check for codebase:**
|
|
33
|
+
|
|
34
|
+
- Source code directories: src/, lib/, app/, components/, etc.
|
|
35
|
+
- Package files: package.json, requirements.txt, Cargo.toml, go.mod, pom.xml, etc.
|
|
36
|
+
- Git repository: .git/
|
|
37
|
+
- Framework indicators: next.config.js, vite.config.js, etc.
|
|
38
|
+
</action>
|
|
39
|
+
|
|
40
|
+
<action>Analyze findings and categorize project state:
|
|
41
|
+
|
|
42
|
+
- **STATE 1:** Clean slate (no artifacts, no code or scaffold only)
|
|
43
|
+
- **STATE 2:** Planning in progress (has PRD or tech-spec, no stories/implementation yet)
|
|
44
|
+
- **STATE 3:** Implementation in progress (has stories or sprint status)
|
|
45
|
+
- **STATE 4:** Legacy codebase (has code but no BMM artifacts)
|
|
46
|
+
- **STATE 5:** Partial/unclear (some artifacts, state unclear)
|
|
47
|
+
</action>
|
|
17
48
|
|
|
18
49
|
<ask>What's your project called? {{#if project_name}}(Config shows: {{project_name}}){{/if}}</ask>
|
|
19
|
-
<action>
|
|
50
|
+
<action>Store project_name</action>
|
|
20
51
|
<template-output>project_name</template-output>
|
|
52
|
+
</step>
|
|
21
53
|
|
|
22
|
-
<
|
|
23
|
-
<output>I found some existing work here. Let me understand what you're working on:</output>
|
|
54
|
+
<step n="2" goal="Validate project state with user">
|
|
24
55
|
|
|
25
|
-
<check if="
|
|
26
|
-
<output>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- {{artifact_name}} ({{artifact_type}}, {{story_count}} stories, modified {{date}})
|
|
30
|
-
{{/each}}
|
|
31
|
-
</output>
|
|
56
|
+
<check if="STATE 1: Clean slate">
|
|
57
|
+
<output>Perfect! This looks like a fresh start.</output>
|
|
58
|
+
<action>Set new_project = true</action>
|
|
59
|
+
<action>Continue to Step 3 (ask about their work)</action>
|
|
32
60
|
</check>
|
|
33
61
|
|
|
34
|
-
<check if="found
|
|
35
|
-
<output>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{{#if
|
|
40
|
-
|
|
62
|
+
<check if="STATE 2: Planning artifacts found">
|
|
63
|
+
<output>I found existing planning documents:
|
|
64
|
+
|
|
65
|
+
{{#if found_prd}}
|
|
66
|
+
📋 **PRD:** {{prd_path}}
|
|
67
|
+
{{#if epic_count}}- {{epic_count}} epics, {{story_count}} stories{{/if}}
|
|
68
|
+
|
|
69
|
+
- Last modified: {{prd_modified}}
|
|
70
|
+
{{/if}}
|
|
71
|
+
|
|
72
|
+
{{#if found_tech_spec}}
|
|
73
|
+
📋 **Tech-Spec:** {{spec_path}}
|
|
74
|
+
{{#if story_count}}- {{story_count}} stories{{/if}}
|
|
75
|
+
|
|
76
|
+
- Last modified: {{spec_modified}}
|
|
77
|
+
{{/if}}
|
|
78
|
+
|
|
79
|
+
{{#if found_architecture}}
|
|
80
|
+
🏗️ **Architecture:** {{arch_path}}
|
|
81
|
+
|
|
82
|
+
- Last modified: {{arch_modified}}
|
|
83
|
+
{{/if}}
|
|
84
|
+
|
|
85
|
+
{{#if found_ux}}
|
|
86
|
+
🎨 **UX Design:** {{ux_path}}
|
|
87
|
+
|
|
88
|
+
- Last modified: {{ux_modified}}
|
|
89
|
+
{{/if}}
|
|
90
|
+
|
|
91
|
+
{{#if found_brief}}
|
|
92
|
+
📄 **Product Brief:** {{brief_path}}
|
|
93
|
+
|
|
94
|
+
- Last modified: {{brief_modified}}
|
|
95
|
+
{{/if}}
|
|
96
|
+
|
|
97
|
+
{{#if found_research}}
|
|
98
|
+
🔍 **Research:** {{research_paths}}
|
|
99
|
+
{{/if}}
|
|
100
|
+
|
|
101
|
+
{{#if found_brainstorm}}
|
|
102
|
+
🧠 **Brainstorm:** {{brainstorm_paths}}
|
|
41
103
|
{{/if}}
|
|
42
104
|
</output>
|
|
43
|
-
</check>
|
|
44
105
|
|
|
45
|
-
<ask>
|
|
106
|
+
<ask>What's your situation with these documents?
|
|
46
107
|
|
|
47
|
-
a) **
|
|
48
|
-
b) **
|
|
49
|
-
c) **
|
|
50
|
-
d) **
|
|
108
|
+
a) **Continue this work** - These docs describe what I'm building now
|
|
109
|
+
b) **Override/replace** - These are old, I'm starting something NEW
|
|
110
|
+
c) **Already done** - This work is complete, I'm starting a NEW project
|
|
111
|
+
d) **Not sure** - Let me explain my situation
|
|
51
112
|
|
|
52
113
|
Your choice [a/b/c/d]:</ask>
|
|
53
114
|
|
|
54
|
-
<check if="choice == a">
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</
|
|
115
|
+
<check if="choice == a (Continue)">
|
|
116
|
+
<output>Got it! I'll create workflow tracking for your existing planning.</output>
|
|
117
|
+
<action>Set continuing_existing_planning = true</action>
|
|
118
|
+
<action>Store found artifacts for auto-completion in workflow status</action>
|
|
119
|
+
<action>Continue to Step 5 (detect track from artifacts)</action>
|
|
120
|
+
</check>
|
|
59
121
|
|
|
60
|
-
<check if="choice == b">
|
|
61
|
-
|
|
62
|
-
<action>Set continuing_old_work = false</action>
|
|
63
|
-
<action>Go to Step 3 (Ask about NEW work)</action>
|
|
64
|
-
</check>
|
|
122
|
+
<check if="choice == b (Override)">
|
|
123
|
+
<ask>Should I archive these old documents before we start fresh?
|
|
65
124
|
|
|
66
|
-
|
|
67
|
-
<action>Artifacts describe proposed work</action>
|
|
68
|
-
<action>Set continuing_old_work = true</action>
|
|
69
|
-
<action>Go to Step 2 (Analyze artifacts for details)</action>
|
|
70
|
-
</check>
|
|
125
|
+
I can move them to {output_folder}/archive/ so they're not in the way.
|
|
71
126
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</
|
|
127
|
+
Archive old docs? (y/n)</ask>
|
|
128
|
+
|
|
129
|
+
<action if="answer == y">Create archive folder if needed</action>
|
|
130
|
+
<action if="answer == y">Move all found planning artifacts to {output_folder}/archive/</action>
|
|
131
|
+
<output>{{#if archived}}✅ Old documents archived to {output_folder}/archive/{{else}}Starting fresh - old docs will be ignored{{/if}}</output>
|
|
132
|
+
<action>Set new_project = true</action>
|
|
133
|
+
<action>Continue to Step 3 (ask about their work)</action>
|
|
134
|
+
|
|
135
|
+
</check>
|
|
136
|
+
|
|
137
|
+
<check if="choice == c (Already done)">
|
|
138
|
+
<ask>Should I archive the completed work before starting your new project? (y/n)</ask>
|
|
139
|
+
<action if="answer == y">Archive old planning docs</action>
|
|
140
|
+
<output>{{#if archived}}✅ Completed work archived{{else}}Ready for your new project!{{/if}}</output>
|
|
141
|
+
<action>Set new_project = true</action>
|
|
142
|
+
<action>Continue to Step 3 (ask about their work)</action>
|
|
143
|
+
</check>
|
|
77
144
|
|
|
78
|
-
<check if="
|
|
79
|
-
|
|
80
|
-
|
|
145
|
+
<check if="choice == d (Not sure)">
|
|
146
|
+
<ask>Tell me what you're trying to accomplish:</ask>
|
|
147
|
+
<action>Analyze response and guide to appropriate choice (a, b, or c)</action>
|
|
148
|
+
<action>Loop back to present choices again with guidance</action>
|
|
149
|
+
</check>
|
|
81
150
|
</check>
|
|
82
|
-
</step>
|
|
83
151
|
|
|
84
|
-
<
|
|
85
|
-
<
|
|
86
|
-
<action>Extract project type from content (game vs software)</action>
|
|
87
|
-
<action>Count stories/epics to estimate level:
|
|
88
|
-
- Level 0: 1 story
|
|
89
|
-
- Level 1: 1-10 stories
|
|
90
|
-
- Level 2: 5-15 stories
|
|
91
|
-
- Level 3: 12-40 stories
|
|
92
|
-
- Level 4: 40+ stories
|
|
93
|
-
</action>
|
|
94
|
-
<action>Detect field type from codebase presence (greenfield vs brownfield)</action>
|
|
152
|
+
<check if="STATE 3: Implementation in progress">
|
|
153
|
+
<output>🚨 **I found active implementation work:**
|
|
95
154
|
|
|
96
|
-
|
|
155
|
+
{{#if found_stories}}
|
|
156
|
+
📝 **Story files:** {{story_count}} stories in {output_folder}/stories/
|
|
157
|
+
{{#if story_examples}}- Examples: {{story_examples}}{{/if}}
|
|
158
|
+
{{/if}}
|
|
97
159
|
|
|
98
|
-
|
|
160
|
+
{{#if found_sprint_status}}
|
|
161
|
+
📊 **Sprint tracking:** {{sprint_status_path}}
|
|
99
162
|
|
|
100
|
-
|
|
163
|
+
- {{completed_stories}} completed
|
|
164
|
+
- {{in_progress_stories}} in progress
|
|
165
|
+
- {{pending_stories}} pending
|
|
166
|
+
{{/if}}
|
|
101
167
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
- **Level 2** - Medium feature set (5-15 stories) - dashboards, multiple related features
|
|
105
|
-
- **Level 3** - Complex integration (12-40 stories) - platform features, major integrations
|
|
106
|
-
- **Level 4** - Enterprise expansion (40+ stories) - multi-tenant, ecosystem changes
|
|
168
|
+
{{#if found_workflow_status}}
|
|
169
|
+
📋 **Workflow status:** {{workflow_status_path}}
|
|
107
170
|
|
|
108
|
-
|
|
171
|
+
- Generated: {{workflow_status_date}}
|
|
172
|
+
{{/if}}
|
|
173
|
+
|
|
174
|
+
{{#if found_planning_docs}}
|
|
175
|
+
📚 **Planning docs:** {{found_planning_summary}}
|
|
176
|
+
{{/if}}
|
|
109
177
|
</output>
|
|
110
178
|
|
|
111
|
-
<ask>
|
|
179
|
+
<ask>What's happening here?
|
|
180
|
+
|
|
181
|
+
a) **Continue implementation** - I'm still working on these stories
|
|
182
|
+
b) **Completed** - This work is done, starting something NEW
|
|
183
|
+
c) **Abandoned** - Stopping this, starting over
|
|
184
|
+
d) **Not sure** - Let me explain
|
|
185
|
+
|
|
186
|
+
Your choice [a/b/c/d]:</ask>
|
|
187
|
+
|
|
188
|
+
<check if="choice == a (Continue)">
|
|
189
|
+
<action>Check if bmm-workflow-status.yaml exists</action>
|
|
112
190
|
|
|
113
|
-
<check if="
|
|
114
|
-
|
|
115
|
-
|
|
191
|
+
<check if="workflow_status_exists">
|
|
192
|
+
<output>✅ **You already have workflow tracking set up!**
|
|
193
|
+
|
|
194
|
+
Your current status file: {{workflow_status_path}}
|
|
195
|
+
|
|
196
|
+
You don't need workflow-init - you're already using the workflow system.
|
|
197
|
+
|
|
198
|
+
**To check your progress:**
|
|
199
|
+
|
|
200
|
+
- Load your current agent (PM, SM, Architect, etc.)
|
|
201
|
+
- Run: **/bmad:bmm:workflows:workflow-status**
|
|
202
|
+
|
|
203
|
+
This will show you what to do next.
|
|
204
|
+
|
|
205
|
+
Happy building! 🚀</output>
|
|
206
|
+
<action>Exit workflow gracefully (workflow already initialized)</action>
|
|
116
207
|
</check>
|
|
117
208
|
|
|
118
|
-
<check if="
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
209
|
+
<check if="no_workflow_status">
|
|
210
|
+
<output>You have work in progress but no workflow tracking.
|
|
211
|
+
|
|
212
|
+
I'll create workflow tracking that recognizes your existing work.</output>
|
|
213
|
+
<action>Set migrating_legacy_project = true</action>
|
|
214
|
+
<action>Store found artifacts for workflow status generation</action>
|
|
215
|
+
<action>Continue to Step 5 (detect track from artifacts)</action>
|
|
216
|
+
</check>
|
|
122
217
|
</check>
|
|
123
218
|
|
|
124
|
-
<
|
|
125
|
-
<
|
|
126
|
-
<
|
|
127
|
-
<
|
|
128
|
-
</
|
|
219
|
+
<check if="choice in [b (Completed), c (Abandoned)]">
|
|
220
|
+
<ask>Archive the old work before starting fresh? (y/n)</ask>
|
|
221
|
+
<action if="answer == y">Create archive folder</action>
|
|
222
|
+
<action if="answer == y">Move stories, sprint status, and planning docs to archive</action>
|
|
223
|
+
<output>{{#if archived}}✅ Old work archived{{else}}Clean slate! Ready for your new project.{{/if}}</output>
|
|
224
|
+
<action>Set new_project = true</action>
|
|
225
|
+
<action>Continue to Step 3 (ask about their work)</action>
|
|
226
|
+
</check>
|
|
129
227
|
|
|
130
|
-
<
|
|
131
|
-
<ask>Tell me about
|
|
228
|
+
<check if="choice == d (Not sure)">
|
|
229
|
+
<ask>Tell me more about your situation:</ask>
|
|
230
|
+
<action>Analyze and guide to appropriate choice</action>
|
|
231
|
+
</check>
|
|
232
|
+
</check>
|
|
132
233
|
|
|
133
|
-
<
|
|
234
|
+
<check if="STATE 4: Legacy codebase (no BMM artifacts)">
|
|
235
|
+
<output>I see you have an existing codebase:
|
|
134
236
|
|
|
135
|
-
|
|
136
|
-
- Level 1 keywords: "simple", "basic", "small feature", "add", "minor", "single feature"
|
|
137
|
-
- Level 2 keywords: "dashboard", "several features", "admin panel", "medium", "feature set"
|
|
138
|
-
- Level 3 keywords: "platform", "integration", "complex", "system", "architecture"
|
|
139
|
-
- Level 4 keywords: "enterprise", "multi-tenant", "multiple products", "ecosystem", "phased"
|
|
140
|
-
</action>
|
|
237
|
+
{{codebase_summary}}
|
|
141
238
|
|
|
142
|
-
|
|
239
|
+
No BMM artifacts found - this project hasn't used BMad Method yet.</output>
|
|
143
240
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</action>
|
|
241
|
+
<action>Set field_type = "brownfield"</action>
|
|
242
|
+
<action>Set new_project = true</action>
|
|
243
|
+
<action>Note: Will need document-project before planning</action>
|
|
244
|
+
<output>
|
|
149
245
|
|
|
150
|
-
|
|
151
|
-
|
|
246
|
+
💡 **Note for brownfield projects:**
|
|
247
|
+
You'll need to run **document-project** workflow before planning.
|
|
248
|
+
This analyzes your codebase and creates documentation that AI agents can use.
|
|
152
249
|
|
|
153
|
-
|
|
250
|
+
I'll include this as a prerequisite in your workflow path.</output>
|
|
251
|
+
<action>Continue to Step 3 (ask about their work)</action>
|
|
252
|
+
</check>
|
|
154
253
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
- Several features (5-15 related things)
|
|
158
|
-
- A major addition (15-40 things to do)
|
|
159
|
-
- A large initiative (40+ changes across many areas)
|
|
160
|
-
</ask>
|
|
254
|
+
<check if="STATE 5: Partial/unclear">
|
|
255
|
+
<output>I found some artifacts but the project state is unclear:
|
|
161
256
|
|
|
162
|
-
|
|
257
|
+
{{list_found_artifacts}}
|
|
163
258
|
|
|
164
|
-
|
|
259
|
+
Let me understand your situation.</output>
|
|
165
260
|
|
|
166
|
-
|
|
167
|
-
- One module or component
|
|
168
|
-
- Multiple modules (2-4 areas)
|
|
169
|
-
- Many modules with integration needs
|
|
170
|
-
- System-wide changes
|
|
171
|
-
</ask>
|
|
261
|
+
<ask>What are you trying to do?
|
|
172
262
|
|
|
173
|
-
|
|
263
|
+
a) Continue working on an existing project
|
|
264
|
+
b) Start something completely NEW
|
|
265
|
+
c) Fix/enhance the existing code
|
|
266
|
+
d) Let me explain my situation
|
|
174
267
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
268
|
+
Your choice:</ask>
|
|
269
|
+
|
|
270
|
+
<action>Analyze response carefully</action>
|
|
271
|
+
<action>Guide to appropriate state (Continue existing = Step 5, New = Step 3)</action>
|
|
179
272
|
</check>
|
|
180
273
|
|
|
181
|
-
|
|
274
|
+
</step>
|
|
275
|
+
|
|
276
|
+
<step n="3" goal="Ask user about their work (new projects only)">
|
|
277
|
+
<ask>Tell me about what you're working on. What's the goal?</ask>
|
|
278
|
+
|
|
279
|
+
<action>Store user_description</action>
|
|
280
|
+
|
|
281
|
+
<action>Analyze description for field type:
|
|
282
|
+
|
|
283
|
+
- Brownfield indicators: "existing", "current", "add to", "modify", "enhance", "refactor"
|
|
284
|
+
- Greenfield indicators: "new", "build", "create", "from scratch", "start"
|
|
285
|
+
- Codebase presence overrides: If found codebase = brownfield unless user says "scaffold"
|
|
286
|
+
</action>
|
|
287
|
+
|
|
288
|
+
<check if="found codebase AND field_type still unclear">
|
|
182
289
|
<ask>I see you have existing code here. Are you:
|
|
183
290
|
|
|
184
291
|
1. **Adding to or modifying** the existing codebase (brownfield)
|
|
@@ -202,189 +309,463 @@ Your choice [1/2/3]:</ask>
|
|
|
202
309
|
</check>
|
|
203
310
|
</check>
|
|
204
311
|
|
|
205
|
-
<action>
|
|
206
|
-
<action>Store detected_indicators (keywords, scope indicators, complexity signals)</action>
|
|
312
|
+
<action if="field_type not yet set">Set field_type based on codebase presence (codebase = brownfield, none = greenfield)</action>
|
|
207
313
|
|
|
208
|
-
<
|
|
314
|
+
<action>Detect project_type (game vs software):
|
|
209
315
|
|
|
210
|
-
|
|
316
|
+
- Game keywords: "game", "player", "level", "gameplay", "rpg", "fps", "puzzle game"
|
|
317
|
+
- Default to "software" if not clearly a game
|
|
318
|
+
</action>
|
|
211
319
|
|
|
212
|
-
|
|
320
|
+
<template-output>user_description</template-output>
|
|
321
|
+
<template-output>field_type</template-output>
|
|
322
|
+
<template-output>project_type</template-output>
|
|
323
|
+
</step>
|
|
213
324
|
|
|
214
|
-
|
|
325
|
+
<step n="4" goal="Offer optional discovery workflows">
|
|
326
|
+
<output>Before we determine your planning approach, I want to offer some optional
|
|
327
|
+
workflows that can help you think through your project more deeply:</output>
|
|
215
328
|
|
|
216
|
-
|
|
217
|
-
- **Level 1** - Small feature (1-10 stories) - simple additions, isolated features, one module
|
|
218
|
-
- **Level 2** - Medium feature set (5-15 stories) - dashboards, multiple related features, several modules
|
|
219
|
-
- **Level 3** - Complex integration (12-40 stories) - platform features, major integrations, architectural changes
|
|
220
|
-
- **Level 4** - Enterprise expansion (40+ stories) - multi-tenant, ecosystem changes, system-wide initiatives
|
|
329
|
+
<ask>Would you like to:
|
|
221
330
|
|
|
222
|
-
**
|
|
223
|
-
|
|
331
|
+
- 🧠 **Brainstorm** your project? (Creative exploration and idea generation)
|
|
332
|
+
- 🔍 **Research** your domain? (Technical research, competitive analysis, deep-dives)
|
|
333
|
+
|
|
334
|
+
These are completely OPTIONAL but can help clarify your vision before planning.
|
|
335
|
+
|
|
336
|
+
Your choice:
|
|
337
|
+
a) Yes, brainstorm first
|
|
338
|
+
b) Yes, research first
|
|
339
|
+
c) Yes, both
|
|
340
|
+
d) No, I'm ready to plan
|
|
341
|
+
|
|
342
|
+
Your choice [a/b/c/d]:</ask>
|
|
343
|
+
|
|
344
|
+
<check if="choice == a">
|
|
345
|
+
<action>Set brainstorm_requested = true</action>
|
|
346
|
+
<action>Set research_requested = false</action>
|
|
347
|
+
</check>
|
|
224
348
|
|
|
225
|
-
<
|
|
349
|
+
<check if="choice == b">
|
|
350
|
+
<action>Set brainstorm_requested = false</action>
|
|
351
|
+
<action>Set research_requested = true</action>
|
|
352
|
+
</check>
|
|
226
353
|
|
|
227
|
-
<check if="
|
|
228
|
-
<action>
|
|
229
|
-
<action>
|
|
354
|
+
<check if="choice == c">
|
|
355
|
+
<action>Set brainstorm_requested = true</action>
|
|
356
|
+
<action>Set research_requested = true</action>
|
|
230
357
|
</check>
|
|
231
358
|
|
|
232
|
-
<check if="
|
|
233
|
-
<action>
|
|
234
|
-
<
|
|
235
|
-
<ask>Does that look right now? (y/n)</ask>
|
|
236
|
-
<action>If yes, go to Step 4. If no, ask what needs adjustment and repeat.</action>
|
|
359
|
+
<check if="choice == d">
|
|
360
|
+
<action>Set brainstorm_requested = false</action>
|
|
361
|
+
<action>Set research_requested = false</action>
|
|
237
362
|
</check>
|
|
238
363
|
|
|
239
|
-
<template-output>
|
|
240
|
-
<template-output>
|
|
241
|
-
<template-output>project_level</template-output>
|
|
242
|
-
<template-output>field_type</template-output>
|
|
364
|
+
<template-output>brainstorm_requested</template-output>
|
|
365
|
+
<template-output>research_requested</template-output>
|
|
243
366
|
</step>
|
|
244
367
|
|
|
245
|
-
<step n="
|
|
246
|
-
|
|
368
|
+
<step n="5" goal="Track selection with education (or detect from artifacts)">
|
|
369
|
+
|
|
370
|
+
<check if="continuing_existing_planning OR migrating_legacy_project">
|
|
371
|
+
<action>Detect track from existing artifacts:
|
|
372
|
+
|
|
373
|
+
**Track Detection Logic:**
|
|
374
|
+
|
|
375
|
+
- Has PRD + Architecture → BMad Method
|
|
376
|
+
- Has PRD only → BMad Method (architecture was optional/skipped)
|
|
377
|
+
- Has tech-spec only → BMad Quick Flow
|
|
378
|
+
- Has Security/DevOps docs → BMad Enterprise Method
|
|
379
|
+
</action>
|
|
247
380
|
|
|
248
|
-
<
|
|
249
|
-
|
|
250
|
-
|
|
381
|
+
<output>Based on your existing planning documents, I've detected you're using:
|
|
382
|
+
|
|
383
|
+
**{{detected_track_name}}**
|
|
384
|
+
|
|
385
|
+
{{#if found_artifacts_list}}
|
|
386
|
+
Found completed workflows:
|
|
387
|
+
{{#each found_artifacts_list}}
|
|
388
|
+
|
|
389
|
+
- {{workflow_name}}: {{file_path}}
|
|
390
|
+
{{/each}}
|
|
391
|
+
{{/if}}
|
|
392
|
+
|
|
393
|
+
I'll create workflow tracking that matches your existing approach and
|
|
394
|
+
automatically marks these completed workflows as done.
|
|
395
|
+
|
|
396
|
+
Does this look right? (y/n)</output>
|
|
397
|
+
|
|
398
|
+
<ask if="answer == n">Which track should I use instead?
|
|
399
|
+
|
|
400
|
+
1. BMad Quick Flow
|
|
401
|
+
2. BMad Method
|
|
402
|
+
3. BMad Enterprise Method
|
|
403
|
+
|
|
404
|
+
Your choice:</ask>
|
|
405
|
+
|
|
406
|
+
<action if="user_corrects">Update selected_track based on choice</action>
|
|
407
|
+
<action>Store selected_track</action>
|
|
408
|
+
<template-output>selected_track</template-output>
|
|
409
|
+
|
|
410
|
+
<action>Continue to Step 6 (product brief question if applicable)</action>
|
|
251
411
|
</check>
|
|
252
412
|
|
|
253
|
-
<check if="
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
413
|
+
<check if="new_project">
|
|
414
|
+
<output>Now, let me explain your planning options.
|
|
415
|
+
|
|
416
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
417
|
+
|
|
418
|
+
🚀 **BMad Quick Flow** - Fast Implementation Path
|
|
419
|
+
|
|
420
|
+
⏱️ **Time:** Hours to 1 day of planning
|
|
421
|
+
📝 **Approach:** Tech-spec focused - just enough detail to start coding
|
|
422
|
+
✅ **Best for:** Simple features, bug fixes, scope is crystal clear
|
|
423
|
+
⚠️ **Trade-off:** Less upfront planning = higher risk of rework if complexity emerges
|
|
424
|
+
🤖 **Agent Support:** Basic - AI will have minimal context
|
|
425
|
+
|
|
426
|
+
**Example:** "Fix login bug" or "Add export button"
|
|
427
|
+
|
|
428
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
429
|
+
|
|
430
|
+
🎯 **BMad Method** - Full Product Planning (RECOMMENDED)
|
|
431
|
+
|
|
432
|
+
⏱️ **Time:** 1-3 days of planning
|
|
433
|
+
📝 **Approach:** PRD + UX + Architecture - complete product and system design
|
|
434
|
+
✅ **Best for:**
|
|
435
|
+
|
|
436
|
+
- **GREENFIELD:** Products, platforms, multi-feature initiatives
|
|
437
|
+
- **BROWNFIELD:** Complex additions (new UIs + APIs, major refactors, new modules)
|
|
438
|
+
|
|
439
|
+
✅ **Benefits:**
|
|
440
|
+
|
|
441
|
+
- AI agents have COMPLETE context for better code generation
|
|
442
|
+
- Architecture distills massive codebases into focused solution design
|
|
443
|
+
- Prevents architectural drift and ensures consistency
|
|
444
|
+
- Fewer surprises and less rework during implementation
|
|
445
|
+
- Faster overall delivery (planning investment pays off!)
|
|
446
|
+
- Better code quality and maintainability
|
|
447
|
+
|
|
448
|
+
🤖 **Agent Support:** Exceptional - AI becomes a true coding partner with full context
|
|
449
|
+
|
|
450
|
+
{{#if brownfield}}
|
|
451
|
+
💡 **Why Architecture for Brownfield?**
|
|
452
|
+
Your brownfield documentation might be huge (thousands of lines). The Architecture
|
|
453
|
+
workflow takes all that context and creates a SUCCINCT solution design specific to
|
|
454
|
+
YOUR project. This keeps AI agents focused on YOUR changes without getting lost
|
|
455
|
+
in the existing codebase details.
|
|
456
|
+
{{/if}}
|
|
457
|
+
|
|
458
|
+
**Example:** "User dashboard with analytics" or "Payment integration system"
|
|
459
|
+
or "Add real-time collaboration to existing editor"
|
|
460
|
+
|
|
461
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
462
|
+
|
|
463
|
+
🏢 **BMad Enterprise Method** - Extended Enterprise Planning
|
|
464
|
+
|
|
465
|
+
⏱️ **Time:** 3-7 days of planning
|
|
466
|
+
📝 **Approach:** BMad Method + Security Architecture + DevOps + Test Strategy
|
|
467
|
+
✅ **Best for:** Enterprise requirements, compliance, multi-tenant, mission-critical
|
|
468
|
+
✅ **Benefits:** All of BMad Method PLUS specialized planning for:
|
|
469
|
+
|
|
470
|
+
- Security architecture and threat modeling
|
|
471
|
+
- DevOps pipeline and infrastructure planning
|
|
472
|
+
- Comprehensive test strategy
|
|
473
|
+
- Compliance and audit requirements
|
|
474
|
+
|
|
475
|
+
🤖 **Agent Support:** Elite - comprehensive planning for complex enterprise systems
|
|
476
|
+
|
|
477
|
+
**Example:** "Multi-tenant SaaS platform" or "HIPAA-compliant patient portal"
|
|
478
|
+
or "Add SOC2-compliant audit logging to enterprise app"
|
|
479
|
+
|
|
480
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</output>
|
|
481
|
+
|
|
482
|
+
<action>Generate recommendation based on user_description and field_type:
|
|
483
|
+
|
|
484
|
+
**Recommendation Logic:**
|
|
485
|
+
|
|
486
|
+
- Complexity keywords (dashboard, platform, system, integration, multiple features) → Recommend BMad Method
|
|
487
|
+
- Simple keywords (fix, bug, add button, simple) → Mention Quick Flow as option
|
|
488
|
+
- Enterprise keywords (multi-tenant, compliance, security, audit) → Recommend Enterprise
|
|
489
|
+
- Brownfield + complex → Strongly recommend Method (explain architecture benefit)
|
|
490
|
+
- Greenfield + complex → Recommend Method
|
|
491
|
+
</action>
|
|
492
|
+
|
|
493
|
+
<output>
|
|
494
|
+
|
|
495
|
+
💡 **My Honest Recommendation:**
|
|
496
|
+
|
|
497
|
+
{{recommendation_with_reasoning}}
|
|
498
|
+
|
|
499
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</output>
|
|
500
|
+
|
|
501
|
+
<ask>Which approach fits your situation?
|
|
502
|
+
|
|
503
|
+
1. **BMad Quick Flow** - Fast, minimal planning (I accept rework risk)
|
|
504
|
+
2. **BMad Method** - Full planning for better AI results (RECOMMENDED)
|
|
505
|
+
3. **BMad Enterprise Method** - Extended planning for enterprise needs
|
|
506
|
+
4. **I'm not sure** - Help me decide
|
|
507
|
+
|
|
508
|
+
Your choice [1/2/3/4]:</ask>
|
|
509
|
+
|
|
510
|
+
<check if="choice == 4 (Not sure)">
|
|
511
|
+
<ask>Tell me more about your concerns or uncertainties:</ask>
|
|
512
|
+
<action>Provide tailored guidance based on their specific concerns</action>
|
|
513
|
+
<action>Present choices again with more specific recommendation</action>
|
|
514
|
+
</check>
|
|
515
|
+
|
|
516
|
+
<action>Map choice to track name:
|
|
517
|
+
|
|
518
|
+
- 1 → "quick-flow"
|
|
519
|
+
- 2 → "method"
|
|
520
|
+
- 3 → "enterprise"
|
|
521
|
+
</action>
|
|
522
|
+
|
|
523
|
+
<action>Store selected_track</action>
|
|
524
|
+
<template-output>selected_track</template-output>
|
|
258
525
|
</check>
|
|
259
526
|
|
|
260
|
-
<action>Parse workflow path file to extract phases and workflows</action>
|
|
261
|
-
<template-output>workflow_path_file</template-output>
|
|
262
527
|
</step>
|
|
263
528
|
|
|
264
|
-
<step n="
|
|
265
|
-
<action>Parse the loaded workflow path file and extract all workflows</action>
|
|
529
|
+
<step n="6" goal="Product brief question (greenfield Method/Enterprise only)">
|
|
266
530
|
|
|
267
|
-
<
|
|
531
|
+
<check if="field_type == brownfield OR selected_track == quick-flow">
|
|
532
|
+
<action>Skip this step - product brief not applicable for brownfield or quick flow</action>
|
|
533
|
+
<action>Set product_brief_requested = false</action>
|
|
534
|
+
<action>Continue to Step 7 (generate workflow path)</action>
|
|
535
|
+
</check>
|
|
268
536
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
- For each workflow, determine its status type:
|
|
272
|
-
- required: true → status = "required"
|
|
273
|
-
- recommended: true → status = "recommended"
|
|
274
|
-
- conditional: "if_has_ui" → status = "conditional"
|
|
275
|
-
- optional: true → status = "optional"
|
|
276
|
-
- Default if not specified → status = "required"
|
|
277
|
-
</action>
|
|
537
|
+
<check if="field_type == greenfield AND selected_track in [method, enterprise]">
|
|
538
|
+
<output>One more optional workflow for greenfield projects:
|
|
278
539
|
|
|
279
|
-
|
|
540
|
+
📋 **Product Brief** - Strategic product planning document
|
|
280
541
|
|
|
281
|
-
|
|
542
|
+
This is OPTIONAL but recommended for greenfield BMad Method projects.
|
|
543
|
+
It helps you articulate:
|
|
282
544
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
545
|
+
- Product vision and unique value proposition
|
|
546
|
+
- Target users and their needs
|
|
547
|
+
- Success criteria and goals
|
|
548
|
+
- Market positioning and strategy
|
|
287
549
|
|
|
288
|
-
|
|
550
|
+
This comes BEFORE your PRD and helps inform it with strategic thinking.
|
|
289
551
|
|
|
290
|
-
|
|
291
|
-
# Phase 1: Analysis
|
|
292
|
-
brainstorm-project: optional
|
|
293
|
-
research: optional
|
|
294
|
-
product-brief: recommended
|
|
552
|
+
Would you like to include Product Brief in your workflow?</output>
|
|
295
553
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
validate-prd: optional
|
|
299
|
-
create-design: conditional
|
|
300
|
-
```
|
|
554
|
+
<ask>a) Yes, include Product Brief
|
|
555
|
+
b) No, skip to PRD
|
|
301
556
|
|
|
302
|
-
|
|
557
|
+
Your choice [a/b]:</ask>
|
|
558
|
+
|
|
559
|
+
<check if="choice == a">
|
|
560
|
+
<action>Set product_brief_requested = true</action>
|
|
561
|
+
</check>
|
|
303
562
|
|
|
304
|
-
<
|
|
563
|
+
<check if="choice == b">
|
|
564
|
+
<action>Set product_brief_requested = false</action>
|
|
565
|
+
</check>
|
|
305
566
|
|
|
306
|
-
|
|
567
|
+
<template-output>product_brief_requested</template-output>
|
|
568
|
+
</check>
|
|
569
|
+
|
|
570
|
+
</step>
|
|
307
571
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
-
|
|
315
|
-
-
|
|
572
|
+
<step n="7" goal="Load workflow path and build status structure">
|
|
573
|
+
|
|
574
|
+
<action>Determine path file based on selected track and field type:
|
|
575
|
+
|
|
576
|
+
**Path File Mapping:**
|
|
577
|
+
|
|
578
|
+
- quick-flow + greenfield → "quick-flow-greenfield.yaml"
|
|
579
|
+
- quick-flow + brownfield → "quick-flow-brownfield.yaml"
|
|
580
|
+
- method + greenfield → "method-greenfield.yaml"
|
|
581
|
+
- method + brownfield → "method-brownfield.yaml"
|
|
582
|
+
- enterprise + greenfield → "enterprise-greenfield.yaml"
|
|
583
|
+
- enterprise + brownfield → "enterprise-brownfield.yaml"
|
|
584
|
+
- game → "game-design.yaml"
|
|
585
|
+
</action>
|
|
586
|
+
|
|
587
|
+
<action>Load {path_files}/{determined_path_file}</action>
|
|
588
|
+
<action>Parse workflow path file to extract phases and workflows</action>
|
|
316
589
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
590
|
+
<action>Build workflow_items list:
|
|
591
|
+
|
|
592
|
+
For each phase in path file:
|
|
593
|
+
|
|
594
|
+
1. Check if phase should be included based on:
|
|
595
|
+
- User choices (brainstorm_requested, research_requested, product_brief_requested)
|
|
596
|
+
- Phase conditions (prerequisite phases, optional phases)
|
|
597
|
+
2. Add comment header: ` # Phase {n}: {Phase Name}`
|
|
598
|
+
3. For each workflow in phase:
|
|
599
|
+
- Check if workflow should be included based on user choices
|
|
600
|
+
- Add entry: ` {workflow-id}: {default_status}`
|
|
601
|
+
- Default status from path file (required/optional/recommended/conditional)
|
|
602
|
+
4. Add blank line between phases
|
|
603
|
+
</action>
|
|
604
|
+
|
|
605
|
+
<action>Scan for existing completed workflows and update workflow_items:
|
|
606
|
+
|
|
607
|
+
**Scan locations:**
|
|
608
|
+
|
|
609
|
+
- Brainstorm: {output_folder}/brainstorm\*.md
|
|
610
|
+
- Research: {output_folder}/research\*.md
|
|
611
|
+
- Product Brief: {output*folder}/\_brief*.md
|
|
612
|
+
- PRD: {output*folder}/\_prd*.md or {output*folder}/\_prd*/index.md
|
|
613
|
+
- Tech-spec: {output*folder}/\_tech-spec*.md or {output*folder}/\_spec*.md
|
|
614
|
+
- Epics: {output*folder}/\_epic*.md or {output*folder}/\_epic*/index.md
|
|
615
|
+
- UX Design: {output*folder}/\_ux*.md or {output*folder}/\_design*.md
|
|
616
|
+
- Architecture: {output*folder}/\_architecture*.md or {output*folder}/\_arch*.md
|
|
617
|
+
- Sprint Planning: {output*folder}/\_sprint*.yaml
|
|
618
|
+
|
|
619
|
+
**CRITICAL:** If file exists, replace workflow status with ONLY the file path.
|
|
620
|
+
Example: `prd: docs/prd.md` (NOT "completed - docs/prd.md")
|
|
320
621
|
</action>
|
|
321
622
|
|
|
623
|
+
<template-output>workflow_path_file</template-output>
|
|
322
624
|
<template-output>workflow_items</template-output>
|
|
625
|
+
|
|
323
626
|
</step>
|
|
324
627
|
|
|
325
|
-
<step n="
|
|
628
|
+
<step n="8" goal="Present workflow path and create status file">
|
|
629
|
+
|
|
326
630
|
<action>Set generated date to current date</action>
|
|
327
631
|
<template-output>generated</template-output>
|
|
328
632
|
|
|
329
|
-
<
|
|
633
|
+
<output>Perfect! Here's your personalized BMad workflow path:
|
|
330
634
|
|
|
331
|
-
|
|
332
|
-
- project_name: {project_name}
|
|
333
|
-
- project_type: {project_type}
|
|
334
|
-
- project_level: {project_level}
|
|
335
|
-
- field_type: {field_type}
|
|
336
|
-
- workflow_path_file: {workflow_path_file}
|
|
337
|
-
- workflow_items: {workflow_items from step 5}
|
|
338
|
-
</action>
|
|
635
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
339
636
|
|
|
340
|
-
|
|
637
|
+
**Track:** {{selected_track_display_name}}
|
|
638
|
+
**Field Type:** {{field_type}}
|
|
639
|
+
**Project:** {{project_name}}
|
|
341
640
|
|
|
342
|
-
|
|
641
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
343
642
|
|
|
344
|
-
|
|
643
|
+
{{#if brownfield AND needs_documentation}}
|
|
644
|
+
🔧 **Prerequisites:**
|
|
645
|
+
✅ document-project - Create comprehensive codebase documentation
|
|
646
|
+
(Required before planning workflows)
|
|
647
|
+
{{/if}}
|
|
345
648
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
649
|
+
{{#if has_discovery_phase}}
|
|
650
|
+
🧠 **Phase 0: Discovery** (Optional - based on your choices)
|
|
651
|
+
{{#if brainstorm_requested}}
|
|
652
|
+
✅ Brainstorm - Creative exploration session
|
|
653
|
+
{{/if}}
|
|
654
|
+
{{#if research_requested}}
|
|
655
|
+
✅ Research - Domain and technical research
|
|
656
|
+
{{/if}}
|
|
657
|
+
{{#if product_brief_requested}}
|
|
658
|
+
✅ Product Brief - Strategic product planning
|
|
659
|
+
{{/if}}
|
|
660
|
+
{{/if}}
|
|
350
661
|
|
|
351
|
-
{{#if
|
|
352
|
-
|
|
353
|
-
|
|
662
|
+
{{#if selected_track == quick-flow}}
|
|
663
|
+
📝 **Phase 1: Planning**
|
|
664
|
+
✅ Tech-Spec - Implementation-focused specification
|
|
665
|
+
(Auto-detects epic structure if 2+ stories)
|
|
354
666
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
667
|
+
🚀 **Phase 2: Implementation**
|
|
668
|
+
✅ Sprint Planning - Create sprint tracking
|
|
669
|
+
✅ Story Development - Implement story-by-story
|
|
670
|
+
{{/if}}
|
|
359
671
|
|
|
360
|
-
|
|
672
|
+
{{#if selected_track in [method, enterprise]}}
|
|
673
|
+
📋 **Phase 1: Planning**
|
|
674
|
+
✅ PRD - Product Requirements Document
|
|
675
|
+
✅ Validate PRD (optional quality check)
|
|
676
|
+
✅ UX Design (if UI components - determined after PRD)
|
|
677
|
+
|
|
678
|
+
🏗️ **Phase 2: Solutioning**
|
|
679
|
+
{{#if brownfield}}
|
|
680
|
+
✅ Architecture - Integration design (RECOMMENDED for brownfield)
|
|
681
|
+
Creates focused solution design from your existing codebase context
|
|
682
|
+
{{else}}
|
|
683
|
+
✅ Architecture - System design document
|
|
684
|
+
{{/if}}
|
|
685
|
+
✅ Validate Architecture (optional quality check)
|
|
686
|
+
✅ Solutioning Gate Check - Validate all planning aligns before coding
|
|
687
|
+
|
|
688
|
+
🚀 **Phase 3: Implementation**
|
|
689
|
+
✅ Sprint Planning - Create sprint tracking
|
|
690
|
+
✅ Story Development - Implement story-by-story with epic-tech-specs
|
|
691
|
+
{{/if}}
|
|
692
|
+
|
|
693
|
+
{{#if selected_track == enterprise}}
|
|
694
|
+
|
|
695
|
+
🏢 **Additional Enterprise Planning:**
|
|
696
|
+
✅ Security Architecture - Threat modeling and security design
|
|
697
|
+
✅ DevOps Strategy - Pipeline and infrastructure planning
|
|
698
|
+
✅ Test Strategy - Comprehensive testing approach
|
|
699
|
+
{{/if}}
|
|
700
|
+
|
|
701
|
+
{{#if found_existing_artifacts}}
|
|
702
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
703
|
+
|
|
704
|
+
📁 **Existing Work Detected:**
|
|
705
|
+
|
|
706
|
+
I found these completed workflows and will mark them as done:
|
|
707
|
+
{{#each completed_workflows}}
|
|
708
|
+
✅ {{workflow_name}}: {{file_path}}
|
|
709
|
+
{{/each}}
|
|
710
|
+
|
|
711
|
+
Your workflow tracking will start from where you left off!
|
|
712
|
+
|
|
713
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
714
|
+
{{/if}}</output>
|
|
715
|
+
|
|
716
|
+
<ask>Ready to create your workflow tracking file? (y/n)</ask>
|
|
361
717
|
|
|
362
718
|
<check if="answer == y">
|
|
363
|
-
<action>
|
|
364
|
-
|
|
719
|
+
<action>Prepare all template variables for workflow-status-template.yaml:
|
|
720
|
+
- generated: {current_date}
|
|
721
|
+
- project_name: {project_name}
|
|
722
|
+
- project_type: {project_type}
|
|
723
|
+
- selected_track: {selected_track}
|
|
724
|
+
- field_type: {field_type}
|
|
725
|
+
- workflow_path_file: {workflow_path_file}
|
|
726
|
+
- workflow_items: {workflow_items from step 7}
|
|
727
|
+
</action>
|
|
728
|
+
|
|
729
|
+
<action>Generate YAML from workflow-status-template.yaml with all variables</action>
|
|
730
|
+
<action>Save status file to {output_folder}/bmm-workflow-status.yaml</action>
|
|
365
731
|
|
|
366
|
-
<action>Identify the first non-completed workflow in
|
|
367
|
-
<action>Look up that workflow's agent and command from the path file</action>
|
|
732
|
+
<action>Identify the first non-completed workflow in workflow_items</action>
|
|
733
|
+
<action>Look up that workflow's agent and command from the loaded path file</action>
|
|
368
734
|
|
|
369
|
-
<output>✅ Workflow
|
|
735
|
+
<output>✅ **Workflow tracking created:** {output_folder}/bmm-workflow-status.yaml
|
|
370
736
|
|
|
371
|
-
|
|
737
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
372
738
|
|
|
373
|
-
{{#if
|
|
374
|
-
|
|
739
|
+
{{#if completed_workflows_found}}
|
|
740
|
+
🎉 Great news! I found {{completed_count}} workflow(s) already completed.
|
|
375
741
|
{{/if}}
|
|
376
742
|
|
|
377
743
|
**Next Workflow:** {{next_workflow_name}}
|
|
378
|
-
|
|
379
744
|
**Agent:** {{next_agent}}
|
|
380
|
-
|
|
381
745
|
**Command:** /bmad:bmm:workflows:{{next_workflow_id}}
|
|
382
746
|
|
|
383
|
-
{{#if next_agent
|
|
384
|
-
|
|
747
|
+
{{#if next_agent != 'analyst' AND next_agent != 'pm'}}
|
|
748
|
+
💡 **Tip:** Start a new chat and load the **{{next_agent}}** agent before running this workflow.
|
|
385
749
|
{{/if}}
|
|
386
|
-
|
|
750
|
+
|
|
751
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
752
|
+
|
|
753
|
+
Happy building with BMad Method! 🚀
|
|
754
|
+
|
|
755
|
+
**To check your progress anytime:**
|
|
756
|
+
|
|
757
|
+
- Load any BMM agent
|
|
758
|
+
- Run: /bmad:bmm:workflows:workflow-status
|
|
759
|
+
</output>
|
|
760
|
+
</check>
|
|
761
|
+
|
|
762
|
+
<check if="answer == n">
|
|
763
|
+
<output>No problem! You can run workflow-init again anytime you're ready.
|
|
764
|
+
|
|
765
|
+
To get started later, just load the Analyst agent and run:
|
|
766
|
+
**/bmad:bmm:workflows:workflow-init**</output>
|
|
387
767
|
</check>
|
|
768
|
+
|
|
388
769
|
</step>
|
|
389
770
|
|
|
390
771
|
</workflow>
|