bmad-method 4.16.0 → 4.16.1

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 (65) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/tools/installer/package.json +1 -1
  4. package/.bmad-core/agent-teams/team-all.yml +0 -14
  5. package/.bmad-core/agent-teams/team-fullstack.yml +0 -18
  6. package/.bmad-core/agent-teams/team-ide-minimal.yml +0 -10
  7. package/.bmad-core/agent-teams/team-no-ui.yml +0 -13
  8. package/.bmad-core/agents/analyst.md +0 -64
  9. package/.bmad-core/agents/architect.md +0 -64
  10. package/.bmad-core/agents/bmad-master.md +0 -101
  11. package/.bmad-core/agents/bmad-orchestrator.md +0 -126
  12. package/.bmad-core/agents/dev.md +0 -65
  13. package/.bmad-core/agents/pm.md +0 -61
  14. package/.bmad-core/agents/po.md +0 -63
  15. package/.bmad-core/agents/qa.md +0 -50
  16. package/.bmad-core/agents/sm.md +0 -51
  17. package/.bmad-core/agents/ux-expert.md +0 -63
  18. package/.bmad-core/checklists/architect-checklist.md +0 -443
  19. package/.bmad-core/checklists/change-checklist.md +0 -182
  20. package/.bmad-core/checklists/pm-checklist.md +0 -375
  21. package/.bmad-core/checklists/po-master-checklist.md +0 -441
  22. package/.bmad-core/checklists/story-dod-checklist.md +0 -101
  23. package/.bmad-core/checklists/story-draft-checklist.md +0 -156
  24. package/.bmad-core/core-config.yml +0 -20
  25. package/.bmad-core/data/bmad-kb.md +0 -814
  26. package/.bmad-core/data/technical-preferences.md +0 -3
  27. package/.bmad-core/install-manifest.yml +0 -196
  28. package/.bmad-core/tasks/advanced-elicitation.md +0 -92
  29. package/.bmad-core/tasks/brainstorming-techniques.md +0 -238
  30. package/.bmad-core/tasks/brownfield-create-epic.md +0 -160
  31. package/.bmad-core/tasks/brownfield-create-story.md +0 -147
  32. package/.bmad-core/tasks/core-dump.md +0 -74
  33. package/.bmad-core/tasks/correct-course.md +0 -73
  34. package/.bmad-core/tasks/create-deep-research-prompt.md +0 -301
  35. package/.bmad-core/tasks/create-doc.md +0 -74
  36. package/.bmad-core/tasks/create-next-story.md +0 -242
  37. package/.bmad-core/tasks/doc-migration-task.md +0 -151
  38. package/.bmad-core/tasks/document-project.md +0 -350
  39. package/.bmad-core/tasks/execute-checklist.md +0 -97
  40. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
  41. package/.bmad-core/tasks/index-docs.md +0 -178
  42. package/.bmad-core/tasks/kb-mode-interaction.md +0 -77
  43. package/.bmad-core/tasks/review-story.md +0 -153
  44. package/.bmad-core/tasks/shard-doc.md +0 -191
  45. package/.bmad-core/templates/architecture-tmpl.md +0 -776
  46. package/.bmad-core/templates/brownfield-architecture-tmpl.md +0 -544
  47. package/.bmad-core/templates/brownfield-prd-tmpl.md +0 -242
  48. package/.bmad-core/templates/competitor-analysis-tmpl.md +0 -291
  49. package/.bmad-core/templates/front-end-architecture-tmpl.md +0 -175
  50. package/.bmad-core/templates/front-end-spec-tmpl.md +0 -413
  51. package/.bmad-core/templates/fullstack-architecture-tmpl.md +0 -1018
  52. package/.bmad-core/templates/market-research-tmpl.md +0 -263
  53. package/.bmad-core/templates/prd-tmpl.md +0 -202
  54. package/.bmad-core/templates/project-brief-tmpl.md +0 -230
  55. package/.bmad-core/templates/story-tmpl.md +0 -69
  56. package/.bmad-core/utils/file-resolution-context.md +0 -10
  57. package/.bmad-core/utils/template-format.md +0 -26
  58. package/.bmad-core/utils/web-agent-startup-instructions.md +0 -39
  59. package/.bmad-core/utils/workflow-management.md +0 -223
  60. package/.bmad-core/workflows/brownfield-fullstack.yml +0 -112
  61. package/.bmad-core/workflows/brownfield-service.yml +0 -113
  62. package/.bmad-core/workflows/brownfield-ui.yml +0 -123
  63. package/.bmad-core/workflows/greenfield-fullstack.yml +0 -166
  64. package/.bmad-core/workflows/greenfield-service.yml +0 -132
  65. package/.bmad-core/workflows/greenfield-ui.yml +0 -161
