10 KiB
Kilocode Configuration for BMAD-METHOD
This directory contains optimized Kilocode AI configuration for the BMAD-METHOD project, designed to enhance AI-assisted development with context-aware modes, workflows, and rules.
📁 Structure
.kilocode/
├── README.md # This file
├── .kilocodemodes # Custom modes definition
├── rules/ # Project-wide rules
│ ├── memory-bank/ # Persistent AI context
│ │ ├── brief.md # Project overview
│ │ ├── product.md # Product context
│ │ ├── context.md # Current development state
│ │ ├── architecture.md # Technical architecture
│ │ └── tech.md # Technology stack
│ ├── bmad-project-standards.md # BMAD conventions
│ └── communication-guidelines.md # Agent communication rules
├── rules-bmad-dev/ # Developer mode rules
│ └── development-focus.md
├── rules-bmad-pm/ # Product Manager mode rules
│ └── product-management-focus.md
├── rules-bmad-architect/ # Architect mode rules
│ └── architecture-focus.md
└── workflows/ # Automated workflows
├── initialize-bmad-project.md
├── create-new-agent.md
├── update-memory-bank.md
└── run-full-test-suite.md
🎨 Custom Modes
10 specialized modes matching BMAD agent personas:
| Mode | Slug | Purpose |
|---|---|---|
| 🧙 BMad Master | bmad-master |
Workflow orchestration and framework expertise |
| 📋 Product Manager | bmad-pm |
Requirements gathering and PRD creation |
| 🏗️ Software Architect | bmad-architect |
System design and architecture |
| 💻 Senior Developer | bmad-developer |
Implementation and code review |
| 📊 Scrum Master | bmad-scrum |
Sprint planning and story creation |
| 🔍 Business Analyst | bmad-analyst |
Research and analysis |
| 🔨 BMad Builder | bmad-builder |
Custom agent/workflow creation |
| 🎮 Game Developer | bmad-game-dev |
Game development implementation |
| 🎨 Creative Facilitator | bmad-creative |
Innovation and brainstorming |
| 📝 Documentation Specialist | bmad-docs |
Technical writing |
Using Modes
In Kilocode, switch modes by clicking the mode selector or using keyboard shortcuts. Each mode:
- Has specialized knowledge and focus areas
- Follows appropriate communication style
- Has access to mode-specific rules
- Remembers last used model ("Sticky Models")
🧠 Memory Bank
The Memory Bank provides persistent AI context about the BMAD-METHOD project.
Core Files
-
brief.md - Project overview, mission, structure
- Update: Rarely (major project changes only)
-
product.md - Problem statement, solution, users, goals
- Update: Occasionally (product evolution)
-
context.md - Current development focus, recent changes, priorities
- Update: Frequently (after significant changes)
-
architecture.md - System design, components, decisions
- Update: As needed (architecture changes)
-
tech.md - Technologies, dependencies, setup
- Update: As needed (tech stack changes)
Initialization
On each new Kilocode session, the AI reads the Memory Bank and responds with:
[Memory Bank: Active]
Followed by a context summary showing understanding of the project state.
Updating Memory Bank
Use the workflow: /update-memory-bank
Or manually update files as development progresses. See workflows/update-memory-bank.md for detailed process.
📜 Custom Rules
Project-Wide Rules
Located in .kilocode/rules/, these apply to all modes:
bmad-project-standards.md:
- Directory structure conventions
- Agent file format requirements
- Workflow structure standards
- Customization system rules
- Code style standards
- Testing requirements
communication-guidelines.md:
- C.O.R.E. philosophy application
- Personalization requirements
- Question-driven discovery approach
- Agent-specific communication styles
- Error handling communication
Mode-Specific Rules
Located in .kilocode/rules-{mode}/, these apply when that mode is active:
- rules-bmad-dev/: Development-focused guidance
- rules-bmad-pm/: Product management best practices
- rules-bmad-architect/: Architecture decision framework
🔄 Workflows
Automated, repeatable processes invoked with slash commands:
Available Workflows
-
/initialize-bmad-project- Sets up new project with BMAD framework
- Runs interactive installer
- Configures IDE integration
-
/create-new-agent- Guides agent creation using BMB
- Interactive or manual approaches
- Validates against BMAD standards
-
/update-memory-bank- Updates AI context after changes
- Guides which files need updates
- Validates consistency
-
/run-full-test-suite- Executes linting, formatting, tests
- Provides results summary
- Helps identify issues
Using Workflows
In Kilocode chat:
/workflow-name
Or:
/initialize-bmad-project
The AI will execute the workflow step-by-step, following the markdown instructions.
🚀 Getting Started
First Time Setup
-
Initialize Memory Bank
In Kilocode, execute:
initialize memory bankThe AI will analyze the project and generate comprehensive context.
-
Select Appropriate Mode
Choose a mode matching your current task:
- Coding? →
bmad-developer - Planning? →
bmad-pm - Architecture? →
bmad-architect
- Coding? →
-
Verify Memory Bank Active
Look for:
[Memory Bank: Active]With accurate project context summary.
Daily Usage
- Start Session: Memory Bank loads automatically
- Choose Mode: Select mode for your current task
- Execute Workflows: Use
/workflow-namefor common tasks - Update Context: Keep Memory Bank current with
/update-memory-bank
🔧 Configuration
Customizing Modes
Edit .kilocodemodes (YAML format):
customModes:
- slug: my-custom-mode
name: 🎯 My Mode
description: Custom mode description
roleDefinition: |
You are a specialist in...
groups:
- read
- edit
customInstructions: |
Additional behavior instructions
Adding Rules
Create new markdown files in:
.kilocode/rules/for project-wide rules.kilocode/rules-{mode}/for mode-specific rules
Rules use markdown format with headers, lists, and code blocks.
Creating Workflows
Add markdown files to .kilocode/workflows/ with step-by-step instructions:
# Workflow Name
## Step 1: First Step
Instructions for first step...
## Step 2: Second Step
Instructions for second step...
Invoke with /workflow-name in Kilocode.
📚 Best Practices
Memory Bank Maintenance
- Update context.md frequently: After significant changes
- Keep brief.md stable: Only update for major project changes
- Be concise: Focus on what AI needs for context
- Include dates: Note when changes occurred
- Remove outdated info: Keep it current
Mode Usage
- Match mode to task: Use specialized modes for focus
- Switch modes: Don't stay in one mode for all tasks
- Mode-specific rules: Leverage specialized guidance
- Trust the system: Modes remember model preferences
Rule Writing
- Clear and specific: Vague rules aren't helpful
- Use examples: Show what you mean
- Organize logically: Group related rules
- Keep updated: Remove obsolete rules
- Test effectiveness: Verify AI follows rules
Workflow Design
- Step-by-step: Clear, sequential instructions
- Self-contained: Each step independent
- Actionable: Concrete actions, not abstract concepts
- Examples included: Show expected outcomes
- Error handling: Address what can go wrong
🛠️ Troubleshooting
Memory Bank Not Loading
Symptom: No [Memory Bank: Active] message
Solutions:
- Verify files exist in
.kilocode/rules/memory-bank/ - Check file format (should be markdown)
- Ensure files aren't empty
- Reload Kilocode or restart session
Mode Not Available
Symptom: Custom mode doesn't appear
Solutions:
- Verify
.kilocodemodessyntax (YAML) - Check slug is unique
- Reload Kilocode (may require restart)
- Validate file location (project root)
Rules Not Applied
Symptom: AI doesn't follow custom rules
Solutions:
- Verify rule file location
- Check markdown formatting
- Be more specific in rule descriptions
- Add examples to clarify intent
- Test with explicit prompts
Workflow Not Found
Symptom: /workflow command fails
Solutions:
- Verify file exists in
.kilocode/workflows/ - Check file has
.mdextension - Use correct workflow name (filename without .md)
- Reload Kilocode if recently added
📖 Resources
Kilocode Documentation
BMAD Documentation
🤝 Contributing
To improve this Kilocode configuration:
- Test changes thoroughly
- Update documentation (this README)
- Follow existing patterns and conventions
- Keep Memory Bank files updated
- Share improvements with the team
📄 License
This configuration is part of the BMAD-METHOD project.
MIT License - See LICENSE for details.
Questions or Issues?
Last Updated: 2025-11-04 BMAD-METHOD v6 Alpha