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.
- package/.claude/agents/bmad-analysis/api-documenter.md +102 -0
- package/.claude/agents/bmad-analysis/codebase-analyzer.md +82 -0
- package/.claude/agents/bmad-analysis/data-analyst.md +101 -0
- package/.claude/agents/bmad-analysis/pattern-detector.md +84 -0
- package/.claude/agents/bmad-planning/dependency-mapper.md +83 -0
- package/.claude/agents/bmad-planning/epic-optimizer.md +81 -0
- package/.claude/agents/bmad-planning/requirements-analyst.md +61 -0
- package/.claude/agents/bmad-planning/technical-decisions-curator.md +168 -0
- package/.claude/agents/bmad-planning/trend-spotter.md +115 -0
- package/.claude/agents/bmad-planning/user-journey-mapper.md +123 -0
- package/.claude/agents/bmad-planning/user-researcher.md +72 -0
- package/.claude/agents/bmad-research/market-researcher.md +51 -0
- package/.claude/agents/bmad-research/tech-debt-auditor.md +106 -0
- package/.claude/agents/bmad-review/document-reviewer.md +102 -0
- package/.claude/agents/bmad-review/technical-evaluator.md +68 -0
- package/.claude/agents/bmad-review/test-coverage-analyzer.md +108 -0
- 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/{paige.md → tech-writer.md} +3 -3
- package/.claude/commands/bmad/bmm/workflows/README.md +3 -3
- package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
- package/.claude/commands/bmad/bmm/workflows/prd.md +1 -1
- package/.claude/commands/bmad/bmm/workflows/tech-spec.md +3 -3
- package/.claude/settings.local.json +3 -8
- package/CHANGELOG.md +305 -0
- package/CONTRIBUTING.md +1 -13
- package/README.md +88 -39
- package/bmad/_cfg/agent-manifest.csv +1 -6
- package/bmad/_cfg/files-manifest.csv +40 -114
- package/bmad/_cfg/ides/claude-code.yaml +4 -3
- package/bmad/_cfg/manifest.yaml +3 -4
- package/bmad/_cfg/task-manifest.csv +0 -1
- package/bmad/_cfg/workflow-manifest.csv +3 -7
- 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/agents/architect.md +0 -1
- package/bmad/bmm/agents/sm.md +1 -1
- package/bmad/bmm/agents/{paige.md → tech-writer.md} +3 -3
- package/bmad/bmm/config.yaml +4 -3
- package/bmad/bmm/tasks/daily-standup.xml +1 -1
- package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
- package/bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
- package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
- package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
- package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
- package/bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
- package/bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +1 -1
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
- package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
- package/bmad/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
- package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
- package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
- package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
- package/bmad/bmm/workflows/techdoc/documentation-standards.md +26 -2
- package/bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +2 -2
- package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
- 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/bmad/bmm/workflows/workflow-status/paths/{brownfield-level-3.yaml → 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/bmad/bmm/workflows/workflow-status/paths/{brownfield-level-1.yaml → 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/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/_module-installer/install-config.yaml +5 -0
- 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 +19 -18
- package/src/modules/bmm/docs/agents-guide.md +47 -99
- package/src/modules/bmm/docs/brownfield-guide.md +216 -96
- package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
- package/src/modules/bmm/docs/faq.md +16 -16
- package/src/modules/bmm/docs/glossary.md +44 -50
- package/src/modules/bmm/docs/party-mode.md +110 -1122
- package/src/modules/bmm/docs/quick-spec-flow.md +36 -36
- package/src/modules/bmm/docs/quick-start.md +34 -34
- package/src/modules/bmm/docs/scale-adaptive-system.md +304 -454
- package/{bmad/bmm/testarch/README.md → src/modules/bmm/docs/test-architecture.md} +56 -38
- package/src/modules/bmm/docs/troubleshooting.md +7 -7
- package/src/modules/bmm/docs/workflows-analysis.md +64 -28
- package/src/modules/bmm/docs/workflows-implementation.md +196 -1671
- package/src/modules/bmm/docs/workflows-planning.md +74 -35
- package/src/modules/bmm/docs/workflows-solutioning.md +47 -17
- 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 +25 -2
- package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +2 -2
- 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/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-3.yaml → 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/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-1.yaml → 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/tools/cli/installers/lib/core/config-collector.js +39 -11
- package/tools/cli/installers/lib/core/ide-config-manager.js +3 -1
- package/tools/cli/installers/lib/core/installer.js +20 -9
- package/tools/cli/installers/lib/core/manifest-generator.js +3 -1
- package/tools/cli/installers/lib/core/manifest.js +6 -2
- package/tools/cli/installers/lib/modules/manager.js +6 -0
- package/tools/cli/lib/config.js +3 -1
- package/tools/cli/lib/ui.js +5 -5
- package/tools/cli/lib/yaml-format.js +2 -1
- package/tools/schema/agent.js +2 -0
- package/.claude/commands/bmad/bmm/workflows/tech-spec-sm.md +0 -15
- package/bmad/_cfg/agents/cis-brainstorming-coach.customize.yaml +0 -42
- package/bmad/_cfg/agents/cis-creative-problem-solver.customize.yaml +0 -42
- package/bmad/_cfg/agents/cis-design-thinking-coach.customize.yaml +0 -42
- package/bmad/_cfg/agents/cis-innovation-strategist.customize.yaml +0 -42
- package/bmad/_cfg/agents/cis-storyteller.customize.yaml +0 -42
- package/bmad/bmb/agents/bmad-builder.md.bak +0 -70
- package/bmad/bmb/workflows/audit-workflow/workflow.yaml.bak +0 -23
- package/bmad/bmb/workflows/create-module/workflow.yaml.bak +0 -42
- package/bmad/bmb/workflows/create-workflow/workflow-template/workflow.yaml.bak +0 -39
- package/bmad/bmb/workflows/create-workflow/workflow.yaml.bak +0 -40
- package/bmad/bmb/workflows/edit-agent/workflow.yaml.bak +0 -33
- package/bmad/bmb/workflows/edit-module/workflow.yaml.bak +0 -34
- package/bmad/bmb/workflows/edit-workflow/workflow.yaml.bak +0 -27
- package/bmad/bmb/workflows/module-brief/workflow.yaml.bak +0 -29
- package/bmad/bmb/workflows/redoc/workflow.yaml.bak +0 -32
- package/bmad/bmm/docs/brownfield-guide.md +0 -1260
- package/bmad/bmm/docs/quick-spec-flow.md +0 -645
- package/bmad/bmm/docs/quick-start.md +0 -341
- package/bmad/bmm/docs/scale-adaptive-system.md +0 -1045
- package/bmad/bmm/tasks/retrospective.xml +0 -104
- 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/architecture/README.md +0 -318
- 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/README.md +0 -444
- 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/bmad/cis/README.md +0 -153
- package/bmad/cis/agents/README.md +0 -104
- package/bmad/cis/agents/brainstorming-coach.md +0 -62
- package/bmad/cis/agents/creative-problem-solver.md +0 -62
- package/bmad/cis/agents/design-thinking-coach.md +0 -62
- package/bmad/cis/agents/innovation-strategist.md +0 -62
- package/bmad/cis/agents/storyteller.md +0 -59
- package/bmad/cis/config.yaml +0 -10
- package/bmad/cis/teams/creative-squad.yaml +0 -6
- package/bmad/cis/workflows/README.md +0 -139
- package/bmad/cis/workflows/design-thinking/README.md +0 -56
- package/bmad/cis/workflows/design-thinking/design-methods.csv +0 -31
- package/bmad/cis/workflows/design-thinking/instructions.md +0 -200
- package/bmad/cis/workflows/design-thinking/template.md +0 -111
- package/bmad/cis/workflows/design-thinking/workflow.yaml +0 -32
- package/bmad/cis/workflows/innovation-strategy/README.md +0 -56
- package/bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +0 -31
- package/bmad/cis/workflows/innovation-strategy/instructions.md +0 -274
- package/bmad/cis/workflows/innovation-strategy/template.md +0 -189
- package/bmad/cis/workflows/innovation-strategy/workflow.yaml +0 -32
- package/bmad/cis/workflows/problem-solving/README.md +0 -56
- package/bmad/cis/workflows/problem-solving/instructions.md +0 -250
- package/bmad/cis/workflows/problem-solving/solving-methods.csv +0 -31
- package/bmad/cis/workflows/problem-solving/template.md +0 -165
- package/bmad/cis/workflows/problem-solving/workflow.yaml +0 -32
- package/bmad/cis/workflows/storytelling/README.md +0 -58
- package/bmad/cis/workflows/storytelling/instructions.md +0 -291
- package/bmad/cis/workflows/storytelling/story-types.csv +0 -26
- package/bmad/cis/workflows/storytelling/template.md +0 -113
- package/bmad/cis/workflows/storytelling/workflow.yaml +0 -32
- package/bmad/core/agents/bmad-master.md.bak +0 -69
- 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/_cfg/agents/{bmm-paige.customize.yaml → bmm-tech-writer.customize.yaml} +0 -0
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
# Story Context Assembly Workflow
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Assembles a dynamic Story Context XML by pulling latest documentation and existing code/library artifacts relevant to a drafted story. Creates comprehensive development context for AI agents and developers working on specific stories.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
- **Automated Context Discovery** - Scans documentation and codebase for relevant artifacts
|
|
10
|
-
- **XML Output Format** - Structured context optimized for LLM consumption
|
|
11
|
-
- **Dependency Detection** - Identifies frameworks, packages, and technical dependencies
|
|
12
|
-
- **Interface Mapping** - Locates existing APIs and interfaces to reuse
|
|
13
|
-
- **Testing Integration** - Includes testing standards and generates test ideas
|
|
14
|
-
- **Status Tracking** - Updates story status and maintains context references
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
### Basic Invocation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
workflow story-context
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### With Specific Story
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
# Process specific story file
|
|
28
|
-
workflow story-context --input /path/to/story.md
|
|
29
|
-
|
|
30
|
-
# Using story path variable
|
|
31
|
-
workflow story-context --story_path "docs/stories/1.2.feature-name.md"
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Configuration
|
|
35
|
-
|
|
36
|
-
- **story_path**: Path to target story markdown file (defaults to latest.md)
|
|
37
|
-
- **auto_update_status**: Whether to automatically update story status (default: false)
|
|
38
|
-
|
|
39
|
-
## Workflow Structure
|
|
40
|
-
|
|
41
|
-
### Files Included
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
story-context/
|
|
45
|
-
├── workflow.yaml # Configuration and metadata
|
|
46
|
-
├── instructions.md # Step-by-step execution guide
|
|
47
|
-
├── context-template.xml # XML structure template
|
|
48
|
-
├── checklist.md # Validation criteria
|
|
49
|
-
└── README.md # This file
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Workflow Process
|
|
53
|
-
|
|
54
|
-
### Phase 1: Story Analysis (Steps 1-2)
|
|
55
|
-
|
|
56
|
-
- **Story Location**: Finds and loads target story markdown file
|
|
57
|
-
- **Content Parsing**: Extracts epic ID, story ID, title, acceptance criteria, and tasks
|
|
58
|
-
- **Template Initialization**: Creates initial XML context structure
|
|
59
|
-
- **User Story Extraction**: Parses "As a... I want... So that..." components
|
|
60
|
-
|
|
61
|
-
### Phase 2: Documentation Discovery (Step 3)
|
|
62
|
-
|
|
63
|
-
- **Keyword Analysis**: Identifies relevant terms from story content
|
|
64
|
-
- **Document Scanning**: Searches docs and module documentation
|
|
65
|
-
- **Authority Prioritization**: Prefers PRDs, architecture docs, and specs
|
|
66
|
-
- **Context Extraction**: Captures relevant sections with snippets
|
|
67
|
-
|
|
68
|
-
### Phase 3: Code Analysis (Step 4)
|
|
69
|
-
|
|
70
|
-
- **Symbol Search**: Finds relevant modules, functions, and components
|
|
71
|
-
- **Interface Identification**: Locates existing APIs and interfaces
|
|
72
|
-
- **Constraint Extraction**: Identifies development patterns and requirements
|
|
73
|
-
- **Reuse Opportunities**: Highlights existing code to leverage
|
|
74
|
-
|
|
75
|
-
### Phase 4: Dependency Analysis (Step 5)
|
|
76
|
-
|
|
77
|
-
- **Manifest Detection**: Scans for package.json, requirements.txt, go.mod, etc.
|
|
78
|
-
- **Framework Identification**: Identifies Unity, Node.js, Python, Go ecosystems
|
|
79
|
-
- **Version Tracking**: Captures dependency versions where available
|
|
80
|
-
- **Configuration Discovery**: Finds relevant project configurations
|
|
81
|
-
|
|
82
|
-
### Phase 5: Testing Context (Step 6)
|
|
83
|
-
|
|
84
|
-
- **Standards Extraction**: Identifies testing frameworks and patterns
|
|
85
|
-
- **Location Mapping**: Documents where tests should be placed
|
|
86
|
-
- **Test Ideas**: Generates initial test concepts for acceptance criteria
|
|
87
|
-
- **Framework Integration**: Links to existing test infrastructure
|
|
88
|
-
|
|
89
|
-
### Phase 6: Validation and Updates (Steps 7-8)
|
|
90
|
-
|
|
91
|
-
- **XML Validation**: Ensures proper structure and completeness
|
|
92
|
-
- **Status Updates**: Changes story status from Draft to ContextReadyDraft
|
|
93
|
-
- **Reference Tracking**: Adds context file reference to story document
|
|
94
|
-
- **Quality Assurance**: Validates against workflow checklist
|
|
95
|
-
|
|
96
|
-
## Output
|
|
97
|
-
|
|
98
|
-
### Generated Files
|
|
99
|
-
|
|
100
|
-
- **Primary output**: story-context-{epic_id}.{story_id}-{date}.xml
|
|
101
|
-
- **Story updates**: Modified original story file with context references
|
|
102
|
-
|
|
103
|
-
### Output Structure
|
|
104
|
-
|
|
105
|
-
```xml
|
|
106
|
-
<storyContext>
|
|
107
|
-
<story>
|
|
108
|
-
<basicInfo>
|
|
109
|
-
<epicId>...</epicId>
|
|
110
|
-
<storyId>...</storyId>
|
|
111
|
-
<title>...</title>
|
|
112
|
-
<status>...</status>
|
|
113
|
-
</basicInfo>
|
|
114
|
-
<userStory>
|
|
115
|
-
<asA>...</asA>
|
|
116
|
-
<iWant>...</iWant>
|
|
117
|
-
<soThat>...</soThat>
|
|
118
|
-
</userStory>
|
|
119
|
-
<acceptanceCriteria>
|
|
120
|
-
<criterion id="1">...</criterion>
|
|
121
|
-
</acceptanceCriteria>
|
|
122
|
-
<tasks>
|
|
123
|
-
<task>...</task>
|
|
124
|
-
</tasks>
|
|
125
|
-
</story>
|
|
126
|
-
|
|
127
|
-
<artifacts>
|
|
128
|
-
<docs>
|
|
129
|
-
<doc path="..." title="..." section="..." snippet="..."/>
|
|
130
|
-
</docs>
|
|
131
|
-
<code>
|
|
132
|
-
<file path="..." kind="..." symbol="..." lines="..." reason="..."/>
|
|
133
|
-
</code>
|
|
134
|
-
<dependencies>
|
|
135
|
-
<node>
|
|
136
|
-
<package name="..." version="..."/>
|
|
137
|
-
</node>
|
|
138
|
-
</dependencies>
|
|
139
|
-
</artifacts>
|
|
140
|
-
|
|
141
|
-
<interfaces>
|
|
142
|
-
<interface name="..." kind="..." signature="..." path="..."/>
|
|
143
|
-
</interfaces>
|
|
144
|
-
|
|
145
|
-
<constraints>
|
|
146
|
-
<constraint>...</constraint>
|
|
147
|
-
</constraints>
|
|
148
|
-
|
|
149
|
-
<tests>
|
|
150
|
-
<standards>...</standards>
|
|
151
|
-
<locations>
|
|
152
|
-
<location>...</location>
|
|
153
|
-
</locations>
|
|
154
|
-
<ideas>
|
|
155
|
-
<idea ac="1">...</idea>
|
|
156
|
-
</ideas>
|
|
157
|
-
</tests>
|
|
158
|
-
</storyContext>
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
## Requirements
|
|
162
|
-
|
|
163
|
-
- **Story File**: Valid story markdown with proper structure (epic.story.title.md format)
|
|
164
|
-
- **Repository Access**: Ability to scan documentation and source code
|
|
165
|
-
- **Documentation**: Project documentation in standard locations (docs/, src/, etc.)
|
|
166
|
-
|
|
167
|
-
## Best Practices
|
|
168
|
-
|
|
169
|
-
### Before Starting
|
|
170
|
-
|
|
171
|
-
1. **Ensure Story Quality**: Verify story has clear acceptance criteria and tasks
|
|
172
|
-
2. **Update Documentation**: Ensure relevant docs are current and discoverable
|
|
173
|
-
3. **Clean Repository**: Remove obsolete code that might confuse context assembly
|
|
174
|
-
|
|
175
|
-
### During Execution
|
|
176
|
-
|
|
177
|
-
1. **Review Extracted Context**: Verify that discovered artifacts are actually relevant
|
|
178
|
-
2. **Check Interface Accuracy**: Ensure identified APIs and interfaces are current
|
|
179
|
-
3. **Validate Dependencies**: Confirm dependency information matches project state
|
|
180
|
-
|
|
181
|
-
### After Completion
|
|
182
|
-
|
|
183
|
-
1. **Review XML Output**: Validate the generated context makes sense
|
|
184
|
-
2. **Test with Developer**: Have a developer review context usefulness
|
|
185
|
-
3. **Update Story Status**: Verify story status was properly updated
|
|
186
|
-
|
|
187
|
-
## Troubleshooting
|
|
188
|
-
|
|
189
|
-
### Common Issues
|
|
190
|
-
|
|
191
|
-
**Issue**: Context contains irrelevant or outdated information
|
|
192
|
-
|
|
193
|
-
- **Solution**: Review keyword extraction and document filtering logic
|
|
194
|
-
- **Check**: Ensure story title and acceptance criteria are specific and clear
|
|
195
|
-
|
|
196
|
-
**Issue**: Missing relevant code or interfaces
|
|
197
|
-
|
|
198
|
-
- **Solution**: Verify code search patterns and symbol extraction
|
|
199
|
-
- **Check**: Ensure relevant code follows project naming conventions
|
|
200
|
-
|
|
201
|
-
**Issue**: Dependency information is incomplete or wrong
|
|
202
|
-
|
|
203
|
-
- **Solution**: Check for multiple package manifests or unusual project structure
|
|
204
|
-
- **Check**: Verify dependency files are in expected locations and formats
|
|
205
|
-
|
|
206
|
-
## Customization
|
|
207
|
-
|
|
208
|
-
To customize this workflow:
|
|
209
|
-
|
|
210
|
-
1. **Modify Search Patterns**: Update instructions.md to adjust code and doc discovery
|
|
211
|
-
2. **Extend XML Schema**: Customize context-template.xml for additional context types
|
|
212
|
-
3. **Add Validation**: Extend checklist.md with project-specific quality criteria
|
|
213
|
-
4. **Configure Dependencies**: Adjust dependency detection for specific tech stacks
|
|
214
|
-
|
|
215
|
-
## Version History
|
|
216
|
-
|
|
217
|
-
- **v6.0.0** - XML-based context assembly with comprehensive artifact discovery
|
|
218
|
-
- Multi-ecosystem dependency detection
|
|
219
|
-
- Interface and constraint extraction
|
|
220
|
-
- Testing context integration
|
|
221
|
-
- Story status management
|
|
222
|
-
|
|
223
|
-
## Support
|
|
224
|
-
|
|
225
|
-
For issues or questions:
|
|
226
|
-
|
|
227
|
-
- Review the workflow creation guide at `/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md`
|
|
228
|
-
- Validate output using `checklist.md`
|
|
229
|
-
- Ensure story files follow expected markdown structure
|
|
230
|
-
- Check that repository structure supports automated discovery
|
|
231
|
-
|
|
232
|
-
---
|
|
233
|
-
|
|
234
|
-
_Part of the BMad Method v6 - BMM (Method) Module_
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
# BMM Workflows - Complete v6 Guide
|
|
2
|
-
|
|
3
|
-
Master guide for BMM's four-phase methodology that adapts to project scale (Level 0-4) and context (greenfield/brownfield).
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
|
|
7
|
-
- [Core Innovations](#core-innovations)
|
|
8
|
-
- [Universal Entry Point](#universal-entry-point)
|
|
9
|
-
- [Four Phases Overview](#four-phases-overview)
|
|
10
|
-
- [Phase Details](#phase-details)
|
|
11
|
-
- [Documentation Prerequisite](#documentation-prerequisite)
|
|
12
|
-
- [Phase 1: Analysis](#phase-1-analysis)
|
|
13
|
-
- [Phase 2: Planning](#phase-2-planning)
|
|
14
|
-
- [Phase 3: Solutioning](#phase-3-solutioning)
|
|
15
|
-
- [Phase 4: Implementation](#phase-4-implementation)
|
|
16
|
-
- [Scale Levels](#scale-levels)
|
|
17
|
-
- [Greenfield vs Brownfield](#greenfield-vs-brownfield)
|
|
18
|
-
- [Critical Rules](#critical-rules)
|
|
19
|
-
|
|
20
|
-
## Core Innovations
|
|
21
|
-
|
|
22
|
-
- **Scale-Adaptive Planning** - Automatic routing based on complexity (Level 0-4)
|
|
23
|
-
- **Just-In-Time Design** - Tech specs created per epic during implementation
|
|
24
|
-
- **Dynamic Expertise Injection** - Story-specific technical guidance
|
|
25
|
-
- **Continuous Learning Loop** - Retrospectives improve each cycle
|
|
26
|
-
- **Document Sharding Support** - All workflows handle whole or sharded documents for efficiency
|
|
27
|
-
|
|
28
|
-
## Universal Entry Point
|
|
29
|
-
|
|
30
|
-
**Always start with `workflow-status` or `workflow-init`**
|
|
31
|
-
|
|
32
|
-
### workflow-status
|
|
33
|
-
|
|
34
|
-
- Checks for existing workflow status file
|
|
35
|
-
- Displays current phase and progress
|
|
36
|
-
- Routes to appropriate next workflow
|
|
37
|
-
- Shows Phase 4 implementation state
|
|
38
|
-
|
|
39
|
-
### workflow-init
|
|
40
|
-
|
|
41
|
-
- Creates initial bmm-workflow-status.md
|
|
42
|
-
- Detects greenfield vs brownfield
|
|
43
|
-
- Routes undocumented brownfield to document-project
|
|
44
|
-
- Sets up workflow tracking
|
|
45
|
-
|
|
46
|
-
## Four Phases Overview
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
PREREQUISITE: document-project (brownfield without docs)
|
|
50
|
-
↓
|
|
51
|
-
PHASE 1: Analysis (optional)
|
|
52
|
-
brainstorm → research → brief
|
|
53
|
-
↓
|
|
54
|
-
PHASE 2: Planning (required, scale-adaptive)
|
|
55
|
-
Level 0-1: tech-spec only
|
|
56
|
-
Level 2-4: PRD + epics
|
|
57
|
-
↓
|
|
58
|
-
PHASE 3: Solutioning (Level 2-4 only)
|
|
59
|
-
architecture → validation → gate-check
|
|
60
|
-
↓
|
|
61
|
-
PHASE 4: Implementation (iterative)
|
|
62
|
-
sprint-planning → epic-context → story cycle
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Phase Details
|
|
66
|
-
|
|
67
|
-
### Documentation Prerequisite
|
|
68
|
-
|
|
69
|
-
**When:** Brownfield projects without documentation OR post-completion cleanup
|
|
70
|
-
|
|
71
|
-
| Workflow | Purpose | Output |
|
|
72
|
-
| ---------------- | ----------------------------- | ------------------ |
|
|
73
|
-
| document-project | Analyze and document codebase | Comprehensive docs |
|
|
74
|
-
|
|
75
|
-
**Use Cases:**
|
|
76
|
-
|
|
77
|
-
1. **Pre-Phase 1**: Understand existing brownfield code
|
|
78
|
-
2. **Post-Phase 4**: Create clean documentation replacing scattered artifacts
|
|
79
|
-
|
|
80
|
-
### Phase 1: Analysis
|
|
81
|
-
|
|
82
|
-
**Optional workflows for discovery and requirements gathering**
|
|
83
|
-
|
|
84
|
-
| Workflow | Agent | Purpose | Output |
|
|
85
|
-
| ------------------ | ------------- | --------------------- | ---------------------- |
|
|
86
|
-
| brainstorm-project | Analyst | Software ideation | Architecture proposals |
|
|
87
|
-
| brainstorm-game | Game Designer | Game concept ideation | Concept proposals |
|
|
88
|
-
| research | Analyst | Multi-mode research | Research artifacts |
|
|
89
|
-
| product-brief | Analyst | Strategic planning | Product brief |
|
|
90
|
-
| game-brief | Game Designer | Game foundation | Game brief |
|
|
91
|
-
|
|
92
|
-
### Phase 2: Planning
|
|
93
|
-
|
|
94
|
-
**Required phase with scale-adaptive routing**
|
|
95
|
-
|
|
96
|
-
| Workflow | Agent | Output | Levels |
|
|
97
|
-
| ---------------- | ------------- | -------------- | ----------- |
|
|
98
|
-
| prd | PM | PRD.md + epics | 2-4 |
|
|
99
|
-
| tech-spec | PM | tech-spec.md | 0-1 |
|
|
100
|
-
| gdd | Game Designer | GDD.md | Games |
|
|
101
|
-
| create-ux-design | UX | ux-design.md | Conditional |
|
|
102
|
-
|
|
103
|
-
### Phase 3: Solutioning
|
|
104
|
-
|
|
105
|
-
**Architecture phase for Level 2-4 projects**
|
|
106
|
-
|
|
107
|
-
| Workflow | Agent | Purpose | Output |
|
|
108
|
-
| ---------------------- | --------- | ----------------- | ---------------------- |
|
|
109
|
-
| create-architecture | Architect | System design | architecture.md + ADRs |
|
|
110
|
-
| validate-architecture | Architect | Design validation | Validation report |
|
|
111
|
-
| solutioning-gate-check | Architect | PRD/UX/arch check | Gate report |
|
|
112
|
-
|
|
113
|
-
### Phase 4: Implementation
|
|
114
|
-
|
|
115
|
-
**Sprint-based development cycle**
|
|
116
|
-
|
|
117
|
-
#### Sprint Status System
|
|
118
|
-
|
|
119
|
-
**Epic Flow:** `backlog → contexted`
|
|
120
|
-
|
|
121
|
-
**Story Flow:** `backlog → drafted → ready-for-dev → in-progress → review → done`
|
|
122
|
-
|
|
123
|
-
#### Implementation Workflows
|
|
124
|
-
|
|
125
|
-
| Workflow | Agent | Purpose | Status Updates |
|
|
126
|
-
| ----------------- | ----- | ----------------------- | ------------------------------------------- |
|
|
127
|
-
| sprint-planning | SM | Initialize tracking | Creates sprint-status.yaml |
|
|
128
|
-
| epic-tech-context | SM | Epic technical context | Epic: backlog → contexted |
|
|
129
|
-
| create-story | SM | Draft story files | Story: backlog → drafted |
|
|
130
|
-
| story-context | SM | Implementation guidance | Story: drafted → ready-for-dev |
|
|
131
|
-
| dev-story | DEV | Implement | Story: ready-for-dev → in-progress → review |
|
|
132
|
-
| code-review | DEV | Quality validation | No auto update |
|
|
133
|
-
| retrospective | SM | Capture learnings | Retrospective: optional → completed |
|
|
134
|
-
| correct-course | SM | Handle issues | Adaptive |
|
|
135
|
-
|
|
136
|
-
#### Implementation Loop
|
|
137
|
-
|
|
138
|
-
```
|
|
139
|
-
sprint-planning (creates sprint-status.yaml)
|
|
140
|
-
↓
|
|
141
|
-
For each epic:
|
|
142
|
-
epic-tech-context
|
|
143
|
-
↓
|
|
144
|
-
For each story:
|
|
145
|
-
create-story → story-context → dev-story → code-review
|
|
146
|
-
↓
|
|
147
|
-
Mark done in sprint-status.yaml
|
|
148
|
-
↓
|
|
149
|
-
retrospective (epic complete)
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
## Scale Levels
|
|
153
|
-
|
|
154
|
-
| Level | Scope | Documentation | Path |
|
|
155
|
-
| ----- | ------------- | --------------------- | --------------- |
|
|
156
|
-
| 0 | Single change | tech-spec only | Phase 2 → 4 |
|
|
157
|
-
| 1 | 1-10 stories | tech-spec only | Phase 2 → 4 |
|
|
158
|
-
| 2 | 5-15 stories | PRD + architecture | Phase 2 → 3 → 4 |
|
|
159
|
-
| 3 | 12-40 stories | PRD + full arch | Phase 2 → 3 → 4 |
|
|
160
|
-
| 4 | 40+ stories | PRD + enterprise arch | Phase 2 → 3 → 4 |
|
|
161
|
-
|
|
162
|
-
## Greenfield vs Brownfield
|
|
163
|
-
|
|
164
|
-
### Greenfield (New Projects)
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
Phase 1 (optional) → Phase 2 → Phase 3 (L2-4) → Phase 4
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
- Clean slate for design
|
|
171
|
-
- No existing constraints
|
|
172
|
-
- Direct to planning
|
|
173
|
-
|
|
174
|
-
### Brownfield (Existing Code)
|
|
175
|
-
|
|
176
|
-
```
|
|
177
|
-
document-project (if needed) → Phase 1 (optional) → Phase 2 → Phase 3 (L2-4) → Phase 4
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
- Must understand existing patterns
|
|
181
|
-
- Documentation prerequisite if undocumented
|
|
182
|
-
- Consider technical debt in planning
|
|
183
|
-
|
|
184
|
-
## Critical Rules
|
|
185
|
-
|
|
186
|
-
### Phase Transitions
|
|
187
|
-
|
|
188
|
-
1. **Check workflow-status** before any Phase 1-3 workflow
|
|
189
|
-
2. **Document brownfield** before planning if undocumented
|
|
190
|
-
3. **Complete planning** before solutioning
|
|
191
|
-
4. **Complete architecture** (L2-4) before implementation
|
|
192
|
-
|
|
193
|
-
### Implementation Rules
|
|
194
|
-
|
|
195
|
-
1. **Epic context first** - Must context epic before drafting stories
|
|
196
|
-
2. **Sequential by default** - Work stories in order within epic
|
|
197
|
-
3. **Learning transfer** - Draft next story after previous done
|
|
198
|
-
4. **Manual status updates** - Update sprint-status.yaml as needed
|
|
199
|
-
|
|
200
|
-
### Story Management
|
|
201
|
-
|
|
202
|
-
1. **Single source of truth** - sprint-status.yaml tracks everything
|
|
203
|
-
2. **No story search** - Agents read exact story from status file
|
|
204
|
-
3. **Context injection** - Each story gets specific technical guidance
|
|
205
|
-
4. **Retrospective learning** - Capture improvements per epic
|
|
206
|
-
|
|
207
|
-
### Best Practices
|
|
208
|
-
|
|
209
|
-
1. **Trust the process** - Let workflows guide you
|
|
210
|
-
2. **Respect scale** - Don't over-document small projects
|
|
211
|
-
3. **Use status tracking** - Always know where you are
|
|
212
|
-
4. **Iterate and learn** - Each epic improves the next
|
|
213
|
-
5. **Consider sharding** - Split large documents (PRD, epics, architecture) for efficiency
|
|
214
|
-
|
|
215
|
-
## Document Sharding
|
|
216
|
-
|
|
217
|
-
For large multi-epic projects, consider sharding planning documents to improve workflow efficiency.
|
|
218
|
-
|
|
219
|
-
### What is Sharding?
|
|
220
|
-
|
|
221
|
-
Splits large markdown files into smaller section-based files:
|
|
222
|
-
|
|
223
|
-
- PRD with 15 epics → `prd/epic-1.md`, `prd/epic-2.md`, etc.
|
|
224
|
-
- Large epics file → Individual epic files
|
|
225
|
-
- Architecture layers → Separate layer files
|
|
226
|
-
|
|
227
|
-
### Benefits
|
|
228
|
-
|
|
229
|
-
**Phase 1-3 Workflows:**
|
|
230
|
-
|
|
231
|
-
- Workflows load entire sharded documents (transparent to user)
|
|
232
|
-
- Better organization for large projects
|
|
233
|
-
|
|
234
|
-
**Phase 4 Workflows:**
|
|
235
|
-
|
|
236
|
-
- **Selective loading** - Only load the epic/section needed
|
|
237
|
-
- **Massive efficiency** - 90%+ token reduction for 10+ epic projects
|
|
238
|
-
- Examples: `epic-tech-context`, `create-story`, `story-context`, `code-review`
|
|
239
|
-
|
|
240
|
-
### Usage
|
|
241
|
-
|
|
242
|
-
```
|
|
243
|
-
Load bmad-master or analyst agent:
|
|
244
|
-
/shard-doc
|
|
245
|
-
|
|
246
|
-
Source: docs/PRD.md
|
|
247
|
-
Destination: docs/prd/
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
**All BMM workflows automatically support both whole and sharded documents.**
|
|
251
|
-
|
|
252
|
-
**[→ Complete Sharding Guide](../../../docs/document-sharding-guide.md)**
|
|
253
|
-
|
|
254
|
-
---
|
|
255
|
-
|
|
256
|
-
For specific workflow details, see individual workflow READMEs in their respective directories.
|