bmad-method 6.0.0-alpha.2 → 6.0.0-alpha.3

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 (47) hide show
  1. package/.claude/settings.local.json +11 -1
  2. package/README.md +109 -161
  3. package/docs/BMad-Method-V6-Quick-Start.md +341 -0
  4. package/docs/index.md +229 -0
  5. package/docs/v4-to-v6-upgrade.md +9 -7
  6. package/package.json +1 -1
  7. package/src/modules/bmb/README.md +135 -73
  8. package/src/modules/bmb/workflows/create-agent/README.md +126 -243
  9. package/src/modules/bmb/workflows/create-agent/instructions.md +25 -12
  10. package/src/modules/bmb/workflows/create-module/README.md +163 -154
  11. package/src/modules/bmb/workflows/create-workflow/instructions.md +16 -8
  12. package/src/modules/bmm/README.md +86 -83
  13. package/src/modules/bmm/workflows/1-analysis/brainstorm-game/instructions.md +45 -26
  14. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/README.md +100 -16
  15. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +42 -23
  16. package/src/modules/bmm/workflows/1-analysis/game-brief/instructions.md +42 -28
  17. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +38 -27
  18. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +24 -34
  19. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +23 -34
  20. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +30 -14
  21. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +23 -34
  22. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +42 -24
  23. package/src/modules/bmm/workflows/2-plan-workflows/gdd/instructions-gdd.md +35 -22
  24. package/src/modules/bmm/workflows/2-plan-workflows/narrative/instructions-narrative.md +73 -22
  25. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +45 -63
  26. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +46 -62
  27. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +46 -53
  28. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +78 -47
  29. package/src/modules/bmm/workflows/4-implementation/create-story/README.md +99 -82
  30. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +2 -0
  31. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +3 -0
  32. package/src/modules/bmm/workflows/README.md +149 -511
  33. package/src/modules/bmm/workflows/workflow-status/README.md +38 -19
  34. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +117 -24
  35. package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +2 -2
  36. package/src/modules/bmm/workflows/workflow-status/instructions.md +173 -111
  37. package/src/modules/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +49 -0
  38. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +31 -0
  39. package/src/modules/bmm/workflows/workflow-status/workflow.yaml +3 -3
  40. package/src/modules/cis/README.md +153 -0
  41. package/src/modules/cis/workflows/README.md +102 -30
  42. package/src/modules/cis/workflows/storytelling/instructions.md +10 -2
  43. package/tools/cli/installers/lib/core/manifest-generator.js +4 -1
  44. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.md +0 -30
  45. package/src/modules/cis/readme.md +0 -86
  46. /package/src/modules/bmm/sub-modules/claude-code/{readme.md → README.md} +0 -0
  47. /package/src/modules/bmm/workflows/3-solutioning/architecture/{readme.md → README.md} +0 -0
@@ -1,220 +1,229 @@
1
- # Build Module Workflow
1
+ # Create Module Workflow
2
2
 
3
- ## Overview
3
+ Interactive scaffolding system creating complete BMad modules with agents, workflows, tasks, and installation infrastructure.
4
4
 
5
- The Build Module workflow is an interactive scaffolding system that creates complete BMAD modules with agents, workflows, tasks, and installation infrastructure. It serves as the primary tool for building new modules in the BMAD ecosystem, guiding users through the entire module creation process from concept to deployment-ready structure.
5
+ ## Table of Contents
6
6
 