@@ -1,814 +0,0 @@
1
- # BMAD Knowledge Base
2
-
3
- ## Overview
4
-
5
- BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework that combines AI agents with Agile development methodologies. The v4 system introduces a modular architecture with improved dependency management, bundle optimization, and support for both web and IDE environments.
6
-
7
- ### Key Features
8
-
9
- - **Modular Agent System**: Specialized AI agents for each Agile role
10
- - **Build System**: Automated dependency resolution and optimization
11
- - **Dual Environment Support**: Optimized for both web UIs and IDEs
12
- - **Reusable Resources**: Portable templates, tasks, and checklists
13
- - **Slash Command Integration**: Quick agent switching and control
14
-
15
- ### When to Use BMAD
16
-
17
- - **New Projects (Greenfield)**: Complete end-to-end development
18
- - **Existing Projects (Brownfield)**: Feature additions and enhancements
19
- - **Team Collaboration**: Multiple roles working together
20
- - **Quality Assurance**: Structured testing and validation
21
- - **Documentation**: Professional PRDs, architecture docs, user stories
22
-
23
- ## How BMAD Works
24
-
25
- ### The Core Method
26
-
27
- BMAD transforms you into a "Vibe CEO" - directing a team of specialized AI agents through structured workflows. Here's how:
28
-
29
- 1. **You Direct, AI Executes**: You provide vision and decisions; agents handle implementation details
30
- 2. **Specialized Agents**: Each agent masters one role (PM, Developer, Architect, etc.)
31
- 3. **Structured Workflows**: Proven patterns guide you from idea to deployed code
32
- 4. **Clean Handoffs**: Fresh context windows ensure agents stay focused and effective
33
-
34
- ### The Two-Phase Approach
35
-
36
- **Phase 1: Planning (Web UI - Cost Effective)**
37
-
38
- - Use large context windows (Gemini's 1M tokens)
39
- - Generate comprehensive documents (PRD, Architecture)
40
- - Leverage multiple agents for brainstorming
41
- - Create once, use throughout development
42
-
43
- **Phase 2: Development (IDE - Implementation)**
44
-
45
- - Shard documents into manageable pieces
46
- - Execute focused SM → Dev cycles
47
- - One story at a time, sequential progress
48
- - Real-time file operations and testing
49
-
50
- ### The Development Loop
51
-
52
- ```text
53
- 1. SM Agent (New Chat) → Creates next story from sharded docs
54
- 2. You → Review and approve story
55
- 3. Dev Agent (New Chat) → Implements approved story
56
- 4. QA Agent (New Chat) → Reviews and refactors code
57
- 5. You → Verify completion
58
- 6. Repeat until epic complete
59
- ```
60
-
61
- ### Why This Works
62
-
63
- - **Context Optimization**: Clean chats = better AI performance
64
- - **Role Clarity**: Agents don't context-switch = higher quality
65
- - **Incremental Progress**: Small stories = manageable complexity
66
- - **Human Oversight**: You validate each step = quality control
67
- - **Document-Driven**: Specs guide everything = consistency
68
-
69
- ## Getting Started
70
-
71
- ### Quick Start Options
72
-
73
- #### Option 1: Web UI
74
-
75
- **Best for**: ChatGPT, Claude, Gemini users who want to start immediately
76
-
77
- 1. Navigate to `dist/teams/`
78
- 2. Copy `team-fullstack.txt` content
79
- 3. Create new Gemini Gem or CustomGPT
80
- 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
81
- 5. Type `/help` to see available commands
82
-
83
- #### Option 2: IDE Integration
84
-
85
- **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code users
86
-
87
- ```bash
88
- # Interactive installation (recommended)
89
- npx bmad-method install
90
- ```
91
-
92
- **Installation Steps**:
93
-
94
- - Choose "Complete installation"
95
- - Select your IDE from supported options:
96
- - **Cursor**: Native AI integration
97
- - **Claude Code**: Anthropic's official IDE
98
- - **Windsurf**: Built-in AI capabilities
99
- - **Cline**: VS Code extension with AI features
100
- - **Roo Code**: Web-based IDE with agent support
101
-
102
- **Note for VS Code Users**: BMAD-METHOD assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMAD agents. The installer includes built-in support for Cline and Roo.
103
-
104
- **Verify Installation**:
105
-
106
- - `.bmad-core/` folder created with all agents
107
- - IDE-specific integration files created
108
- - All agent commands/rules/modes available
109
-
110
- **Remember**: At its core, BMAD-METHOD is about mastering and harnessing prompt engineering. Any IDE with AI agent support can use BMAD - the framework provides the structured prompts and workflows that make AI development effective
111
-
112
- ### Environment Selection Guide
113
-
114
- **Use Web UI for**:
115
-
116
- - Initial planning and documentation (PRD, architecture)
117
- - Cost-effective document creation (especially with Gemini)
118
- - Brainstorming and analysis phases
119
- - Multi-agent consultation and planning
120
-
121
- **Use IDE for**:
122
-
123
- - Active development and coding
124
- - File operations and project integration
125
- - Document sharding and story management
126
- - Implementation workflow (SM/Dev cycles)
127
-
128
- **Cost-Saving Tip**: Create large documents (PRDs, architecture) in web UI, then copy to `docs/prd.md` and `docs/architecture.md` in your project before switching to IDE for development.
129
-
130
- ### IDE-Only Workflow Considerations
131
-
132
- **Can you do everything in IDE?** Yes, but understand the tradeoffs:
133
-
134
- **Pros of IDE-Only**:
135
-
136
- - Single environment workflow
137
- - Direct file operations from start
138
- - No copy/paste between environments
139
- - Immediate project integration
140
-
141
- **Cons of IDE-Only**:
142
-
143
- - Higher token costs for large document creation
144
- - Smaller context windows (varies by IDE/model)
145
- - May hit limits during planning phases
146
- - Less cost-effective for brainstorming
147
-
148
- **Using Web Agents in IDE**:
149
-
150
- - **NOT RECOMMENDED**: Web agents (PM, Architect) have rich dependencies designed for large contexts
151
- - **Why it matters**: Dev agents are kept lean to maximize coding context
152
- - **The principle**: "Dev agents code, planning agents plan" - mixing breaks this optimization
153
-
154
- **About bmad-master and bmad-orchestrator**:
155
-
156
- - **bmad-master**: CAN do any task without switching agents, BUT...
157
- - **Still use specialized agents for planning**: PM, Architect, and UX Expert have tuned personas that produce better results
158
- - **Why specialization matters**: Each agent's personality and focus creates higher quality outputs
159
- - **If using bmad-master/orchestrator**: Fine for planning phases, but...
160
-
161
- **CRITICAL RULE for Development**:
162
-
163
- - **ALWAYS use SM agent for story creation** - Never use bmad-master/orchestrator
164
- - **ALWAYS use Dev agent for implementation** - Never use bmad-master/orchestrator
165
- - **Why this matters**: SM and Dev agents are specifically optimized for the development workflow
166
- - **No exceptions**: Even if using bmad-master for everything else, switch to SM → Dev for implementation
167
-
168
- **Best Practice for IDE-Only**:
169
-
170
- 1. Use PM/Architect/UX agents for planning (better than bmad-master)
171
- 2. Create documents directly in project
172
- 3. Shard immediately after creation
173
- 4. **MUST switch to SM agent** for story creation
174
- 5. **MUST switch to Dev agent** for implementation
175
- 6. Keep planning and coding in separate chat sessions
176
-
177
- ## Core Configuration (core-config.yml)
178
-
179
- **New in V4**: The `bmad-core/core-config.yml` file is a critical innovation that enables BMAD to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
180
-
181
- ### What is core-config.yml?
182
-
183
- This configuration file acts as a map for BMAD agents, telling them exactly where to find your project documents and how they're structured. It enables:
184
-
185
- - **Version Flexibility**: Work with V3, V4, or custom document structures
186
- - **Custom Locations**: Define where your documents and shards live
187
- - **Developer Context**: Specify which files the dev agent should always load
188
- - **Debug Support**: Built-in logging for troubleshooting
189
-
190
- ### Key Configuration Areas
191
-
192
- #### PRD Configuration
193
-
194
- - **prdVersion**: Tells agents if PRD follows v3 or v4 conventions
195
- - **prdSharded**: Whether epics are embedded (false) or in separate files (true)
196
- - **prdShardedLocation**: Where to find sharded epic files
197
- - **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`)
198
-
199
- #### Architecture Configuration
200
-
201
- - **architectureVersion**: v3 (monolithic) or v4 (sharded)
202
- - **architectureSharded**: Whether architecture is split into components
203
- - **architectureShardedLocation**: Where sharded architecture files live
204
-
205
- #### Developer Files
206
-
207
- - **devLoadAlwaysFiles**: List of files the dev agent loads for every task
208
- - **devDebugLog**: Where dev agent logs repeated failures
209
- - **agentCoreDump**: Export location for chat conversations
210
-
211
- ### Why It Matters
212
-
213
- 1. **No Forced Migrations**: Keep your existing document structure
214
- 2. **Gradual Adoption**: Start with V3 and migrate to V4 at your pace
215
- 3. **Custom Workflows**: Configure BMAD to match your team's process
216
- 4. **Intelligent Agents**: Agents automatically adapt to your configuration
217
-
218
- ### Common Configurations
219
-
220
- **Legacy V3 Project**:
221
-
222
- ```yaml
223
- prdVersion: v3
224
- prdSharded: false
225
- architectureVersion: v3
226
- architectureSharded: false
227
- ```
228
-
229
- **V4 Optimized Project**:
230
-
231
- ```yaml
232
- prdVersion: v4
233
- prdSharded: true
234
- prdShardedLocation: docs/prd
235
- architectureVersion: v4
236
- architectureSharded: true
237
- architectureShardedLocation: docs/architecture
238
- ```
239
-
240
- ## Core Philosophy
241
-
242
- ### Vibe CEO'ing
243
-
244
- You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a singular vision. Your AI agents are your high-powered team, and your role is to:
245
-
246
- - **Direct**: Provide clear instructions and objectives
247
- - **Refine**: Iterate on outputs to achieve quality
248
- - **Oversee**: Maintain strategic alignment across all agents
249
-
250
- ### Core Principles
251
-
252
- 1. **MAXIMIZE_AI_LEVERAGE**: Push the AI to deliver more. Challenge outputs and iterate.
253
- 2. **QUALITY_CONTROL**: You are the ultimate arbiter of quality. Review all outputs.
254
- 3. **STRATEGIC_OVERSIGHT**: Maintain the high-level vision and ensure alignment.
255
- 4. **ITERATIVE_REFINEMENT**: Expect to revisit steps. This is not a linear process.
256
- 5. **CLEAR_INSTRUCTIONS**: Precise requests lead to better outputs.
257
- 6. **DOCUMENTATION_IS_KEY**: Good inputs (briefs, PRDs) lead to good outputs.
258
- 7. **START_SMALL_SCALE_FAST**: Test concepts, then expand.
259
- 8. **EMBRACE_THE_CHAOS**: Adapt and overcome challenges.
260
-
261
- ### Key Workflow Principles
262
-
263
- 1. **Agent Specialization**: Each agent has specific expertise and responsibilities
264
- 2. **Clean Handoffs**: Always start fresh when switching between agents
265
- 3. **Status Tracking**: Maintain story statuses (Draft → Approved → InProgress → Done)
266
- 4. **Iterative Development**: Complete one story before starting the next
267
- 5. **Documentation First**: Always start with solid PRD and architecture
268
-
269
- ## Agent System
270
-
271
- ### Core Development Team
272
-
273
- | Agent | Role | Primary Functions | When to Use |
274
- | ----------- | ------------------ | --------------------------------------- | -------------------------------------- |
275
- | `analyst` | Business Analyst | Market research, requirements gathering | Project planning, competitive analysis |
276
- | `pm` | Product Manager | PRD creation, feature prioritization | Strategic planning, roadmaps |
277
- | `architect` | Solution Architect | System design, technical architecture | Complex systems, scalability planning |
278
- | `dev` | Developer | Code implementation, debugging | All development tasks |
279
- | `qa` | QA Specialist | Test planning, quality assurance | Testing strategies, bug validation |
280
- | `ux-expert` | UX Designer | UI/UX design, prototypes | User experience, interface design |
281
- | `po` | Product Owner | Backlog management, story validation | Story refinement, acceptance criteria |
282
- | `sm` | Scrum Master | Sprint planning, story creation | Project management, workflow |
283
-
284
- ### Meta Agents
285
-
286
- | Agent | Role | Primary Functions | When to Use |
287
- | ------------------- | ---------------- | ------------------------------------- | --------------------------------- |
288
- | `bmad-orchestrator` | Team Coordinator | Multi-agent workflows, role switching | Complex multi-role tasks |
289
- | `bmad-master` | Universal Expert | All capabilities without switching | Single-session comprehensive work |
290
-
291
- ### Agent Interaction Commands
292
-
293
- #### IDE-Specific Syntax
294
-
295
- **Agent Loading by IDE**:
296
-
297
- - **Claude Code**: `/agent-name` (e.g., `/bmad-master`)
298
- - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
299
- - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
300
- - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
301
-
302
- **Chat Management Guidelines**:
303
-
304
- - **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
305
- - **Roo Code**: Switch modes within the same conversation
306
-
307
- **Common Task Commands**:
308
-
309
- - `*help` - Show available commands
310
- - `*status` - Show current context/progress
311
- - `*exit` - Exit the agent mode
312
- - `*shard-doc docs/prd.md prd` - Shard PRD into manageable pieces
313
- - `*shard-doc docs/architecture.md architecture` - Shard architecture document
314
- - `*create` - Run create-next-story task (SM agent)
315
-
316
- **In Web UI**:
317
-
318
- ```text
319
- /pm create-doc prd
320
- /architect review system design
321
- /dev implement story 1.2
322
- /help - Show available commands
323
- /switch agent-name - Change active agent (if orchestrator available)
324
- ```
325
-
326
- ## Team Configurations
327
-
328
- ### Pre-Built Teams
329
-
330
- #### Team All
331
-
332
- - **Includes**: All 10 agents + orchestrator
333
- - **Use Case**: Complete projects requiring all roles
334
- - **Bundle**: `team-all.txt`
335
-
336
- #### Team Fullstack
337
-
338
- - **Includes**: PM, Architect, Developer, QA, UX Expert
339
- - **Use Case**: End-to-end web/mobile development
340
- - **Bundle**: `team-fullstack.txt`
341
-
342
- #### Team No-UI
343
-
344
- - **Includes**: PM, Architect, Developer, QA (no UX Expert)
345
- - **Use Case**: Backend services, APIs, system development
346
- - **Bundle**: `team-no-ui.txt`
347
-
348
- ## Core Architecture
349
-
350
- ### System Overview
351
-
352
- The BMAD-Method is built around a modular architecture centered on the `bmad-core` directory, which serves as the brain of the entire system. This design enables the framework to operate effectively in both IDE environments (like Cursor, VS Code) and web-based AI interfaces (like ChatGPT, Gemini).
353
-
354
- ### Key Architectural Components
355
-
356
- #### 1. Agents (`bmad-core/agents/`)
357
-
358
- - **Purpose**: Each markdown file defines a specialized AI agent for a specific Agile role (PM, Dev, Architect, etc.)
359
- - **Structure**: Contains YAML headers specifying the agent's persona, capabilities, and dependencies
360
- - **Dependencies**: Lists of tasks, templates, checklists, and data files the agent can use
361
- - **Startup Instructions**: Can load project-specific documentation for immediate context
362
-
363
- #### 2. Agent Teams (`bmad-core/agent-teams/`)
364
-
365
- - **Purpose**: Define collections of agents bundled together for specific purposes
366
- - **Examples**: `team-all.yml` (comprehensive bundle), `team-fullstack.yml` (full-stack development)
367
- - **Usage**: Creates pre-packaged contexts for web UI environments
368
-
369
- #### 3. Workflows (`bmad-core/workflows/`)
370
-
371
- - **Purpose**: YAML files defining prescribed sequences of steps for specific project types
372
- - **Types**: Greenfield (new projects) and Brownfield (existing projects) for UI, service, and fullstack development
373
- - **Structure**: Defines agent interactions, artifacts created, and transition conditions
374
-
375
- #### 4. Reusable Resources
376
-
377
- - **Templates** (`bmad-core/templates/`): Markdown templates for PRDs, architecture specs, user stories
378
- - **Tasks** (`bmad-core/tasks/`): Instructions for specific repeatable actions like "shard-doc" or "create-next-story"
379
- - **Checklists** (`bmad-core/checklists/`): Quality assurance checklists for validation and review
380
- - **Data** (`bmad-core/data/`): Core knowledge base and technical preferences
381
-
382
- ### Dual Environment Architecture
383
-
384
- #### IDE Environment
385
-
386
- - Users interact directly with agent markdown files
387
- - Agents can access all dependencies dynamically
388
- - Supports real-time file operations and project integration
389
- - Optimized for development workflow execution
390
-
391
- #### Web UI Environment
392
-
393
- - Uses pre-built bundles from `dist/teams` for stand alone 1 upload files for all agents and their assest with an orchestrating agent
394
- - Single text files containing all agent dependencies are in `dist/agents/` - these are unnecessary unless you want to create a web agent that is only a single agent and not a team
395
- - Created by the web-builder tool for upload to web interfaces
396
- - Provides complete context in one package
397
-
398
- ### Template Processing System
399
-
400
- BMAD employs a sophisticated template system with three key components:
401
-
402
- 1. **Template Format** (`utils/template-format.md`): Defines markup language for variable substitution and AI processing directives
403
- 2. **Document Creation** (`tasks/create-doc.md`): Orchestrates template selection and user interaction
404
- 3. **Advanced Elicitation** (`tasks/advanced-elicitation.md`): Provides interactive refinement through structured brainstorming
405
-
406
- **Template Features**:
407
-
408
- - **Self-contained**: Templates embed both output structure and processing instructions
409
- - **Variable Substitution**: `{{placeholders}}` for dynamic content
410
- - **AI Processing Directives**: `[[LLM: instructions]]` for AI-only processing
411
- - **Interactive Refinement**: Built-in elicitation processes for quality improvement
412
-
413
- ### Technical Preferences Integration
414
-
415
- The `technical-preferences.md` file serves as a persistent technical profile that:
416
-
417
- - Ensures consistency across all agents and projects
418
- - Eliminates repetitive technology specification
419
- - Provides personalized recommendations aligned with user preferences
420
- - Evolves over time with lessons learned
421
-
422
- ### Build and Delivery Process
423
-
424
- The `web-builder.js` tool creates web-ready bundles by:
425
-
426
- 1. Reading agent or team definition files
427
- 2. Recursively resolving all dependencies
428
- 3. Concatenating content into single text files with clear separators
429
- 4. Outputting ready-to-upload bundles for web AI interfaces
430
-
431
- This architecture enables seamless operation across environments while maintaining the rich, interconnected agent ecosystem that makes BMAD powerful.
432
-
433
- ## Complete Development Workflow
434
-
435
- ### Planning Phase (Web UI Recommended - Especially Gemini!)
436
-
437
- **Ideal for cost efficiency with Gemini's massive context:**
438
-
439
- **For Brownfield Projects - Start Here!**:
440
-
441
- 1. **Upload entire project to Gemini Web** (GitHub URL, files, or zip)
442
- 2. **Document existing system**: `/analyst` → `*document-project`
443
- 3. **Creates comprehensive docs** from entire codebase analysis
444
-
445
- **For All Projects**:
446
-
447
- 1. **Optional Analysis**: `/analyst` - Market research, competitive analysis
448
- 2. **Project Brief**: Create foundation document (Analyst or user)
449
- 3. **PRD Creation**: `/pm create-doc prd` - Comprehensive product requirements
450
- 4. **Architecture Design**: `/architect create-doc architecture` - Technical foundation
451
- 5. **Validation & Alignment**: `/po` run master checklist to ensure document consistency
452
- 6. **Document Preparation**: Copy final documents to project as `docs/prd.md` and `docs/architecture.md`
453
-
454
- #### Example Planning Prompts
455
-
456
- **For PRD Creation**:
457
-
458
- ```text
459
- "I want to build a [type] application that [core purpose].
460
- Help me brainstorm features and create a comprehensive PRD."
461
- ```
462
-
463
- **For Architecture Design**:
464
-
465
- ```text
466
- "Based on this PRD, design a scalable technical architecture
467
- that can handle [specific requirements]."
468
- ```
469
-
470
- ### Critical Transition: Web UI to IDE
471
-
472
- **Once planning is complete, you MUST switch to IDE for development:**
473
-
474
- - **Why**: Development workflow requires file operations, real-time project integration, and document sharding
475
- - **Cost Benefit**: Web UI is more cost-effective for large document creation; IDE is optimized for development tasks
476
- - **Required Files**: Ensure `docs/prd.md` and `docs/architecture.md` exist in your project
477
-
478
- ### IDE Development Workflow
479
-
480
- **Prerequisites**: Planning documents must exist in `docs/` folder
481
-
482
- 1. **Document Sharding** (CRITICAL STEP):
483
-
484
- - Documents created by PM/Architect (in Web or IDE) MUST be sharded for development
485
- - Two methods to shard:
486
- a) **Manual**: Drag `shard-doc` task + document file into chat
487
- b) **Agent**: Ask `@bmad-master` or `@po` to shard documents
488
- - Shards `docs/prd.md` → `docs/prd/` folder
489
- - Shards `docs/architecture.md` → `docs/architecture/` folder
490
- - **WARNING**: Do NOT shard in Web UI - copying many small files is painful!
491
-
492
- 2. **Verify Sharded Content**:
493
- - At least one `epic-n.md` file in `docs/prd/` with stories in development order
494
- - Source tree document and coding standards for dev agent reference
495
- - Sharded docs for SM agent story creation
496
-
497
- **Resulting Folder Structure**:
498
-
499
- - `docs/prd/` - Broken down PRD sections
500
- - `docs/architecture/` - Broken down architecture sections
501
- - `docs/stories/` - Generated user stories
502
-
503
- 3. **Development Cycle** (Sequential, one story at a time):
504
-
505
- **CRITICAL CONTEXT MANAGEMENT**:
506
-
507
- - **Context windows matter!** Always use fresh, clean context windows
508
- - **Model selection matters!** Use most powerful thinking model for SM story creation
509
- - **ALWAYS start new chat between SM, Dev, and QA work**
510
-
511
- **Step 1 - Story Creation**:
512
-
513
- - **NEW CLEAN CHAT** → Select powerful model → `@sm` → `*create`
514
- - SM executes create-next-story task
515
- - Review generated story in `docs/stories/`
516
- - Update status from "Draft" to "Approved"
517
-
518
- **Step 2 - Story Implementation**:
519
-
520
- - **NEW CLEAN CHAT** → `@dev`
521
- - Agent asks which story to implement
522
- - Include story file content to save dev agent lookup time
523
- - Dev follows tasks/subtasks, marking completion
524
- - Dev maintains File List of all changes
525
- - Dev marks story as "Review" when complete with all tests passing
526
-
527
- **Step 3 - Senior QA Review**:
528
-
529
- - **NEW CLEAN CHAT** → `@qa` → execute review-story task
530
- - QA performs senior developer code review
531
- - QA can refactor and improve code directly
532
- - QA appends results to story's QA Results section
533
- - If approved: Status → "Done"
534
- - If changes needed: Status stays "Review" with unchecked items for dev
535
-
536
- **Step 4 - Repeat**: Continue SM → Dev → QA cycle until all epic stories complete
537
-
538
- **Important**: Only 1 story in progress at a time, worked sequentially until all epic stories complete.
539
-
540
- ### Status Tracking Workflow
541
-
542
- Stories progress through defined statuses:
543
-
544
- - **Draft** → **Approved** → **InProgress** → **Done**
545
-
546
- Each status change requires user verification and approval before proceeding.
547
-
548
- ### Workflow Types
549
-
550
- #### Greenfield Development
551
-
552
- - Business analysis and market research
553
- - Product requirements and feature definition
554
- - System architecture and design
555
- - Development execution
556
- - Testing and deployment
557
-
558
- #### Brownfield Enhancement (Existing Projects)
559
-
560
- **Key Concept**: Brownfield development requires comprehensive documentation of your existing project for AI agents to understand context, patterns, and constraints.
561
-
562
- **Complete Brownfield Workflow Options**:
563
-
564
- **Option 1: PRD-First (Recommended for Large Codebases/Monorepos)**:
565
-
566
- 1. **Upload project to Gemini Web** (GitHub URL, files, or zip)
567
- 2. **Create PRD first**: `@pm` → `*create-doc brownfield-prd`
568
- 3. **Focused documentation**: `@analyst` → `*document-project`
569
- - Analyst asks for focus if no PRD provided
570
- - Choose "single document" format for Web UI
571
- - Uses PRD to document ONLY relevant areas
572
- - Creates one comprehensive markdown file
573
- - Avoids bloating docs with unused code
574
-
575
- **Option 2: Document-First (Good for Smaller Projects)**:
576
-
577
- 1. **Upload project to Gemini Web**
578
- 2. **Document everything**: `@analyst` → `*document-project`
579
- 3. **Then create PRD**: `@pm` → `*create-doc brownfield-prd`
580
-
581
- - More thorough but can create excessive documentation
582
-
583
- 4. **Requirements Gathering**:
584
-
585
- - **Brownfield PRD**: Use PM agent with `brownfield-prd-tmpl`
586
- - **Analyzes**: Existing system, constraints, integration points
587
- - **Defines**: Enhancement scope, compatibility requirements, risk assessment
588
- - **Creates**: Epic and story structure for changes
589
-
590
- 5. **Architecture Planning**:
591
- - **Brownfield Architecture**: Use Architect agent with `brownfield-architecture-tmpl`
592
- - **Integration Strategy**: How new features integrate with existing system
593
- - **Migration Planning**: Gradual rollout and backwards compatibility
594
- - **Risk Mitigation**: Addressing potential breaking changes
595
-
596
- **Brownfield-Specific Resources**:
597
-
598
- **Templates**:
599
-
600
- - `brownfield-prd-tmpl.md`: Comprehensive enhancement planning with existing system analysis
601
- - `brownfield-architecture-tmpl.md`: Integration-focused architecture for existing systems
602
-
603
- **Tasks**:
604
-
605
- - `document-project`: Generates comprehensive documentation from existing codebase
606
- - `brownfield-create-epic`: Creates single epic for focused enhancements (when full PRD is overkill)
607
- - `brownfield-create-story`: Creates individual story for small, isolated changes
608
-
609
- **When to Use Each Approach**:
610
-
611
- **Full Brownfield Workflow** (Recommended for):
612
-
613
- - Major feature additions
614
- - System modernization
615
- - Complex integrations
616
- - Multiple related changes
617
-
618
- **Quick Epic/Story Creation** (Use when):
619
-
620
- - Single, focused enhancement
621
- - Isolated bug fixes
622
- - Small feature additions
623
- - Well-documented existing system
624
-
625
- **Critical Success Factors**:
626
-
627
- 1. **Documentation First**: Always run `document-project` if docs are outdated/missing
628
- 2. **Context Matters**: Provide agents access to relevant code sections
629
- 3. **Integration Focus**: Emphasize compatibility and non-breaking changes
630
- 4. **Incremental Approach**: Plan for gradual rollout and testing
631
-
632
- **For detailed guide**: See `docs/working-in-the-brownfield.md`
633
-
634
- ## Document Creation Best Practices
635
-
636
- ### Required File Naming for Framework Integration
637
-
638
- - `docs/prd.md` - Product Requirements Document
639
- - `docs/architecture.md` - System Architecture Document
640
-
641
- **Why These Names Matter**:
642
-
643
- - Agents automatically reference these files during development
644
- - Sharding tasks expect these specific filenames
645
- - Workflow automation depends on standard naming
646
-
647
- ### Cost-Effective Document Creation Workflow
648
-
649
- **Recommended for Large Documents (PRD, Architecture):**
650
-
651
- 1. **Use Web UI**: Create documents in web interface for cost efficiency
652
- 2. **Copy Final Output**: Save complete markdown to your project
653
- 3. **Standard Names**: Save as `docs/prd.md` and `docs/architecture.md`
654
- 4. **Switch to IDE**: Use IDE agents for development and smaller documents
655
-
656
- ### Document Sharding
657
-
658
- Templates with Level 2 headings (`##`) can be automatically sharded:
659
-
660
- **Original PRD**:
661
-
662
- ```markdown
663
- ## Goals and Background Context
664
-
665
- ## Requirements
666
-
667
- ## User Interface Design Goals
668
-
669
- ## Success Metrics
670
- ```
671
-
672
- **After Sharding**:
673
-
674
- - `docs/prd/goals-and-background-context.md`
675
- - `docs/prd/requirements.md`
676
- - `docs/prd/user-interface-design-goals.md`
677
- - `docs/prd/success-metrics.md`
678
-
679
- Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sharding.
680
-
681
- ## Usage Patterns and Best Practices
682
-
683
- ### Environment-Specific Usage
684
-
685
- **Web UI Best For**:
686
-
687
- - Initial planning and documentation phases
688
- - Cost-effective large document creation
689
- - Agent consultation and brainstorming
690
- - Multi-agent workflows with orchestrator
691
-
692
- **IDE Best For**:
693
-
694
- - Active development and implementation
695
- - File operations and project integration
696
- - Story management and development cycles
697
- - Code review and debugging
698
-
699
- ### Quality Assurance
700
-
701
- - Use appropriate agents for specialized tasks
702
- - Follow Agile ceremonies and review processes
703
- - Maintain document consistency with PO agent
704
- - Regular validation with checklists and templates
705
-
706
- ### Performance Optimization
707
-
708
- - Use specific agents vs. `bmad-master` for focused tasks
709
- - Choose appropriate team size for project needs
710
- - Leverage technical preferences for consistency
711
- - Regular context management and cache clearing
712
-
713
- ## Success Tips
714
-
715
- - **Use Gemini for big picture planning** - The team-fullstack bundle provides collaborative expertise
716
- - **Use bmad-master for document organization** - Sharding creates manageable chunks
717
- - **Follow the SM → Dev cycle religiously** - This ensures systematic progress
718
- - **Keep conversations focused** - One agent, one task per conversation
719
- - **Review everything** - Always review and approve before marking complete
720
-
721
- ## Contributing to BMAD-METHOD
722
-
723
- ### Quick Contribution Guidelines
724
-
725
- For full details, see `CONTRIBUTING.md`. Key points:
726
-
727
- **Fork Workflow**:
728
-
729
- 1. Fork the repository
730
- 2. Create feature branches
731
- 3. Submit PRs to `next` branch (default) or `main` for critical fixes only
732
- 4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
733
- 5. One feature/fix per PR
734
-
735
- **PR Requirements**:
736
-
737
- - Clear descriptions (max 200 words) with What/Why/How/Testing
738
- - Use conventional commits (feat:, fix:, docs:)
739
- - Atomic commits - one logical change per commit
740
- - Must align with guiding principles
741
-
742
- **Core Principles** (from GUIDING-PRINCIPLES.md):
743
-
744
- - **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
745
- - **Natural Language First**: Everything in markdown, no code in core
746
- - **Core vs Expansion Packs**: Core for universal needs, packs for specialized domains
747
- - **Design Philosophy**: "Dev agents code, planning agents plan"
748
-
749
- ## Expansion Packs
750
-
751
- ### What Are Expansion Packs?
752
-
753
- Expansion packs extend BMAD-METHOD beyond traditional software development into ANY domain. They provide specialized agent teams, templates, and workflows while keeping the core framework lean and focused on development.
754
-
755
- ### Why Use Expansion Packs?
756
-
757
- 1. **Keep Core Lean**: Dev agents maintain maximum context for coding
758
- 2. **Domain Expertise**: Deep, specialized knowledge without bloating core
759
- 3. **Community Innovation**: Anyone can create and share packs
760
- 4. **Modular Design**: Install only what you need
761
-
762
- ### Available Expansion Packs
763
-
764
- **Technical Packs**:
765
-
766
- - **Infrastructure/DevOps**: Cloud architects, SRE experts, security specialists
767
- - **Game Development**: Game designers, level designers, narrative writers
768
- - **Mobile Development**: iOS/Android specialists, mobile UX experts
769
- - **Data Science**: ML engineers, data scientists, visualization experts
770
-
771
- **Non-Technical Packs**:
772
-
773
- - **Business Strategy**: Consultants, financial analysts, marketing strategists
774
- - **Creative Writing**: Plot architects, character developers, world builders
775
- - **Health & Wellness**: Fitness trainers, nutritionists, habit engineers
776
- - **Education**: Curriculum designers, assessment specialists
777
- - **Legal Support**: Contract analysts, compliance checkers
778
-
779
- **Specialty Packs**:
780
-
781
- - **Expansion Creator**: Tools to build your own expansion packs
782
- - **RPG Game Master**: Tabletop gaming assistance
783
- - **Life Event Planning**: Wedding planners, event coordinators
784
- - **Scientific Research**: Literature reviewers, methodology designers
785
-
786
- ### Using Expansion Packs
787
-
788
- 1. **Browse Available Packs**: Check `expansion-packs/` directory
789
- 2. **Get Inspiration**: See `docs/expansion-pack-ideas.md` for detailed examples
790
- 3. **Install via CLI**:
791
- ```bash
792
- npx bmad-method install
793
- # Select "Install expansion pack" option
794
- ```
795
- 4. **Use in Your Workflow**: Installed packs integrate seamlessly with existing agents
796
-
797
- ### Creating Custom Expansion Packs
798
-
799
- Use the **expansion-creator** pack to build your own:
800
-
801
- 1. **Define Domain**: What expertise are you capturing?
802
- 2. **Design Agents**: Create specialized roles with clear boundaries
803
- 3. **Build Resources**: Tasks, templates, checklists for your domain
804
- 4. **Test & Share**: Validate with real use cases, share with community
805
-
806
- **Key Principle**: Expansion packs democratize expertise by making specialized knowledge accessible through AI agents.
807
-
808
- ## Getting Help
809
-
810
- - **Commands**: Use `/help` in any environment to see available commands
811
- - **Agent Switching**: Use `/switch agent-name` with orchestrator for role changes
812
- - **Documentation**: Check `docs/` folder for project-specific context
813
- - **Community**: Discord and GitHub resources available for support
814
- - **Contributing**: See `CONTRIBUTING.md` for full guidelines