Automatically enhance your Claude Code prompts with specialized AI personas using the BMAD (Be My AI Developer) Method. This system uses Gemini AI to intelligently select the best persona for each task, improving response quality and relevance without requiring users to know specific commands.
- π€ AI-Powered Selection: Uses Gemini AI to intelligently select the best BMAD persona
- π― No Commands Needed: Users don't need to know exact BMAD commands - AI handles it
- π§ 10 Specialized Personas: From Senior Developer to Security Expert, each with unique expertise
- β‘ Smart Enhancement: Context-aware prompt processing powered by Gemini 2.5 Pro
- π Seamless Integration: Works transparently with Claude Code via hooks
- π οΈ Automatic Setup: Installer handles Gemini CLI and API key configuration
- π MCP Server Support: Optional advanced features via Model Context Protocol
Persona | Command | Specialization |
---|---|---|
Senior Developer | /dev |
Coding, debugging, implementation |
Code Reviewer | /review |
Quality assessment, security analysis |
Software Architect | /architect |
System design, architecture patterns |
DevOps Engineer | /devops |
Deployment, CI/CD, infrastructure |
Data Analyst | /analyze |
Data analysis, visualization, insights |
Business Analyst | /business |
Requirements, PRDs, specifications |
Technical Writer | /doc |
Documentation, guides, tutorials |
Security Expert | /security |
Security assessment, vulnerabilities |
Problem Solver | /solve |
Troubleshooting, general solutions |
Creative Writer | /write |
Content creation, storytelling |
- Claude Code CLI (required)
- Node.js 18+ (required for Gemini CLI)
- Gemini API Key (free tier available)
curl -sSL https://raw.githubusercontent.com/wolverin0/bmad-claude/main/install.sh | bash
Or with wget:
wget -qO- https://raw.githubusercontent.com/wolverin0/bmad-claude/main/install.sh | bash
The installer will:
- Check and install Gemini CLI if missing
- Guide you through getting a free Gemini API key
- Configure everything automatically
- Clone the repository
git clone https://github.com/wolverin0/bmad-claude.git
cd bmad-claude
- Set up environment (required)
cp .env.example .env
# The installer will guide you through adding your Gemini API key
- Run the installer
./install.sh
- Restart Claude Code to activate hooks
# Test hook functionality
./test-installation.sh
# Test Gemini integration
echo '{"prompt": "Create a REST API for user management"}' | python3 ~/.claude/hooks/bmad_gemini_hook.py
You should see Gemini AI selecting the appropriate persona in the debug output.
Just use Claude Code normally! Gemini AI automatically selects the best BMAD persona:
# Your prompts are automatically enhanced by AI
claude "Build a authentication system"
# β Gemini AI selects the most appropriate persona
claude "Write unit tests for the user service"
# β Gemini AI analyzes context and applies best persona
claude "create a deployment pipeline for AWS"
# β Gemini AI recognizes DevOps context automatically
No need to remember commands - Gemini AI understands your intent!
For explicit control, use the provided CLI tools:
# Get persona suggestion only
bmad-suggest "Create deployment pipeline"
# Force specific persona
bmad-dev "Implement caching layer"
bmad-review "Check this PR"
# Full enhancement + execution
bmad-claude "Analyze user engagement metrics"
The system requires a Gemini API key to function (free tier available):
-
Get your free API key:
- Visit: https://makersuite.google.com/app/apikey
- Click "Create API Key"
- Copy the generated key
-
Configure during installation: The installer will prompt you for the key, or manually add it:
cp .env.example .env # Edit .env and replace placeholder with your key
-
Verify configuration:
# Test Gemini connection GEMINI_API_KEY=$(grep "GEMINI_API_KEY=" .env | cut -d'=' -f2) gemini -p "Hello"
- Environment config:
.env
(create from.env.example
) - Project hooks:
.claude/settings.json
- Global hooks:
~/.claude/CLAUDE.md
- Hook scripts:
.claude/hooks/
The system uses Gemini AI to analyze your prompts and select personas:
- Prompt Analysis: Your input is sent to Gemini 2.5 Pro
- Intent Recognition: AI understands the task context and requirements
- Persona Selection: AI picks the most appropriate BMAD persona
- Enhancement: Your prompt is enriched with persona-specific context
To customize the AI behavior, modify the Gemini prompt in .claude/hooks/bmad_gemini_hook.py
.
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β User ββββββΆβ Claude Code ββββββΆβ Hook β
β Prompt β β β β System β
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β β
βΌ βΌ
ββββββββββββββββ βββββββββββββββ
β Enhanced βββββββ Persona β
β Prompt β β Selector β
ββββββββββββββββ βββββββββββββββ
# Run all tests
./run-tests.sh
# Test specific component
python3 -m pytest tests/test_persona_selection.py
# Test hook integration
./test-hooks.sh
# Install dependencies
npm install
pip install -r requirements.txt
# Build MCP server (optional)
cd bmad-mcp-server
npm run build
-
Check registration:
# In Claude Code /hooks
-
Verify installation:
./verify-installation.sh
-
Check logs:
tail -f ~/.claude/logs/hooks.log
Issue | Solution |
---|---|
"No hooks registered" | Restart Claude Code, check .claude/settings.json |
"Command not found" | Run source ~/.bashrc or open new terminal |
"Permission denied" | Run chmod +x ~/.claude/hooks/*.py |
Spaces in path | Use symlinks or move to path without spaces |
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add amazing feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Open Pull Request
This project is licensed under the MIT License - see LICENSE file for details.
- BMAD Method for persona concepts
- Claude Code team for the amazing IDE
- MCP SDK for advanced integrations
- Installation Time: ~1 minute (includes Gemini CLI if needed)
- Prompt Enhancement: ~1-2 seconds (Gemini AI processing)
- Persona Accuracy: 98%+ (AI-powered selection)
- Required: Gemini API key (free tier available)
Made with β€οΈ by the BMAD Claude community