7
- ## Key Features
7
+ - [Quick Start](#quick-start)
8
+ - [Workflow Phases](#workflow-phases)
9
+ - [Output Structure](#output-structure)
10
+ - [Module Components](#module-components)
11
+ - [Best Practices](#best-practices)
8
12
 
9
- - **Interactive Module Planning** - Collaborative session to define module concept, scope, and architecture
10
- - **Intelligent Scaffolding** - Automatic creation of proper directory structures and configuration files
11
- - **Component Integration** - Seamless integration with create-agent and create-workflow workflows
12
- - **Installation Infrastructure** - Complete installer setup with configuration templates
13
- - **Module Brief Integration** - Can use existing module briefs as blueprints for accelerated development
14
- - **Validation and Documentation** - Built-in validation checks and comprehensive README generation
15
-
16
- ## Usage
17
-
18
- ### Basic Invocation
13
+ ## Quick Start
19
14
 
20
15
  ```bash
16
+ # Basic invocation
21
17
  workflow create-module
22
- ```
23
-
24
- ### With Module Brief Input
25
-
26
- ```bash
27
- # If you have a module brief from the module-brief workflow
28
- workflow create-module --input module-brief-my-module-2024-09-26.md
29
- ```
30
-
31
- ### Configuration
32
18
 
33
- The workflow loads critical variables from the BMB configuration:
19
+ # With module brief input
20
+ workflow create-module --input module-brief-{name}-{date}.md
34
21
 
35
- - **custom_module_location**: Where custom modules are created (default: `bmad/`)
36
- - **user_name**: Module author information
37
- - **date**: Automatic timestamp for versioning
38
-
39
- ## Workflow Structure
40
-
41
- ### Files Included
42
-
43
- ```
44
- create-module/
45
- ├── workflow.yaml # Configuration and metadata
46
- ├── instructions.md # Step-by-step execution guide
47
- ├── checklist.md # Validation criteria
48
- ├── module-structure.md # Module architecture guide
49
- ├── installer-templates/ # Installation templates
50
- │ ├── install-config.yaml
51
- │ └── installer.js
52
- └── README.md # This file
22
+ # Via BMad Builder
23
+ *create-module
53
24
  ```
54
25
 
55
- ## Workflow Process
56
-
57
- ### Phase 1: Concept Definition (Steps 1-2)
26
+ ## Workflow Phases
58
27
 
59
- **Module Vision and Identity**
28
+ ### Phase 1: Concept Definition
60
29
 
61
- - Define module concept, purpose, and target audience
62
- - Establish module code (kebab-case) and friendly name
63
- - Choose module category (Domain-Specific, Creative, Technical, Business, Personal)
64
- - Plan component architecture with agent and workflow specifications
30
+ - Define module purpose and audience
31
+ - Establish module code (kebab-case) and name
32
+ - Choose category (Domain, Creative, Technical, Business, Personal)
33
+ - Plan component architecture
65
34
 
66
- **Module Brief Integration**
35
+ **Module Brief Integration:**
67
36
 
68
- - Automatically detects existing module briefs in output folder
69
- - Can load and use briefs as pre-populated blueprints
70
- - Accelerates planning when comprehensive brief exists
37
+ - Auto-detects existing briefs
38
+ - Uses as pre-populated blueprint
39
+ - Accelerates planning phase
71
40
 
72
- ### Phase 2: Architecture Planning (Steps 3-4)
41
+ ### Phase 2: Architecture Planning
73
42
 
74
- **Directory Structure Creation**
43
+ - Create directory hierarchy
44
+ - Setup configuration system
45
+ - Define installer structure
46
+ - Establish component folders
75
47
 
76
- - Creates complete module directory hierarchy
77
- - Sets up agent, workflow, task, template, and data folders
78
- - Establishes installer directory with proper configuration
48
+ ### Phase 3: Component Creation
79
49
 
80
- **Module Configuration**
50
+ - Optional first agent creation
51
+ - Optional first workflow creation
52
+ - Component placeholder generation
53
+ - Integration validation
81
54
 
82
- - Defines configuration questions in install-config.yaml (config.yaml generated during installation)
83
- - Configures component counts and references
84
- - Sets up output and data folder specifications
55
+ ### Phase 4: Installation Setup
85
56
 
86
- ### Phase 3: Component Creation (Steps 5-6)
57
+ - Create install-config.yaml
58
+ - Configure deployment questions
59
+ - Setup installer logic
60
+ - Post-install messaging
87
61
 
88
- **Interactive Component Building**
62
+ ### Phase 5: Documentation
89
63
 
90
- - Optional creation of first agent using create-agent workflow
91
- - Optional creation of first workflow using create-workflow workflow
92
- - Creates placeholders for components to be built later
64
+ - Generate comprehensive README
65
+ - Create development roadmap
66
+ - Provide quick commands
67
+ - Document next steps
93
68
 
94
- **Workflow Integration**
69
+ ## Output Structure
95
70
 
96
- - Seamlessly invokes sub-workflows for component creation
97
- - Ensures proper file placement and structure
98
- - Maintains module consistency across components
71
+ ### Generated Directory
99
72
 
100
- ### Phase 4: Installation and Documentation (Steps 7-9)
101
-
102
- **Installer Infrastructure**
73
+ ```
74
+ bmad/{module-code}/
75
+ ├── agents/ # Agent definitions
76
+ ├── workflows/ # Workflow processes
77
+ ├── tasks/ # Reusable tasks
78
+ ├── templates/ # Document templates
79
+ ├── data/ # Module data files
80
+ ├── _module-installer/ # Installation logic
81
+ │ ├── install-config.yaml
82
+ │ └── installer.js
83
+ ├── README.md # Module documentation
84
+ ├── TODO.md # Development roadmap
85
+ └── config.yaml # Runtime configuration
86
+ ```
103
87
 
104
- - Creates install-config.yaml with configuration questions for deployment
105
- - Sets up optional installer.js for complex installation logic
106
- - Configures post-install messaging and instructions
88
+ ### Configuration Files
107
89
 
108
- **Comprehensive Documentation**
90
+ **install-config.yaml** - Installation questions
109
91
 
110
- - Generates detailed README.md with usage examples
111
- - Creates development roadmap for remaining components
112
- - Provides quick commands for continued development
92
+ ```yaml
93
+ questions:
94
+ - id: user_name
95
+ prompt: 'Your name?'
96
+ default: 'User'
97
+ - id: output_folder
98
+ prompt: 'Output location?'
99
+ default: './output'
100
+ ```
113
101
 
114
- ### Phase 5: Validation and Finalization (Step 10)
102
+ **config.yaml** - Generated from user answers during install
115
103
 
116
- **Quality Assurance**
104
+ ```yaml
105
+ user_name: 'John Doe'
106
+ output_folder: './my-output'
107
+ ```
117
108
 
118
- - Validates directory structure and configuration files
119
- - Checks component references and path consistency
120
- - Ensures installer configuration is deployment-ready
121
- - Provides comprehensive module summary and next steps
109
+ ## Module Components
122
110
 
123
- ## Output
111
+ ### Agents
124
112
 
125
- ### Generated Files
113
+ - Full module agents with workflows
114
+ - Expert agents with sidecars
115
+ - Simple utility agents
126
116
 
127
- - **Module Directory**: Complete module structure at `{project-root}/bmad/{module_code}/`
128
- - **Configuration Files**:
129
- - Source: install-config.yaml (configuration questions)
130
- - Target: config.yaml (generated from user answers during installation)
131
- - **Documentation**: README.md, TODO.md development roadmap
132
- - **Component Placeholders**: Structured folders for agents, workflows, and tasks
117
+ ### Workflows
133
118
 
134
- ### Output Structure
119
+ - Multi-step guided processes
120
+ - Configuration-driven
121
+ - Web bundle support
135
122
 
136
- The workflow creates a complete module ready for development:
123
+ ### Tasks
137
124
 
138
- 1. **Module Identity** - Name, code, version, and metadata
139
- 2. **Directory Structure** - Proper BMAD module hierarchy
140
- 3. **Configuration System** - Runtime and installation configs
141
- 4. **Component Framework** - Ready-to-use agent and workflow scaffolding
142
- 5. **Installation Infrastructure** - Deployment-ready installer
143
- 6. **Documentation Suite** - README, roadmap, and development guides
125
+ - Reusable operations
126
+ - Agent-agnostic
127
+ - Modular components
144
128
 
145
- ## Requirements
129
+ ### Templates
146
130
 
147
- - **Module Brief** (optional but recommended) - Use module-brief workflow first for best results
148
- - **BMAD Core Configuration** - Properly configured BMB config.yaml
149
- - **Build Tools Access** - create-agent and create-workflow workflows must be available
131
+ - Document structures
132
+ - Output formats
133
+ - Report templates
150
134
 
151
135
  ## Best Practices
152
136
 
153
- ### Before Starting
137
+ ### Planning
154
138
 
155
- 1. **Create a Module Brief** - Run module-brief workflow for comprehensive planning
156
- 2. **Review Existing Modules** - Study similar modules in `/bmad/` for patterns and inspiration
157
- 3. **Define Clear Scope** - Have a concrete vision of what the module will accomplish
139
+ 1. **Use module-brief workflow first** - Creates comprehensive blueprint
140
+ 2. **Define clear scope** - Avoid feature creep
141
+ 3. **Plan component interactions** - Map agent/workflow relationships
158
142
 
159
- ### During Execution
143
+ ### Structure
160
144
 
161
- 1. **Use Module Briefs** - Load existing briefs when prompted for accelerated development
162
- 2. **Start Simple** - Create one core agent and workflow, then expand iteratively
163
- 3. **Leverage Sub-workflows** - Use create-agent and create-workflow for quality components
164
- 4. **Validate Early** - Review generated structure before proceeding to next phases
145
+ 1. **Follow conventions** - Use established patterns
146
+ 2. **Keep components focused** - Single responsibility
147
+ 3. **Document thoroughly** - Clear README and inline docs
165
148
 
166
- ### After Completion
149
+ ### Development
167
150
 
168
- 1. **Follow the Roadmap** - Use generated TODO.md for systematic development
169
- 2. **Test Installation** - Validate installer with `bmad install {module_code}`
170
- 3. **Iterate Components** - Use quick commands to add agents and workflows
171
- 4. **Document Progress** - Update README.md as the module evolves
151
+ 1. **Start with core agent** - Build primary functionality first
152
+ 2. **Create key workflows** - Essential processes before edge cases
153
+ 3. **Test incrementally** - Validate as you build
172
154
 
173
- ## Troubleshooting
155
+ ### Installation
174
156
 
175
- ### Common Issues
157
+ 1. **Minimal config questions** - Only essential settings
158
+ 2. **Smart defaults** - Sensible out-of-box experience
159
+ 3. **Clear post-install** - Guide users to first steps
176
160
 
177
- **Issue**: Module already exists at target location
161
+ ## Integration Points
178
162
 
179
- - **Solution**: Choose a different module code or remove existing module
180
- - **Check**: Verify output folder permissions and available space
163
+ ### With Other Workflows
181
164
 
182
- **Issue**: Sub-workflow invocation fails
165
+ - **module-brief** - Strategic planning input
166
+ - **create-agent** - Agent component creation
167
+ - **create-workflow** - Workflow building
168
+ - **redoc** - Documentation maintenance
183
169
 
184
- - **Solution**: Ensure create-agent and create-workflow workflows are available
185
- - **Check**: Validate workflow paths in config.yaml
170
+ ### With BMad Core
186
171
 
187
- **Issue**: Installation configuration invalid
172
+ - Uses core framework capabilities
173
+ - Integrates with module system
174
+ - Follows BMad conventions
188
175
 
189
- - **Solution**: Review install-config.yaml syntax and paths
190
- - **Check**: Ensure all referenced paths use {project-root} variables correctly
176
+ ## Examples
191
177
 
192
- ## Customization
178
+ ### Domain-Specific Module
193
179
 
194
- To customize this workflow:
180
+ ```
181
+ Category: Domain-Specific
182
+ Code: legal-advisor
183
+ Components:
184
+ - Contract Review Agent
185
+ - Compliance Workflow
186
+ - Legal Templates
187
+ ```
195
188
 
196
- 1. **Modify Instructions** - Update instructions.md to adjust scaffolding steps
197
- 2. **Extend Templates** - Add new installer templates in installer-templates/
198
- 3. **Update Validation** - Enhance checklist.md with additional quality checks
199
- 4. **Add Components** - Integrate additional sub-workflows for specialized components
189
+ ### Creative Module
200
190
 
201
- ## Version History
191
+ ```
192
+ Category: Creative
193
+ Code: story-builder
194
+ Components:
195
+ - Narrative Agent
196
+ - Plot Workflow
197
+ - Character Templates
198
+ ```
202
199
 
203
- - **v1.0.0** - Initial release
204
- - Interactive module scaffolding
205
- - Component integration with create-agent and create-workflow
206
- - Complete installation infrastructure
207
- - Module brief integration support
200
+ ### Technical Module
208
201
 
209
- ## Support
202
+ ```
203
+ Category: Technical
204
+ Code: api-tester
205
+ Components:
206
+ - Test Runner Agent
207
+ - API Validation Workflow
208
+ - Test Report Templates
209
+ ```
210
210
 
211
- For issues or questions:
211
+ ## Workflow Files
212
212
 
213
- - Review the workflow creation guide at `/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md`
214
- - Study module structure patterns at `module-structure.md`
215
- - Validate output using `checklist.md`
216
- - Consult existing modules in `/bmad/` for examples
213
+ ```
214
+ create-module/
215
+ ├── workflow.yaml # Configuration
216
+ ├── instructions.md # Step guide
217
+ ├── checklist.md # Validation
218
+ ├── module-structure.md # Architecture
219
+ ├── installer-templates/ # Install files
220
+ └── README.md # This file
221
+ ```
217
222
 
218
- ---
223
+ ## Related Documentation
219
224
 
220
- _Part of the BMad Method v6 - BMB (Builder) Module_
225
+ - [Module Structure](./module-structure.md)
226
+ - [Module Brief Workflow](../module-brief/README.md)
227
+ - [Create Agent](../create-agent/README.md)
228
+ - [Create Workflow](../create-workflow/README.md)
229
+ - [BMB Module](../../README.md)
@@ -108,7 +108,8 @@ Most workflows should be `standalone: true` to give users direct access.
108
108
  1. **Yes (Recommended)** - Users can run it directly (standalone: true)
109
109
  2. **No** - Only called by other workflows/agents (standalone: false)
110
110
 
111
- Most workflows choose option 1:</ask>
111
+ Most workflows choose option 1:
112
+ </ask>
112
113
 
113
114
  <action>Store {{standalone_setting}} as true or false based on response</action>
114
115
 
@@ -150,7 +151,8 @@ The architecture workflow is an excellent example of intent-based with prescript
150
151
  2. **Prescriptive** - Structured, consistent, controlled interactions
151
152
  3. **Mixed/Balanced** - I'll help you decide step-by-step
152
153
 
153
- What feels right for your workflow's purpose?</ask>
154
+ What feels right for your workflow's purpose?
155
+ </ask>
154
156
 
155
157
  <action>Store {{instruction_style}} preference</action>
156
158
 
@@ -185,11 +187,12 @@ Beyond style, consider **how interactive** this workflow should be:
185
187
 
186
188
  <ask>What interactivity level suits this workflow?
187
189
 
188
- 1. **High** - Highly collaborative, user actively involved throughout
189
- 2. **Medium** - Guided with key decision points (most common)
190
- 3. **Low** - Autonomous with final review
190
+ 1. **High** - Highly collaborative, user actively involved throughout (Recommended)
191
+ 2. **Medium** - Guided with key decision points
192
+ 3. **Low** - Mostly autonomous with final review
191
193
 
192
- Select the level that matches your workflow's purpose:</ask>
194
+ Select the level that matches your workflow's purpose:
195
+ </ask>
193
196
 
194
197
  <action>Store {{interactivity_level}} preference</action>
195
198
 
@@ -487,6 +490,7 @@ Generate the template.md file following guide conventions:
487
490
  # Document Title
488
491
 
489
492
  **Date:** {{date}}
493
+
490
494
  **Author:** {{user_name}}
491
495
  ```
492
496
 
@@ -575,7 +579,9 @@ Review the created workflow:
575
579
  4. Validate YAML syntax
576
580
  5. Confirm all placeholders are replaced
577
581
 
578
- **Standard Config Validation:** 6. Verify workflow.yaml contains standard config block:
582
+ **Standard Config Validation:**
583
+
584
+ 6. Verify workflow.yaml contains standard config block:
579
585
 
580
586
  - config_source defined
581
587
  - output_folder, user_name, communication_language pulled from config
@@ -584,7 +590,9 @@ Review the created workflow:
584
590
  7. Check instructions use config variables where appropriate
585
591
  8. Verify template includes config variables in metadata (if document workflow)
586
592
 
587
- **YAML/Instruction/Template Alignment:** 9. Cross-check all workflow.yaml variables against instruction usage:
593
+ **YAML/Instruction/Template Alignment:**
594
+
595
+ 9. Cross-check all workflow.yaml variables against instruction usage:
588
596
 
589
597
  - Are all yaml variables referenced in instructions.md OR template.md?
590
598
  - Are there hardcoded values that should be variables?