mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-18 02:05:30 +00:00
## BMB Agent Workflow Improvements - Always create folders for agents (even simple ones) - Add compact info-and-installation-guide.md (20 lines max) - Include installation guide with every created agent - Update workflow to use standalone_output_folder structure ## Documentation Updates - Clarify --defaults makes installation non-interactive - Update all parameter documentation for clarity - Fix npm package references (bmad-method only) ## New Agent Structure Every agent now gets: agent-folder/ ├── agent-name.agent.yaml # Source YAML └── info-and-installation-guide.md # Quick install guide + description ## Quick Install Commands (added to guide) - Interactive: npx bmad-method agent-install --source ./agent.yaml - Non-interactive: npx bmad-method agent-install --source ./agent.yaml --defaults This makes agent installation much more user-friendly and consistent.
4.8 KiB
4.8 KiB
Custom Agent Installation
Install and personalize BMAD agents in your project.
Quick Start
# From your project directory with BMAD installed
npx bmad-method agent-install
Or if you have bmad-cli installed globally:
bmad agent-install
What It Does
- Discovers available agent templates from your custom agents folder
- Prompts you to personalize the agent (name, behavior, preferences)
- Compiles the agent with your choices baked in
- Installs to your project's
.bmad/custom/agents/directory - Creates IDE commands for all your configured IDEs (Claude Code, Codex, Cursor, etc.)
- Saves your configuration for automatic reinstallation during BMAD updates
Options
bmad agent-install [options]
Options:
-p, --path <path> #Direct path to specific agent YAML file or folder
-d, --defaults #Use default values without prompting
-t, --target <path> #Target installation directory
Installing from Custom Locations
Use the -s / --source option to install agents from any location:
# Install agent from a custom folder (expert agent with sidecar)
bmad agent-install -s path/to/my-agent
# Install a specific .agent.yaml file (simple agent)
bmad agent-install -s path/to/my-agent.agent.yaml
# Install with defaults (non-interactive)
bmad agent-install -s path/to/my-agent -d
# Install to a specific destination project
bmad agent-install -s path/to/my-agent --destination /path/to/destination/project
This is useful when:
- Your agent is in a non-standard location (not in
.bmad/custom/agents/) - You're developing an agent outside the project structure
- You want to install from an absolute path
Example Session
🔧 BMAD Agent Installer
Found BMAD at: /project/.bmad
Searching for agents in: /project/.bmad/custom/agents
Available Agents:
1. 📄 commit-poet (simple)
2. 📚 journal-keeper (expert)
Select agent to install (number): 1
Selected: commit-poet
📛 Agent Persona Name
Agent type: commit-poet
Default persona: Inkwell Von Comitizen
Custom name (or Enter for default): Fred
Persona: Fred
File: fred-commit-poet.md
📝 Agent Configuration
What's your preferred default commit message style?
* 1. Conventional (feat/fix/chore)
2. Narrative storytelling
3. Poetic haiku
4. Detailed explanation
Choice (default: 1): 1
How enthusiastic should the agent be?
1. Moderate - Professional with personality
* 2. High - Genuinely excited
3. EXTREME - Full theatrical drama
Choice (default: 2): 3
Include emojis in commit messages? [Y/n]: y
✨ Agent installed successfully!
Name: fred-commit-poet
Location: /project/.bmad/custom/agents/fred-commit-poet
Compiled: fred-commit-poet.md
✓ Source saved for reinstallation
✓ Added to agent-manifest.csv
✓ Created IDE commands:
claude-code: /bmad:custom:agents:fred-commit-poet
codex: /bmad-custom-agents-fred-commit-poet
github-copilot: bmad-agent-custom-fred-commit-poet
Reinstallation
Custom agents are automatically reinstalled when you run bmad init --quick. Your personalization choices are preserved in .bmad/_cfg/custom/agents/.
Installing Reference Agents
The BMAD source includes example agents you can install. You must copy them to your project first.
Step 1: Copy the Agent Template
For simple agents (single file):
# From your project root
cp node_modules/bmad-method/src/modules/bmb/reference/agents/stand-alone/commit-poet.agent.yaml \
.bmad/custom/agents/
For expert agents (folder with sidecar files):
# Copy the entire folder
cp -r node_modules/bmad-method/src/modules/bmb/reference/agents/agent-with-memory/journal-keeper \
.bmad/custom/agents/
Step 2: Install and Personalize
npx bmad-method agent-install
# or: bmad agent-install (if BMAD installed locally)
The installer will:
- Find the copied template in
.bmad/custom/agents/ - Prompt for personalization (name, behavior, preferences)
- Compile and install with your choices baked in
- Create IDE commands for immediate use
Available Reference Agents
Simple (standalone file):
commit-poet.agent.yaml- Commit message artisan with style preferences
Expert (folder with sidecar):
journal-keeper/- Personal journal companion with memory and pattern recognition
Find these in the BMAD source:
src/modules/bmb/reference/agents/
├── stand-alone/
│ └── commit-poet.agent.yaml
└── agent-with-memory/
└── journal-keeper/
├── journal-keeper.agent.yaml
└── journal-keeper-sidecar/
Creating Your Own
Use the BMB agent builder to craft your agents. Once ready to use yourself, place your .agent.yaml files or folder in .bmad/custom/agents/.