BMAD-METHOD/src/modules/bmb/workflows/create-module
Brian Madison f84e18760f feat: Extract BMGD module and implement workflow vendoring
This commit extracts game development functionality from BMM into a standalone
BMGD (BMad Game Development) module and implements workflow vendoring to enable
module independence.

BMGD Module Creation:
- Moved agents: game-designer, game-dev, game-architect from BMM to BMGD
- Moved team config: team-gamedev
- Created new Game Dev Scrum Master agent using workflow vendoring pattern
- Reorganized workflows into industry-standard game dev phases:
  * Phase 1 (Preproduction): brainstorm-game, game-brief
  * Phase 2 (Design): gdd, narrative
  * Phase 3 (Technical): game-architecture
  * Phase 4 (Production): vendored from BMM workflows
- Updated all module metadata and config_source references

Workflow Vendoring Feature:
- Enables modules to copy workflows from other modules during installation
- Build-time process that updates config_source in vendored workflows
- New agent YAML attribute: workflow-install (build-time metadata)
- Final compiled agents use workflow-install value for workflow attribute
- Implementation in module manager: vendorCrossModuleWorkflows()
- Allows standalone module installation without forced dependencies

Technical Changes:
- tools/cli/lib/yaml-xml-builder.js: Use workflow-install for workflow attribute
- tools/cli/installers/lib/modules/manager.js: Add vendoring functions
- tools/schema/agent.js: Add workflow-install to menu item schema
- Updated 3 documentation files with workflow vendoring details

BMM Workflow Updates:
- workflow-status/init: Added game detection checkpoint
- workflow-status/paths/game-design.yaml: Redirect to BMGD module
- prd/instructions.md: Route game projects to BMGD
- research/instructions-market.md: Reference BMGD for game development

Documentation:
- Created comprehensive BMGD module README
- Added workflow vendoring documentation
- Updated BMB agent creation and module creation guides
2025-11-05 20:44:22 -06:00
..
installer-templates massive architecture creation overhaul 2025-10-19 23:28:38 -05:00
README.md docs updates 2025-10-30 11:26:15 -05:00
brainstorm-context.md workflows indicate web_bundle file inclusions 2025-09-30 00:24:27 -05:00
checklist.md installer updates, bmd module added and moved out of src, created a plan for module installation tool for custom modules, minor flow improvements 2025-10-19 11:59:27 -05:00
instructions.md check alignment 2025-10-22 12:36:39 -05:00
module-structure.md feat: Extract BMGD module and implement workflow vendoring 2025-11-05 20:44:22 -06:00
workflow.yaml workflows tasks and tools can be configured wether they are able to be run standalone from agents with ide commands 2025-10-26 20:06:34 -05:00

README.md

Create Module Workflow

Interactive scaffolding system creating complete BMad modules with agents, workflows, tasks, and installation infrastructure.

Table of Contents

Quick Start

# Basic invocation
workflow create-module

# With module brief input
workflow create-module --input module-brief-{name}-{date}.md

# Via BMad Builder
*create-module

Workflow Phases

Phase 1: Concept Definition

  • Define module purpose and audience
  • Establish module code (kebab-case) and name
  • Choose category (Domain, Creative, Technical, Business, Personal)
  • Plan component architecture

Module Brief Integration:

  • Auto-detects existing briefs
  • Uses as pre-populated blueprint
  • Accelerates planning phase

Phase 2: Architecture Planning

  • Create directory hierarchy
  • Setup configuration system
  • Define installer structure
  • Establish component folders

Phase 3: Component Creation

  • Optional first agent creation
  • Optional first workflow creation
  • Component placeholder generation
  • Integration validation

Phase 4: Installation Setup

  • Create install-config.yaml
  • Configure deployment questions
  • Setup installer logic
  • Post-install messaging

Phase 5: Documentation

  • Generate comprehensive README
  • Create development roadmap
  • Provide quick commands
  • Document next steps

Output Structure

Generated Directory

bmad/{module-code}/
├── agents/              # Agent definitions
├── workflows/           # Workflow processes
├── tasks/              # Reusable tasks
├── templates/          # Document templates
├── data/               # Module data files
├── _module-installer/  # Installation logic
│   ├── install-config.yaml
│   └── installer.js
├── README.md           # Module documentation
├── TODO.md            # Development roadmap
└── config.yaml        # Runtime configuration

Configuration Files

install-config.yaml - Installation questions

questions:
  - id: user_name
    prompt: 'Your name?'
    default: 'User'
  - id: output_folder
    prompt: 'Output location?'
    default: './output'

config.yaml - Generated from user answers during install

user_name: 'John Doe'
output_folder: './my-output'

Module Components

Agents

  • Full module agents with workflows
  • Expert agents with sidecars
  • Simple utility agents

Workflows

  • Multi-step guided processes
  • Configuration-driven
  • Web bundle support

Tasks

  • Reusable operations
  • Agent-agnostic
  • Modular components

Templates

  • Document structures
  • Output formats
  • Report templates

Best Practices

Planning

  1. Use module-brief workflow first - Creates comprehensive blueprint
  2. Define clear scope - Avoid feature creep
  3. Plan component interactions - Map agent/workflow relationships

Structure

  1. Follow conventions - Use established patterns
  2. Keep components focused - Single responsibility
  3. Document thoroughly - Clear README and inline docs

Development

  1. Start with core agent - Build primary functionality first
  2. Create key workflows - Essential processes before edge cases
  3. Test incrementally - Validate as you build

Installation

  1. Minimal config questions - Only essential settings
  2. Smart defaults - Sensible out-of-box experience
  3. Clear post-install - Guide users to first steps

Integration Points

With Other Workflows

  • module-brief - Strategic planning input
  • create-agent - Agent component creation
  • create-workflow - Workflow building
  • redoc - Documentation maintenance

With BMad Core

  • Uses core framework capabilities
  • Integrates with module system
  • Follows BMad conventions

Examples

Domain-Specific Module

Category: Domain-Specific
Code: legal-advisor
Components:
- Contract Review Agent
- Compliance Workflow
- Legal Templates

Creative Module

Category: Creative
Code: story-builder
Components:
- Narrative Agent
- Plot Workflow
- Character Templates

Technical Module

Category: Technical
Code: api-tester
Components:
- Test Runner Agent
- API Validation Workflow
- Test Report Templates

Workflow Files

create-module/
├── workflow.yaml          # Configuration
├── instructions.md        # Step guide
├── checklist.md          # Validation
├── module-structure.md   # Architecture
├── installer-templates/  # Install files
└── README.md            # This file