Overview
BMad Builder (BMB) provides tools and workflows for creating custom BMad agents, workflows, and modules. Whether youβre extending BMad for your teamβs specific needs or building reusable modules for the community, BMB gives you the scaffolding and guidance you need. Module Code:bmb
Key Features
- Agent Builder - Scaffold new agent personas with custom instructions and capabilities
- Workflow Builder - Create structured, multi-step workflows with agent facilitation
- Module Builder - Package agents and workflows into reusable modules
- Template System - Start from proven templates or create your own
- Validation Tools - Ensure your agents and workflows follow BMad standards
- Testing Utilities - Test agents and workflows before deployment
Installation
Install BMB during initial setup:Repository Information
GitHub: bmad-code-org/bmad-builder NPM Package:bmad-builder
Type: Official BMad Module
Default Selected: No (opt-in during installation)
What You Can Build
Custom Agents
Create specialized agent personas for your domain:- Domain experts (legal, finance, healthcare, etc.)
- Role-specific agents (CTO, designer, analyst)
- Tool-specific agents (Git expert, Docker specialist)
- Custom personality and communication styles
Custom Workflows
Build structured processes for your team:- Company-specific development processes
- Compliance and audit workflows
- Custom review and approval chains
- Domain-specific planning and analysis
Custom Modules
Package related agents and workflows:- Internal team modules
- Industry-specific modules (fintech, healthtech, etc.)
- Tool integration modules
- Community-contributed modules
Builder Workflows
BMB includes workflows that guide you through creation:/workflow create-agent
Interactive workflow to create a new agent persona:
- Define agent role and expertise
- Set communication style and tone
- Configure capabilities and skills
- Add domain-specific knowledge
- Test agent interactions
- Generate agent definition files
/workflow create-workflow
Build structured multi-step workflows:
- Define workflow purpose and goals
- Map workflow phases and steps
- Assign agents to each step
- Configure inputs and outputs
- Set validation criteria
- Test workflow execution
- Generate workflow definition files
/workflow create-module
Package agents and workflows into modules:
- Define module metadata
- Select agents and workflows to include
- Configure module variables
- Set up directory structure
- Define installation scripts
- Generate module.yaml and package files
- Test module installation
Module Structure
BMB helps you create modules following this structure:Agent Definition Format
Agents are defined with:- Role and expertise - What the agent specializes in
- Personality - Communication style and tone
- Instructions - How the agent should behave
- Skills - Capabilities the agent can invoke
- Knowledge - Domain-specific information
Workflow Definition Format
Workflows include:- Metadata - Name, description, category
- Phases - Major workflow sections
- Steps - Individual actions within phases
- Agents - Which agent facilitates each step
- Inputs/Outputs - Data flow between steps
- Validation - Criteria for step completion
Testing and Validation
BMB provides tools to test your creations:- Agent Testing - Simulate conversations and verify responses
- Workflow Testing - Execute workflows in test mode
- Module Validation - Ensure module.yaml is properly formatted
- Integration Testing - Test module installation and removal
Best Practices
Agent Development
- Define clear expertise boundaries
- Use consistent personality and tone
- Provide examples of expected interactions
- Test with various user skill levels
- Document agent capabilities
Workflow Development
- Keep workflows focused on a single outcome
- Provide clear guidance at each step
- Include validation and error handling
- Test with different project sizes
- Document prerequisites and expected outputs
Module Development
- Follow semantic versioning
- Document all configuration variables
- Provide sensible defaults
- Include examples and tutorials
- Test installation and upgrade paths
Publishing Modules
Internal Distribution
For team-specific modules:- Store in internal Git repository
- Reference via Git URL in installation
- Document internal installation process
Community Distribution
For public modules:- Publish to GitHub under your organization
- Submit to BMad community module registry
- Follow BMad module quality standards
- Provide documentation and examples
- Maintain compatibility with BMad versions
Configuration Variables
BMB defines its own configuration variables during installation. See the moduleβsmodule.yaml in the GitHub repository for current configuration options.
Examples
Create a Legal Review Agent
Create a Design System Workflow
Package Healthcare Module
Support and Resources
- Documentation: See the BMad Builder repository
- Examples: Browse community modules for inspiration
- Discord: Get help in the #builder channel
- GitHub Issues: Report bugs or request features
Next Steps
Module Development Guide
Learn module development in depth
Agent Reference
Study existing agent implementations
Workflow Reference
Explore workflow patterns
Module System Overview
Understand the module architecture
