bmad-method
Version:
Breakthrough Method of Agile AI-driven Development
187 lines (123 loc) ⢠10.2 kB
Markdown
# BMad-Method: Universal AI Agent Framework
[](https://www.npmjs.com/package/bmad-method)
[](LICENSE)
[](https://nodejs.org)
[](https://discord.gg/gk8jAdXWmj)
Foundations in Agentic Agile Driven Development, known as the Breakthrough Method of Agile AI-Driven Development, yet so much more. Transform any domain with specialized AI expertise: software development, entertainment, creative writing, business strategy to personal wellness just to name a few.
**[Subscribe to BMadCode on YouTube](https://www.youtube.com/@BMadCode?sub_confirmation=1)**
**[Join our Discord Community](https://discord.gg/gk8jAdXWmj)** - A growing community for AI enthusiasts! Get help, share ideas, explore AI agents & frameworks, collaborate on tech projects, enjoy hobbies, and help each other succeed. Whether you're stuck on BMad, building your own agents, or just want to chat about the latest in AI - we're here for you! **Some mobile and VPN may have issue joining the discord, this is a discord issue - if the invite does not work, try from your own internet or another network, or non-VPN.**
ā **If you find this project helpful or useful, please give it a star in the upper right hand corner!** It helps others discover BMad-Method and you will be notified of updates!
## Overview
**BMad Method's Two Key Innovations:**
**1. Agentic Planning:** Dedicated agents (Analyst, PM, Architect) collaborate with you to create detailed, consistent PRDs and Architecture documents. Through advanced prompt engineering and human-in-the-loop refinement, these planning agents produce comprehensive specifications that go far beyond generic AI task generation.
**2. Context-Engineered Development:** The Scrum Master agent then transforms these detailed plans into hyper-detailed development stories that contain everything the Dev agent needs - full context, implementation details, and architectural guidance embedded directly in story files.
This two-phase approach eliminates both **planning inconsistency** and **context loss** - the biggest problems in AI-assisted development. Your Dev agent opens a story file with complete understanding of what to build, how to build it, and why.
**š [See the complete workflow in the User Guide](bmad-core/user-guide.md)** - Planning phase, development cycle, and all agent roles
## Quick Navigation
### Understanding the BMad Workflow
**Before diving in, review these critical workflow diagrams that explain how BMad works:**
1. **[Planning Workflow (Web UI)](bmad-core/user-guide.md#the-planning-workflow-web-ui)** - How to create PRD and Architecture documents
2. **[Core Development Cycle (IDE)](bmad-core/user-guide.md#the-core-development-cycle-ide)** - How SM, Dev, and QA agents collaborate through story files
> ā ļø **These diagrams explain 90% of BMad Method Agentic Agile flow confusion** - Understanding the PRD+Architecture creation and the SM/Dev/QA workflow and how agents pass notes through story files is essential - and also explains why this is NOT taskmaster or just a simple task runner!
### What would you like to do?
- **[Install and Build software with Full Stack Agile AI Team](#quick-start)** ā Quick Start Instruction
- **[Learn how to use BMad](bmad-core/user-guide.md)** ā Complete user guide and walkthrough
- **[See available AI agents](/bmad-core/agents))** ā Specialized roles for your team
- **[Explore non-technical uses](#-beyond-software-development---expansion-packs)** ā Creative writing, business, wellness, education
- **[Create my own AI agents](#creating-your-own-expansion-pack)** ā Build agents for your domain
- **[Browse ready-made expansion packs](expansion-packs/)** ā Game dev, DevOps, infrastructure and get inspired with ideas and examples
- **[Understand the architecture](docs/core-architecture.md)** ā Technical deep dive
- **[Join the community](https://discord.gg/gk8jAdXWmj)** ā Get help and share ideas
## Important: Keep Your BMad Installation Updated
**Stay up-to-date effortlessly!** If you already have BMad-Method installed in your project, simply run:
```bash
npx bmad-method install
# OR
git pull
npm run install:bmad
```
This will:
- ā
Automatically detect your existing v4 installation
- ā
Update only the files that have changed and add new files
- ā
Create `.bak` backup files for any custom modifications you've made
- ā
Preserve your project-specific configurations
This makes it easy to benefit from the latest improvements, bug fixes, and new agents without losing your customizations!
## Quick Start
### One Command for Everything (IDE Installation)
**Just run one of these commands:**
```bash
npx bmad-method install
# OR if you already have BMad installed:
git pull
npm run install:bmad
```
This single command handles:
- **New installations** - Sets up BMad in your project
- **Upgrades** - Updates existing installations automatically
- **Expansion packs** - Installs any expansion packs you've added to package.json
> **That's it!** Whether you're installing for the first time, upgrading, or adding expansion packs - these commands do everything.
**Prerequisites**: [Node.js](https://nodejs.org) v20+ required
### Fastest Start: Web UI Full Stack Team at your disposal (2 minutes)
1. **Get the bundle**: Save or clone the [full stack team file](dist/teams/team-fullstack.txt) or choose another team
2. **Create AI agent**: Create a new Gemini Gem or CustomGPT
3. **Upload & configure**: Upload the file and set instructions: "Your critical operating instructions are attached, do not break character as directed"
4. **Start Ideating and Planning**: Start chatting! Type `*help` to see available commands or pick an agent like `*analyst` to start right in on creating a brief.
5. **CRITICAL**: Talk to BMad Orchestrator in the web at ANY TIME (#bmad-orchestrator command) and ask it questions about how this all works!
6. **When to move to the IDE**: Once you have your PRD, Architecture, optional UX and Briefs - its time to switch over to the IDE to shard your docs, and start implementing the actual code! See the [User guide](bmad-core/user-guide.md) for more details
### Alternative: Clone and Build
```bash
git clone https://github.com/bmadcode/bmad-method.git
npm run install:bmad # build and install all to a destination folder
```
## š Beyond Software Development - Expansion Packs
BMad's natural language framework works in ANY domain. Expansion packs provide specialized AI agents for creative writing, business strategy, health & wellness, education, and more. Also expansion packs can expand the core BMad-Method with specific functionality that is not generic for all cases. [See the Expansion Packs Guide](docs/expansion-packs.md) and learn to create your own!
## Codebase Flattener Tool
The BMad-Method includes a powerful codebase flattener tool designed to prepare your project files for AI model consumption. This tool aggregates your entire codebase into a single XML file, making it easy to share your project context with AI assistants for analysis, debugging, or development assistance.
### Features
- **AI-Optimized Output**: Generates clean XML format specifically designed for AI model consumption
- **Smart Filtering**: Automatically respects `.gitignore` patterns to exclude unnecessary files
- **Binary File Detection**: Intelligently identifies and excludes binary files, focusing on source code
- **Progress Tracking**: Real-time progress indicators and comprehensive completion statistics
- **Flexible Output**: Customizable output file location and naming
### Usage
```bash
# Basic usage - creates flattened-codebase.xml in current directory
npx bmad-method flatten
# Specify custom input directory
npx bmad-method flatten --input /path/to/source/directory
npx bmad-method flatten -i /path/to/source/directory
# Specify custom output file
npx bmad-method flatten --output my-project.xml
npx bmad-method flatten -o /path/to/output/codebase.xml
# Combine input and output options
npx bmad-method flatten --input /path/to/source --output /path/to/output/codebase.xml
```
### Example Output
The tool will display progress and provide a comprehensive summary:
```
š Completion Summary:
ā
Successfully processed 156 files into flattened-codebase.xml
š Output file: /path/to/your/project/flattened-codebase.xml
š Total source size: 2.3 MB
š Generated XML size: 2.1 MB
š Total lines of code: 15,847
š¢ Estimated tokens: 542,891
š File breakdown: 142 text, 14 binary, 0 errors
```
The generated XML file contains all your project's source code in a structured format that AI models can easily parse and understand, making it perfect for code reviews, architecture discussions, or getting AI assistance with your BMad-Method projects.
## Documentation & Resources
### Essential Guides
- š **[User Guide](bmad-core/user-guide.md)** - Complete walkthrough from project inception to completion
- šļø **[Core Architecture](docs/core-architecture.md)** - Technical deep dive and system design
- š **[Expansion Packs Guide](docs/expansion-packs.md)** - Extend BMad to any domain beyond software development
## Support
- š¬ [Discord Community](https://discord.gg/gk8jAdXWmj)
- š [Issue Tracker](https://github.com/bmadcode/bmad-method/issues)
- š¬ [Discussions](https://github.com/bmadcode/bmad-method/discussions)
## Contributing
**We're excited about contributions and welcome your ideas, improvements, and expansion packs!** š
š **[Read CONTRIBUTING.md](CONTRIBUTING.md)** - Complete guide to contributing, including guidelines, process, and requirements
## License
MIT License - see [LICENSE](LICENSE) for details.
[](https://github.com/bmadcode/bmad-method/graphs/contributors)
<sub>Built with ā¤ļø for the AI-assisted development community</sub>