BMAD-METHOD/src/modules/cis
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
..
_module-installer Major Enhancements: 2025-11-09 17:39:05 -06:00
agents feat(workflows): Implement intelligent file discovery protocol and Phase 4 BMGD workflows 2025-11-12 19:18:38 -06:00
teams Major Enhancements: 2025-11-09 17:39:05 -06:00
workflows The install directory is now configurable, with a few minute issues 2025-11-08 13:58:43 -06:00
readme.md The install directory is now configurable, with a few minute issues 2025-11-08 13:58:43 -06:00

readme.md

CIS - Creative Intelligence Suite

AI-powered creative facilitation transforming strategic thinking through expert coaching across five specialized domains.

Table of Contents

Core Capabilities

CIS provides structured creative methodologies through distinctive agent personas who act as master facilitators, drawing out insights through strategic questioning rather than generating solutions directly.

Specialized Agents

View detailed agent descriptions →

  • Carson - Brainstorming Specialist (energetic facilitator)
  • Maya - Design Thinking Maestro (jazz-like improviser)
  • Dr. Quinn - Problem Solver (detective-scientist hybrid)
  • Victor - Innovation Oracle (bold strategic precision)
  • Sophia - Master Storyteller (whimsical narrator)

Interactive Workflows

View all workflows →

5 Workflows with 150+ Creative Techniques:

Brainstorming

36 techniques across 7 categories for ideation

  • Divergent/convergent thinking
  • Lateral connections
  • Forced associations

Design Thinking

Complete 5-phase human-centered process

  • Empathize → Define → Ideate → Prototype → Test
  • User journey mapping
  • Rapid iteration

Problem Solving

Systematic root cause analysis

  • 5 Whys, Fishbone diagrams
  • Solution generation
  • Impact assessment

Innovation Strategy

Business model disruption

  • Blue Ocean Strategy
  • Jobs-to-be-Done
  • Disruptive innovation patterns

Storytelling

25 narrative frameworks

  • Hero's Journey
  • Story circles
  • Compelling pitch structures

Quick Start

Direct Workflow

# Start interactive session
workflow brainstorming

# With context document
workflow design-thinking --data /path/to/context.md

Agent-Facilitated

# Load agent
agent cis/brainstorming-coach

# Start workflow
> *brainstorm

Key Differentiators

  • Facilitation Over Generation - Guides discovery through questions
  • Energy-Aware Sessions - Adapts to engagement levels
  • Context Integration - Domain-specific guidance support
  • Persona-Driven - Unique communication styles
  • Rich Method Libraries - 150+ proven techniques

Configuration

Edit /{bmad_folder}/cis/config.yaml:

output_folder: ./creative-outputs
user_name: Your Name
communication_language: english

Module Structure

cis/
├── agents/              # 5 specialized facilitators
├── workflows/           # 5 interactive processes
│   ├── brainstorming/
│   ├── design-thinking/
│   ├── innovation-strategy/
│   ├── problem-solving/
│   └── storytelling/
├── tasks/              # Supporting operations
└── teams/              # Agent collaborations

Integration Points

CIS workflows integrate with:

  • BMM - Powers project brainstorming
  • BMB - Creative module design
  • Custom Modules - Shared creative resource

Best Practices

  1. Set clear objectives before starting sessions
  2. Provide context documents for domain relevance
  3. Trust the process - Let facilitation guide you
  4. Take breaks when energy flags
  5. Document insights as they emerge

Part of BMad Method v6.0 - Transform creative potential through expert AI facilitation.