bmad-method 4.12.0 → 4.14.0

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 (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/CONTRIBUTING.md +128 -1
  3. package/GUIDING-PRINCIPLES.md +85 -0
  4. package/README.md +56 -6
  5. package/bmad-core/agents/analyst.md +3 -1
  6. package/bmad-core/agents/dev.md +3 -2
  7. package/bmad-core/agents/qa.md +15 -14
  8. package/bmad-core/data/bmad-kb.md +280 -19
  9. package/bmad-core/tasks/document-project.md +250 -322
  10. package/bmad-core/tasks/review-story.md +135 -0
  11. package/bmad-core/templates/story-tmpl.md +8 -0
  12. package/bmad-core/workflows/brownfield-fullstack.yml +36 -1
  13. package/bmad-core/workflows/brownfield-service.yml +36 -1
  14. package/bmad-core/workflows/brownfield-ui.yml +36 -1
  15. package/bmad-core/workflows/greenfield-fullstack.yml +36 -1
  16. package/bmad-core/workflows/greenfield-service.yml +36 -1
  17. package/bmad-core/workflows/greenfield-ui.yml +36 -1
  18. package/dist/agents/analyst.txt +227 -17
  19. package/dist/agents/bmad-master.txt +260 -24
  20. package/dist/agents/bmad-orchestrator.txt +227 -17
  21. package/dist/agents/dev.txt +6 -4
  22. package/dist/agents/pm.txt +25 -7
  23. package/dist/agents/po.txt +33 -7
  24. package/dist/agents/qa.txt +153 -14
  25. package/dist/agents/sm.txt +8 -0
  26. package/dist/expansion-packs/expansion-creator/agents/bmad-the-creator.txt +4 -12
  27. package/dist/teams/team-all.txt +635 -48
  28. package/dist/teams/team-fullstack.txt +476 -30
  29. package/dist/teams/team-ide-minimal.txt +419 -42
  30. package/dist/teams/team-no-ui.txt +332 -26
  31. package/docs/expansion-pack-ideas.md +121 -0
  32. package/docs/expansion-packs.md +265 -0
  33. package/docs/working-in-the-brownfield.md +362 -0
  34. package/expansion-packs/expansion-creator/tasks/create-agent.md +1 -1
  35. package/expansion-packs/expansion-creator/tasks/generate-expansion-pack.md +3 -11
  36. package/package.json +1 -1
  37. package/tools/installer/bin/bmad.js +12 -11
  38. package/tools/installer/config/install.config.yml +8 -3
  39. package/tools/installer/lib/ide-setup.js +71 -0
  40. package/tools/installer/package.json +1 -1
  41. package/tools/upgraders/v3-to-v4-upgrader.js +1 -0
@@ -20,6 +20,50 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
20
20
  - **Quality Assurance**: Structured testing and validation
21
21
  - **Documentation**: Professional PRDs, architecture docs, user stories
22
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
+ - Use large context windows (Gemini's 1M tokens)
38
+ - Generate comprehensive documents (PRD, Architecture)
39
+ - Leverage multiple agents for brainstorming
40
+ - Create once, use throughout development
41
+
42
+ **Phase 2: Development (IDE - Implementation)**
43
+ - Shard documents into manageable pieces
44
+ - Execute focused SM → Dev cycles
45
+ - One story at a time, sequential progress
46
+ - Real-time file operations and testing
47
+
48
+ ### The Development Loop
49
+
50
+ ```text
51
+ 1. SM Agent (New Chat) → Creates next story from sharded docs
52
+ 2. You → Review and approve story
53
+ 3. Dev Agent (New Chat) → Implements approved story
54
+ 4. QA Agent (New Chat) → Reviews and refactors code
55
+ 5. You → Verify completion
56
+ 6. Repeat until epic complete
57
+ ```
58
+
59
+ ### Why This Works
60
+
61
+ - **Context Optimization**: Clean chats = better AI performance
62
+ - **Role Clarity**: Agents don't context-switch = higher quality
63
+ - **Incremental Progress**: Small stories = manageable complexity
64
+ - **Human Oversight**: You validate each step = quality control
65
+ - **Document-Driven**: Specs guide everything = consistency
66
+
23
67
  ## Getting Started
24
68
 
25
69
  ### Quick Start Options
@@ -34,7 +78,7 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
34
78
  5. Type `/help` to see available commands
35
79
 
36
80
  #### Option 2: IDE Integration
37
- **Best for**: Cursor, Claude Code, Windsurf, VS Code users
81
+ **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code users
38
82
 
39
83
  ```bash
40
84
  # Interactive installation (recommended)
@@ -43,13 +87,22 @@ npx bmad-method install
43
87
 
44
88
  **Installation Steps**:
45
89
  - Choose "Complete installation"
46
- - Select your IDE (Cursor, Claude Code, Windsurf, or Roo Code)
90
+ - Select your IDE from supported options:
91
+ - **Cursor**: Native AI integration
92
+ - **Claude Code**: Anthropic's official IDE
93
+ - **Windsurf**: Built-in AI capabilities
94
+ - **Cline**: VS Code extension with AI features
95
+ - **Roo Code**: Web-based IDE with agent support
96
+
97
+ **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.
47
98
 
48
99
  **Verify Installation**:
49
100
  - `.bmad-core/` folder created with all agents
50
101
  - IDE-specific integration files created
51
102
  - All agent commands/rules/modes available
52
103
 
104
+ **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
105
+
53
106
  ### Environment Selection Guide
54
107
 
55
108
  **Use Web UI for**:
@@ -66,6 +119,47 @@ npx bmad-method install
66
119
 
67
120
  **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.
68
121
 
122
+ ### IDE-Only Workflow Considerations
123
+
124
+ **Can you do everything in IDE?** Yes, but understand the tradeoffs:
125
+
126
+ **Pros of IDE-Only**:
127
+ - Single environment workflow
128
+ - Direct file operations from start
129
+ - No copy/paste between environments
130
+ - Immediate project integration
131
+
132
+ **Cons of IDE-Only**:
133
+ - Higher token costs for large document creation
134
+ - Smaller context windows (varies by IDE/model)
135
+ - May hit limits during planning phases
136
+ - Less cost-effective for brainstorming
137
+
138
+ **Using Web Agents in IDE**:
139
+ - **NOT RECOMMENDED**: Web agents (PM, Architect) have rich dependencies designed for large contexts
140
+ - **Why it matters**: Dev agents are kept lean to maximize coding context
141
+ - **The principle**: "Dev agents code, planning agents plan" - mixing breaks this optimization
142
+
143
+ **About bmad-master and bmad-orchestrator**:
144
+ - **bmad-master**: CAN do any task without switching agents, BUT...
145
+ - **Still use specialized agents for planning**: PM, Architect, and UX Expert have tuned personas that produce better results
146
+ - **Why specialization matters**: Each agent's personality and focus creates higher quality outputs
147
+ - **If using bmad-master/orchestrator**: Fine for planning phases, but...
148
+
149
+ **CRITICAL RULE for Development**:
150
+ - **ALWAYS use SM agent for story creation** - Never use bmad-master/orchestrator
151
+ - **ALWAYS use Dev agent for implementation** - Never use bmad-master/orchestrator
152
+ - **Why this matters**: SM and Dev agents are specifically optimized for the development workflow
153
+ - **No exceptions**: Even if using bmad-master for everything else, switch to SM → Dev for implementation
154
+
155
+ **Best Practice for IDE-Only**:
156
+ 1. Use PM/Architect/UX agents for planning (better than bmad-master)
157
+ 2. Create documents directly in project
158
+ 3. Shard immediately after creation
159
+ 4. **MUST switch to SM agent** for story creation
160
+ 5. **MUST switch to Dev agent** for implementation
161
+ 6. Keep planning and coding in separate chat sessions
162
+
69
163
  ## Core Configuration (core-config.yml)
70
164
 
71
165
  **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.
@@ -306,10 +400,16 @@ This architecture enables seamless operation across environments while maintaini
306
400
 
307
401
  ## Complete Development Workflow
308
402
 
309
- ### Planning Phase (Web UI Recommended)
403
+ ### Planning Phase (Web UI Recommended - Especially Gemini!)
404
+
405
+ **Ideal for cost efficiency with Gemini's massive context:**
310
406
 
311
- **Ideal for cost efficiency, especially with Gemini:**
407
+ **For Brownfield Projects - Start Here!**:
408
+ 1. **Upload entire project to Gemini Web** (GitHub URL, files, or zip)
409
+ 2. **Document existing system**: `/analyst` → `*document-project`
410
+ 3. **Creates comprehensive docs** from entire codebase analysis
312
411
 
412
+ **For All Projects**:
313
413
  1. **Optional Analysis**: `/analyst` - Market research, competitive analysis
314
414
  2. **Project Brief**: Create foundation document (Analyst or user)
315
415
  3. **PRD Creation**: `/pm create-doc prd` - Comprehensive product requirements
@@ -343,10 +443,14 @@ that can handle [specific requirements]."
343
443
 
344
444
  **Prerequisites**: Planning documents must exist in `docs/` folder
345
445
 
346
- 1. **Document Sharding**:
347
- - `@bmad-master` or `@po` shard `docs/prd.md` to `docs/prd/` folder
348
- - If architecture exists, shard to `docs/architecture/` folder
349
- - Results in multiple manageable documents and epic files
446
+ 1. **Document Sharding** (CRITICAL STEP):
447
+ - Documents created by PM/Architect (in Web or IDE) MUST be sharded for development
448
+ - Two methods to shard:
449
+ a) **Manual**: Drag `shard-doc` task + document file into chat
450
+ b) **Agent**: Ask `@bmad-master` or `@po` to shard documents
451
+ - Shards `docs/prd.md` → `docs/prd/` folder
452
+ - Shards `docs/architecture.md` → `docs/architecture/` folder
453
+ - **WARNING**: Do NOT shard in Web UI - copying many small files is painful!
350
454
 
351
455
  2. **Verify Sharded Content**:
352
456
  - At least one `epic-n.md` file in `docs/prd/` with stories in development order
@@ -360,19 +464,34 @@ that can handle [specific requirements]."
360
464
 
361
465
  3. **Development Cycle** (Sequential, one story at a time):
362
466
 
363
- **Step 1 - Story Creation**: New chat window → `@sm` → `*create`
467
+ **CRITICAL CONTEXT MANAGEMENT**:
468
+ - **Context windows matter!** Always use fresh, clean context windows
469
+ - **Model selection matters!** Use most powerful thinking model for SM story creation
470
+ - **ALWAYS start new chat between SM, Dev, and QA work**
471
+
472
+ **Step 1 - Story Creation**:
473
+ - **NEW CLEAN CHAT** → Select powerful model → `@sm` → `*create`
364
474
  - SM executes create-next-story task
365
475
  - Review generated story in `docs/stories/`
366
476
  - Update status from "Draft" to "Approved"
367
477
 
368
- **Step 2 - Story Implementation**: New chat window → `@dev`
478
+ **Step 2 - Story Implementation**:
479
+ - **NEW CLEAN CHAT** → `@dev`
369
480
  - Agent asks which story to implement
370
481
  - Include story file content to save dev agent lookup time
371
482
  - Dev follows tasks/subtasks, marking completion
372
- - Dev leaves notes for SM about any deviations
373
- - Update status to "Done"
483
+ - Dev maintains File List of all changes
484
+ - Dev marks story as "Review" when complete with all tests passing
374
485
 
375
- **Step 3 - Repeat**: Continue SM → Dev cycle until all epic stories complete
486
+ **Step 3 - Senior QA Review**:
487
+ - **NEW CLEAN CHAT** → `@qa` → execute review-story task
488
+ - QA performs senior developer code review
489
+ - QA can refactor and improve code directly
490
+ - QA appends results to story's QA Results section
491
+ - If approved: Status → "Done"
492
+ - If changes needed: Status stays "Review" with unchecked items for dev
493
+
494
+ **Step 4 - Repeat**: Continue SM → Dev → QA cycle until all epic stories complete
376
495
 
377
496
  **Important**: Only 1 story in progress at a time, worked sequentially until all epic stories complete.
378
497
 
@@ -392,12 +511,72 @@ Each status change requires user verification and approval before proceeding.
392
511
  - Development execution
393
512
  - Testing and deployment
394
513
 
395
- #### Brownfield Enhancement
396
- - Current system analysis
397
- - Enhancement planning
398
- - Impact assessment
399
- - Incremental development
400
- - Integration testing
514
+ #### Brownfield Enhancement (Existing Projects)
515
+
516
+ **Key Concept**: Brownfield development requires comprehensive documentation of your existing project for AI agents to understand context, patterns, and constraints.
517
+
518
+ **Complete Brownfield Workflow Options**:
519
+
520
+ **Option 1: PRD-First (Recommended for Large Codebases/Monorepos)**:
521
+ 1. **Upload project to Gemini Web** (GitHub URL, files, or zip)
522
+ 2. **Create PRD first**: `@pm` → `*create-doc brownfield-prd`
523
+ 3. **Focused documentation**: `@analyst` → `*document-project`
524
+ - Analyst asks for focus if no PRD provided
525
+ - Choose "single document" format for Web UI
526
+ - Uses PRD to document ONLY relevant areas
527
+ - Creates one comprehensive markdown file
528
+ - Avoids bloating docs with unused code
529
+
530
+ **Option 2: Document-First (Good for Smaller Projects)**:
531
+ 1. **Upload project to Gemini Web**
532
+ 2. **Document everything**: `@analyst` → `*document-project`
533
+ 3. **Then create PRD**: `@pm` → `*create-doc brownfield-prd`
534
+ - More thorough but can create excessive documentation
535
+
536
+ 2. **Requirements Gathering**:
537
+ - **Brownfield PRD**: Use PM agent with `brownfield-prd-tmpl`
538
+ - **Analyzes**: Existing system, constraints, integration points
539
+ - **Defines**: Enhancement scope, compatibility requirements, risk assessment
540
+ - **Creates**: Epic and story structure for changes
541
+
542
+ 3. **Architecture Planning**:
543
+ - **Brownfield Architecture**: Use Architect agent with `brownfield-architecture-tmpl`
544
+ - **Integration Strategy**: How new features integrate with existing system
545
+ - **Migration Planning**: Gradual rollout and backwards compatibility
546
+ - **Risk Mitigation**: Addressing potential breaking changes
547
+
548
+ **Brownfield-Specific Resources**:
549
+
550
+ **Templates**:
551
+ - `brownfield-prd-tmpl.md`: Comprehensive enhancement planning with existing system analysis
552
+ - `brownfield-architecture-tmpl.md`: Integration-focused architecture for existing systems
553
+
554
+ **Tasks**:
555
+ - `document-project`: Generates comprehensive documentation from existing codebase
556
+ - `brownfield-create-epic`: Creates single epic for focused enhancements (when full PRD is overkill)
557
+ - `brownfield-create-story`: Creates individual story for small, isolated changes
558
+
559
+ **When to Use Each Approach**:
560
+
561
+ **Full Brownfield Workflow** (Recommended for):
562
+ - Major feature additions
563
+ - System modernization
564
+ - Complex integrations
565
+ - Multiple related changes
566
+
567
+ **Quick Epic/Story Creation** (Use when):
568
+ - Single, focused enhancement
569
+ - Isolated bug fixes
570
+ - Small feature additions
571
+ - Well-documented existing system
572
+
573
+ **Critical Success Factors**:
574
+ 1. **Documentation First**: Always run `document-project` if docs are outdated/missing
575
+ 2. **Context Matters**: Provide agents access to relevant code sections
576
+ 3. **Integration Focus**: Emphasize compatibility and non-breaking changes
577
+ 4. **Incremental Approach**: Plan for gradual rollout and testing
578
+
579
+ **For detailed guide**: See `docs/working-in-the-brownfield.md`
401
580
 
402
581
  ## Document Creation Best Practices
403
582
 
@@ -478,9 +657,91 @@ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sh
478
657
  - **Keep conversations focused** - One agent, one task per conversation
479
658
  - **Review everything** - Always review and approve before marking complete
480
659
 
660
+ ## Contributing to BMAD-METHOD
661
+
662
+ ### Quick Contribution Guidelines
663
+
664
+ For full details, see `CONTRIBUTING.md`. Key points:
665
+
666
+ **Fork Workflow**:
667
+ 1. Fork the repository
668
+ 2. Create feature branches
669
+ 3. Submit PRs to `next` branch (default) or `main` for critical fixes only
670
+ 4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
671
+ 5. One feature/fix per PR
672
+
673
+ **PR Requirements**:
674
+ - Clear descriptions (max 200 words) with What/Why/How/Testing
675
+ - Use conventional commits (feat:, fix:, docs:)
676
+ - Atomic commits - one logical change per commit
677
+ - Must align with guiding principles
678
+
679
+ **Core Principles** (from GUIDING-PRINCIPLES.md):
680
+ - **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
681
+ - **Natural Language First**: Everything in markdown, no code in core
682
+ - **Core vs Expansion Packs**: Core for universal needs, packs for specialized domains
683
+ - **Design Philosophy**: "Dev agents code, planning agents plan"
684
+
685
+ ## Expansion Packs
686
+
687
+ ### What Are Expansion Packs?
688
+
689
+ 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.
690
+
691
+ ### Why Use Expansion Packs?
692
+
693
+ 1. **Keep Core Lean**: Dev agents maintain maximum context for coding
694
+ 2. **Domain Expertise**: Deep, specialized knowledge without bloating core
695
+ 3. **Community Innovation**: Anyone can create and share packs
696
+ 4. **Modular Design**: Install only what you need
697
+
698
+ ### Available Expansion Packs
699
+
700
+ **Technical Packs**:
701
+ - **Infrastructure/DevOps**: Cloud architects, SRE experts, security specialists
702
+ - **Game Development**: Game designers, level designers, narrative writers
703
+ - **Mobile Development**: iOS/Android specialists, mobile UX experts
704
+ - **Data Science**: ML engineers, data scientists, visualization experts
705
+
706
+ **Non-Technical Packs**:
707
+ - **Business Strategy**: Consultants, financial analysts, marketing strategists
708
+ - **Creative Writing**: Plot architects, character developers, world builders
709
+ - **Health & Wellness**: Fitness trainers, nutritionists, habit engineers
710
+ - **Education**: Curriculum designers, assessment specialists
711
+ - **Legal Support**: Contract analysts, compliance checkers
712
+
713
+ **Specialty Packs**:
714
+ - **Expansion Creator**: Tools to build your own expansion packs
715
+ - **RPG Game Master**: Tabletop gaming assistance
716
+ - **Life Event Planning**: Wedding planners, event coordinators
717
+ - **Scientific Research**: Literature reviewers, methodology designers
718
+
719
+ ### Using Expansion Packs
720
+
721
+ 1. **Browse Available Packs**: Check `expansion-packs/` directory
722
+ 2. **Get Inspiration**: See `docs/expansion-pack-ideas.md` for detailed examples
723
+ 3. **Install via CLI**:
724
+ ```bash
725
+ npx bmad-method install
726
+ # Select "Install expansion pack" option
727
+ ```
728
+ 4. **Use in Your Workflow**: Installed packs integrate seamlessly with existing agents
729
+
730
+ ### Creating Custom Expansion Packs
731
+
732
+ Use the **expansion-creator** pack to build your own:
733
+
734
+ 1. **Define Domain**: What expertise are you capturing?
735
+ 2. **Design Agents**: Create specialized roles with clear boundaries
736
+ 3. **Build Resources**: Tasks, templates, checklists for your domain
737
+ 4. **Test & Share**: Validate with real use cases, share with community
738
+
739
+ **Key Principle**: Expansion packs democratize expertise by making specialized knowledge accessible through AI agents.
740
+
481
741
  ## Getting Help
482
742
 
483
743
  - **Commands**: Use `/help` in any environment to see available commands
484
744
  - **Agent Switching**: Use `/switch agent-name` with orchestrator for role changes
485
745
  - **Documentation**: Check `docs/` folder for project-specific context
486
746
  - **Community**: Discord and GitHub resources available for support
747
+ - **Contributing**: See `CONTRIBUTING.md` for full guidelines