bmad-method 4.2.0 → 4.4.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 (90) hide show
  1. package/.bmad-core/agents/analyst.md +14 -20
  2. package/.bmad-core/agents/architect.md +15 -20
  3. package/.bmad-core/agents/bmad-master.md +18 -26
  4. package/.bmad-core/agents/bmad-orchestrator.md +16 -28
  5. package/.bmad-core/agents/dev.md +5 -4
  6. package/.bmad-core/agents/pm.md +11 -16
  7. package/.bmad-core/agents/sm.md +20 -25
  8. package/.bmad-core/bmad-core-config.yml +60 -0
  9. package/.bmad-core/data/bmad-kb.md +12 -1
  10. package/.bmad-core/tasks/doc-migration-task.md +91 -146
  11. package/.bmad-core/tasks/document-project.md +389 -0
  12. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +41 -48
  13. package/.bmad-core/tasks/index-docs.md +8 -3
  14. package/.bmad-core/templates/architecture-tmpl.md +15 -12
  15. package/.bmad-core/templates/fullstack-architecture-tmpl.md +85 -103
  16. package/.bmad-core/templates/prd-tmpl.md +1 -1
  17. package/.bmad-core/templates/simple-project-prd-tmpl.md +461 -0
  18. package/.bmad-core/templates/story-tmpl.md +2 -2
  19. package/.bmad-core/utils/workflow-management.md +14 -15
  20. package/.bmad-core/web-bundles/agents/analyst.txt +26 -21
  21. package/.bmad-core/web-bundles/agents/architect.txt +605 -233
  22. package/.bmad-core/web-bundles/agents/bmad-master.txt +457 -1039
  23. package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +36 -903
  24. package/.bmad-core/web-bundles/agents/dev.txt +5 -4
  25. package/.bmad-core/web-bundles/agents/pm.txt +476 -17
  26. package/.bmad-core/web-bundles/agents/po.txt +2 -2
  27. package/.bmad-core/web-bundles/agents/sm.txt +22 -27
  28. package/.bmad-core/web-bundles/agents/ux-expert.txt +41 -48
  29. package/.bmad-core/web-bundles/teams/team-all.txt +4394 -4447
  30. package/.bmad-core/web-bundles/teams/team-fullstack.txt +2760 -2809
  31. package/.bmad-core/web-bundles/teams/team-no-ui.txt +2718 -2760
  32. package/.bmad-core/workflows/greenfield-fullstack.yml +3 -3
  33. package/.claude/commands/analyst.md +14 -20
  34. package/.claude/commands/architect.md +15 -20
  35. package/.claude/commands/bmad-master.md +18 -26
  36. package/.claude/commands/bmad-orchestrator.md +16 -28
  37. package/.claude/commands/dev.md +5 -4
  38. package/.claude/commands/pm.md +11 -16
  39. package/.claude/commands/sm.md +20 -25
  40. package/.cursor/rules/analyst.mdc +13 -19
  41. package/.cursor/rules/architect.mdc +14 -19
  42. package/.cursor/rules/bmad-master.mdc +18 -26
  43. package/.cursor/rules/bmad-orchestrator.mdc +15 -27
  44. package/.cursor/rules/dev.mdc +5 -4
  45. package/.cursor/rules/pm.mdc +11 -16
  46. package/.cursor/rules/sm.mdc +19 -24
  47. package/.releaserc.json +2 -1
  48. package/.vscode/settings.json +4 -0
  49. package/.windsurf/rules/analyst.md +13 -19
  50. package/.windsurf/rules/architect.md +14 -19
  51. package/.windsurf/rules/bmad-master.md +18 -26
  52. package/.windsurf/rules/bmad-orchestrator.md +15 -27
  53. package/.windsurf/rules/dev.md +5 -4
  54. package/.windsurf/rules/pm.md +11 -16
  55. package/.windsurf/rules/sm.md +19 -24
  56. package/CHANGELOG.md +120 -2
  57. package/CONTRIBUTING.md +2 -0
  58. package/README.md +20 -2
  59. package/{.bmad-core → creator-tools}/tasks/create-agent.md +10 -12
  60. package/{.bmad-core/tasks/create-expansion-pack.md → creator-tools/tasks/generate-expansion-pack.md} +8 -6
  61. package/docs/bmad-workflow-guide.md +161 -0
  62. package/docs/claude-code-guide.md +119 -0
  63. package/docs/core-architecture.md +213 -0
  64. package/docs/cursor-guide.md +127 -0
  65. package/docs/how-to-contribute-with-pull-requests.md +141 -0
  66. package/docs/roo-code-guide.md +140 -0
  67. package/docs/user-guide.md +1044 -0
  68. package/docs/versioning-and-releases.md +4 -4
  69. package/docs/windsurf-guide.md +127 -0
  70. package/expansion-packs/README.md +1 -111
  71. package/expansion-packs/infrastructure-devops/agents/infra-devops-platform.md +3 -3
  72. package/expansion-packs/infrastructure-devops/tasks/create-doc.md +74 -0
  73. package/package.json +19 -13
  74. package/tools/builders/web-builder.js +16 -15
  75. package/tools/installer/README.md +2 -2
  76. package/tools/installer/bin/bmad.js +50 -29
  77. package/tools/installer/lib/file-manager.js +20 -3
  78. package/tools/installer/lib/ide-setup.js +11 -1
  79. package/tools/installer/lib/installer.js +149 -29
  80. package/tools/installer/package-lock.json +537 -335
  81. package/tools/installer/package.json +7 -7
  82. package/tools/lib/dependency-resolver.js +1 -1
  83. package/tools/semantic-release-sync-installer.js +31 -0
  84. package/tools/sync-installer-version.js +34 -0
  85. package/tools/upgraders/v3-to-v4-upgrader.js +18 -13
  86. package/tools/version-bump.js +33 -26
  87. package/tools/yaml-format.js +54 -25
  88. package/.bmad-core/schemas/agent-team-schema.yml +0 -153
  89. package/.bmad-core/tasks/create-team.md +0 -229
  90. package/.claude/settings.local.json +0 -22
