bmad-method 4.11.0 โ†’ 4.13.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [4.13.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.12.0...v4.13.0) (2025-06-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * **ide-setup:** add support for Cline IDE and configuration rules ([#262](https://github.com/bmadcode/BMAD-METHOD/issues/262)) ([913dbec](https://github.com/bmadcode/BMAD-METHOD/commit/913dbeced60ad65086df6233086d83a51ead81a9))
7
+
8
+ # [4.12.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.11.0...v4.12.0) (2025-06-23)
9
+
10
+
11
+ ### Features
12
+
13
+ * **dev-agent:** add quality gates to prevent task completion with failing validations ([#261](https://github.com/bmadcode/BMAD-METHOD/issues/261)) ([45110ff](https://github.com/bmadcode/BMAD-METHOD/commit/45110ffffe6d29cc08e227e22a901892185dfbd2))
14
+
1
15
  # [4.11.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.10.3...v4.11.0) (2025-06-21)
2
16
 
3
17
 
package/CONTRIBUTING.md CHANGED
@@ -4,6 +4,8 @@ Thank you for considering contributing to this project! This document outlines t
4
4
 
5
5
  ๐Ÿ†• **New to GitHub or pull requests?** Check out our [beginner-friendly Pull Request Guide](docs/how-to-contribute-with-pull-requests.md) first!
6
6
 
7
+ ๐Ÿ“‹ **Before contributing**, please read our [Guiding Principles](GUIDING-PRINCIPLES.md) to understand the BMAD Method's core philosophy and architectural decisions.
8
+
7
9
  Also note, we use the discussions feature in GitHub to have a community to discuss potential ideas, uses, additions and enhancements.
8
10
 
9
11
  ## Code of Conduct
@@ -26,6 +28,65 @@ By participating in this project, you agree to abide by our Code of Conduct. Ple
26
28
 
27
29
  Please only propose small granular commits! If its large or significant, please discuss in the discussions tab and open up an issue first. I do not want you to waste your time on a potentially very large PR to have it rejected because it is not aligned or deviates from other planned changes. Communicate and lets work together to build and improve this great community project!
28
30
 
31
+ **Important**: All contributions must align with our [Guiding Principles](GUIDING-PRINCIPLES.md). Key points:
32
+
33
+ - Keep dev agents lean - they need context for coding, not documentation
34
+ - Web/planning agents can be larger with more complex tasks
35
+ - Everything is natural language (markdown) - no code in core framework
36
+ - Use expansion packs for domain-specific features
37
+
38
+ #### Which Branch for Your PR?
39
+
40
+ **Submit to `next` branch** (most contributions):
41
+
42
+ - โœจ New features or agents
43
+ - ๐ŸŽจ Enhancements to existing features
44
+ - ๐Ÿ“š Documentation updates
45
+ - โ™ป๏ธ Code refactoring
46
+ - โšก Performance improvements
47
+ - ๐Ÿงช New tests
48
+ - ๐ŸŽ New expansion packs
49
+
50
+ **Submit to `main` branch** (critical only):
51
+
52
+ - ๐Ÿšจ Critical bug fixes that break basic functionality
53
+ - ๐Ÿ”’ Security patches
54
+ - ๐Ÿ“š Fixing dangerously incorrect documentation
55
+ - ๐Ÿ› Bugs preventing installation or basic usage
56
+
57
+ **When in doubt, submit to `next`**. We'd rather test changes thoroughly before they hit stable.
58
+
59
+ #### PR Size Guidelines
60
+
61
+ - **Ideal PR size**: 200-400 lines of code changes
62
+ - **Maximum PR size**: 800 lines (excluding generated files)
63
+ - **One feature/fix per PR**: Each PR should address a single issue or add one feature
64
+ - **If your change is larger**: Break it into multiple smaller PRs that can be reviewed independently
65
+ - **Related changes**: Even related changes should be separate PRs if they deliver independent value
66
+
67
+ #### Breaking Down Large PRs
68
+
69
+ If your change exceeds 800 lines, use this checklist to split it:
70
+
71
+ - [ ] Can I separate the refactoring from the feature implementation?
72
+ - [ ] Can I introduce the new API/interface in one PR and implementation in another?
73
+ - [ ] Can I split by file or module?
74
+ - [ ] Can I create a base PR with shared utilities first?
75
+ - [ ] Can I separate test additions from implementation?
76
+ - [ ] Even if changes are related, can they deliver value independently?
77
+ - [ ] Can these changes be merged in any order without breaking things?
78
+
79
+ Example breakdown:
80
+
81
+ 1. PR #1: Add utility functions and types (100 lines)
82
+ 2. PR #2: Refactor existing code to use utilities (200 lines)
83
+ 3. PR #3: Implement new feature using refactored code (300 lines)
84
+ 4. PR #4: Add comprehensive tests (200 lines)
85
+
86
+ **Note**: PRs #1 and #4 could be submitted simultaneously since they deliver independent value and don't depend on each other's merge order.
87
+
88
+ #### Pull Request Steps
89
+
29
90
  1. Fork the repository
30
91
  2. Create a new branch (`git checkout -b feature/your-feature-name`)
31
92
  3. Make your changes
@@ -34,9 +95,75 @@ Please only propose small granular commits! If its large or significant, please
34
95
  6. Push to your branch (`git push origin feature/your-feature-name`)
35
96
  7. Open a Pull Request against the main branch
36
97
 
98
+ ## Pull Request Description Guidelines
99
+
100
+ Keep PR descriptions short and to the point following this template:
101
+
102
+ ### PR Description Template
103
+
104
+ Keep your PR description concise and focused. Use this template:
105
+
106
+ ```markdown
107
+ ## What
108
+
109
+ [1-2 sentences describing WHAT changed]
110
+
111
+ ## Why
112
+
113
+ [1-2 sentences explaining WHY this change is needed]
114
+
115
+ ## How
116
+
117
+ [2-3 bullets listing HOW you implemented it]
118
+
119
+ -
120
+ -
121
+ -
122
+
123
+ ## Testing
124
+
125
+ [1-2 sentences on how you tested this]
126
+ ```
127
+
128
+ **Maximum PR description length: 200 words** (excluding code examples if needed)
129
+
130
+ ### Good vs Bad PR Descriptions
131
+
132
+ โŒ **Bad Example:**
133
+
134
+ > This revolutionary PR introduces a paradigm-shifting enhancement to the system's architecture by implementing a state-of-the-art solution that leverages cutting-edge methodologies to optimize performance metrics and deliver unprecedented value to stakeholders through innovative approaches...
135
+
136
+ โœ… **Good Example:**
137
+
138
+ > **What:** Added validation for agent dependency resolution
139
+ > **Why:** Build was failing silently when agents had circular dependencies
140
+ > **How:**
141
+ >
142
+ > - Added cycle detection in dependency-resolver.js
143
+ > - Throws clear error with dependency chain
144
+ > **Testing:** Tested with circular deps between 3 agents
145
+
37
146
  ## Commit Message Convention
38
147
 
39
- PRs with a wall of AI Generated marketing hype that is unclear in what is being proposed will be closed and rejected. Your best change to contribute is with a small clear PR description explaining, what is the issue being solved or gap in the system being filled. Also explain how it leads to the core guiding principles of the project.
148
+ Use conventional commits format:
149
+
150
+ - `feat:` New feature
151
+ - `fix:` Bug fix
152
+ - `docs:` Documentation only
153
+ - `refactor:` Code change that neither fixes a bug nor adds a feature
154
+ - `test:` Adding missing tests
155
+ - `chore:` Changes to build process or auxiliary tools
156
+
157
+ Keep commit messages under 72 characters.
158
+
159
+ ### Atomic Commits
160
+
161
+ Each commit should represent one logical change:
162
+
163
+ - **Do:** One bug fix per commit
164
+ - **Do:** One feature addition per commit
165
+ - **Don't:** Mix refactoring with bug fixes
166
+ - **Don't:** Combine unrelated changes
40
167
 
41
168
  ## Code Style
42
169
 
@@ -0,0 +1,118 @@
1
+ # BMAD Method Guiding Principles
2
+
3
+ The BMAD Method is a natural language framework for AI-assisted software development. These principles ensure contributions maintain the method's effectiveness.
4
+
5
+ ## Core Principles
6
+
7
+ ### 1. Dev Agents Must Be Lean
8
+
9
+ - **Minimize dev agent dependencies**: Development agents that work in IDEs must have minimal context overhead
10
+ - **Save context for code**: Every line counts - dev agents should focus on coding, not documentation
11
+ - **Web agents can be larger**: Planning agents (PRD Writer, Architect) used in web UI can have more complex tasks and dependencies
12
+ - **Small files, loaded on demand**: Multiple small, focused files are better than large files with many branches
13
+
14
+ ### 2. Natural Language First
15
+
16
+ - **Everything is markdown**: Agents, tasks, templates - all written in plain English
17
+ - **No code in core**: The framework itself contains no programming code, only natural language instructions
18
+ - **Self-contained templates**: Templates include their own generation instructions using `[[LLM: ...]]` markup
19
+
20
+ ### 3. Agent and Task Design
21
+
22
+ - **Agents define roles**: Each agent is a persona with specific expertise (e.g., Frontend Developer, API Developer)
23
+ - **Tasks are procedures**: Step-by-step instructions an agent follows to complete work
24
+ - **Templates are outputs**: Structured documents with embedded instructions for generation
25
+ - **Dependencies matter**: Explicitly declare only what's needed
26
+
27
+ ## Practical Guidelines
28
+
29
+ ### When to Add to Core
30
+
31
+ - Universal software development needs only
32
+ - Doesn't bloat dev agent contexts
33
+ - Follows existing agent/task/template patterns
34
+
35
+ ### When to Create Expansion Packs
36
+
37
+ - Domain-specific needs beyond software development
38
+ - Non-technical domains (business, wellness, education, creative)
39
+ - Specialized technical domains (games, infrastructure, mobile)
40
+ - Heavy documentation or knowledge bases
41
+ - Anything that would bloat core agents
42
+
43
+ See [Expansion Packs Guide](../docs/expansion-packs.md) for detailed examples and ideas.
44
+
45
+ ### Agent Design Rules
46
+
47
+ 1. **Web/Planning Agents**: Can have richer context, multiple tasks, extensive templates
48
+ 2. **Dev Agents**: Minimal dependencies, focused on code generation, lean task sets
49
+ 3. **All Agents**: Clear persona, specific expertise, well-defined capabilities
50
+
51
+ ### Task Writing Rules
52
+
53
+ 1. Write clear step-by-step procedures
54
+ 2. Use markdown formatting for readability
55
+ 3. Keep dev agent tasks focused and concise
56
+ 4. Planning tasks can be more elaborate
57
+ 5. **Prefer multiple small tasks over one large branching task**
58
+ - Instead of one task with many conditional paths
59
+ - Create multiple focused tasks the agent can choose from
60
+ - This keeps context overhead minimal
61
+ 6. **Reuse common tasks** - Don't create new document creation tasks
62
+ - Use the existing `create-doc` task
63
+ - Pass the appropriate template with embedded LLM instructions
64
+ - This maintains consistency and reduces duplication
65
+
66
+ ### Template Rules
67
+
68
+ 1. Include generation instructions with `[[LLM: ...]]` markup
69
+ 2. Provide clear structure for output
70
+ 3. Make templates reusable across agents
71
+ 4. Use standardized markup elements:
72
+ - `{{placeholders}}` for variables to be replaced
73
+ - `[[LLM: instructions]]` for AI-only processing (never shown to users)
74
+ - `REPEAT` sections for repeatable content blocks
75
+ - `^^CONDITION^^` blocks for conditional content
76
+ - `@{examples}` for guidance examples (never output to users)
77
+ 5. NEVER display template markup or LLM instructions to users
78
+ 6. Focus on clean output - all processing instructions stay internal
79
+
80
+ ## Examples
81
+
82
+ ### Good Dev Agent
83
+
84
+ ```yaml
85
+ name: API Developer
86
+ role: Creates REST APIs
87
+ dependencies:
88
+ templates:
89
+ - api-endpoint-tmpl
90
+ tasks:
91
+ - implement-endpoint
92
+ ```
93
+
94
+ ### Good Planning Agent (Web)
95
+
96
+ ```yaml
97
+ name: PRD Writer
98
+ role: Creates comprehensive PRDs
99
+ dependencies:
100
+ templates:
101
+ - prd-tmpl
102
+ - epic-tmpl
103
+ - story-tmpl
104
+ tasks:
105
+ - elicit-requirements
106
+ - analyze-market
107
+ - define-features
108
+ data:
109
+ - prd-best-practices
110
+ - market-analysis-guide
111
+ ```
112
+
113
+ ## Remember
114
+
115
+ - The power is in natural language orchestration, not code
116
+ - Dev agents code, planning agents plan
117
+ - Keep dev agents lean for maximum coding efficiency
118
+ - Expansion packs handle specialized domains
package/README.md CHANGED
@@ -241,7 +241,7 @@ tools/
241
241
  โ”œโ”€โ”€ installer/ # NPX installer
242
242
  โ””โ”€โ”€ lib/ # Build utilities
243
243
 
244
- expansion-packs/ # Optional add-ons (DevOps, Mobile, etc.)
244
+ expansion-packs/ # Domain-specific add-ons (Technical & Non-Technical)
245
245
 
246
246
  dist/ # ๐Ÿ“ฆ PRE-BUILT BUNDLES (Ready to use!)
247
247
  โ”œโ”€โ”€ agents/ # Individual agent bundles (.txt files)
@@ -289,12 +289,60 @@ Rich templates for all document types:
289
289
 
290
290
  Ask the agent you are using for help with /help (in the web) or \*help in the ide to see what commands are available!
291
291
 
292
+ ## Expansion Packs - Beyond Software Development
293
+
294
+ BMAD Method's natural language framework isn't limited to software development. Create specialized agents for ANY domain:
295
+
296
+ ### Technical Expansion Packs
297
+
298
+ - ๐ŸŽฎ **Game Development** - Game designers, level creators, narrative writers
299
+ - ๐Ÿ—๏ธ **Infrastructure/DevOps** - Cloud architects, security specialists, SRE agents
300
+ - ๐Ÿ“ฑ **Mobile Development** - iOS/Android specialists, UX designers
301
+ - ๐Ÿ”— **Blockchain/Web3** - Smart contract developers, DeFi architects
302
+
303
+ ### Non-Technical Expansion Packs
304
+
305
+ - ๐Ÿ’ผ **Business Strategy** - Strategic planners, market analysts, business coaches
306
+ - ๐Ÿ’ช **Health & Wellness** - Fitness coaches, nutrition advisors, meditation guides
307
+ - ๐ŸŽจ **Creative Arts** - Story writers, world builders, character developers
308
+ - ๐Ÿ“š **Education** - Curriculum designers, tutors, learning coaches
309
+ - ๐Ÿง  **Personal Development** - Life coaches, goal setters, habit builders
310
+ - ๐Ÿข **Professional Services** - Legal advisors, medical protocols, research assistants
311
+
312
+ ### Creating Your Own Expansion Pack
313
+
314
+ The BMAD framework can support any domain where structured AI assistance is valuable:
315
+
316
+ 1. Define specialized agents with domain expertise
317
+ 2. Create task procedures for common workflows
318
+ 3. Build templates for domain-specific outputs
319
+ 4. Package as an expansion pack for others to use
320
+
321
+ ๐Ÿ“– **[Read the full Expansion Packs Guide](docs/expansion-packs.md)** for detailed examples and inspiration!
322
+
323
+ ๐Ÿ› ๏ธ **[Use the Expansion Pack Creator](expansion-packs/expansion-creator/README.md)** to build your own!
324
+
292
325
  ## Contributing
293
326
 
294
- We welcome contributions!
327
+ **We're excited about contributions and welcome your ideas, improvements, and expansion packs!** ๐ŸŽ‰
328
+
329
+ ### Before Contributing - MUST READ
330
+
331
+ To ensure your contribution aligns with the BMAD Method and gets merged smoothly:
332
+
333
+ 1. ๐Ÿ“‹ **Read [CONTRIBUTING.md](CONTRIBUTING.md)** - Our contribution guidelines, PR requirements, and process
334
+ 2. ๐ŸŽฏ **Read [GUIDING-PRINCIPLES.md](GUIDING-PRINCIPLES.md)** - Core principles that keep BMAD powerful through simplicity
335
+ 3. ๐Ÿ†• **New to GitHub?** Start with our [Pull Request Guide](docs/how-to-contribute-with-pull-requests.md)
336
+
337
+ ### Key Points to Remember
338
+
339
+ - Keep dev agents lean (save context for coding!)
340
+ - Use small, focused files over large branching ones
341
+ - Reuse existing tasks (like `create-doc`) instead of creating duplicates
342
+ - Consider expansion packs for domain-specific features
343
+ - All contributions must follow our natural language, markdown-based approach
295
344
 
296
- - ๐Ÿ†• **New to GitHub?** Start with our [Pull Request Guide](docs/how-to-contribute-with-pull-requests.md)
297
- - See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines
345
+ We're building something amazing together - let's keep it simple, powerful, and focused! ๐Ÿ’ช
298
346
 
299
347
  ### Development Setup
300
348
 
@@ -310,6 +358,7 @@ npm install
310
358
 
311
359
  - ๐Ÿ—๏ธ [Core Architecture](docs/core-architecture.md) - Complete technical architecture and system design
312
360
  - ๐Ÿ“– [User Guide](docs/user-guide.md) - Comprehensive guide to using BMAD-METHOD effectively
361
+ - ๐Ÿš€ [Expansion Packs Guide](docs/expansion-packs.md) - Extend BMAD to any domain beyond software development
313
362
 
314
363
  ### Workflow Guides
315
364
 
@@ -32,6 +32,7 @@ core_principles:
32
32
  - CRITICAL: Dev Record Only - ONLY update story file Dev Agent Record sections (checkboxes/Debug Log/Completion Notes/Change Log)
33
33
  - Strive for Sequential Task Execution - Complete tasks 1-by-1 and mark [x] as completed
34
34
  - Test-Driven Quality - Write tests alongside code. Task incomplete without passing tests
35
+ - Quality Gate Discipline - NEVER complete tasks with failing automated validations
35
36
  - Debug Log Discipline - Log temp changes to md table in devDebugLog. Revert after fix.
36
37
  - Block Only When Critical - HALT for: missing approval/ambiguous reqs/3 failures/missing config
37
38
  - Code Excellence - Clean, secure, maintainable code per loaded standards
@@ -45,15 +46,15 @@ commands: # All commands require * prefix when used (e.g., *help)
45
46
  - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
46
47
 
47
48
  task-execution:
48
- flow: "Read taskโ†’Implementโ†’Write testsโ†’Pass testsโ†’Update [x]โ†’Next task"
49
+ flow: "Read taskโ†’Implementโ†’Write testsโ†’Execute validationsโ†’Only if ALL passโ†’Update [x]โ†’Next task"
49
50
  updates-ONLY:
50
51
  - "Checkboxes: [ ] not started | [-] in progress | [x] complete"
51
52
  - "Debug Log: | Task | File | Change | Reverted? |"
52
53
  - "Completion Notes: Deviations only, <50 words"
53
54
  - "Change Log: Requirement changes only"
54
- blocking: "Unapproved deps | Ambiguous after story check | 3 failures | Missing config"
55
- done: "Code matches reqs + Tests pass + Follows standards + No lint errors"
56
- completion: "All [x]โ†’Lintโ†’Tests(100%)โ†’Integration(if noted)โ†’Coverage(80%+)โ†’E2E(if noted)โ†’DoDโ†’Summaryโ†’HALT"
55
+ blocking: "Unapproved deps | Ambiguous after story check | 3 failures | Missing config | Failing validations"
56
+ done: "Code matches reqs + All validations pass + Follows standards"
57
+ completion: "All [x]โ†’Validations passโ†’Integration(if noted)โ†’E2E(if noted)โ†’DoDโ†’Summaryโ†’HALT"
57
58
 
58
59
  dependencies:
59
60
  tasks:
@@ -0,0 +1,121 @@
1
+ # Expansion Pack Ideas
2
+
3
+ The BMAD Method's natural language framework can be applied to any domain. Here are ideas to inspire your own expansion packs:
4
+
5
+ ## Health & Wellness Pack
6
+
7
+ ### Agents
8
+
9
+ - **Fitness Coach** - Creates personalized workout plans
10
+ - **Nutrition Advisor** - Designs meal plans and tracks nutrition
11
+ - **Meditation Guide** - Leads mindfulness sessions
12
+ - **Sleep Optimizer** - Improves sleep habits
13
+
14
+ ### Tasks
15
+
16
+ - `create-workout-plan` - Generates weekly exercise routines
17
+ - `analyze-nutrition` - Reviews dietary habits
18
+ - `design-meditation` - Creates guided meditation scripts
19
+
20
+ ### Templates
21
+
22
+ - `workout-plan-tmpl` - Structured exercise program
23
+ - `meal-plan-tmpl` - Weekly nutrition guide
24
+ - `wellness-journal-tmpl` - Progress tracking
25
+
26
+ ## Creative Writing Pack
27
+
28
+ ### Agents
29
+
30
+ - **Story Architect** - Plots narratives and story structures
31
+ - **Character Developer** - Creates deep, complex characters
32
+ - **World Builder** - Designs fictional universes
33
+ - **Dialog Master** - Crafts authentic conversations
34
+
35
+ ### Tasks
36
+
37
+ - `develop-plot` - Creates story outlines
38
+ - `build-character` - Develops character profiles
39
+ - `create-world` - Designs settings and cultures
40
+
41
+ ### Templates
42
+
43
+ - `story-outline-tmpl` - Three-act structure
44
+ - `character-sheet-tmpl` - Detailed character profile
45
+ - `world-bible-tmpl` - Universe documentation
46
+
47
+ ## Business Strategy Pack
48
+
49
+ ### Agents
50
+
51
+ - **Strategy Consultant** - Develops business strategies
52
+ - **Market Analyst** - Researches market opportunities
53
+ - **Financial Advisor** - Creates financial projections
54
+ - **Operations Expert** - Optimizes business processes
55
+
56
+ ### Tasks
57
+
58
+ - `swot-analysis` - Conducts SWOT analysis
59
+ - `market-research` - Analyzes market conditions
60
+ - `financial-forecast` - Projects revenue/costs
61
+
62
+ ### Templates
63
+
64
+ - `business-plan-tmpl` - Complete business plan
65
+ - `market-analysis-tmpl` - Market research report
66
+ - `pitch-deck-tmpl` - Investor presentation
67
+
68
+ ## Education Pack
69
+
70
+ ### Agents
71
+
72
+ - **Curriculum Designer** - Creates learning pathways
73
+ - **Lesson Planner** - Develops engaging lessons
74
+ - **Assessment Creator** - Designs fair evaluations
75
+ - **Learning Coach** - Provides personalized guidance
76
+
77
+ ### Tasks
78
+
79
+ - `design-curriculum` - Creates course structure
80
+ - `plan-lesson` - Develops lesson content
81
+ - `create-assessment` - Builds tests/quizzes
82
+
83
+ ### Templates
84
+
85
+ - `course-outline-tmpl` - Semester plan
86
+ - `lesson-plan-tmpl` - Daily lesson structure
87
+ - `rubric-tmpl` - Assessment criteria
88
+
89
+ ## Personal Development Pack
90
+
91
+ ### Agents
92
+
93
+ - **Life Coach** - Guides personal growth
94
+ - **Goal Strategist** - Helps achieve objectives
95
+ - **Habit Builder** - Creates lasting habits
96
+ - **Mindset Mentor** - Develops positive thinking
97
+
98
+ ### Tasks
99
+
100
+ - `goal-setting` - Defines SMART goals
101
+ - `habit-tracking` - Monitors habit formation
102
+ - `reflection-exercise` - Facilitates self-reflection
103
+
104
+ ### Templates
105
+
106
+ - `goal-plan-tmpl` - Goal achievement roadmap
107
+ - `habit-tracker-tmpl` - Daily habit log
108
+ - `journal-prompts-tmpl` - Reflection questions
109
+
110
+ ## Creating Your Own
111
+
112
+ To create an expansion pack:
113
+
114
+ 1. **Identify the domain** - What area of expertise?
115
+ 2. **Define agent roles** - Who are the experts?
116
+ 3. **Create tasks** - What procedures do they follow?
117
+ 4. **Design templates** - What outputs do they produce?
118
+ 5. **Test with users** - Does it provide value?
119
+ 6. **Share with community** - Help others benefit!
120
+
121
+ Remember: The BMAD Method works anywhere natural language instructions can guide AI assistance!
@@ -0,0 +1,265 @@
1
+ # The Power of BMAD Expansion Packs
2
+
3
+ ## Overview
4
+
5
+ BMAD Method's expansion packs unlock the framework's true potential by extending its natural language AI orchestration to ANY domain. While the core framework focuses on software development, expansion packs transform BMAD into a universal AI agent system.
6
+
7
+ ## Why Expansion Packs?
8
+
9
+ ### Keep Core Lean
10
+
11
+ The core BMAD framework maintains its focus on software development, ensuring dev agents have maximum context for coding. Expansion packs handle everything else.
12
+
13
+ ### Domain Expertise
14
+
15
+ Each expansion pack provides deep, specialized knowledge without bloating the core system. Install only what you need.
16
+
17
+ ### Community Innovation
18
+
19
+ Anyone can create and share expansion packs, fostering a ecosystem of AI-powered solutions across all industries and interests.
20
+
21
+ ## Technical Expansion Packs
22
+
23
+ ### Game Development Pack
24
+
25
+ Transform your AI into a complete game development studio:
26
+
27
+ - **Game Designer**: Mechanics, balance, progression systems
28
+ - **Level Designer**: Map layouts, puzzle design, difficulty curves
29
+ - **Narrative Designer**: Story arcs, dialog trees, lore creation
30
+ - **Art Director**: Visual style guides, asset specifications
31
+ - **Sound Designer**: Audio direction, music themes, SFX planning
32
+
33
+ ### Mobile Development Pack
34
+
35
+ Specialized agents for mobile app creation:
36
+
37
+ - **iOS Specialist**: Swift/SwiftUI patterns, Apple guidelines
38
+ - **Android Expert**: Kotlin best practices, Material Design
39
+ - **Mobile UX Designer**: Touch interfaces, gesture patterns
40
+ - **App Store Optimizer**: ASO strategies, listing optimization
41
+ - **Performance Tuner**: Battery optimization, network efficiency
42
+
43
+ ### DevOps/Infrastructure Pack
44
+
45
+ Complete infrastructure automation team:
46
+
47
+ - **Cloud Architect**: AWS/Azure/GCP design patterns
48
+ - **Security Specialist**: Zero-trust implementation, compliance
49
+ - **SRE Expert**: Monitoring, alerting, incident response
50
+ - **Container Orchestrator**: Kubernetes, Docker optimization
51
+ - **Cost Optimizer**: Cloud spend analysis, resource right-sizing
52
+
53
+ ### Data Science Pack
54
+
55
+ AI-powered data analysis team:
56
+
57
+ - **Data Scientist**: Statistical analysis, ML model selection
58
+ - **Data Engineer**: Pipeline design, ETL processes
59
+ - **ML Engineer**: Model deployment, A/B testing
60
+ - **Visualization Expert**: Dashboard design, insight communication
61
+ - **Ethics Advisor**: Bias detection, fairness assessment
62
+
63
+ ## Non-Technical Expansion Packs
64
+
65
+ ### Business Strategy Pack
66
+
67
+ Complete business advisory team:
68
+
69
+ - **Strategy Consultant**: Market positioning, competitive analysis
70
+ - **Financial Analyst**: Projections, unit economics, funding strategies
71
+ - **Operations Manager**: Process optimization, efficiency improvements
72
+ - **Marketing Strategist**: Go-to-market plans, growth hacking
73
+ - **HR Advisor**: Talent strategies, culture building
74
+
75
+ ### Creative Writing Pack
76
+
77
+ Your personal writing team:
78
+
79
+ - **Plot Architect**: Three-act structure, story beats, pacing
80
+ - **Character Psychologist**: Deep motivations, authentic dialog
81
+ - **World Builder**: Consistent universes, cultural systems
82
+ - **Editor**: Style consistency, grammar, flow
83
+ - **Beta Reader**: Feedback simulation, plot hole detection
84
+
85
+ ### Health & Wellness Pack
86
+
87
+ Personal wellness coaching system:
88
+
89
+ - **Fitness Trainer**: Progressive overload, form correction
90
+ - **Nutritionist**: Macro planning, supplement guidance
91
+ - **Sleep Coach**: Circadian optimization, sleep hygiene
92
+ - **Stress Manager**: Coping strategies, work-life balance
93
+ - **Habit Engineer**: Behavior change, accountability systems
94
+
95
+ ### Education Pack
96
+
97
+ Complete learning design system:
98
+
99
+ - **Curriculum Architect**: Learning objectives, scope & sequence
100
+ - **Instructional Designer**: Engagement strategies, multimedia learning
101
+ - **Assessment Specialist**: Rubrics, formative/summative evaluation
102
+ - **Differentiation Expert**: Adaptive learning, special needs
103
+ - **EdTech Integrator**: Tool selection, digital pedagogy
104
+
105
+ ### Mental Health Support Pack
106
+
107
+ Therapeutic support system:
108
+
109
+ - **CBT Guide**: Cognitive restructuring, thought challenging
110
+ - **Mindfulness Teacher**: Meditation scripts, awareness exercises
111
+ - **Journal Therapist**: Reflective prompts, emotional processing
112
+ - **Crisis Support**: Coping strategies, safety planning
113
+ - **Habit Tracker**: Mood monitoring, trigger identification
114
+
115
+ ### Legal Assistant Pack
116
+
117
+ Legal document and research support:
118
+
119
+ - **Contract Analyst**: Term review, risk assessment
120
+ - **Legal Researcher**: Case law, precedent analysis
121
+ - **Document Drafter**: Template customization, clause libraries
122
+ - **Compliance Checker**: Regulatory alignment, audit prep
123
+ - **IP Advisor**: Patent strategies, trademark guidance
124
+
125
+ ### Real Estate Pack
126
+
127
+ Property investment and management:
128
+
129
+ - **Market Analyst**: Comparable analysis, trend prediction
130
+ - **Investment Calculator**: ROI modeling, cash flow analysis
131
+ - **Property Manager**: Tenant screening, maintenance scheduling
132
+ - **Flip Strategist**: Renovation ROI, project planning
133
+ - **Agent Assistant**: Listing optimization, showing prep
134
+
135
+ ## Unique & Innovative Packs
136
+
137
+ ### Role-Playing Game Master Pack
138
+
139
+ AI-powered tabletop RPG assistance:
140
+
141
+ - **World Master**: Dynamic world generation, NPC creation
142
+ - **Combat Referee**: Initiative tracking, rule clarification
143
+ - **Story Weaver**: Plot hooks, side quests, consequences
144
+ - **Character Builder**: Backstory generation, stat optimization
145
+ - **Loot Master**: Treasure generation, magic item creation
146
+
147
+ ### Life Event Planning Pack
148
+
149
+ Major life event coordination:
150
+
151
+ - **Wedding Planner**: Vendor coordination, timeline creation
152
+ - **Event Designer**: Theme development, decoration plans
153
+ - **Budget Manager**: Cost tracking, vendor negotiation
154
+ - **Guest Coordinator**: RSVP tracking, seating arrangements
155
+ - **Timeline Keeper**: Day-of scheduling, contingency planning
156
+
157
+ ### Hobby Mastery Pack
158
+
159
+ Deep dive into specific hobbies:
160
+
161
+ - **Garden Designer**: Plant selection, seasonal planning
162
+ - **Brew Master**: Recipe formulation, process optimization
163
+ - **Maker Assistant**: 3D printing, woodworking, crafts
164
+ - **Collection Curator**: Organization, valuation, trading
165
+ - **Photography Coach**: Composition, lighting, post-processing
166
+
167
+ ### Scientific Research Pack
168
+
169
+ Research acceleration tools:
170
+
171
+ - **Literature Reviewer**: Paper summarization, gap analysis
172
+ - **Hypothesis Generator**: Research question formulation
173
+ - **Methodology Designer**: Experiment planning, control design
174
+ - **Statistical Advisor**: Test selection, power analysis
175
+ - **Grant Writer**: Proposal structure, impact statements
176
+
177
+ ## Creating Your Own Expansion Pack
178
+
179
+ ### Step 1: Define Your Domain
180
+
181
+ What expertise are you capturing? What problems will it solve?
182
+
183
+ ### Step 2: Design Your Agents
184
+
185
+ Each agent should have:
186
+
187
+ - Clear expertise area
188
+ - Specific personality traits
189
+ - Defined capabilities
190
+ - Knowledge boundaries
191
+
192
+ ### Step 3: Create Tasks
193
+
194
+ Tasks should be:
195
+
196
+ - Step-by-step procedures
197
+ - Reusable across scenarios
198
+ - Clear and actionable
199
+ - Domain-specific
200
+
201
+ ### Step 4: Build Templates
202
+
203
+ Templates need:
204
+
205
+ - Structured output format
206
+ - Embedded LLM instructions
207
+ - Placeholders for customization
208
+ - Professional formatting
209
+
210
+ ### Step 5: Test & Iterate
211
+
212
+ - Use with real scenarios
213
+ - Gather user feedback
214
+ - Refine agent responses
215
+ - Improve task clarity
216
+
217
+ ### Step 6: Package & Share
218
+
219
+ - Create clear documentation
220
+ - Include usage examples
221
+ - Add to expansion-packs directory
222
+ - Share with community
223
+
224
+ ## The Future of Expansion Packs
225
+
226
+ ### Marketplace Potential
227
+
228
+ Imagine a future where:
229
+
230
+ - Professional expansion packs are sold
231
+ - Certified packs for regulated industries
232
+ - Community ratings and reviews
233
+ - Automatic updates and improvements
234
+
235
+ ### AI Agent Ecosystems
236
+
237
+ Expansion packs could enable:
238
+
239
+ - Cross-pack agent collaboration
240
+ - Industry-standard agent protocols
241
+ - Interoperable AI workflows
242
+ - Universal agent languages
243
+
244
+ ### Democratizing Expertise
245
+
246
+ Every expansion pack:
247
+
248
+ - Makes expert knowledge accessible
249
+ - Reduces barriers to entry
250
+ - Enables solo entrepreneurs
251
+ - Empowers small teams
252
+
253
+ ## Getting Started
254
+
255
+ 1. **Browse existing packs**: Check `expansion-packs/` directory
256
+ 2. **Install what you need**: Use the installer's expansion pack option
257
+ 3. **Create your own**: Use the expansion-creator pack
258
+ 4. **Share with others**: Submit PRs with new packs
259
+ 5. **Build the future**: Help shape AI-assisted work
260
+
261
+ ## Remember
262
+
263
+ The BMAD Method is more than a development framework - it's a platform for structuring human expertise into AI-accessible formats. Every expansion pack you create makes specialized knowledge more accessible to everyone.
264
+
265
+ **What expertise will you share with the world?**
@@ -4,7 +4,7 @@ This task guides you through creating a new BMAD agent following the standard te
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- - Agent template: `.bmad-core/templates/agent-tmpl.md`
7
+ - Agent template: `../templates/agent-tmpl.md`
8
8
  - Target directory: `.bmad-core/agents/`
9
9
 
10
10
  ## Steps
@@ -18,7 +18,7 @@ Every expansion pack MUST include a custom BMAD orchestrator agent with sophisti
18
18
 
19
19
  1. **Create Planning Document First**: Before any implementation, create a comprehensive plan for user approval
20
20
  2. **Agent Architecture Standards**: Use YAML-in-Markdown structure with activation instructions, personas, and command systems
21
- 3. **Character Consistency**: Every agent must have a persistent persona with name, communication style, and numbered options protocol
21
+ 3. **Character Consistency**: Every agent must have a persistent persona with name, communication style, and numbered options protocol similar to `expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md`
22
22
  4. **Custom Themed Orchestrator**: The orchestrator should embody the domain theme (e.g., Office Manager for medical, Project Lead for tech) for better user experience
23
23
  5. **Core Utilities Required**: ALWAYS include these core files in every expansion pack:
24
24
  - `tasks/create-doc.md` - Document creation from templates
@@ -26,8 +26,8 @@ Every expansion pack MUST include a custom BMAD orchestrator agent with sophisti
26
26
  - `utils/template-format.md` - Template markup conventions
27
27
  - `utils/workflow-management.md` - Workflow orchestration
28
28
  6. **Team and Workflow Requirements**: If pack has >1 agent, MUST include:
29
- - At least one team configuration in `agent-teams/`
30
- - At least one workflow in `workflows/`
29
+ - At least one team configuration in `expansion-packs/{new-expansion}/agent-teams/`
30
+ - At least one workflow in `expansion-packs/{new-expansion}workflows/`
31
31
  7. **Template Sophistication**: Implement LLM instruction embedding with `[[LLM: guidance]]`, conditional content, and variable systems
32
32
  8. **Workflow Orchestration**: Include decision trees, handoff protocols, and validation loops
33
33
  9. **Quality Assurance Integration**: Multi-level checklists with star ratings and ready/not-ready frameworks
@@ -1018,11 +1018,3 @@ Embedded knowledge (automatic):
1018
1018
  - [ ] Template conditional content tested with different scenarios
1019
1019
  - [ ] Workflow decision trees validated with sample use cases
1020
1020
  - [ ] Character interactions tested for consistency and professional authenticity
1021
-
1022
- ```
1023
-
1024
- ```
1025
-
1026
- ```
1027
-
1028
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmad-method",
3
- "version": "4.11.0",
3
+ "version": "4.13.0",
4
4
  "description": "Breakthrough Method of Agile AI-driven Development",
5
5
  "main": "tools/cli.js",
6
6
  "bin": {
@@ -50,7 +50,7 @@ program
50
50
  .option('-t, --team <team>', 'Install specific team with required agents and dependencies')
51
51
  .option('-x, --expansion-only', 'Install only expansion packs (no bmad-core)')
52
52
  .option('-d, --directory <path>', 'Installation directory (default: .bmad-core)')
53
- .option('-i, --ide <ide...>', 'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, roo, other)')
53
+ .option('-i, --ide <ide...>', 'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, roo, cline, other)')
54
54
  .option('-e, --expansion-packs <packs...>', 'Install specific expansion packs (can specify multiple)')
55
55
  .action(async (options) => {
56
56
  try {
@@ -67,7 +67,7 @@ program
67
67
  if (options.agent) installType = 'single-agent';
68
68
  else if (options.team) installType = 'team';
69
69
  else if (options.expansionOnly) installType = 'expansion-only';
70
-
70
+
71
71
  const config = {
72
72
  installType,
73
73
  agent: options.agent,
@@ -164,13 +164,13 @@ async function promptInstallation() {
164
164
  // Check if this is an existing v4 installation
165
165
  const installDir = path.resolve(answers.directory);
166
166
  const state = await installer.detectInstallationState(installDir);
167
-
167
+
168
168
  if (state.type === 'v4_existing') {
169
169
  console.log(chalk.yellow('\n๐Ÿ” Found existing BMAD v4 installation'));
170
170
  console.log(` Directory: ${installDir}`);
171
171
  console.log(` Version: ${state.manifest?.version || 'Unknown'}`);
172
172
  console.log(` Installed: ${state.manifest?.installed_at ? new Date(state.manifest.installed_at).toLocaleDateString() : 'Unknown'}`);
173
-
173
+
174
174
  const { shouldUpdate } = await inquirer.prompt([
175
175
  {
176
176
  type: 'confirm',
@@ -179,7 +179,7 @@ async function promptInstallation() {
179
179
  default: true
180
180
  }
181
181
  ]);
182
-
182
+
183
183
  if (shouldUpdate) {
184
184
  // Skip other prompts and go directly to update
185
185
  answers.installType = 'update';
@@ -256,11 +256,11 @@ async function promptInstallation() {
256
256
  if (installType === 'full' || installType === 'team' || installType === 'expansion-only') {
257
257
  try {
258
258
  const availableExpansionPacks = await installer.getAvailableExpansionPacks();
259
-
259
+
260
260
  if (availableExpansionPacks.length > 0) {
261
261
  let choices;
262
262
  let message;
263
-
263
+
264
264
  if (installType === 'expansion-only') {
265
265
  message = 'Select expansion packs to install (required):'
266
266
  choices = availableExpansionPacks.map(pack => ({
@@ -274,7 +274,7 @@ async function promptInstallation() {
274
274
  value: pack.id
275
275
  }));
276
276
  }
277
-
277
+
278
278
  const { expansionPacks } = await inquirer.prompt([
279
279
  {
280
280
  type: 'checkbox',
@@ -289,7 +289,7 @@ async function promptInstallation() {
289
289
  } : undefined
290
290
  }
291
291
  ]);
292
-
292
+
293
293
  // Use selected expansion packs directly
294
294
  answers.expansionPacks = expansionPacks;
295
295
  } else {
@@ -313,11 +313,12 @@ async function promptInstallation() {
313
313
  { name: 'Cursor', value: 'cursor' },
314
314
  { name: 'Claude Code', value: 'claude-code' },
315
315
  { name: 'Windsurf', value: 'windsurf' },
316
- { name: 'Roo Code', value: 'roo' }
316
+ { name: 'Roo Code', value: 'roo' },
317
+ { name: 'Cline', value: 'cline' }
317
318
  ]
318
319
  }
319
320
  ]);
320
-
321
+
321
322
  // Use selected IDEs directly
322
323
  answers.ides = ides;
323
324
 
@@ -92,10 +92,15 @@ ide-configurations:
92
92
  # 3. The AI will adopt that agent's full personality and capabilities
93
93
  cline:
94
94
  name: Cline
95
- format: unknown
95
+ rule-dir: .clinerules/
96
+ format: multi-file
97
+ command-suffix: .md
96
98
  instructions: |
97
- # Cline configuration coming soon
98
- # Manual setup: Copy IDE agent files to your Cline configuration
99
+ # To use BMAD agents in Cline:
100
+ # 1. Open the Cline chat panel in VS Code
101
+ # 2. Type @agent-name (e.g., "@dev", "@pm", "@architect")
102
+ # 3. The agent will adopt that persona for the conversation
103
+ # 4. Rules are stored in .clinerules/ directory in your project
99
104
  available-agents:
100
105
  - id: analyst
101
106
  name: Business Analyst
@@ -31,6 +31,8 @@ class IdeSetup {
31
31
  return this.setupWindsurf(installDir, selectedAgent);
32
32
  case "roo":
33
33
  return this.setupRoo(installDir, selectedAgent);
34
+ case "cline":
35
+ return this.setupCline(installDir, selectedAgent);
34
36
  default:
35
37
  console.log(chalk.yellow(`\nIDE ${ide} not yet supported`));
36
38
  return false;
@@ -340,6 +342,75 @@ class IdeSetup {
340
342
 
341
343
  return true;
342
344
  }
345
+
346
+ async setupCline(installDir, selectedAgent) {
347
+ const clineRulesDir = path.join(installDir, ".clinerules");
348
+ const agents = selectedAgent ? [selectedAgent] : await this.getAllAgentIds(installDir);
349
+
350
+ await fileManager.ensureDirectory(clineRulesDir);
351
+
352
+ // Define agent order for numeric prefixes
353
+ const agentOrder = {
354
+ 'bmad-master': 1,
355
+ 'bmad-orchestrator': 2,
356
+ 'pm': 3,
357
+ 'analyst': 4,
358
+ 'architect': 5,
359
+ 'po': 6,
360
+ 'sm': 7,
361
+ 'dev': 8,
362
+ 'qa': 9,
363
+ 'ux-expert': 10
364
+ };
365
+
366
+ for (const agentId of agents) {
367
+ // Check if .bmad-core is a subdirectory (full install) or if agents are in root (single agent install)
368
+ let agentPath = path.join(installDir, ".bmad-core", "agents", `${agentId}.md`);
369
+ if (!(await fileManager.pathExists(agentPath))) {
370
+ agentPath = path.join(installDir, "agents", `${agentId}.md`);
371
+ }
372
+
373
+ if (await fileManager.pathExists(agentPath)) {
374
+ const agentContent = await fileManager.readFile(agentPath);
375
+
376
+ // Get numeric prefix for ordering
377
+ const order = agentOrder[agentId] || 99;
378
+ const prefix = order.toString().padStart(2, '0');
379
+ const mdPath = path.join(clineRulesDir, `${prefix}-${agentId}.md`);
380
+
381
+ // Create MD content for Cline (focused on project standards and role)
382
+ let mdContent = `# ${this.getAgentTitle(agentId)} Agent\n\n`;
383
+ mdContent += `This rule defines the ${this.getAgentTitle(agentId)} persona and project standards.\n\n`;
384
+ mdContent += "## Role Definition\n\n";
385
+ mdContent +=
386
+ "When the user types `@" + agentId + "`, adopt this persona and follow these guidelines:\n\n";
387
+ mdContent += "```yml\n";
388
+ // Extract just the YAML content from the agent file
389
+ const yamlMatch = agentContent.match(/```ya?ml\n([\s\S]*?)```/);
390
+ if (yamlMatch) {
391
+ mdContent += yamlMatch[1].trim();
392
+ } else {
393
+ // If no YAML found, include the whole content minus the header
394
+ mdContent += agentContent.replace(/^#.*$/m, "").trim();
395
+ }
396
+ mdContent += "\n```\n\n";
397
+ mdContent += "## Project Standards\n\n";
398
+ mdContent += `- Always maintain consistency with project documentation in .bmad-core/\n`;
399
+ mdContent += `- Follow the agent's specific guidelines and constraints\n`;
400
+ mdContent += `- Update relevant project files when making changes\n`;
401
+ mdContent += `- Reference the complete agent definition in [.bmad-core/agents/${agentId}.md](.bmad-core/agents/${agentId}.md)\n\n`;
402
+ mdContent += "## Usage\n\n";
403
+ mdContent += `Type \`@${agentId}\` to activate this ${this.getAgentTitle(agentId)} persona.\n`;
404
+
405
+ await fileManager.writeFile(mdPath, mdContent);
406
+ console.log(chalk.green(`โœ“ Created rule: ${prefix}-${agentId}.md`));
407
+ }
408
+ }
409
+
410
+ console.log(chalk.green(`\nโœ“ Created Cline rules in ${clineRulesDir}`));
411
+
412
+ return true;
413
+ }
343
414
  }
344
415
 
345
416
  module.exports = new IdeSetup();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmad-method",
3
- "version": "4.11.0",
3
+ "version": "4.13.0",
4
4
  "description": "BMAD Method installer - AI-powered Agile development framework",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {
@@ -561,6 +561,7 @@ class V3ToV4Upgrader {
561
561
  "claude-code": "Commands created in .claude/commands/",
562
562
  windsurf: "Rules created in .windsurf/rules/",
563
563
  roo: "Custom modes created in .roomodes",
564
+ cline: "Rules created in .clinerules/",
564
565
  };
565
566
 
566
567
  // Setup each selected IDE