Breakthrough Method for Agile Ai Driven Development
Go to file
Brian Madison 48cf5c8056 feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows
## Core Workflow Engine Enhancements

### discover_inputs Protocol (MAJOR)
- Added reusable `discover_inputs` protocol to workflow.xml for intelligent file loading
- Supports three loading strategies:
  - FULL_LOAD: Load all shards for PRD, Architecture, UX (changed pattern from /index.md to /*/*.md)
  - SELECTIVE_LOAD: Load specific shard via template variable (e.g., epic-{{epic_num}}.md)
  - INDEX_GUIDED: Load index, analyze TOC, intelligently load relevant docs (with "DO NOT BE LAZY" mandate)
- Auto-discovers whole vs sharded documents with proper fallback
- Provides transparent reporting of loaded content with file counts
- Invoked via <invoke-protocol name="discover_inputs" /> tag in workflow instructions

### Advanced Elicitation Improvements
- Renamed adv-elicit.xml to advanced-elicitation.xml for clarity
- Updated all references across agents and commands

### Shard Document Tool Enhancement
- Added Step 6: Handle Original Document with three options:
  - [d] Delete - Remove original (recommended, prevents confusion)
  - [m] Move to archive - Backup original to archive folder
  - [k] Keep - Warning about defeating sharding purpose
- Prevents issue where both whole and sharded versions exist, confusing discover_inputs protocol

## BMM Module - Input File Pattern Standardization

### Phase 1 - Analysis (1 workflow)
- product-brief: Added load_strategy (FULL_LOAD for research/brainstorming, INDEX_GUIDED for document_project)
- Updated instructions.md to use invoke-protocol, replaced manual fuzzy matching

### Phase 2 - Planning (4 workflows)
- prd: Added load_strategy, updated instructions to reference {product_brief_content}, {research_content}
- create-ux-design: Added load_strategy, removed fuzzy matching from instructions
- tech-spec: Added load_strategy for brownfield context discovery
- All epics patterns updated to support SELECTIVE_LOAD for specific epic shards

### Phase 3 - Solutioning (2 workflows)
- architecture: Added load_strategy, updated instructions to use pre-loaded {prd_content}, {epics_content}, {ux_design_content}
- solutioning-gate-check: Added load_strategy, replaced manual discovery with protocol invocation

### Phase 4 - Implementation (8 workflows)
- code-review: Added load_strategy, fixed sharded patterns to /*/*.md, added step 1.5 for protocol
- correct-course: Added complete input_file_patterns section (was missing), added step 0.5
- create-story: Added load_strategy, updated to SELECTIVE_LOAD for epics, added step 1.5
- dev-story: Added complete input_file_patterns section (was missing), added step 0.5
- epic-tech-context: Added load_strategy, updated PRD extraction to use {prd_content}, added step 1.5
- retrospective: Added load_strategy for architecture/prd (FULL_LOAD), epics (SELECTIVE_LOAD), added step 0.5
- sprint-planning: Fixed sharded pattern to load ALL epics (/*/*.md), added step 0.5
- story-context: Added load_strategy, updated doc collection to reference pre-loaded content, added step 1.5

### Sprint Artifacts Path Corrections
- story-done: Added missing sprint_artifacts variable, fixed sprint_status path from {context_dir} to {sprint_artifacts}
- story-ready: Added missing sprint_artifacts variable
- story-context: Fixed undefined {context_dir} -> {sprint_artifacts}
- correct-course: Added sprint_artifacts and sprint_status variables

## BMGD Module - Phase 4 Production Workflows (NEW)

Added complete Phase 4 implementation workflows for game development:
- code-review: Senior developer review for completed game features
- correct-course: Sprint change management for game projects
- create-story: Story generation for game mechanics/features
- dev-story: Feature implementation workflow
- epic-tech-context: Technical spec generation per game epic
- retrospective: Epic completion review and lessons learned
- sprint-planning: Game development sprint status tracking
- story-context: Dynamic context assembly for game stories
- story-done: Story completion workflow
- story-ready: Story readiness workflow

All BMGD workflows follow BMM patterns with game-specific adaptations.

## Agent Updates

### BMM Agents
- Updated all 7 BMM agents (analyst, architect, dev, pm, sm, tea, tech-writer, ux-designer)
- Standardized web bundle configurations

### BMGD Agents
- Updated 4 game development agents (game-architect, game-designer, game-dev, game-scrum-master)
- Aligned with BMM agent structure

### CIS Agents
- Updated 5 creative intelligence agents for consistency

## Documentation & Configuration

- Updated CHANGELOG.md with Phase 4 workflow additions
- Updated files-manifest.csv and task-manifest.csv
- Updated .claude commands for all agents
- Fixed formatting issues from previous commits

## Breaking Changes

NONE - All changes are backward compatible. Workflows without input_file_patterns continue to work.
Workflows with input_file_patterns now benefit from intelligent auto-loading.

## Migration Notes

Existing workflows can gradually adopt discover_inputs protocol by:
1. Adding load_strategy to existing input_file_patterns in workflow.yaml
2. Adding <invoke-protocol name="discover_inputs" /> step in instructions.md
3. Replacing manual file loading with references to {pattern_name_content} variables
2025-11-12 19:18:38 -06:00
.bmad feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
.claude/commands/bmad feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
.github feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
.husky chore: added CC PR review (#871) 2025-11-05 14:14:31 -06:00
.vscode Major Enhancements: 2025-11-09 17:39:05 -06:00
docs remaining bad character removal 2025-11-11 20:10:33 -06:00
src feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
test Major Enhancements: 2025-11-09 17:39:05 -06:00
tools feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
.gitignore remaining bad character removal 2025-11-11 20:10:33 -06:00
.npmrc feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
.nvmrc feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
.prettierignore feat: add agent schema validation with comprehensive testing (#774) 2025-10-20 07:14:50 -05:00
CHANGELOG.md feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
CONTRIBUTING.md release: bump to v6.0.0-alpha.6 2025-11-04 22:28:28 -06:00
LICENSE feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
README.md feat: Add documentation guides, simplify folder structure, and major workflow refactoring 2025-11-11 17:30:43 -06:00
eslint.config.mjs feat: add agent schema validation with comprehensive testing (#774) 2025-10-20 07:14:50 -05:00
package-lock.json chore: added CC PR review (#871) 2025-11-05 14:14:31 -06:00
package.json Release v6.0.0-alpha.8 2025-11-09 23:24:25 -06:00
prettier.config.mjs feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
v6-open-items.md fix: Add missing adv-elicit-methods.csv to workflow bundles 2025-11-07 00:38:28 -06:00

README.md

BMad CORE + BMad Method

Stable Version Alpha Version License: MIT Node.js Version Discord

🚨 Alpha Version Notice

v6-alpha is near-beta quality—stable and vastly improved over v4, but documentation is still being refined. New videos coming soon to the BMadCode YouTube channel—subscribe for updates!

Getting Started:

  • Install v6 Alpha: npx bmad-method@alpha install
  • Install stable v4: npx bmad-method install
  • Not sure what to do? Load any agent and run *workflow-init for guided setup
  • v4 Users: View v4 documentation or upgrade guide

Universal Human-AI Collaboration Platform

BMad-CORE (Collaboration Optimized Reflection Engine) amplifies human potential through specialized AI agents. Unlike tools that replace thinking, BMad-CORE guides reflective workflows that bring out your best ideas and AI's full capabilities.

The BMad-CORE powers the BMad Method (probably why you're here!), but you can also use BMad Builder to create custom agents, workflows, and modules for any domain—software development, business strategy, creativity, learning, and more.

🎯 Human Amplification🎨 Domain Agnostic Agent-Powered

Table of Contents


What is BMad-CORE?

Foundation framework powering all BMad modules:

  • Agent Orchestration - Specialized AI personas with domain expertise
  • Workflow Engine - Guided multi-step processes with built-in best practices
  • Modular Architecture - Extend with domain-specific modules (BMM, BMB, CIS, custom)
  • IDE Integration - Works with Claude Code, Cursor, Windsurf, VS Code, and more
  • Update-Safe Customization - Your configs persist through all updates

v6 Core Enhancements

  • 🎨 Agent Customization - Modify names, roles, personalities via bmad/_cfg/agents/ → Customization Guide
  • 🌐 Multi-Language - Independent language settings for communication and output
  • 👤 Personalization - Agents adapt to your name, skill level, and preferences
  • 🔄 Persistent Config - Customizations survive module updates
  • ⚙️ Flexible Settings - Configure per-module or globally
  • 📦 Web Bundles - Share agents in Gemini Gems and Custom GPTs → Web Bundles Guide

C.O.R.E. Philosophy

  • Collaboration: Human-AI partnership leveraging complementary strengths
  • Optimized: Battle-tested processes for maximum effectiveness
  • Reflection: Strategic questioning that unlocks breakthrough solutions
  • Engine: Framework orchestrating 19+ specialized agents and 50+ workflows

BMad-CORE doesn't give you answers—it helps you discover better solutions through guided reflection.

Modules

BMad Method (BMM) - AI-Driven Agile Development

Revolutionary AI-driven agile framework for software and game development. Automatically adapts from single bug fixes to enterprise-scale systems.

v6 Highlights

🎯 Scale-Adaptive Intelligence (3 Planning Tracks)

Automatically adjusts planning depth and documentation based on project needs:

  • Quick Flow Track: Fast implementation (tech-spec only) - bug fixes, small features, clear scope
  • BMad Method Track: Full planning (PRD + Architecture + UX) - products, platforms, complex features
  • Enterprise Method Track: Extended planning (BMad Method + Security/DevOps/Test) - enterprise requirements, compliance

🏗️ Four-Phase Methodology

  1. Phase 1: Analysis (Optional) - Brainstorming, research, product briefs
  2. Phase 2: Planning (Required) - Scale-adaptive PRD/tech-spec/GDD
  3. Phase 3: Solutioning (Track-dependent) - Architecture, (Coming soon: security, DevOps, test strategy)
  4. Phase 4: Implementation (Iterative) - Story-centric development with just-in-time context

🤖 12 Specialized Agents

PM • Analyst • Architect • Scrum Master • Developer • Test Architect (TEA) • UX Designer • Technical Writer • Game Designer • Game Developer • Game Architect • BMad Master (Orchestrator)

📚 Documentation


🚀 Quick Start

After installation (see Installation below), choose your path:

Three Planning Tracks:

  1. Quick Flow Track - Bug fixes and small features

  2. 📋 BMad Method Track - Products and platforms

  3. 🏢 Brownfield Projects - Add to existing codebases

Not sure which path? Run *workflow-init and let BMM analyze your project goal and recommend the right track.

📚 Learn More: Scale Adaptive System - How BMM adapts across three planning tracks


BMad Builder (BMB) - Create Custom Solutions

Build your own agents, workflows, and modules using the BMad-CORE framework.

What You Can Build:

  • Custom Agents - Domain experts with specialized knowledge
  • Guided Workflows - Multi-step processes for any task
  • Complete Modules - Full solutions for specific domains
  • Three Agent Types - Full module, hybrid, or standalone

Perfect For: Creating domain-specific solutions (legal, medical, finance, education, creative, etc.) or extending BMM with custom development workflows.

Documentation:

Creative Intelligence Suite (CIS) - Innovation & Creativity

AI-powered creative facilitation using proven methodologies and techniques.

5 Interactive Workflows:

  • Brainstorming - Generate and refine ideas with 30+ techniques
  • Design Thinking - Human-centered problem solving
  • Problem Solving - Systematic breakthrough techniques
  • Innovation Strategy - Disruptive business model thinking
  • Storytelling - Compelling narrative frameworks

5 Specialized Agents: Each with unique facilitation styles and domain expertise

Shared Resource: CIS workflows are used by other modules (BMM's brainstorm-project uses CIS brainstorming)

Documentation:


Installation

Prerequisites: Node.js v20+ (Download)

# v6 Alpha (recommended for new projects)
npx bmad-method@alpha install

# Stable v4 (production)
npx bmad-method install

The installer provides:

  1. Module Selection - Choose BMM, BMB, CIS (or all)
  2. Configuration - Your name, language preferences, game dev options
  3. IDE Integration - Automatic setup for your IDE

Installation creates:

your-project/
└── bmad/
    ├── core/         # Core framework + BMad Master agent
    ├── bmm/          # BMad Method (12 agents, 34 workflows)
    ├── bmb/          # BMad Builder (1 agent, 7 workflows)
    ├── cis/          # Creative Intelligence (5 agents, 5 workflows)
    └── _cfg/         # Your customizations (survives updates)
        └── agents/   # Agent customization files

Next Steps:

  1. Load any agent in your IDE
  2. Run *workflow-init to set up your project workflow path
  3. Follow the Quick Start guide above to choose your planning track

Alternative: Web Bundles - Use BMAD agents in Claude Projects, ChatGPT, or Gemini without installation


🎯 Working with Agents & Commands

Multiple Ways to Execute Workflows:

BMad is flexible - you can execute workflows in several ways depending on your preference and IDE:

  1. Load an agent in your IDE (see IDE-specific instructions)
  2. Wait for the menu to appear showing available workflows
  3. Tell the agent what to run using natural language or shortcuts:
    • Natural: "Run workflow-init"
    • Shortcut: *workflow-init
    • Menu number: "Run option 2"

Method 2: Direct Slash Commands

Execute workflows directly using slash commands:

/bmad:bmm:workflows:workflow-init
/bmad:bmm:workflows:prd
/bmad:bmm:workflows:dev-story

Tip: While you can run these without loading an agent first, loading an agent is still recommended - it can make a difference with certain workflows.

Benefits:

  • Mix and match any agent with any workflow
  • Run workflows not in the loaded agent's menu
  • Faster access for experienced users who know the command names

Method 3: Party Mode Execution

Run workflows with multi-agent collaboration:

  1. Start party mode: /bmad:core:workflows:party-mode
  2. Execute any workflow - the entire team collaborates on it
  3. Get diverse perspectives from multiple specialized agents

Perfect for: Strategic decisions, complex workflows, cross-functional tasks


📌 IDE-Specific Note:

Slash command format varies by IDE:

  • Claude Code: /bmad:bmm:workflows:prd
  • Cursor/Windsurf: May use different syntax - check your IDE's documentation
  • VS Code with Copilot Chat: Syntax may differ

See IDE Integration Guides for your specific IDE's command format.


Key Features

🎨 Update-Safe Customization

Modify agents without touching core files:

  • Override agent names, personalities, expertise via bmad/_cfg/agents/
  • Customizations persist through all updates
  • Multi-language support (communication + output)
  • Module-level or global configuration

🚀 Intelligent Installation

Smart setup that adapts to your environment:

  • Auto-detects v4 installations for smooth upgrades
  • Configures IDE integrations (Claude Code, Cursor, Windsurf, VS Code)
  • Resolves cross-module dependencies
  • Generates unified agent/workflow manifests

📁 Clean Architecture

Everything in one place:

  • Single bmad/ folder (no scattered files)
  • Modules live side-by-side (core, bmm, bmb, cis)
  • Your configs in _cfg/ (survives updates)
  • Easy to version control or exclude

📄 Document Sharding (Advanced)

Optional optimization for large projects (BMad Method and Enterprise tracks):

  • Massive Token Savings - Phase 4 workflows load only needed sections (90%+ reduction)
  • Automatic Support - All workflows handle whole or sharded documents seamlessly
  • Easy Setup - Built-in tool splits documents by headings
  • Smart Discovery - Workflows auto-detect format

→ Document Sharding Guide


Documentation

Module Documentation:

Customization & Sharing:

Additional Resources:


Community & Support


Development & Quality Checks

For contributors working on the BMAD codebase:

Requirements: Node.js 22+ (see .nvmrc). Run nvm use to switch to the correct version.

Testing & Validation

# Run all quality checks (comprehensive - use before pushing)
npm test

# Individual test suites
npm run test:schemas     # Agent schema validation (fixture-based)
npm run test:install     # Installation component tests (compilation)
npm run validate:schemas # YAML schema validation
npm run validate:bundles # Web bundle integrity

Code Quality

# Lint check
npm run lint

# Auto-fix linting issues
npm run lint:fix

# Format check
npm run format:check

# Auto-format all files
npm run format:fix

Build & Development

# Bundle for web deployment
npm run bundle

# Test local installation
npm run install:bmad

Pre-commit Hook: Auto-fixes changed files (lint-staged) + validates everything (npm test) CI: GitHub Actions runs all quality checks in parallel on every PR


Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Code contribution guidelines
  • Documentation improvements
  • Module development
  • Issue reporting

License

MIT License - See LICENSE for details

Trademarks: BMAD™ and BMAD-METHOD™ are trademarks of BMad Code, LLC.


Contributors

Built with ❤️ for the human-AI collaboration community