@@ -0,0 +1,161 @@
1
+ # BMAD Method Universal Workflow Guide
2
+
3
+ This guide outlines the core BMAD workflow that applies regardless of which AI-powered IDE you're using.
4
+
5
+ ## Overview
6
+
7
+ The BMAD Method follows a structured approach to AI-assisted software development:
8
+
9
+ 1. **Install BMAD** in your project
10
+ 2. **Plan with Gemini** using team-fullstack
11
+ 3. **Organize with bmad-master** (document sharding)
12
+ 4. **Develop iteratively** with SM → Dev cycles
13
+
14
+ ## The Complete Workflow
15
+
16
+ ### Phase 1: Project Setup
17
+
18
+ 1. **Install BMAD in your project**:
19
+
20
+ ```bash
21
+ npx bmad-method install
22
+ ```
23
+
24
+ - Choose "Complete installation"
25
+ - Select your IDE (Cursor, Claude Code, Windsurf, or Roo Code)
26
+
27
+ 2. **Verify installation**:
28
+ - `.bmad-core/` folder created with all agents
29
+ - IDE-specific integration files created
30
+ - All agent commands/rules/modes available
31
+
32
+ ### Phase 2: Ideation & Planning (Gemini)
33
+
34
+ Use Google's Gemini for collaborative planning with the full team:
35
+
36
+ 1. **Open [Google AI Studio](https://aistudio.google.com/)**
37
+ 2. **Load team-fullstack**:
38
+ - Copy contents of: `/Users/brianmadison/dev/BMAD-METHOD/.bmad-core/web-bundles/teams/team-fullstack.txt`
39
+ - Paste into new Gemini chat
40
+ 3. **Collaborate with the team**:
41
+ - Business Analyst: Requirements gathering
42
+ - Product Manager: Feature prioritization
43
+ - Solution Architect: Technical design
44
+ - UX Expert: User experience design
45
+
46
+ ### Example Gemini Sessions:
47
+
48
+ ```text
49
+ "I want to build a [type] application that [core purpose].
50
+ Help me brainstorm features and create a comprehensive PRD."
51
+
52
+ "Based on this PRD, design a scalable technical architecture
53
+ that can handle [specific requirements]."
54
+ ```
55
+
56
+ 4. **Export planning documents**:
57
+ - Save PRD as `docs/prd.md`
58
+ - Save architecture as `docs/architecture.md`
59
+
60
+ ### Phase 3: Document Organization (IDE)
61
+
62
+ Switch back to your IDE for document management:
63
+
64
+ 1. **Load bmad-master agent** (syntax varies by IDE)
65
+ 2. **Shard the PRD**:
66
+ ```
67
+ *shard-doc docs/prd.md prd
68
+ ```
69
+ 3. **Shard the architecture**:
70
+ ```
71
+ *shard-doc docs/architecture.md architecture
72
+ ```
73
+
74
+ **Result**: Organized folder structure:
75
+
76
+ - `docs/prd/` - Broken down PRD sections
77
+ - `docs/architecture/` - Broken down architecture sections
78
+
79
+ ### Phase 4: Iterative Development
80
+
81
+ Follow the SM → Dev cycle for systematic story development:
82
+
83
+ #### Story Creation (Scrum Master)
84
+
85
+ 1. **Start new chat/conversation**
86
+ 2. **Load SM agent**
87
+ 3. **Execute**: `*create` (runs create-next-story task)
88
+ 4. **Review generated story** in `docs/stories/`
89
+ 5. **Update status**: Change from "Draft" to "Approved"
90
+
91
+ #### Story Implementation (Developer)
92
+
93
+ 1. **Start new chat/conversation**
94
+ 2. **Load Dev agent**
95
+ 3. **Agent asks**: Which story to implement
96
+ 4. **Follow development tasks**
97
+ 5. **Complete implementation**
98
+ 6. **Update status**: Change to "Done"
99
+
100
+ #### Repeat Until Complete
101
+
102
+ - **SM**: Create next story → Review → Approve
103
+ - **Dev**: Implement story → Complete → Mark done
104
+ - **Continue**: Until all features implemented
105
+
106
+ ## IDE-Specific Syntax
107
+
108
+ ### Agent Loading Syntax by IDE:
109
+
110
+ - **Claude Code**: `/agent-name` (e.g., `/bmad-master`)
111
+ - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
112
+ - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
113
+ - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
114
+
115
+ ### Chat Management:
116
+
117
+ - **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
118
+ - **Roo Code**: Switch modes within the same conversation
119
+
120
+ ## Available Agents
121
+
122
+ ### Core Development Agents:
123
+
124
+ - **bmad-master**: Universal task executor, document management
125
+ - **sm**: Scrum Master for story creation and agile process
126
+ - **dev**: Full-stack developer for implementation
127
+ - **architect**: Solution architect for technical design
128
+
129
+ ### Specialized Agents:
130
+
131
+ - **pm**: Product manager for planning and prioritization
132
+ - **analyst**: Business analyst for requirements
133
+ - **qa**: QA specialist for testing strategies
134
+ - **po**: Product owner for backlog management
135
+ - **ux-expert**: UX specialist for design
136
+
137
+ ## Key Principles
138
+
139
+ 1. **Agent Specialization**: Each agent has specific expertise and responsibilities
140
+ 2. **Clean Handoffs**: Always start fresh when switching between agents
141
+ 3. **Status Tracking**: Maintain story statuses (Draft → Approved → InProgress → Done)
142
+ 4. **Iterative Development**: Complete one story before starting the next
143
+ 5. **Documentation First**: Always start with solid PRD and architecture
144
+
145
+ ## Common Commands
146
+
147
+ Every agent supports these core commands:
148
+
149
+ - `*help` - Show available commands
150
+ - `*status` - Show current context/progress
151
+ - `*exit` - Exit the agent mode
152
+
153
+ ## Success Tips
154
+
155
+ - **Use Gemini for big picture planning** - The team-fullstack bundle provides collaborative expertise
156
+ - **Use bmad-master for document organization** - Sharding creates manageable chunks
157
+ - **Follow the SM → Dev cycle religiously** - This ensures systematic progress
158
+ - **Keep conversations focused** - One agent, one task per conversation
159
+ - **Review everything** - Always review and approve before marking complete
160
+
161
+ This workflow ensures systematic, AI-assisted development following agile principles with clear separation of concerns and consistent progress tracking.
@@ -0,0 +1,119 @@
1
+ # BMAD Method Guide for Claude Code
2
+
3
+ This guide walks you through the complete BMAD workflow using Claude Code as your AI-powered IDE.
4
+
5
+ ## Step 1: Install BMAD in Your Project
6
+
7
+ 1. Navigate to your project directory
8
+ 2. Run the BMAD installer:
9
+ ```bash
10
+ npx bmad-method install
11
+ ```
12
+ 3. When prompted:
13
+ - **Installation Type**: Choose "Complete installation (recommended)"
14
+ - **IDE**: Select "Claude Code"
15
+
16
+ This creates a `.bmad-core` folder with all agents and a `.claude/commands` folder with agent commands.
17
+
18
+ ## Step 2: Set Up Team Fullstack in Gemini
19
+
20
+ For ideation and planning, use Google's Gemini with the team-fullstack configuration:
21
+
22
+ 1. Open [Google AI Studio (Gemini)](https://aistudio.google.com/)
23
+ 2. Create a new chat
24
+ 3. Copy the contents of `/Users/brianmadison/dev/BMAD-METHOD/.bmad-core/web-bundles/teams/team-fullstack.txt`
25
+ 4. Paste this content into Gemini to set up the team
26
+
27
+ ### Gemini Planning Phase
28
+
29
+ In Gemini, ask the BMAD team to help you:
30
+
31
+ - **Ideate** your project concept
32
+ - **Brainstorm** features and requirements
33
+ - **Create a PRD** (Product Requirements Document)
34
+ - **Design the architecture**
35
+
36
+ Ask questions like:
37
+
38
+ - "Help me brainstorm a [type of application] that does [core functionality]"
39
+ - "Create a comprehensive PRD for this concept"
40
+ - "Design the technical architecture for this system"
41
+
42
+ Copy the PRD and architecture documents that Gemini creates into your project's `docs/` folder:
43
+
44
+ - `docs/prd.md`
45
+ - `docs/architecture.md`
46
+
47
+ ## Step 3: Back to Claude Code - Document Sharding
48
+
49
+ Once you have your PRD and architecture documents in the `docs/` folder:
50
+
51
+ 1. **Start a new chat in Claude Code**
52
+ 2. **Load the bmad-master agent**: Type `/bmad-master`
53
+ 3. **Shard the PRD**: Type `*shard-doc docs/prd.md prd`
54
+ 4. **Shard the architecture**: Type `*shard-doc docs/architecture.md architecture`
55
+
56
+ This creates organized folders:
57
+
58
+ - `docs/prd/` - Contains broken down PRD sections
59
+ - `docs/architecture/` - Contains broken down architecture sections
60
+
61
+ ## Step 4: Story Development Cycle
62
+
63
+ Now begin the iterative development cycle:
64
+
65
+ ### Create Stories (Scrum Master)
66
+
67
+ 1. **Start a new chat**
68
+ 2. **Load SM agent**: Type `/sm`
69
+ 3. **Create story**: Type `*create` (this runs the create-next-story task)
70
+ 4. **Review the generated story**
71
+ 5. **If approved**: Set story status to "Approved" in the story file
72
+
73
+ ### Implement Stories (Developer)
74
+
75
+ 1. **Start a new chat**
76
+ 2. **Load Dev agent**: Type `/dev`
77
+ 3. **The agent will ask which story to implement**
78
+ 4. **Follow the development tasks** the agent provides
79
+ 5. **When story is complete**: Mark status as "Done"
80
+
81
+ ### Repeat the Cycle
82
+
83
+ 1. **Start a new chat with SM agent** (`/sm`)
84
+ 2. **Create next story**: Type `*create`
85
+ 3. **Review and approve**
86
+ 4. **Start new chat with Dev agent** (`/dev`)
87
+ 5. **Implement the story**
88
+ 6. **Repeat until project complete**
89
+
90
+ ## Available Commands in Claude Code
91
+
92
+ All BMAD agents are available as Claude Code commands:
93
+
94
+ - `/bmad-master` - Universal task executor
95
+ - `/sm` - Scrum Master for story creation
96
+ - `/dev` - Full-stack developer for implementation
97
+ - `/architect` - Solution architect for design
98
+ - `/pm` - Product manager for planning
99
+ - `/analyst` - Business analyst for requirements
100
+ - `/qa` - QA specialist for testing
101
+ - `/po` - Product owner for prioritization
102
+ - `/ux-expert` - UX specialist for design
103
+
104
+ ## Key Workflow Principles
105
+
106
+ 1. **Always start new chats** when switching agents to avoid context confusion
107
+ 2. **Use Gemini for initial planning** and ideation with the team-fullstack bundle
108
+ 3. **Use bmad-master for document management** (sharding, templates, etc.)
109
+ 4. **Follow the SM → Dev cycle** for consistent story development
110
+ 5. **Review and approve stories** before implementation begins
111
+
112
+ ## Tips for Success
113
+
114
+ - **Keep chats focused**: Each chat should have one agent and one primary task
115
+ - **Use \*help command**: Every agent supports `*help` to see available commands
116
+ - **Review generated content**: Always review and approve stories before marking them ready
117
+ - **Maintain status updates**: Keep story statuses current (Draft → Approved → InProgress → Done)
118
+
119
+ This workflow ensures systematic, AI-assisted development following agile principles with clear handoffs between planning, story creation, and implementation phases.
@@ -0,0 +1,213 @@
1
+ # BMAD Method: Core Architecture
2
+
3
+ This document serves as the definitive source of truth for the BMAD-Method's architecture. It is designed to be understood by both human developers and the AI agents that operate within the framework.
4
+
5
+ ## 1. Overview
6
+
7
+ The BMAD-Method is an AI-Powered Agile Development Framework designed to transform software development by providing specialized AI agents for every role in a complete Agile team. The core purpose of the project is to provide a structured yet flexible set of prompts, templates, and workflows that users can employ to guide AI agents (like Gemini, Claude, or ChatGPT) to perform complex software development tasks in a predictable, high-quality manner.
8
+
9
+ The system facilitates a full development lifecycle:
10
+
11
+ 1. **Ideation & Planning**: Brainstorming, market research, and creating project briefs.
12
+ 2. **Architecture & Design**: Defining system architecture and UI/UX specifications.
13
+ 3. **Development Execution**: A cyclical workflow where a Scrum Master (SM) agent drafts stories and a Developer (Dev) agent implements them one at a time. This process works for both new (Greenfield) and existing (Brownfield) projects.
14
+
15
+ ## 2. System Architecture Diagram
16
+
17
+ The entire BMAD-Method ecosystem is designed around the `.bmad-core` directory, which acts as the brain of the operation. The `tools` directory provides the means to process and package this brain for different environments.
18
+
19
+ ````mermaid
20
+ graph TD
21
+ subgraph BMAD Method Project
22
+ subgraph Core Framework
23
+ A["bmad-core"]
24
+ A --> B["agents"]
25
+ A --> C["agent-teams"]
26
+ A --> D["workflows"]
27
+ A --> E["templates"]
28
+ A --> F["tasks"]
29
+ A --> G["checklists"]
30
+ A --> H["data (KB)"]
31
+ end
32
+
33
+ subgraph Tooling
34
+ I["tools/builders/web-builder.js"]
35
+ end
36
+
37
+ subgraph Outputs
38
+ J[".bmad-core/web-bundles"]
39
+ end
40
+
41
+ B -- defines dependencies for --> E
42
+ B -- defines dependencies for --> F
43
+ B -- defines dependencies for --> G
44
+ B -- defines dependencies for --> H
45
+
46
+ C -- bundles --> B
47
+ I -- reads from --> A
48
+ I -- creates --> J
49
+ end
50
+
51
+ subgraph Target Environments
52
+ K["IDE (Cursor, VS Code, etc.)"]
53
+ L["Web UI (Gemini, ChatGPT)"]
54
+ end
55
+
56
+ B --> K
57
+ J --> L
58
+
59
+ style A fill:#1a73e8,color:#fff
60
+ style I fill:#f9ab00,color:#fff
61
+ style J fill:#34a853,color:#fff
62
+ ```text
63
+
64
+ ## 3. Core Components
65
+
66
+ The `.bmad-core` directory contains all the definitions and resources that give the agents their capabilities.
67
+
68
+ ### 3.1. Agents (`.bmad-core/agents/`)
69
+
70
+ - **Purpose**: These are the foundational building blocks of the system. Each markdown file (e.g., `bmad-master.md`, `pm.md`, `dev.md`) defines the persona, capabilities, and dependencies of a single AI agent.
71
+ - **Structure**: An agent file contains a YAML header that specifies its role, persona, dependencies, and startup instructions. These dependencies are lists of tasks, templates, checklists, and data files that the agent is allowed to use.
72
+ - **Startup Instructions**: Agents can include startup sequences that load project-specific documentation from the `docs/` folder, such as coding standards, API specifications, or project structure documents. This provides immediate project context upon activation.
73
+ - **Document Integration**: Agents can reference and load documents from the project's `docs/` folder as part of tasks, workflows, or startup sequences. Users can also drag documents directly into chat interfaces to provide additional context.
74
+ - **Example**: The `bmad-master` agent lists its dependencies, which tells the build tool which files to include in a web bundle and informs the agent of its own capabilities.
75
+
76
+ ### 3.2. Agent Teams (`.bmad-core/agent-teams/`)
77
+
78
+ - **Purpose**: Team files (e.g., `team-all.yml`) define collections of agents and workflows that are bundled together for a specific purpose, like "full-stack development" or "backend-only". This creates a larger, pre-packaged context for web UI environments.
79
+ - **Structure**: A team file lists the agents to include. It can use wildcards, such as `"*"` to include all agents. This allows for the creation of comprehensive bundles like `team-all`.
80
+
81
+ ### 3.3. Workflows (`.bmad-core/workflows/`)
82
+
83
+ - **Purpose**: Workflows are YAML files (e.g., `greenfield-fullstack.yml`) that define a prescribed sequence of steps and agent interactions for a specific project type. They act as a strategic guide for the user and the `bmad-orchestrator` agent.
84
+ - **Structure**: A workflow defines sequences for both complex and simple projects, lists the agents involved at each step, the artifacts they create, and the conditions for moving from one step to the next. It often includes a Mermaid diagram for visualization.
85
+
86
+ ### 3.4. Reusable Resources (`templates`, `tasks`, `checklists`, `data`)
87
+
88
+ - **Purpose**: These folders house the modular components that are dynamically loaded by agents based on their dependencies.
89
+ - **`templates/`**: Contains markdown templates for common documents like PRDs, architecture specifications, and user stories.
90
+ - **`tasks/`**: Defines the instructions for carrying out specific, repeatable actions like "shard-doc" or "create-next-story".
91
+ - **`checklists/`**: Provides quality assurance checklists for agents like the Product Owner (`po`) or Architect.
92
+ - **`data/`**: Contains the core knowledge base (`bmad-kb.md`), technical preferences (`technical-preferences.md`), and other key data files.
93
+
94
+ #### 3.4.1. Template Processing System
95
+
96
+ A key architectural principle of BMAD is that templates are self-contained and interactive - they embed both the desired document output and the LLM instructions needed to work with users. This means that in many cases, no separate task is needed for document creation, as the template itself contains all the processing logic.
97
+
98
+ The BMAD framework employs a sophisticated template processing system orchestrated by three key components:
99
+
100
+ - **`template-format.md`** (`.bmad-core/utils/`): Defines the foundational markup language used throughout all BMAD templates. This specification establishes syntax rules for variable substitution (`{{placeholders}}`), AI-only processing directives (`[[LLM: instructions]]`), and conditional logic blocks. Templates follow this format to ensure consistent processing across the system.
101
+
102
+ - **`create-doc.md`** (`.bmad-core/tasks/`): Acts as the orchestration engine that manages the entire document generation workflow. This task coordinates template selection, manages user interaction modes (incremental vs. rapid generation), enforces template-format processing rules, and handles validation. It serves as the primary interface between users and the template system.
103
+
104
+ - **`advanced-elicitation.md`** (`.bmad-core/tasks/`): Provides an interactive refinement layer that can be embedded within templates through `[[LLM: instructions]]` blocks. This component offers 10 structured brainstorming actions, section-by-section review capabilities, and iterative improvement workflows to enhance content quality.
105
+
106
+ The system maintains a clean separation of concerns: template markup is processed internally by AI agents but never exposed to users, while providing sophisticated AI processing capabilities through embedded intelligence within the templates themselves.
107
+
108
+ #### 3.4.2. Technical Preferences System
109
+
110
+ BMAD includes a personalization layer through the `technical-preferences.md` file in `.bmad-core/data/`. This file serves as a persistent technical profile that influences agent behavior across all projects.
111
+
112
+ **Purpose and Benefits:**
113
+ - **Consistency**: Ensures all agents reference the same technical preferences
114
+ - **Efficiency**: Eliminates the need to repeatedly specify preferred technologies
115
+ - **Personalization**: Agents provide recommendations aligned with user preferences
116
+ - **Learning**: Captures lessons learned and preferences that evolve over time
117
+
118
+ **Content Structure:**
119
+ The file typically includes preferred technology stacks, design patterns, external services, coding standards, and anti-patterns to avoid. Agents automatically reference this file during planning and development to provide contextually appropriate suggestions.
120
+
121
+ **Integration Points:**
122
+ - Templates can reference technical preferences during document generation
123
+ - Agents suggest preferred technologies when appropriate for project requirements
124
+ - When preferences don't fit project needs, agents explain alternatives
125
+ - Web bundles can include preferences content for consistent behavior across platforms
126
+
127
+ **Evolution Over Time:**
128
+ Users are encouraged to continuously update this file with discoveries from projects, adding both positive preferences and technologies to avoid, creating a personalized knowledge base that improves agent recommendations over time.
129
+
130
+ ## 4. The Build & Delivery Process
131
+
132
+ The framework is designed for two primary environments: local IDEs and web-based AI chat interfaces. The `web-builder.js` script is the key to supporting the latter.
133
+
134
+ ### 4.1. Web Builder (`tools/builders/web-builder.js`)
135
+
136
+ - **Purpose**: This Node.js script is responsible for creating the `.txt` bundles found in `.bmad-core/web-bundles/`.
137
+ - **Process**:
138
+ 1. **Resolves Dependencies**: For a given agent or team, the script reads its definition file.
139
+ 2. It recursively finds all dependent resources (tasks, templates, etc.) that the agent/team needs.
140
+ 3. **Bundles Content**: It reads the content of all these files and concatenates them into a single, large text file, with clear separators indicating the original file path of each section.
141
+ 4. **Outputs Bundle**: The final `.txt` file is saved in the `web-bundles` directory, ready to be uploaded to a web UI.
142
+
143
+ ### 4.2. Environment-Specific Usage
144
+
145
+ - **For IDEs**: Users interact with the agents directly via their markdown files in `.bmad-core/agents/`. The IDE integration (for Cursor, Claude Code, etc.) knows how to call these agents.
146
+ - **For Web UIs**: Users upload a pre-built bundle from `.bmad-core/web-bundles/`. This single file provides the AI with the context of the entire team and all their required tools and knowledge.
147
+
148
+ ## 5. BMAD Workflows
149
+
150
+ ### 5.1. The Planning Workflow
151
+
152
+ Before development begins, BMAD follows a structured planning workflow that establishes the foundation for successful project execution:
153
+
154
+ ```mermaid
155
+ graph TD
156
+ A["Start: Project Idea"] --> B{"Optional: Analyst Brainstorming"}
157
+ B -->|Yes| C["Analyst: Market Research & Analysis"]
158
+ B -->|No| D["Create Project Brief"]
159
+ C --> D["Analyst: Create Project Brief"]
160
+ D --> E["PM: Create PRD from Brief"]
161
+ E --> F["Architect: Create Architecture from PRD"]
162
+ F --> G["PO: Run Master Checklist"]
163
+ G --> H{"Documents Aligned?"}
164
+ H -->|Yes| I["Planning Complete"]
165
+ H -->|No| J["PO: Update Epics & Stories"]
166
+ J --> K["Update PRD/Architecture as needed"]
167
+ K --> G
168
+ I --> L["📁 Switch to IDE"]
169
+ L --> M["PO: Shard Documents"]
170
+ M --> N["Ready for SM/Dev Cycle"]
171
+
172
+ style I fill:#34a853,color:#fff
173
+ style G fill:#f9ab00,color:#fff
174
+ style L fill:#1a73e8,color:#fff
175
+ style N fill:#34a853,color:#fff
176
+ ````
177
+
178
+ **Key Planning Phases:**
179
+
180
+ 1. **Optional Analysis**: Analyst conducts market research and competitive analysis
181
+ 2. **Project Brief**: Foundation document created by Analyst or user
182
+ 3. **PRD Creation**: PM transforms brief into comprehensive product requirements
183
+ 4. **Architecture Design**: Architect creates technical foundation based on PRD
184
+ 5. **Validation & Alignment**: PO ensures all documents are consistent and complete
185
+ 6. **Refinement**: Updates to epics, stories, and documents as needed
186
+ 7. **Environment Transition**: Critical switch from web UI to IDE for development workflow
187
+ 8. **Document Preparation**: PO shards large documents for development consumption
188
+
189
+ **Workflow Orchestration**: The `bmad-orchestrator` agent uses these workflow definitions to guide users through the complete process, ensuring proper transitions between planning (web UI) and development (IDE) phases.
190
+
191
+ ### 5.2. The Core Development Cycle
192
+
193
+ Once the initial planning and architecture phases are complete, the project moves into a cyclical development workflow, as detailed in the `bmad-kb.md`. This ensures a steady, sequential, and quality-controlled implementation process.
194
+
195
+ ```mermaid
196
+ graph TD
197
+ A["Start: Planning Artifacts Complete"] --> B["PO: Shard Epics"]
198
+ B --> C["PO: Shard Arch"]
199
+ C --> D["Development Phase"]
200
+ D --> E["Scrum Master: Drafts next story from sharded epic"]
201
+ E --> F{"User Approval"}
202
+ F -->|Approved| G["Dev: Implement Story"]
203
+ F -->|Needs Changes| E
204
+ G --> H["Dev: Complete story Tasks"]
205
+ H --> I{"User Verification"}
206
+ I -->|Verified Complete| J["Mark Story as Done"]
207
+ I -->|Needs Fixes| G
208
+ J --> E
209
+
210
+ style J fill:#34a853,color:#fff
211
+ ```
212
+
213
+ This cycle continues, with the Scrum Master and Developer agents working in tandem, until all stories in the epic are completed.
@@ -0,0 +1,127 @@
1
+ # BMAD Method Guide for Cursor
2
+
3
+ This guide walks you through the complete BMAD workflow using Cursor as your AI-powered IDE.
4
+
5
+ ## Step 1: Install BMAD in Your Project
6
+
7
+ 1. Navigate to your project directory
8
+ 2. Run the BMAD installer:
9
+ ```bash
10
+ npx bmad-method install
11
+ ```
12
+ 3. When prompted:
13
+ - **Installation Type**: Choose "Complete installation (recommended)"
14
+ - **IDE**: Select "Cursor"
15
+
16
+ This creates a `.bmad-core` folder with all agents and a `.cursor/rules` folder with agent rules.
17
+
18
+ ## Step 2: Set Up Team Fullstack in Gemini
19
+
20
+ For ideation and planning, use Google's Gemini with the team-fullstack configuration:
21
+
22
+ 1. Open [Google AI Studio (Gemini)](https://aistudio.google.com/)
23
+ 2. Create a new chat
24
+ 3. Copy the contents of `/Users/brianmadison/dev/BMAD-METHOD/.bmad-core/web-bundles/teams/team-fullstack.txt`
25
+ 4. Paste this content into Gemini to set up the team
26
+
27
+ ### Gemini Planning Phase
28
+
29
+ In Gemini, ask the BMAD team to help you:
30
+
31
+ - **Ideate** your project concept
32
+ - **Brainstorm** features and requirements
33
+ - **Create a PRD** (Product Requirements Document)
34
+ - **Design the architecture**
35
+
36
+ Ask questions like:
37
+
38
+ - "Help me brainstorm a [type of application] that does [core functionality]"
39
+ - "Create a comprehensive PRD for this concept"
40
+ - "Design the technical architecture for this system"
41
+
42
+ Copy the PRD and architecture documents that Gemini creates into your project's `docs/` folder:
43
+
44
+ - `docs/prd.md`
45
+ - `docs/architecture.md`
46
+
47
+ ## Step 3: Back to Cursor - Document Sharding
48
+
49
+ Once you have your PRD and architecture documents in the `docs/` folder:
50
+
51
+ 1. **Start a new chat in Cursor**
52
+ 2. **Load the bmad-master agent**: Type `@bmad-master`
53
+ 3. **Shard the PRD**: Type `*shard-doc docs/prd.md prd`
54
+ 4. **Shard the architecture**: Type `*shard-doc docs/architecture.md architecture`
55
+
56
+ This creates organized folders:
57
+
58
+ - `docs/prd/` - Contains broken down PRD sections
59
+ - `docs/architecture/` - Contains broken down architecture sections
60
+
61
+ ## Step 4: Story Development Cycle
62
+
63
+ Now begin the iterative development cycle:
64
+
65
+ ### Create Stories (Scrum Master)
66
+
67
+ 1. **Start a new chat**
68
+ 2. **Load SM agent**: Type `@sm`
69
+ 3. **Create story**: Type `*create` (this runs the create-next-story task)
70
+ 4. **Review the generated story**
71
+ 5. **If approved**: Set story status to "Approved" in the story file
72
+
73
+ ### Implement Stories (Developer)
74
+
75
+ 1. **Start a new chat**
76
+ 2. **Load Dev agent**: Type `@dev`
77
+ 3. **The agent will ask which story to implement**
78
+ 4. **Follow the development tasks** the agent provides
79
+ 5. **When story is complete**: Mark status as "Done"
80
+
81
+ ### Repeat the Cycle
82
+
83
+ 1. **Start a new chat with SM agent** (`@sm`)
84
+ 2. **Create next story**: Type `*create`
85
+ 3. **Review and approve**
86
+ 4. **Start new chat with Dev agent** (`@dev`)
87
+ 5. **Implement the story**
88
+ 6. **Repeat until project complete**
89
+
90
+ ## Available Agent Rules in Cursor
91
+
92
+ All BMAD agents are available as Cursor rules (use `@` prefix):
93
+
94
+ - `@bmad-master` - Universal task executor
95
+ - `@sm` - Scrum Master for story creation
96
+ - `@dev` - Full-stack developer for implementation
97
+ - `@architect` - Solution architect for design
98
+ - `@pm` - Product manager for planning
99
+ - `@analyst` - Business analyst for requirements
100
+ - `@qa` - QA specialist for testing
101
+ - `@po` - Product owner for prioritization
102
+ - `@ux-expert` - UX specialist for design
103
+
104
+ ## Cursor-Specific Features
105
+
106
+ - **Agent rules are stored in**: `.cursor/rules/` as `.mdc` files
107
+ - **Auto-completion**: Cursor will suggest `@agent-name` as you type
108
+ - **Rule activation**: Rules activate automatically when you mention `@agent-name`
109
+ - **Context awareness**: Agents have access to your current file context
110
+
111
+ ## Key Workflow Principles
112
+
113
+ 1. **Always start new chats** when switching agents to avoid context confusion
114
+ 2. **Use Gemini for initial planning** and ideation with the team-fullstack bundle
115
+ 3. **Use bmad-master for document management** (sharding, templates, etc.)
116
+ 4. **Follow the SM → Dev cycle** for consistent story development
117
+ 5. **Review and approve stories** before implementation begins
118
+
119
+ ## Tips for Success
120
+
121
+ - **Keep chats focused**: Each chat should have one agent and one primary task
122
+ - **Use \*help command**: Every agent supports `*help` to see available commands
123
+ - **Review generated content**: Always review and approve stories before marking them ready
124
+ - **Maintain status updates**: Keep story statuses current (Draft → Approved → InProgress → Done)
125
+ - **Leverage Cursor's context**: Agents can see your current file selection for better assistance
126
+
127
+ This workflow ensures systematic, AI-assisted development following agile principles with clear handoffs between planning, story creation, and implementation phases.