diff --git a/.gitignore b/.gitignore index de55079f..a25ea7ec 100644 --- a/.gitignore +++ b/.gitignore @@ -46,8 +46,6 @@ CLAUDE.local.md # Project-specific _bmad-core _bmad-creator-tools -test-project-install/* -sample-project/* flattened-codebase.xml *.stats.md .internal-docs/ @@ -66,6 +64,7 @@ shared-modules z*/ _bmad +_bmad-output .claude .codex .github/chatmodes diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e20cdb6..e23cf8b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,161 @@ # Changelog +## [6.0.0-alpha.22] + +**Release: December 31, 2025** + +### ๐ŸŒŸ Key Highlights + +1. **Unified Agent Workflow**: Create, Edit, and Validate workflows consolidated into single powerful agent workflow with separate step paths +2. **Agent Knowledge System**: Comprehensive data file architecture with persona properties, validation patterns, and crafting principles +3. **Deep Language Integration**: All sharded progressive workflows now support language choice at every step +4. **Core Module Documentation**: Extensive docs for core workflows (brainstorming, party mode, advanced elicitation) +5. **BMAD Core Concepts**: New documentation structure explaining agents, workflows, modules, and installation +6. **Tech Spec Sharded**: create-tech-spec workflow converted to sharded format with orient-first pattern + +### ๐Ÿค– Unified Agent Workflow (Major Feature) + +**Consolidated Architecture:** + +- **Single Workflow, Three Paths**: Create, Edit, and Validate operations unified under `src/modules/bmb/workflows/agent/` +- **steps-c/**: Create path with 9 comprehensive steps for building new agents +- **steps-e/**: Edit path with 10 steps for modifying existing agents +- **steps-v/**: Validate path for standalone agent validation review +- **data/**: Centralized knowledge base for all agent-building intel + +### ๐Ÿ“š Agent Knowledge System + +**Data File Architecture:** + +Located in `src/modules/bmb/workflows/agent/data/`: + +- **agent-metadata.md** (208 lines) - Complete metadata field reference +- **agent-menu-patterns.md** (233 lines) - Menu design patterns and best practices +- **agent-compilation.md** (273 lines) - Compilation process documentation +- **persona-properties.md** (266 lines) - Persona crafting properties and examples +- **principles-crafting.md** (292 lines) - Core principles for agent design +- **critical-actions.md** (120 lines) - Critical action patterns +- **expert-agent-architecture.md** (236 lines) - Expert agent structure +- **expert-agent-validation.md** (173 lines) - Expert-specific validation +- **module-agent-validation.md** (124 lines) - Module-specific validation +- **simple-agent-architecture.md** (204 lines) - Simple agent structure +- **simple-agent-validation.md** (132 lines) - Simple agent validation +- **understanding-agent-types.md** (222 lines) - Agent type comparison +- **brainstorm-context.md** - Brainstorming guidance +- **communication-presets.csv** - Communication style presets + +**Reference Examples:** + +- **reference/module-examples/architect.agent.yaml** - Module agent example +- **reference/simple-examples/commit-poet.agent.yaml** - Simple agent example +- **journal-keeper/** - Complete sidecar pattern example + +**Templates:** + +- **templates/simple-agent.template.md** - Simple agent template +- **templates/expert-agent-template/expert-agent.template.md** - Expert agent template +- **templates/expert-agent-sidecar/** - Sidecar templates (instructions, memories) + +### ๐ŸŒ Deep Language Integration + +**Progressive Workflow Language Support:** + +- **Every Step Biased**: All sharded progressive workflow steps now include language preference context +- **260+ Files Updated**: Comprehensive language integration across: + - Core workflows (brainstorming, party mode, advanced elicitation) + - BMB workflows (create-agent, create-module, create-workflow, edit-workflow, etc.) + - BMGD workflows (game-brief, gdd, narrative, game-architecture, etc.) + - BMM workflows (research, create-ux-design, prd, create-architecture, etc.) +- **Tested Languages**: Verified working with Spanish and Pirate Speak +- **Natural Conversations**: AI agents respond in configured language throughout workflow + +### ๐Ÿ“– Core Module Documentation + +**New Core Documentation Structure:** + +`docs/modules/core/`: + +- **index.md** - Core module overview +- **core-workflows.md** - Core workflow documentation +- **core-tasks.md** - Core task reference +- **brainstorming.md** (100 lines) - Brainstorming workflow guide +- **party-mode.md** (50 lines) - Party mode guide +- **advanced-elicitation.md** (105 lines) - Advanced elicitation techniques +- **document-sharding-guide.md** (133 lines) - Sharded workflow format guide +- **global-core-config.md** - Global core configuration reference + +**Advanced Elicitation Moved:** + +- **From**: `docs/` root +- **To**: `src/core/workflows/advanced-elicitation/` +- **Status**: Now a proper core workflow with methods.csv + +### ๐Ÿ“š BMAD Core Concepts Documentation + +**New Documentation Structure:** + +`docs/bmad-core-concepts/`: + +- **index.md** - Core concepts introduction +- **agents.md** (93 lines) - Understanding agents in BMAD +- **workflows.md** (89 lines) - Understanding workflows in BMAD +- **modules.md** (76 lines) - Understanding modules (BMM, BMGD, CIS, BMB, Core) +- **installing/index.md** (77 lines) - Installation guide +- **installing/upgrading.md** (144 lines) - Upgrading guide +- **bmad-customization/index.md** - Customization overview +- **bmad-customization/agents.md** - Agent customization guide +- **bmad-customization/workflows.md** (30 lines) - Workflow customization guide +- **web-bundles/index.md** (34 lines) - Web bundle distribution guide + +**Documentation Cleanup:** + +- **Removed v4-to-v6-upgrade.md** - Outdated upgrade guide +- **Removed document-sharding-guide.md** from docs root (moved to core) +- **Removed web-bundles-gemini-gpt-guide.md** - Consolidated into web-bundles/index.md +- **Removed getting-started/installation.md** - Migrated to bmad-core-concepts +- **Removed all ide-info/*.md files** - Consolidated into web-bundles documentation + +### ๐Ÿ”ง Create-Tech-Spec Sharded Conversion + +**Monolithic to Sharded:** + +- **From**: Single `workflow.yaml` with `instructions.md` +- **To**: Sharded `workflow.md` with individual step files +- **Pattern**: Orient-first approach (understand before investigating) + +### ๐Ÿ”จ Additional Improvements + +**Workflow Status Path Fixes:** + +- **Corrected Discovery Paths**: workflow-status workflows now properly use planning_artifacts and implementation_artifacts +- **Updated All Path Files**: enterprise-brownfield, enterprise-greenfield, method-brownfield, method-greenfield + +**Documentation Updates:** + +- **BMB Agent Creation Guide**: Comprehensive 166-line guide for agent creation +- **Workflow Vendoring Doc**: New 42-line guide on workflow customization and inheritance +- **Document Project Reference**: Moved from BMM docs to shared location +- **Workflows Planning Guide**: New 89-line guide for planning workflows + +**BMB Documentation Streamlining:** + +- **Removed Redundant Docs**: Eliminated duplicate documentation in `src/modules/bmb/docs/` +- **Step File Rules**: New 469-line comprehensive guide for step file creation +- **Agent Docs Moved**: Agent architecture and validation docs moved to workflow data/ + +**Windows Inquirer Fix:** + +- **Another Default Addition**: Additional inquirer default value setting for better Windows multiselection support + +**Code Quality:** + +- **Removed Old BMM README**: Consolidated module documentation +- **Removed BMM Troubleshooting**: 661-line doc moved to shared location +- **Removed Enterprise Agentic Development**: 686-line doc consolidated +- **Removed Scale Adaptive System**: 618-line doc consolidated + +--- + ## [6.0.0-alpha.21] **Release: December 27, 2025** diff --git a/README.md b/README.md index 08a07462..959cab22 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,8 @@ The completely revamped **BMAD V6 installer** now includes built-in support for **๐Ÿ“š Learn More:** -- [**Custom Content Overview**](./docs/custom-content.md) - Discover all supported content types -- [**Installation Guide**](./docs/custom-content-installation.md) - Learn to create and install custom content -- [**Detail Content Docs**](./src/modules/bmb/docs/index.md) - Reference details for agents, modules, workflows and the bmad builder +- [**Custom Content Overview**](docs/modules/bmb-bmad-builder/custom-content.md) - Discover all supported content types +- [**Installation Guide**](docs/modules/bmb-bmad-builder/custom-content-installation.md) - Learn to create and install custom content - [**2 Very simple Custom Modules of questionable quality**](./samples/sample-custom-modules/README.md) - if you want to download and try to install a custom shared module, get an idea of how to bundle and share your own, or create your own personal agents, workflows and modules. @@ -68,7 +67,7 @@ With **BMad Builder**, you can architect both simple agents and vastly complex d ## ๐Ÿ“Š See It In Action

- BMad Method Workflow + BMad Method Workflow

@@ -80,13 +79,18 @@ With **BMad Builder**, you can architect both simple agents and vastly complex d ### 1. Install BMad Method ```bash -# Install v6 Alpha (recommended) +# Install v6 RECOMMENDED npx bmad-method@alpha install - -# Or stable v4 for production -npx bmad-method install ``` +```bash +# Install v4 Legacy (not recommended if starting fresh) +npx bmad-method install +# OR +npx bmad-method@latest install +``` + + ### 2. Initialize Your Project Load any agent in your IDE and run: @@ -101,8 +105,8 @@ This analyzes your project and recommends the right workflow track. BMad Method adapts to your needs with three intelligent tracks: -| Track | Use For | Planning | Time to Start | -| ------------------ | ------------------------- | ----------------------- | ------------- | +| Track | Use For | Planning | Time to Start | +| ----------------- | ------------------------- | ----------------------- | ------------- | | **โšก Quick Flow** | Bug fixes, small features | Tech spec only | < 5 minutes | | **๐Ÿ“‹ BMad Method** | Products, platforms | PRD + Architecture + UX | < 15 minutes | | **๐Ÿข Enterprise** | Compliance, scale | Full governance suite | < 30 minutes | @@ -124,35 +128,35 @@ Each phase has specialized workflows and agents working together to deliver exce **12 Specialized Agents** working in concert: -| Development | Architecture | Product | Leadership | -| ----------- | -------------- | ------------- | -------------- | -| Developer | Architect | PM | Scrum Master | -| UX Designer | Test Architect | Analyst | BMad Master | -| Tech Writer | Game Architect | Game Designer | Game Developer | +| Development | Architecture | Product | Leadership | +| ----------- | -------------- | ----------- | ------------ | +| Developer | Architect | PM | Scrum Master | +| UX Designer | Test Architect | Analyst | BMad Master | +| | | Tech Writer | | -**Test Architect** integrates with `@seontechnologies/playwright-utils` for production-ready fixture-based utilities. +**Test Architect** integrates with `@seontechnologies/playwright-utils` for production-ready web app fixture-based utilities. Each agent brings deep expertise and can be customized to match your team's style. ## ๐Ÿ“ฆ What's Included -### Core Modules +### Official Modules - **BMad Method (BMM)** - Complete agile development framework - 12 specialized agents - 34 workflows across 4 phases - - Scale-adaptive planning - - [โ†’ Documentation Hub](./src/modules/bmm/docs/index.md) + - Stand Along Quick Spec Flow for a streamlined simple implementation process + - [โ†’ Documentation Hub](./docs/modules/bmm-bmad-method/index.md) - **BMad Builder (BMB)** - Create custom agents and workflows - Build anything from simple agents to complex modules - Create domain-specific solutions (legal, medical, finance, education) - - [โ†’ Builder Guide](./src/modules/bmb/docs/index.md) + - [โ†’ Builder Guide](./docs/modules/bmb-bmad-builder/index.md) - **Creative Intelligence Suite (CIS)** - Innovation & problem-solving - Brainstorming, design thinking, storytelling - 5 creative facilitation workflows - - [โ†’ Creative Workflows](./src/modules/cis/docs/index.md) + - [โ†’ Creative Workflows](./docs/modules/cis-creative-intelligence-suite/index.md) ### Key Features @@ -166,14 +170,14 @@ Each agent brings deep expertise and can be customized to match your team's styl ### Quick Links -- **[Quick Start Guide](./src/modules/bmm/docs/quick-start.md)** - 15-minute introduction -- **[Complete BMM Documentation](./src/modules/bmm/docs/index.md)** - All guides and references -- **[Agent Customization](./docs/agent-customization-guide.md)** - Personalize your agents +- **[Quick Start Guide](./docs/modules/bmm-bmad-method/quick-start.md)** - 15-minute introduction +- **[Complete BMM Documentation](./docs/modules/bmm-bmad-method/index.md)** - All guides and references +- **[Agent Customization](docs/bmad-customization/agent-customization-guide.md)** - Personalize your agents - **[All Documentation](./docs/index.md)** - Complete documentation index ### For v4 Users -- **[v4 Documentation](https://github.com/bmad-code-org/BMAD-METHOD/tree/V4)** +- **[v4 Documentation](https://github.com/bmad-code-org/BMAD-METHOD/tree/V4/docs)** - **[v4 to v6 Upgrade Guide](./docs/v4-to-v6-upgrade.md)** ## ๐Ÿ’ฌ Community & Support @@ -181,24 +185,12 @@ Each agent brings deep expertise and can be customized to match your team's styl - **[Discord Community](https://discord.gg/gk8jAdXWmj)** - Get help, share projects - **[GitHub Issues](https://github.com/bmad-code-org/BMAD-METHOD/issues)** - Report bugs, request features - **[YouTube Channel](https://www.youtube.com/@BMadCode)** - Video tutorials and demos -- **[Web Bundles](https://bmad-code-org.github.io/bmad-bundles/)** - Pre-built agent bundles +- **[Web Bundles](https://bmad-code-org.github.io/bmad-bundles/)** - Pre-built agent bundles (Currently not functioning, reworking soon) - **[Code of Conduct](.github/CODE_OF_CONDUCT.md)** - Community guidelines ## ๐Ÿ› ๏ธ Development -For contributors working on the BMad codebase: - -```bash -# Run all quality checks -npm test - -# Development commands -npm run lint:fix # Fix code style -npm run format:fix # Auto-format code -npm run bundle # Build web bundles -``` - -See [CONTRIBUTING.md](CONTRIBUTING.md) for full development guidelines. +If you would like to contribute, first check the [CONTRIBUTING.md](CONTRIBUTING.md) for full development guidelines. ## What's New in v6 diff --git a/docs/bmad-core-concepts/agents.md b/docs/bmad-core-concepts/agents.md new file mode 100644 index 00000000..465bf749 --- /dev/null +++ b/docs/bmad-core-concepts/agents.md @@ -0,0 +1,93 @@ +# Agents + +Agents are AI assistants that help you accomplish tasks. Each agent has a unique personality, specialized capabilities, and an interactive menu. + +## Agent Types + +BMAD has two primary agent types, designed for different use cases: + +### Simple Agents + +**Self-contained, focused, ready to use.** + +Simple agents are complete in a single file. They excel at well-defined tasks and require minimal setup. + +**Best for:** +- Single-purpose assistants (code review, documentation, commit messages) +- Quick deployment +- Projects that don't require persistent memory +- Getting started fast + +**Example:** A commit message agent that reads your git diff and generates conventional commits. + +### Expert Agents + +**Powerful, memory-equipped, domain specialists.** + +Expert agents have a **sidecar** - a companion folder containing additional instructions, workflows, and memory files. They remember context across sessions and handle complex, multi-step tasks. + +**Best for:** +- Domain specialists (security architect, game designer, product manager) +- Tasks requiring persistent memory +- Complex workflows with multiple stages +- Projects that grow over time + +**Example:** A game architect that remembers your design decisions, maintains consistency across sprints, and coordinates with other specialists. + +## Key Differences + +| Feature | Simple | Expert | +| ---------------- | -------------- | -------------------------- | +| **Files** | Single file | Agent + sidecar folder | +| **Memory** | Session only | Persistent across sessions | +| **Capabilities** | Focused scope | Multi-domain, extensible | +| **Setup** | Zero config | Sidecar initialization | +| **Best Use** | Specific tasks | Ongoing projects | + +## Agent Components + +All agents share these building blocks: + +### Persona +- **Role** - What the agent does (expertise domain) +- **Identity** - Who the agent is (personality, character) +- **Communication Style** - How the agent speaks (tone, voice) +- **Principles** - Why the agent acts (values, decision framework) + +### Capabilities +- Skills, tools, and knowledge the agent can apply +- Mapped to specific menu commands + +### Menu +- Interactive command list +- Triggers, descriptions, and handlers +- Auto-includes help and exit options + +### Critical Actions (optional) +- Instructions that execute before the agent starts +- Enable autonomous behaviors (e.g., "check git status before changes") + +## Which Should You Use? + +**Choose Simple when:** +- You need a task done quickly and reliably +- The scope is well-defined and won't change much +- You don't need the agent to remember things between sessions + +**Choose Expert when:** +- You're building something complex over time +- The agent needs to maintain context (project history, decisions) +- You want the agent to coordinate workflows or other agents +- Domain expertise requires specialized knowledge bases + +## Creating Custom Agents + +BMAD provides the **BMAD Builder (BMB)** module for creating your own agents. See the [Agent Creation Guide](../modules/bmb-bmad-builder/agent-creation-guide.md) for step-by-step instructions. + +## Customizing Existing Agents + +You can modify any agent's behavior without editing core files. See [BMAD Customization](./bmad-customization/) for details. It is critical to never modify an installed agents .md file directly and follow the customization process, this way future updates to the agent or module its part of will continue to be updated and recompiled with the installer tool, and your customizations will still be retained. + +--- + +**Next:** Learn about [Workflows](./workflows.md) to see how agents accomplish complex tasks. diff --git a/docs/agent-customization-guide.md b/docs/bmad-core-concepts/bmad-customization/agents.md similarity index 93% rename from docs/agent-customization-guide.md rename to docs/bmad-core-concepts/bmad-customization/agents.md index 350a609a..a1997459 100644 --- a/docs/agent-customization-guide.md +++ b/docs/bmad-core-concepts/bmad-customization/agents.md @@ -203,6 +203,8 @@ memories: ## Next Steps -- **[BMM Agents Guide](./modules/bmm/agents-guide)** - Learn about the BMad Method agents -- **[BMB Create Agent Workflow](./modules/bmb/agents/index)** - Build completely custom agents -- **[BMM Complete Documentation](./modules/bmm/index)** - Full BMad Method reference +- **[Learn about Agents](../agents.md)** - Understand Simple vs Expert agents +- **[Agent Creation Guide](../../modules/bmb-bmad-builder/agent-creation-guide.md)** - Build completely custom agents +- **[BMM Complete Documentation](../../modules/bmm-bmad-method/index)** - Full BMad Method reference + +[โ† Back to Customization](./index.md) diff --git a/docs/bmad-core-concepts/bmad-customization/index.md b/docs/bmad-core-concepts/bmad-customization/index.md new file mode 100644 index 00000000..ae4b33bb --- /dev/null +++ b/docs/bmad-core-concepts/bmad-customization/index.md @@ -0,0 +1,26 @@ +# BMAD Customization + +Personalize agents and workflows to match your needs. + +## Guides + +| Guide | Description | +|-------|-------------| +| **[Agent Customization](./agents.md)** | Modify agent behavior without editing core files | +| **[Workflow Customization](./workflows.md)** | Customize and optimize workflows | + +## Overview + +BMAD provides two main customization approaches: + +### Agent Customization +Modify any agent's persona, name, capabilities, or menu items using `.customize.yaml` files in `_bmad/_config/agents/`. Your customizations persist through updates. + +### Workflow Customization +Replace or extend workflow steps to create tailored processes. (Coming soon) + +--- + +**Next:** Read the [Agent Customization Guide](./agents.md) to start personalizing your agents. + +[โ† Back to Core Concepts](../index.md) diff --git a/docs/bmad-core-concepts/bmad-customization/workflows.md b/docs/bmad-core-concepts/bmad-customization/workflows.md new file mode 100644 index 00000000..e5db06ba --- /dev/null +++ b/docs/bmad-core-concepts/bmad-customization/workflows.md @@ -0,0 +1,30 @@ +# Workflow Customization Guide + +Customize and optimize workflows with step replacement and hooks. + +## Status + +> **Coming Soon:** Workflow customization is an upcoming capability. This guide will be updated when the feature is available. + +## What to Expect + +Workflow customization will allow you to: + +- **Replace Steps** - Swap out specific workflow steps with custom implementations +- **Add Hooks** - Inject custom behavior before/after workflow steps +- **Extend Workflows** - Create new workflows based on existing ones +- **Override Behavior** - Customize workflow logic for your project's needs + +## For Now + +While workflow customization is in development, you can: + +- **Create Custom Workflows** - Use the BMAD Builder to create entirely new workflows +- **Customize Agents** - Modify agent behavior using [Agent Customization](./agents.md) +- **Provide Feedback** - Share your workflow customization needs with the community + +--- + +**In the meantime:** Learn how to [create custom workflows](../../modules/bmb-bmad-builder/index) from scratch. + +[โ† Back to Customization](./index.md) diff --git a/docs/bmad-core-concepts/index.md b/docs/bmad-core-concepts/index.md new file mode 100644 index 00000000..e34ad4dd --- /dev/null +++ b/docs/bmad-core-concepts/index.md @@ -0,0 +1,37 @@ +# BMAD Core Concepts + +Understanding the fundamental building blocks of the BMAD Method. + +## The Essentials + +| Concept | Description | Guide | +|---------|-------------|-------| +| **Agents** | AI assistants with personas, capabilities, and menus | [Agents Guide](./agents.md) | +| **Workflows** | Structured processes for achieving specific outcomes | [Workflows Guide](./workflows.md) | +| **Modules** | Packaged collections of agents and workflows | [Modules Guide](./modules.md) | + +## Getting Started + +### New to BMAD? +Start here to understand what BMAD is and how it works: + +1. **[Agents Guide](./agents.md)** - Learn about Simple and Expert agents +2. **[Workflows Guide](./workflows.md)** - Understand how workflows orchestrate tasks +3. **[Modules Guide](./modules.md)** - See how modules organize functionality + +### Installing BMAD + +- **[Installation Guide](./installing/)** - Set up BMAD in your project +- **[Upgrading from v4](./installing/upgrading.md)** - Migrate from earlier versions + +### Configuration + +- **[BMAD Customization](./bmad-customization/)** - Personalize agents and workflows + +### Advanced + +- **[Web Bundles](./web-bundles/)** - Use BMAD in Gemini Gems and Custom GPTs + +--- + +**Next:** Read the [Agents Guide](./agents.md) to understand the core building block of BMAD. diff --git a/docs/getting-started/installation.md b/docs/bmad-core-concepts/installing/index.md similarity index 73% rename from docs/getting-started/installation.md rename to docs/bmad-core-concepts/installing/index.md index d7fd3baa..97a7abe5 100644 --- a/docs/getting-started/installation.md +++ b/docs/bmad-core-concepts/installing/index.md @@ -1,6 +1,12 @@ # Installation -Get BMAD Method running in your project in under 2 minutes. +Get BMAD up and running in your project. + +## Upgrading? + +If you're upgrading from v4, see the [Upgrade Guide](./upgrading.md). + +--- ## Quick Install @@ -10,9 +16,11 @@ npx bmad-method install This interactive installer will: -1. Detect your IDE (Claude Code, Cursor, VS Code, etc.) -2. Let you choose which modules to install -3. Configure agents and workflows for your project +1. Let you choose a location to install to +2. Let you choose which Agentic LLM Tools you would like to use (Such as Claude Code, Cursor, Windsurf, etc...) +3. Let you choose which official modules to install (BMad Method, Creative Intelligence suite, BMad Builder) +4. Let you choose any custom local modules, workflows or agents to install +5. Let you configure each module or quickly accept the default recommended settings for each selected model ## Requirements @@ -58,8 +66,9 @@ your-project/ ## Next Steps -1. **Read the [Quick Start Guide](../modules/bmm/quick-start.md)** to build your first feature -2. **Explore [Workflows](../modules/bmm/workflows-planning.md)** to understand the methodology +1. **Read the [Quick Start Guide](../../modules/bmm-bmad-method/quick-start)** to build your first feature +2. **Explore [Workflows](../../modules/bmm-bmad-method/index#-workflow-guides)** to understand the methodology +3. **Learn about [Agents](../agents.md)** to understand BMAD's core building blocks ## Troubleshooting diff --git a/docs/v4-to-v6-upgrade.md b/docs/bmad-core-concepts/installing/upgrading.md similarity index 82% rename from docs/v4-to-v6-upgrade.md rename to docs/bmad-core-concepts/installing/upgrading.md index ba1e0dae..29384f2d 100644 --- a/docs/v4-to-v6-upgrade.md +++ b/docs/bmad-core-concepts/installing/upgrading.md @@ -10,15 +10,13 @@ BMad v6 represents a complete ground-up rewrite with significant architectural c When you run `npm run install:bmad` on a project, the installer automatically detects: -- **Legacy folders**: Any folders starting with `bmad-core` or `bmad-core` +- **Legacy v4 installation folder**: `.bmad-method` - **IDE command artifacts**: Legacy bmad folders in IDE configuration directories (`.claude/commands/`, `.cursor/commands/`, etc.) ### What Happens During Detection -1. **Automatic Backup of v4 Modules**: All `.bmad-core` folders are moved to `v4-backup/` in your project root - - If a backup already exists, a timestamp is added to avoid conflicts - - Example: `.bmad-core` โ†’ `v4-backup/_bmad-core` - - Your project files and data are NOT affected +1. **Automatic Detection of v4 Modules** + 1. Installer will suggest removal or backup of your .bmad-method folder. You can choose to exit the installer and handle this cleanup, or allow the install to continue. Technically you can have both v4 and v6 installed, but it is not recommended. All BMad content and modules will be installed under a .bmad folder, fully segregated. 2. **IDE Command Cleanup Recommended**: Legacy v4 IDE commands should be manually removed - Located in IDE config folders, for example claude: `.claude/commands/BMad/agents`, `.claude/commands/BMad/tasks`, etc. @@ -27,7 +25,7 @@ When you run `npm run install:bmad` on a project, the installer automatically de ## Module Migration -### Deprecated Modules +### Deprecated Modules from v4 | v4 Module | v6 Status | | ----------------------------- | ---------------------------------------------- | @@ -38,6 +36,7 @@ When you run `npm run install:bmad` on a project, the installer automatically de | `_bmad-infrastructure-devops` | Deprecated - New core devops agent coming soon | | `_bmad-creative-writing` | Not adapted - New v6 module coming soon | +Aside from .bmad-method - if you have any of these others installed also, again its recommended to remove them and use the V6 equivalents, but its also fine if you decide to keep both. But it is not recommended to use both on the same project long term. ## Architecture Changes @@ -47,29 +46,30 @@ When you run `npm run install:bmad` on a project, the installer automatically de ``` your-project/ -โ”œโ”€โ”€ _bmad-core/ # Was actually the BMad Method -โ”œโ”€โ”€ _bmad-game-dev/ # Separate expansion packs -โ”œโ”€โ”€ _bmad-creative-writing/ -โ””โ”€โ”€ _bmad-infrastructure-devops/ +โ”œโ”€โ”€ .bmad-method/ +โ”œโ”€โ”€ .bmad-game-dev/ +โ”œโ”€โ”€ .bmad-creative-writing/ +โ””โ”€โ”€ .bmad-infrastructure-devops/ ``` **v6 Unified Structure:** ``` your-project/ -โ””โ”€โ”€ _bmad/ # Single installation folder, default _bmad - โ””โ”€โ”€ _config/ # Your customizations - | โ””โ”€โ”€ agents/ # Agent customization files +โ””โ”€โ”€ _bmad/ # Single installation folder is _bmad + โ””โ”€โ”€ _config/ # Your customizations + | โ””โ”€โ”€ agents/ # Agent customization files โ”œโ”€โ”€ core/ # Real core framework (applies to all modules) โ”œโ”€โ”€ bmm/ # BMad Method (software/game dev) โ”œโ”€โ”€ bmb/ # BMad Builder (create agents/workflows) โ”œโ”€โ”€ cis/ # Creative Intelligence Suite +โ”œโ”€โ”€ _bmad_output # Default bmad output folder (was doc folder in v4) ``` ### Key Concept Changes -- **v4 `_bmad-core`**: Was actually the BMad Method +- **v4 `_bmad-core and _bmad-method`**: Was actually the BMad Method - **v6 `_bmad/core/`**: Is the real universal core framework - **v6 `_bmad/bmm/`**: Is the BMad Method module - **Module identification**: All modules now have a `config.yaml` file once installed at the root of the modules installed folder @@ -120,7 +120,7 @@ persona: - Always upbeat and adventurous ``` -There is a lot more that is possible with agent customization, which is covered in detail in the [Agent Customization Guide](agent-customization-guide.md) +There is a lot more that is possible with agent customization, which is covered in detail in the [Agent Customization Guide](../bmad-customization/agents.md) CRITICAL NOTE: After you modify the customization file, you need to run the npx installer against your installed location, and choose the option to rebuild all agents, or just do a quick update again. This always builds agents fresh and applies customizations. diff --git a/docs/bmad-core-concepts/modules.md b/docs/bmad-core-concepts/modules.md new file mode 100644 index 00000000..e7a30a16 --- /dev/null +++ b/docs/bmad-core-concepts/modules.md @@ -0,0 +1,76 @@ +# Modules + +Modules are organized collections of agents and workflows that solve specific problems or address particular domains. + +## What is a Module? + +A module is a self-contained package that includes: + +- **Agents** - Specialized AI assistants +- **Workflows** - Step-by-step processes +- **Configuration** - Module-specific settings +- **Documentation** - Usage guides and reference + +## Official Modules + +### Core Module +Always installed, provides shared functionality: +- Global configuration +- Core workflows (Party Mode, Advanced Elicitation, Brainstorming) +- Common tasks (document indexing, sharding, review) + +### BMAD Method (BMM) +Software and game development: +- Project planning workflows +- Implementation agents (Dev, PM, QA, Scrum Master) +- Testing and architecture guidance + +### BMAD Builder (BMB) +Create custom solutions: +- Agent creation workflows +- Workflow authoring tools +- Module scaffolding + +### Creative Intelligence Suite (CIS) +Innovation and creativity: +- Creative thinking techniques +- Innovation strategy workflows +- Storytelling and ideation + +### BMAD Game Dev (BMGD) +Game development specialization: +- Game design workflows +- Narrative development +- Performance testing frameworks + +## Module Structure + +Installed modules follow this structure: + +``` +_bmad/ +โ”œโ”€โ”€ core/ # Always present +โ”œโ”€โ”€ bmm/ # BMAD Method (if installed) +โ”œโ”€โ”€ bmb/ # BMAD Builder (if installed) +โ”œโ”€โ”€ cis/ # Creative Intelligence (if installed) +โ””โ”€โ”€ bmgd/ # Game Dev (if installed) +``` + +## Custom Modules + +You can create your own modules containing: +- Custom agents for your domain +- Organizational workflows +- Team-specific configurations + +Custom modules are installed the same way as official modules. + +## Installing Modules + +During BMAD installation, you choose which modules to install. You can also add or remove modules later by re-running the installer. + +See [Installation Guide](./installing/) for details. + +--- + +**Next:** Read the [Installation Guide](./installing/) to set up BMAD with the modules you need. diff --git a/docs/bmad-core-concepts/web-bundles/index.md b/docs/bmad-core-concepts/web-bundles/index.md new file mode 100644 index 00000000..c1353098 --- /dev/null +++ b/docs/bmad-core-concepts/web-bundles/index.md @@ -0,0 +1,34 @@ +# Web Bundles + +Use BMAD agents in Gemini Gems and Custom GPTs. + +## Status + +> **Note:** The Web Bundling Feature is being rebuilt from the ground up. Current v6 bundles may be incomplete or missing functionality. + +## What Are Web Bundles? + +Web bundles package BMad agents as self-contained files that work in Gemini Gems and Custom GPTs. Everything the agent needs - instructions, workflows, dependencies - is bundled into a single file for easy upload. + +### What's Included + +- Complete agent persona and instructions +- All workflows and dependencies +- Interactive menu system +- Party mode for multi-agent collaboration +- No external files required + +### Use Cases + +**Perfect for:** +- Uploading a single file to a Gemini GEM or Custom GPT +- Using BMAD Method from the Web +- Cost savings (generally lower cost than local usage) +- Quick sharing of agent configurations + +**Trade-offs:** +- Some quality reduction vs local usage +- Less convenient than full local installation +- Limited to agent capabilities (no workflow file access) + +[โ† Back to Core Concepts](../index.md) diff --git a/docs/bmad-core-concepts/workflows.md b/docs/bmad-core-concepts/workflows.md new file mode 100644 index 00000000..44aa7f86 --- /dev/null +++ b/docs/bmad-core-concepts/workflows.md @@ -0,0 +1,89 @@ +# Workflows + +Workflows are structured processes that guide agents through complex tasks. Think of them as recipes that ensure consistent, high-quality outcomes. + +## What is a Workflow? + +A workflow is a step-by-step process that agents follow to accomplish specific objectives. A workflow can be a single file if small enough, but more than likely is comprized of a very small workflow or skill definition file with multiple steps and data files that are loaded as needed on demand. Each step file: + +- Defines a clear goal +- Provides instructions for the agent +- May include decision points or user interactions +- Produces specific outputs +- Progressively at a specific point can load the next proper step. + +## How Workflows Work + +``` +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ Step 1 โ”‚ โ†’ โ”‚ Step 2 โ”‚ โ†’ โ”‚ Step 3 โ”‚ โ†’ โ”‚ Complete โ”‚ +โ”‚ Discover โ”‚ โ”‚ Define โ”‚ โ”‚ Build โ”‚ โ”‚ Output โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ +``` + +**Key characteristics:** +- **Progressive** - Each step builds on the previous +- **Interactive** - Workflows can pause for user input +- **Reusable** - The same workflow produces consistent results +- **Composable** - Workflow steps can call other workflow steps, or whole other workflows! +- **LLM Reinforcement** - Some rules or info is repeated in each step file ensuring certain rules are always top of agent mind, even during context heavy processes or very long workflows! + +## Workflow Types + +### Planning Workflows + +Generate project artifacts like requirements, architecture, and task breakdowns. + +**Examples:** Brief creation, PRD authoring, architecture design, sprint planning + +### Execution Workflows + +Guide implementation of specific tasks or features. + +**Examples:** Code implementation, code review, testing, deployment + +### Support Workflows + +Handle cross-cutting concerns and creative processes. + +**Examples:** Brainstorming, retrospectives, root cause analysis + +## Progressive Disclosure + +BMAD workflows use **progressive disclosure** - each step only knows about its immediate next step and what it is currently meant to do. This: + +- Reduces cognitive load on the AI +- Ensures each step gets full attention +- Allows for conditional routing based on previous outcomes +- Makes workflows easier to debug and modify + +## Menu-Driven Interaction + +Most workflows use interactive menus with standard options: + +| Option | Purpose | +| ---------------- | -------------------------------------------------- | +| **[A] Advanced** | Invoke deeper reasoning techniques | +| **[P] Party** | Get multiple agent perspectives | +| **[C] Continue** | Proceed to next step after all writes are complete | + +## Workflow Files + +Workflows are markdown files with structured frontmatter - this front matter also allows them to easily work as skills and also slash command loaded: + +```yaml +--- +name: 'my-workflow' +description: 'What this workflow does and when it should be used or loaded automatically (or call out if it should be requested to run explicitly by the user)' +--- +``` + +The content in the workflow file is very minimal, sets up the reinforcement of the agent persona and reminder that it is a facilitator working with a user, lays out rules of processing steps only when told to do a specific step, loads all config file variables needed by the workflow, and then routes to step 1. No other info about other steps should be in this workflow file. Keeping it as small and lean as possible help in compilation as a skill, as overall size of the skill main file (workflow.md) is critical to keep small. + +## Creating Custom Workflows + +The **BMAD Builder (BMB)** module includes workflows for creating custom workflows. See [BMB Documentation](../modules/bmb-bmad-builder/) for details. + +--- + +**Next:** Learn about [Modules](./modules.md) to see how agents and workflows are organized. diff --git a/docs/index.md b/docs/index.md index 6e81e1fd..d9b22a2f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,105 +1,111 @@ -# BMad Documentation Index +# BMAD Documentation -## ๐ŸŽฏ Getting Started (Start Here!) +Complete documentation for the BMAD Method. -**New users:** Start with one of these based on your situation: +## Getting Started -| Your Situation | Start Here | Then Read | -| ---------------------- | -------------------------------------------------- | ----------------------------------------------------------- | -| **Brand new to BMad** | [Quick Start Guide](bmm/quick-start) | [BMM Workflows Guide](./modules/bmm/index#-workflow-guides) | -| **Upgrading from v4** | [v4 to v6 Upgrade Guide](./v4-to-v6-upgrade.md) | [Quick Start Guide](./modules/bmm/quick-start) | -| **Brownfield project** | [Brownfield Guide](./modules/bmm/brownfield-guide) | [Quick Start Guide](./modules/bmm/quick-start) | +### New to BMAD? +Start with the core concepts to understand how BMAD works: + +- **[Core Concepts](./bmad-core-concepts/)** - Agents, workflows, and modules explained +- **[Installation Guide](./bmad-core-concepts/installing/)** - Set up BMAD in your project +- **[Quick Start Guide](./modules/bmm-bmad-method/quick-start)** - Build your first feature + +### Upgrading from v4? +- **[v4 to v6 Upgrade Guide](./bmad-core-concepts/installing/upgrading.md)** - Migration path for v4 users --- -## ๐Ÿ“‹ Core Documentation +## Module Documentation -### Project-Level Docs (Root) - -- **[README.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/README.md)** - Main project overview, feature summary, and module introductions -- **[CONTRIBUTING.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/CONTRIBUTING.md)** - How to contribute, pull request guidelines, code style -- **[CHANGELOG.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/CHANGELOG.md)** - Version history and breaking changes - -### Installation & Setup - -- **[v4 to v6 Upgrade Guide](./v4-to-v6-upgrade.md)** - Migration path for v4 users -- **[Document Sharding Guide](./document-sharding-guide.md)** - Split large documents for 90%+ token savings -- **[Bundle Distribution Setup](./BUNDLE_DISTRIBUTION_SETUP.md)** - (temporarily non-functional) Maintainer guide for bundle auto-publishing - ---- - -## ๐Ÿ—๏ธ Module Documentation - -### BMad Method (BMM) - Software & Game Development +### BMAD Method (BMM) - Software & Game Development The flagship module for agile AI-driven development. -- **[BMM Module README](./modules/bmm/)** - Module overview, agents, and complete documentation index -- **[BMM Documentation](./modules/bmm/)** - All BMM-specific guides and references: - - [Quick Start Guide](./modules/bmm/quick-start) - Step-by-step guide to building your first project - - [Quick Spec Flow](./modules/bmm/quick-spec-flow) - Rapid Level 0-1 development - - [Scale Adaptive System](./modules/bmm/scale-adaptive-system) - Understanding the 5-level system - - [Brownfield Guide](./modules/bmm/brownfield-guide) - Working with existing codebases -- **[BMM Workflows Guide](./modules/bmm/index#-workflow-guides)** - **ESSENTIAL READING** -- **[Test Architect Guide](./modules/bmm/test-architecture)** - Testing strategy and quality assurance +- **[BMM Module Index](./modules/bmm-bmad-method/index)** - Module overview, agents, and documentation + - [Quick Start Guide](./modules/bmm-bmad-method/quick-start) - Step-by-step guide + - [Quick Spec Flow](./modules/bmm-bmad-method/quick-spec-flow) - Rapid Level 0-1 development + - [Brownfield Guide](./modules/bmm-bmad-method/brownfield-guide) - Working with existing codebases +- **[BMM Workflows Guide](./modules/bmm-bmad-method/index#-workflow-guides)** - Essential reading -### BMad Builder (BMB) - Create Custom Solutions +### BMAD Builder (BMB) - Create Custom Solutions Build your own agents, workflows, and modules. -- **[BMB Module Overview](./modules/bmb/index)** - Module overview and capabilities -- **[Agent Creation Guide](./modules/bmb/agents/index)** - Design custom agents +- **[BMB Module Overview](./modules/bmb-bmad-builder/index)** - Module overview and capabilities +- **[Agent Creation Guide](./modules/bmb-bmad-builder/agent-creation-guide.md)** - Create custom agents +- **[Custom Content Installation](./modules/bmb-bmad-builder/custom-content-installation.md)** - Share and install custom creations ### Creative Intelligence Suite (CIS) - Innovation & Creativity -AI-powered creative thinking and brainstorming. +- **[CIS Documentation](./modules/cis-creative-intelligence-suite/index)** -- **[CIS Module README](./modules/cis/)** - Module overview and workflows +### BMAD Game Dev (BMGD) -## ๐Ÿ”ง Advanced Topics - -### Custom Agents, Workflow and Modules - -- **[Custom Content Installation](./custom-content-installation.md)** - Install and personalize agents, workflows and modules with the default bmad-method installer! -- [Agent Customization Guide](./agent-customization-guide.md) - Customize agent behavior and responses +- **[BMGD Documentation](./modules/bmgd-bmad-game-dev/index)** - Game development workflows --- -## ๐ŸŽ“ Recommended Reading Paths +## Core Module -### Path 1: Brand New to BMad (Software Project) +### Global Core Entities -1. [README.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/README.md) - Understand the vision -2. [Quick Start Guide](./modules/bmm/quick-start) - Get hands-on -3. [BMM Module README](./modules/bmm/) - Understand agents -4. [BMM Workflows Guide](./modules/bmm/index#-workflow-guides) - Master the methodology +- **[Core Module Index](./modules/core/index)** - Shared functionality available to all modules + - [Global Core Config](./modules/core/global-core-config.md) - Inheritable configuration + - [Core Workflows](./modules/core/core-workflows.md) - Domain-agnostic workflows + - [Party Mode](./modules/core/party-mode.md) - Multi-agent conversations + - [Brainstorming](./modules/core/brainstorming.md) - Structured creative sessions + - [Advanced Elicitation](./modules/core/advanced-elicitation.md) - LLM reasoning techniques + - [Core Tasks](./modules/core/core-tasks.md) - Common tasks across modules + +--- + +## Advanced Topics + +### Customization + +- **[BMAD Customization](./bmad-core-concepts/bmad-customization/)** - Modify agents and workflows + +### Platform Guides + +- **[Web Bundles](./bmad-core-concepts/web-bundles/)** - Use BMAD in Gemini Gems and Custom GPTs + +--- + +## Recommended Reading Paths + +### Path 1: Brand New to BMAD (Software Project) + +1. [Core Concepts](./bmad-core-concepts/) - Understand agents and workflows +2. [Installation Guide](./bmad-core-concepts/installing/) - Set up BMAD +3. [Quick Start Guide](./modules/bmm-bmad-method/quick-start) - Get hands-on +4. [BMM Workflows Guide](./modules/bmm-bmad-method/index#-workflow-guides) - Master the methodology ### Path 2: Game Development Project -1. [README.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/README.md) - Understand the vision -2. [Quick Start Guide](./modules/bmm/quick-start) - Get hands-on -3. [BMM Module README](./modules/bmm/) - Game agents are included -4. [BMGD Workflows Guide](./modules/bmgd/workflows-guide) - Game-specific workflows +1. [Core Concepts](./bmad-core-concepts/) - Understand agents and workflows +2. [Installation Guide](./bmad-core-concepts/installing/) - Set up BMAD +3. [BMGD Workflows Guide](./modules/bmgd-bmad-game-dev/workflows-guide) - Game-specific workflows ### Path 3: Upgrading from v4 -1. [v4 to v6 Upgrade Guide](./v4-to-v6-upgrade.md) - Understand what changed -2. [Quick Start Guide](./modules/bmm/quick-start) - Reorient yourself -3. [BMM Workflows Guide](./modules/bmm/index#-workflow-guides) - Learn new v6 workflows +1. [v4 to v6 Upgrade Guide](./bmad-core-concepts/installing/upgrading.md) - Understand what changed +2. [Quick Start Guide](./modules/bmm-bmad-method/quick-start) - Reorient yourself +3. [BMM Workflows Guide](./modules/bmm-bmad-method/index#-workflow-guides) - Learn new v6 workflows ### Path 4: Working with Existing Codebase (Brownfield) -1. [Brownfield Guide](./modules/bmm/brownfield-guide) - Approach for legacy code -2. [Quick Start Guide](./modules/bmm/quick-start) - Follow the process -3. [BMM Workflows Guide](./modules/bmm/index#-workflow-guides) - Master the methodology +1. [Brownfield Guide](./modules/bmm-bmad-method/brownfield-guide) - Approach for legacy code +2. [Quick Start Guide](./modules/bmm-bmad-method/quick-start) - Follow the process +3. [BMM Workflows Guide](./modules/bmm-bmad-method/index#-workflow-guides) - Master the methodology -### Path 5: Building Custom Solutions +### Path 5: Building Custom Agents -1. [BMB Module Overview](./modules/bmb/index) - Understand capabilities -2. [Agent Creation Guide](./modules/bmb/agents/index) - Create agents -3. [BMB Workflows Guide](./modules/bmb/workflows/) - Understand workflow structure +1. [Core Concepts: Agents](./bmad-core-concepts/agents.md) - Understand Simple vs Expert +2. [Agent Creation Guide](./modules/bmb-bmad-builder/agent-creation-guide.md) - Build your first agent +3. [Agent Architecture](./modules/bmb-bmad-builder/index) - Deep technical details -### Path 6: Contributing to BMad +### Path 6: Contributing to BMAD 1. [CONTRIBUTING.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/CONTRIBUTING.md) - Contribution guidelines 2. Relevant module README - Understand the area you're contributing to diff --git a/docs/modules/bmb-bmad-builder/agent-creation-guide.md b/docs/modules/bmb-bmad-builder/agent-creation-guide.md new file mode 100644 index 00000000..cb387d8b --- /dev/null +++ b/docs/modules/bmb-bmad-builder/agent-creation-guide.md @@ -0,0 +1,166 @@ +# Agent Creation Guide + +Create your own custom agents using the BMAD Builder workflow. + +## Overview + +The BMAD Builder (BMB) module provides an interactive workflow that guides you through creating a custom agent from concept to completion. You define the agent's purpose, personality, capabilities, and menu - then the workflow generates a complete, ready-to-use agent file. + +## Before You Start + +**Prerequisites:** +- BMAD installed with the BMB module +- An idea for what you want your agent to do +- About 15-30 minutes for your first agent + +**Know Before You Go:** +- What problem should your agent solve? +- Who will use this agent? +- What should the agent be able to do? + +## Quick Start + +### 1. Start the Workflow + +In your IDE (Claude Code, Cursor, etc.), invoke the create-agent workflow: + +``` +"Run the BMAD Builder create-agent workflow" +``` + +Or trigger it via the BMAD Master menu. + +### 2. Follow the Steps + +The workflow guides you through: + +| Step | What You'll Do | +|------|----------------| +| **Brainstorm** (optional) | Explore ideas with creative techniques | +| **Discovery** | Define the agent's purpose and goals | +| **Type & Metadata** | Choose Simple or Expert, name your agent | +| **Persona** | Craft the agent's personality and principles | +| **Commands** | Define what the agent can do | +| **Activation** | Set up autonomous behaviors (optional) | +| **Build** | Generate the agent file | +| **Validation** | Review and verify everything works | + +### 3. Install Your Agent + +Once created, package your agent for installation: + +``` +my-custom-stuff/ +โ”œโ”€โ”€ module.yaml # Contains: unitary: true +โ”œโ”€โ”€ agents/ +โ”‚ โ””โ”€โ”€ {agent-name}/ +โ”‚ โ”œโ”€โ”€ {agent-name}.agent.yaml +โ”‚ โ””โ”€โ”€ _memory/ # Expert agents only +โ”‚ โ””โ”€โ”€ {sidecar-folder}/ +โ””โ”€โ”€ workflows/ # Optional: custom workflows +``` + +See [Custom Content Installation](./custom-content-installation.md) for details. + +## Choosing Your Agent Type + +The workflow will help you decide, but here's the quick reference: + +### Choose Simple Agent When: + +- Task is well-defined and focused +- Don't need persistent memory +- Want fast setup and deployment +- Single-purpose assistant (e.g., commit messages, code review) + +**Example:** A "Code Commenter" that reads files and adds helpful comments. + +### Choose Expert Agent When: + +- Domain requires specialized knowledge +- Need persistent memory across sessions +- Agent coordinates complex workflows +- Building ongoing project infrastructure + +**Example:** A "Security Architect" that remembers your design decisions and maintains security standards across the project. + +### Choose Module Agent When: + +- Agent builds other agents or workflows +- Need integration with module system +- Creating professional tooling + +**Example:** A "Team Builder" that helps set up agents for new team members. + +## The Persona System + +Your agent's personality is defined by four fields: + +| Field | Purpose | Example | +|-------|---------|---------| +| **Role** | What they do | "Senior code reviewer who catches bugs and suggests improvements" | +| **Identity** | Who they are | "Friendly but exacting, believes clean code is a craft" | +| **Communication Style** | How they speak | "Direct, constructive, explains the 'why' behind suggestions" | +| **Principles** | Why they act | "Security first, clarity over cleverness, test what you fix" | + +**Key:** Keep each field focused on its purpose. The role isn't personality; the identity isn't job description. + +## Tips for Success + +### Start Small + +Your first agent should solve **one problem well**. You can always add more capabilities later. + +### Learn by Example + +Study the reference agents in `src/modules/bmb/reference/agents/`: +- **Simple:** [commit-poet](https://github.com/bmad-code-org/BMAD-METHOD/tree/main/src/modules/bmb/reference/agents/simple-examples/commit-poet.agent.yaml) +- **Expert:** [journal-keeper](https://github.com/bmad-code-org/BMAD-METHOD/tree/main/src/modules/bmb/reference/agents/expert-examples/journal-keeper) + +### Write Great Principles + +The first principle should "activate" the agent's expertise: + +โŒ **Weak:** "Be helpful and accurate" +โœ… **Strong:** "Channel decades of security expertise: threat modeling begins with trust boundaries, never trust client input, defense in depth is non-negotiable" + +### Use the Menu System + +The workflow provides options at each step: +- **[A] Advanced** - Get deeper insights and reasoning +- **[P] Party** - Get multiple agent perspectives +- **[C] Continue** - Move to the next step + +Use these when you need extra input or creative options. + +## After Creation + +### Test Your Agent + +1. Install your custom module using the BMAD installer +2. Invoke your new agent in your IDE +3. Try each menu command +4. Verify the personality feels right + +### Iterate + +If something isn't right: +1. Edit the agent YAML directly, or +2. Edit the customization file in `_bmad/_config/agents/` +3. Rebuild using `npx bmad-method build ` + +### Share + +Package your agent as a standalone module (see [Installation Guide](../../bmad-core-concepts/installing/)) and share it with your team or the community. + +## Further Reading + +- **[Agent Architecture](./index.md)** - Deep technical details on agent types +- **[Agent Customization](../../bmad-core-concepts/agent-customization/)** - Modify agents without editing core files +- **[Custom Content Installation](./custom-content-installation.md)** - Package and distribute your agents + +--- + +**Ready?** Start the workflow and create your first agent! + +[โ† Back to BMB Documentation](./index.md) diff --git a/docs/custom-content-installation.md b/docs/modules/bmb-bmad-builder/custom-content-installation.md similarity index 98% rename from docs/custom-content-installation.md rename to docs/modules/bmb-bmad-builder/custom-content-installation.md index 3c280d0c..015e71e2 100644 --- a/docs/custom-content-installation.md +++ b/docs/modules/bmb-bmad-builder/custom-content-installation.md @@ -2,7 +2,7 @@ This guide explains how to create and install custom BMAD content including agents, workflows, and modules. Custom content extends BMAD's functionality with specialized tools and workflows that can be shared across projects or teams. -For detailed information about the different types of custom content available, see [Custom Content](./custom-content.md). +For detailed information about the different types of custom content available, see [Custom Content](modules/bmb-bmad-builder/custom-content.md). You can find example custom modules in the `samples/sample-custom-modules/` folder of the repository. Download either of the sample folders to try them out. diff --git a/docs/custom-content.md b/docs/modules/bmb-bmad-builder/custom-content.md similarity index 100% rename from docs/custom-content.md rename to docs/modules/bmb-bmad-builder/custom-content.md diff --git a/src/modules/bmb/docs/agents/index.md b/docs/modules/bmb-bmad-builder/index.md similarity index 87% rename from src/modules/bmb/docs/agents/index.md rename to docs/modules/bmb-bmad-builder/index.md index 8237aab8..13ea51cd 100644 --- a/src/modules/bmb/docs/agents/index.md +++ b/docs/modules/bmb-bmad-builder/index.md @@ -1,6 +1,11 @@ # BMB Module Documentation -Reference documentation for building BMAD agents and workflows. +Create custom agents, workflows, and modules for BMAD. + +## Quick Start + +- **[Agent Creation Guide](./agent-creation-guide.md)** - Step-by-step guide to building your first agent +- **[Understanding Agent Types](./understanding-agent-types.md)** - Learn the differences between Simple and Expert agents ## Agent Architecture @@ -37,7 +42,7 @@ Production-ready examples in [bmb/reference/agents/](https://github.com/bmad-cod For installing standalone simple and expert agents, see: -- [Custom Agent Installation](/docs/custom-content-installation.md) +- [Custom Agent Installation](/docs/modules/bmb-bmad-builder/custom-content-installation.md) ## Key Concepts diff --git a/docs/workflow-vendoring-customization-inheritance.md b/docs/modules/bmb-bmad-builder/workflow-vendoring-customization-inheritance.md similarity index 100% rename from docs/workflow-vendoring-customization-inheritance.md rename to docs/modules/bmb-bmad-builder/workflow-vendoring-customization-inheritance.md diff --git a/src/modules/bmgd/docs/agents-guide.md b/docs/modules/bmgd-bmad-game-dev/agents-guide.md similarity index 100% rename from src/modules/bmgd/docs/agents-guide.md rename to docs/modules/bmgd-bmad-game-dev/agents-guide.md diff --git a/src/modules/bmgd/docs/game-types-guide.md b/docs/modules/bmgd-bmad-game-dev/game-types-guide.md similarity index 100% rename from src/modules/bmgd/docs/game-types-guide.md rename to docs/modules/bmgd-bmad-game-dev/game-types-guide.md diff --git a/src/modules/bmgd/docs/glossary.md b/docs/modules/bmgd-bmad-game-dev/glossary.md similarity index 100% rename from src/modules/bmgd/docs/glossary.md rename to docs/modules/bmgd-bmad-game-dev/glossary.md diff --git a/src/modules/bmgd/docs/index.md b/docs/modules/bmgd-bmad-game-dev/index.md similarity index 100% rename from src/modules/bmgd/docs/index.md rename to docs/modules/bmgd-bmad-game-dev/index.md diff --git a/src/modules/bmgd/docs/quick-flow-guide.md b/docs/modules/bmgd-bmad-game-dev/quick-flow-guide.md similarity index 100% rename from src/modules/bmgd/docs/quick-flow-guide.md rename to docs/modules/bmgd-bmad-game-dev/quick-flow-guide.md diff --git a/src/modules/bmgd/docs/quick-start.md b/docs/modules/bmgd-bmad-game-dev/quick-start.md similarity index 100% rename from src/modules/bmgd/docs/quick-start.md rename to docs/modules/bmgd-bmad-game-dev/quick-start.md diff --git a/src/modules/bmgd/docs/troubleshooting.md b/docs/modules/bmgd-bmad-game-dev/troubleshooting.md similarity index 100% rename from src/modules/bmgd/docs/troubleshooting.md rename to docs/modules/bmgd-bmad-game-dev/troubleshooting.md diff --git a/src/modules/bmgd/docs/workflow-overview.jpg b/docs/modules/bmgd-bmad-game-dev/workflow-overview.jpg similarity index 100% rename from src/modules/bmgd/docs/workflow-overview.jpg rename to docs/modules/bmgd-bmad-game-dev/workflow-overview.jpg diff --git a/src/modules/bmgd/docs/workflows-guide.md b/docs/modules/bmgd-bmad-game-dev/workflows-guide.md similarity index 94% rename from src/modules/bmgd/docs/workflows-guide.md rename to docs/modules/bmgd-bmad-game-dev/workflows-guide.md index b0fb0684..e2489224 100644 --- a/src/modules/bmgd/docs/workflows-guide.md +++ b/docs/modules/bmgd-bmad-game-dev/workflows-guide.md @@ -8,7 +8,7 @@ Complete reference for all BMGD workflows organized by development phase. BMGD workflows are organized into four phases: -![BMGD Workflow Overview](./workflow-overview.jpg) +![BMGD Workflow Overview](../../../../docs/modules/bmgd-bmad-game-dev/workflow-overview.jpg) --- @@ -259,7 +259,7 @@ Checks current project status across all phases. Shows completed documents, curr ## Quick-Flow Workflows -Fast-track workflows that skip full planning phases. See **[Quick-Flow Guide](./quick-flow-guide.md)** for detailed usage. +Fast-track workflows that skip full planning phases. See **[Quick-Flow Guide](../../../../docs/modules/bmgd-bmad-game-dev/quick-flow-guide.md)** for detailed usage. ### Quick-Prototype @@ -457,7 +457,7 @@ This means: ## Next Steps -- **[Quick Start Guide](./quick-start.md)** - Get started with BMGD -- **[Quick-Flow Guide](./quick-flow-guide.md)** - Rapid prototyping and development -- **[Agents Guide](./agents-guide.md)** - Agent reference -- **[Game Types Guide](./game-types-guide.md)** - Game type templates +- **[Quick Start Guide](../../../../docs/modules/bmgd-bmad-game-dev/quick-start.md)** - Get started with BMGD +- **[Quick-Flow Guide](../../../../docs/modules/bmgd-bmad-game-dev/quick-flow-guide.md)** - Rapid prototyping and development +- **[Agents Guide](../../../../docs/modules/bmgd-bmad-game-dev/agents-guide.md)** - Agent reference +- **[Game Types Guide](../../../../docs/modules/bmgd-bmad-game-dev/game-types-guide.md)** - Game type templates diff --git a/src/modules/bmm/docs/agents-guide.md b/docs/modules/bmm-bmad-method/agents-guide.md similarity index 100% rename from src/modules/bmm/docs/agents-guide.md rename to docs/modules/bmm-bmad-method/agents-guide.md diff --git a/src/modules/bmm/docs/bmad-quick-flow.md b/docs/modules/bmm-bmad-method/bmad-quick-flow.md similarity index 100% rename from src/modules/bmm/docs/bmad-quick-flow.md rename to docs/modules/bmm-bmad-method/bmad-quick-flow.md diff --git a/docs/modules/bmm-bmad-method/brownfield-guide.md b/docs/modules/bmm-bmad-method/brownfield-guide.md new file mode 100644 index 00000000..076303ae --- /dev/null +++ b/docs/modules/bmm-bmad-method/brownfield-guide.md @@ -0,0 +1,78 @@ +# BMad Method Brownfield Development Guide + +## Working on Existing Projects + +If you have completed your initial PRD on a new project and want to add new features, or if you have a legacy project you are maintaining, you will want to follow the brownfield process. + +This document is intentionally brief, focusing only on what differs from the standard greenfield flow. + +--- + +## 1. Clean Up Completed Planning Artifacts + +If you have completed all PRD epics and stories through the BMad process, clean up those files. Archive them, delete them, or rely on version history if needed. Do not keep these files in: +- `docs/` +- `_bmad-output/planning-artifacts/` +- `_bmad-output/implementation-artifacts/` + +## 2. Maintain Quality Project Documentation + +Your `docs/` folder should contain succinct, well-organized documentation that accurately represents your project: +- Intent and business rationale +- Business rules +- Architecture +- Any other relevant project information + +For complex projects, consider using the `document-project` workflow. It offers runtime variants that will scan your entire project and document its actual current state. + +## 3. Initialize for Brownfield Work + +Run `workflow-init`. It should recognize you are in an existing project. If not, explicitly clarify that this is brownfield development for a new feature. + +### Choosing Your Approach + +You have two primary options depending on the scope of changes: + +| Scope | Recommended Approach | +| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | +| **Small updates or additions** | Use `quick-flow-solo-dev` to create a tech-spec and implement the change. The full four-phase BMad method is likely overkill. | +| **Major changes or additions** | Start with the BMad method, applying as much or as little rigor as needed. | + +### During PRD Creation + +When creating a brief or jumping directly into the PRD, ensure the agent: +- Finds and analyzes your existing project documentation +- Reads the proper context about your current system + +You can guide the agent explicitly, but the goal is to ensure the new feature integrates well with your existing system. + +### UX Considerations + +UX work is optional. The decision depends not on whether your project has a UX, but on: +- Whether you will be working on UX changes +- Whether significant new UX designs or patterns are needed + +If your changes amount to simple updates to existing screens you are happy with, a full UX process is unnecessary. + +### Architecture Considerations + +When doing architecture, ensure the architect: +- Uses the proper documented files +- Scans the existing codebase + +Pay close attention here to prevent reinventing the wheel or making decisions that misalign with your existing architecture. + +--- + +## 4. Ad-Hoc Changes + +Not everything requires the full BMad method or even quick-flow. For bug fixes, refactorings, or small targeted changes, simply talk to the agent and have it make the changes directly. This is also a good way to learn about your codebase and understand the modifications being made. + +--- + +## 5. Learn and Explore + +Remember, LLMs are excellent at interpreting and analyzing codeโ€”whether it was AI-generated or not. Use the agent to: +- Learn about your project +- Understand how things are built +- Explore unfamiliar parts of the codebase \ No newline at end of file diff --git a/src/modules/bmm/docs/faq.md b/docs/modules/bmm-bmad-method/faq.md similarity index 100% rename from src/modules/bmm/docs/faq.md rename to docs/modules/bmm-bmad-method/faq.md diff --git a/src/modules/bmm/docs/glossary.md b/docs/modules/bmm-bmad-method/glossary.md similarity index 100% rename from src/modules/bmm/docs/glossary.md rename to docs/modules/bmm-bmad-method/glossary.md diff --git a/src/modules/bmm/docs/images/README.md b/docs/modules/bmm-bmad-method/images/README.md similarity index 100% rename from src/modules/bmm/docs/images/README.md rename to docs/modules/bmm-bmad-method/images/README.md diff --git a/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw b/docs/modules/bmm-bmad-method/images/workflow-method-greenfield.excalidraw similarity index 100% rename from src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw rename to docs/modules/bmm-bmad-method/images/workflow-method-greenfield.excalidraw diff --git a/src/modules/bmm/docs/images/workflow-method-greenfield.svg b/docs/modules/bmm-bmad-method/images/workflow-method-greenfield.svg similarity index 100% rename from src/modules/bmm/docs/images/workflow-method-greenfield.svg rename to docs/modules/bmm-bmad-method/images/workflow-method-greenfield.svg diff --git a/src/modules/bmm/docs/index.md b/docs/modules/bmm-bmad-method/index.md similarity index 100% rename from src/modules/bmm/docs/index.md rename to docs/modules/bmm-bmad-method/index.md diff --git a/src/modules/bmm/docs/party-mode.md b/docs/modules/bmm-bmad-method/party-mode.md similarity index 100% rename from src/modules/bmm/docs/party-mode.md rename to docs/modules/bmm-bmad-method/party-mode.md diff --git a/src/modules/bmm/docs/quick-flow-solo-dev.md b/docs/modules/bmm-bmad-method/quick-flow-solo-dev.md similarity index 100% rename from src/modules/bmm/docs/quick-flow-solo-dev.md rename to docs/modules/bmm-bmad-method/quick-flow-solo-dev.md diff --git a/src/modules/bmm/docs/quick-spec-flow.md b/docs/modules/bmm-bmad-method/quick-spec-flow.md similarity index 100% rename from src/modules/bmm/docs/quick-spec-flow.md rename to docs/modules/bmm-bmad-method/quick-spec-flow.md diff --git a/src/modules/bmm/docs/quick-start.md b/docs/modules/bmm-bmad-method/quick-start.md similarity index 100% rename from src/modules/bmm/docs/quick-start.md rename to docs/modules/bmm-bmad-method/quick-start.md diff --git a/src/modules/bmm/docs/test-architecture.md b/docs/modules/bmm-bmad-method/test-architecture.md similarity index 100% rename from src/modules/bmm/docs/test-architecture.md rename to docs/modules/bmm-bmad-method/test-architecture.md diff --git a/src/modules/bmm/docs/troubleshooting.md b/docs/modules/bmm-bmad-method/troubleshooting.md similarity index 100% rename from src/modules/bmm/docs/troubleshooting.md rename to docs/modules/bmm-bmad-method/troubleshooting.md diff --git a/src/modules/bmm/docs/workflow-document-project-reference.md b/docs/modules/bmm-bmad-method/workflow-document-project-reference.md similarity index 100% rename from src/modules/bmm/docs/workflow-document-project-reference.md rename to docs/modules/bmm-bmad-method/workflow-document-project-reference.md diff --git a/src/modules/bmm/docs/workflows-analysis.md b/docs/modules/bmm-bmad-method/workflows-analysis.md similarity index 93% rename from src/modules/bmm/docs/workflows-analysis.md rename to docs/modules/bmm-bmad-method/workflows-analysis.md index 9dd5a359..89736808 100644 --- a/src/modules/bmm/docs/workflows-analysis.md +++ b/docs/modules/bmm-bmad-method/workflows-analysis.md @@ -192,8 +192,8 @@ Planning workflows automatically load these documents if they exist in the outpu ## Related Documentation -- [Phase 2: Planning Workflows](./workflows-planning.md) - Next phase -- [Phase 3: Solutioning Workflows](./workflows-solutioning.md) -- [Phase 4: Implementation Workflows](./workflows-implementation.md) +- [Phase 2: Planning Workflows](../../../../docs/modules/bmm-bmad-method/workflows-planning.md) - Next phase +- [Phase 3: Solutioning Workflows](../../../../docs/modules/bmm-bmad-method/workflows-solutioning.md) +- [Phase 4: Implementation Workflows](../../../../docs/modules/bmm-bmad-method/workflows-implementation.md) - [Scale Adaptive System](./scale-adaptive-system.md) - Understanding project complexity -- [Agents Guide](./agents-guide.md) - Complete agent reference +- [Agents Guide](../../../../docs/modules/bmm-bmad-method/agents-guide.md) - Complete agent reference diff --git a/src/modules/bmm/docs/workflows-implementation.md b/docs/modules/bmm-bmad-method/workflows-implementation.md similarity index 100% rename from src/modules/bmm/docs/workflows-implementation.md rename to docs/modules/bmm-bmad-method/workflows-implementation.md diff --git a/src/modules/bmm/docs/workflows-planning.md b/docs/modules/bmm-bmad-method/workflows-planning.md similarity index 100% rename from src/modules/bmm/docs/workflows-planning.md rename to docs/modules/bmm-bmad-method/workflows-planning.md diff --git a/src/modules/bmm/docs/workflows-solutioning.md b/docs/modules/bmm-bmad-method/workflows-solutioning.md similarity index 97% rename from src/modules/bmm/docs/workflows-solutioning.md rename to docs/modules/bmm-bmad-method/workflows-solutioning.md index 9e682bd9..3b6590e2 100644 --- a/src/modules/bmm/docs/workflows-solutioning.md +++ b/docs/modules/bmm-bmad-method/workflows-solutioning.md @@ -434,7 +434,7 @@ Architecture documents are living. Update them as you learn during implementatio **Key Difference:** Enterprise adds optional extended workflows AFTER architecture but BEFORE create-epics-and-stories. Everything else is identical to BMad Method. -**Note:** TEA (Test Architect) operates across all phases and validates architecture testability but is not a Phase 3-specific workflow. See [Test Architecture Guide](./test-architecture.md) for TEA's full lifecycle integration. +**Note:** TEA (Test Architect) operates across all phases and validates architecture testability but is not a Phase 3-specific workflow. See [Test Architecture Guide](../../../../docs/modules/bmm-bmad-method/test-architecture.md) for TEA's full lifecycle integration. --- @@ -471,10 +471,10 @@ Architecture documents are living. Update them as you learn during implementatio ## Related Documentation -- [Phase 2: Planning Workflows](./workflows-planning.md) - Previous phase -- [Phase 4: Implementation Workflows](./workflows-implementation.md) - Next phase +- [Phase 2: Planning Workflows](../../../../docs/modules/bmm-bmad-method/workflows-planning.md) - Previous phase +- [Phase 4: Implementation Workflows](../../../../docs/modules/bmm-bmad-method/workflows-implementation.md) - Next phase - [Scale Adaptive System](./scale-adaptive-system.md) - Understanding tracks -- [Agents Guide](./agents-guide.md) - Complete agent reference +- [Agents Guide](../../../../docs/modules/bmm-bmad-method/agents-guide.md) - Complete agent reference --- diff --git a/src/modules/cis/docs/index.md b/docs/modules/cis-creative-intelligence-suite/index.md similarity index 100% rename from src/modules/cis/docs/index.md rename to docs/modules/cis-creative-intelligence-suite/index.md diff --git a/docs/modules/core/advanced-elicitation.md b/docs/modules/core/advanced-elicitation.md new file mode 100644 index 00000000..92754b20 --- /dev/null +++ b/docs/modules/core/advanced-elicitation.md @@ -0,0 +1,105 @@ +# Advanced Elicitation + +**Push the LLM to rethink its work through 50+ reasoning methodsโ€”essentially, LLM brainstorming.** + +Advanced Elicitation is the inverse of Brainstorming. Instead of pulling ideas out of you, the LLM applies sophisticated reasoning techniques to re-examine and enhance content it has just generated. It's the LLM brainstorming with itself to find better approaches, uncover hidden issues, and discover improvements it missed on the first pass. + +--- + +## When to Use It + +- After a workflow generates a section of content and you want to explore alternatives +- When the LLM's initial output seems adequate but you suspect there's more depth available +- For high-stakes content where multiple perspectives would strengthen the result +- To stress-test assumptions, explore edge cases, or find weaknesses in generated plans +- When you want the LLM to "think again" but with structured reasoning methods + +--- + +## How It Works + +### 1. Context Analysis +The LLM analyzes the current content, understanding its type, complexity, stakeholder needs, risk level, and creative potential. + +### 2. Smart Method Selection +Based on context, 5 methods are intelligently selected from a library of 50+ techniques and presented to you: + +| Option | Description | +| ----------------- | ---------------------------------------- | +| **1-5** | Apply the selected method to the content | +| **[r] Reshuffle** | Get 5 new methods selected randomly | +| **[a] List All** | Browse the complete method library | +| **[x] Proceed** | Continue with enhanced content | + +### 3. Method Execution & Iteration +- The selected method is applied to the current content +- Improvements are shown for your review +- You choose whether to apply changes or discard them +- The menu re-appears for additional elicitations +- Each method builds on previous enhancements + +### 4. Party Mode Integration (Optional) +If Party Mode is active, BMAD agents participate randomly in the elicitation process, adding their unique perspectives to the methods. + +--- + +## Method Categories + +| Category | Focus | Example Methods | +| ----------------- | ----------------------------------- | -------------------------------------------------------------- | +| **Core** | Foundational reasoning techniques | First Principles Analysis, 5 Whys, Socratic Questioning | +| **Collaboration** | Multiple perspectives and synthesis | Stakeholder Round Table, Expert Panel Review, Debate Club | +| **Advanced** | Complex reasoning frameworks | Tree of Thoughts, Graph of Thoughts, Self-Consistency | +| **Competitive** | Adversarial stress-testing | Red Team vs Blue Team, Shark Tank Pitch, Code Review Gauntlet | +| **Technical** | Architecture and code quality | Decision Records, Rubber Duck Debugging, Algorithm Olympics | +| **Creative** | Innovation and lateral thinking | SCAMPER, Reverse Engineering, Random Input Stimulus | +| **Research** | Evidence-based analysis | Literature Review Personas, Thesis Defense, Comparative Matrix | +| **Risk** | Risk identification and mitigation | Pre-mortem Analysis, Failure Mode Analysis, Chaos Monkey | +| **Learning** | Understanding verification | Feynman Technique, Active Recall Testing | +| **Philosophical** | Conceptual clarity | Occam's Razor, Ethical Dilemmas | +| **Retrospective** | Reflection and lessons | Hindsight Reflection, Lessons Learned Extraction | + +--- + +## Key Features + +- **50+ reasoning methods** โ€” Spanning core logic to advanced multi-step reasoning frameworks +- **Smart context selection** โ€” Methods chosen based on content type, complexity, and stakeholder needs +- **Iterative enhancement** โ€” Each method builds on previous improvements +- **User control** โ€” Accept or discard each enhancement before proceeding +- **Party Mode integration** โ€” Agents can participate when Party Mode is active + +--- + +## Workflow Integration + +Advanced Elicitation is a core workflow designed to be invoked by other workflows during content generation: + +| Parameter | Description | +| ---------------------- | --------------------------------------------------------- | +| **Content to enhance** | The current section content that was just generated | +| **Context type** | The kind of content being created (spec, code, doc, etc.) | +| **Enhancement goals** | What the calling workflow wants to improve | + +### Integration Flow + +When called from a workflow: +1. Receives the current section content that was just generated +2. Applies elicitation methods iteratively to enhance that content +3. Returns the enhanced version when user selects 'x' to proceed +4. The enhanced content replaces the original section in the output document + +### Example + +A specification generation workflow could invoke Advanced Elicitation after producing each major section (requirements, architecture, implementation plan). The workflow would pass the generated section, and Advanced Elicitation would offer methods like "Stakeholder Round Table" to gather diverse perspectives on requirements, or "Red Team vs Blue Team" to stress-test the architecture for vulnerabilities. + +--- + +## Advanced Elicitation vs. Brainstorming + +| | **Advanced Elicitation** | **Brainstorming** | +| ------------ | ------------------------------------------------- | --------------------------------------------- | +| **Source** | LLM generates ideas through structured reasoning | User provides ideas, AI coaches them out | +| **Purpose** | Rethink and improve LLM's own output | Unlock user's creativity | +| **Methods** | 50+ reasoning and analysis techniques | 60+ ideation and creativity techniques | +| **Best for** | Enhancing generated content, finding alternatives | Breaking through blocks, generating new ideas | diff --git a/docs/modules/core/brainstorming.md b/docs/modules/core/brainstorming.md new file mode 100644 index 00000000..4a01b600 --- /dev/null +++ b/docs/modules/core/brainstorming.md @@ -0,0 +1,100 @@ +# Brainstorming + +**Facilitate structured creative sessions using 60+ proven ideation techniques.** + +The Brainstorming workflow is an interactive facilitation system that helps you unlock your own creativity. The AI acts as coach, guide, and creative partnerโ€”using proven techniques to draw out ideas and insights that are already within you. + +**Important:** Every idea comes from you. The workflow creates the conditions for your best thinking to emerge through guided exploration, but you are the source. + +--- + +## When to Use It + +- Breaking through creative blocks on a specific challenge +- Generating innovative ideas for products, features, or solutions +- Exploring a problem from completely new angles +- Systematically developing ideas from raw concepts to actionable plans +- Team ideation (with collaborative techniques) or personal creative exploration + +--- + +## How It Works + +### 1. Session Setup +Define your topic, goals, and any constraints. + +### 2. Choose Your Approach + +| Approach | Description | +|----------|-------------| +| **User-Selected** | Browse the full technique library and pick what appeals to you | +| **AI-Recommended** | Get customized technique suggestions based on your goals | +| **Random Selection** | Discover unexpected methods through serendipitous technique combinations | +| **Progressive Flow** | Journey systematically from expansive exploration to focused action planning | + +### 3. Interactive Facilitation +Work through techniques with true collaborative coaching. The AI asks probing questions, builds on your ideas, and helps you think deeperโ€”but your ideas are the source. + +### 4. Idea Organization +All your generated ideas are organized into themes and prioritized. + +### 5. Action Planning +Top ideas get concrete next steps, resource requirements, and success metrics. + +--- + +## What You Get + +A comprehensive session document that captures the entire journey: + +- Topic, goals, and session parameters +- Each technique used and how it was applied +- Your contributions and the ideas you generated +- Thematic organization connecting related insights +- Prioritized ideas with action plans +- Session highlights and key breakthroughs + +This document becomes a permanent record of your creative processโ€”valuable for future reference, sharing with stakeholders, or continuing the session later. + +--- + +## Technique Categories + +| Category | Focus | +|----------|-------| +| **Collaborative** | Team dynamics and inclusive participation | +| **Creative** | Breakthrough thinking and paradigm shifts | +| **Deep** | Root cause analysis and strategic insight | +| **Structured** | Organized frameworks and systematic exploration | +| **Theatrical** | Playful, radical perspectives | +| **Wild** | Boundary-pushing, extreme thinking | +| **Biomimetic** | Nature-inspired solutions | +| **Quantum** | Quantum principles for innovation | +| **Cultural** | Traditional knowledge and cross-cultural approaches | +| **Introspective Delight** | Inner wisdom and authentic exploration | + +--- + +## Key Features + +- **Interactive coaching** โ€” Pulls ideas *out* of you, doesn't generate them for you +- **On-demand loading** โ€” Techniques loaded from a comprehensive library as needed +- **Session preservation** โ€” Every step, insight, and action plan is documented +- **Continuation support** โ€” Pause sessions and return later, or extend with additional techniques + +--- + +## Workflow Integration + +Brainstorming is a core workflow designed to be invoked and configured by other modules. When called from another workflow, it accepts contextual parameters: + +| Parameter | Description | +|-----------|-------------| +| **Topic focus** | What the brainstorming should help discover or solve | +| **Guardrails** | Constraints, boundaries, or must-avoid areas | +| **Output goals** | What the final output needs to accomplish for the calling workflow | +| **Context files** | Project-specific guidance to inform technique selection | + +### Example + +When creating a new module in the BMad Builder workflow, Brainstorming can be invoked with guardrails around the module's purpose and a goal to discover key features, user needs, or architectural considerations. The session becomes focused on producing exactly what the module creation workflow needs. diff --git a/docs/modules/core/core-tasks.md b/docs/modules/core/core-tasks.md new file mode 100644 index 00000000..1d72d3a5 --- /dev/null +++ b/docs/modules/core/core-tasks.md @@ -0,0 +1,64 @@ +# Core Tasks + +Core Tasks are reusable task definitions that can be invoked by any BMAD module, workflow, or agent. These tasks provide standardized functionality for common operations. + +## Table of Contents + +- [Index Docs](#index-docs) โ€” Generate directory index files +- [Adversarial Review](#adversarial-review-general) โ€” Critical content review +- [Shard Document](#shard-document) โ€” Split large documents into sections + +--- + +## Index Docs + +**Generates or updates an index.md file documenting all documents in a specified directory.** + +This task scans a target directory, reads file contents to understand their purpose, and creates a well-organized index with accurate descriptions. Files are grouped by type, purpose, or subdirectory, and descriptions are generated from actual content rather than guessing from filenames. + +**Use it when:** You need to create navigable documentation for a folder of markdown files, or you want to maintain an updated index as content evolves. + +**How it works:** +1. Scan the target directory for files and subdirectories +2. Group content by type, purpose, or location +3. Read each file to generate brief (3-10 word) descriptions based on actual content +4. Create or update index.md with organized listings using relative paths + +**Output format:** A markdown index with sections for Files and Subdirectories, each entry containing a relative link and description. + +--- + +## Adversarial Review (General) + +**Performs a cynical, skeptical review of any content to identify issues and improvement opportunities.** + +This task applies adversarial thinking to content reviewโ€”approaching the material with the assumption that problems exist. It's designed to find what's missing, not just what's wrong, and produces at least ten specific findings. The reviewer adopts a professional but skeptical tone, looking for gaps, inconsistencies, oversights, and areas that need clarification. + +**Use it when:** You need a critical eye on code diffs, specifications, user stories, documentation, or any artifact before finalizing. It's particularly valuable before merging code, releasing documentation, or considering a specification complete. + +**How it works:** +1. Load the content to review (diff, branch, uncommitted changes, document, etc.) +2. Perform adversarial analysis with extreme skepticismโ€”assume problems exist +3. Find at least ten issues to fix or improve +4. Output findings as a markdown list + +**Note:** This task is designed to run in a separate subagent/process with read access to the project but no prior context, ensuring an unbiased review. + +--- + +## Shard Document + +**Splits large markdown documents into smaller, organized files based on level 2 (##) sections.** + +Uses the `@kayvan/markdown-tree-parser` tool to automatically break down large documents into a folder structure. Each level 2 heading becomes a separate file, and an index.md is generated to tie everything together. This makes large documents more maintainable and allows for easier navigation and updates to individual sections. + +**Use it when:** A markdown file has grown too large to effectively work with, or you want to break a monolithic document into manageable sections that can be edited independently. + +**How it works:** +1. Confirm source document path and verify it's a markdown file +2. Determine destination folder (defaults to same location as source, folder named after document) +3. Execute the sharding command using npx @kayvan/markdown-tree-parser +4. Verify output files and index.md were created +5. Handle the original documentโ€”delete, move to archive, or keep with warning + +**Handling the original:** After sharding, the task prompts you to delete, archive, or keep the original document. Deleting or archiving is recommended to avoid confusion and ensure updates happen in the sharded files only. diff --git a/docs/modules/core/core-workflows.md b/docs/modules/core/core-workflows.md new file mode 100644 index 00000000..a0e5d42d --- /dev/null +++ b/docs/modules/core/core-workflows.md @@ -0,0 +1,30 @@ +# Core Workflows + +Core Workflows are domain-agnostic workflows that can be utilized by any BMAD-compliant module, workflow, or agent. These workflows are installed by default and available at any time. + +## Available Core Workflows + +### [Party Mode](party-mode.md) + +Orchestrate dynamic multi-agent conversations with your entire BMAD team. Engage with multiple specialized perspectives simultaneouslyโ€”each agent maintaining their unique personality, expertise, and communication style. + +### [Brainstorming](brainstorming.md) + +Facilitate structured creative sessions using 60+ proven ideation techniques. The AI acts as coach and guide, using proven creativity methods to draw out ideas and insights that are already within you. + +### [Advanced Elicitation](advanced-elicitation.md) + +Push the LLM to rethink its work through 50+ reasoning methodsโ€”the inverse of brainstorming. The LLM applies sophisticated techniques to re-examine and enhance content it has just generated, essentially "LLM brainstorming" to find better approaches and uncover improvements. + +--- + +## Workflow Integration + +Core Workflows are designed to be invoked and configured by other modules. When called from another workflow, they accept contextual parameters to customize the session: + +- **Topic focus** โ€” Direct the session toward a specific domain or question +- **Additional personas** (Party Mode) โ€” Inject expert agents into the roster at runtime +- **Guardrails** (Brainstorming) โ€” Set constraints and boundaries for ideation +- **Output goals** โ€” Define what the final output needs to accomplish + +This allows modules to leverage these workflows' capabilities while maintaining focus on their specific domain and objectives. diff --git a/docs/document-sharding-guide.md b/docs/modules/core/document-sharding-guide.md similarity index 100% rename from docs/document-sharding-guide.md rename to docs/modules/core/document-sharding-guide.md diff --git a/docs/modules/core/global-core-config.md b/docs/modules/core/global-core-config.md new file mode 100644 index 00000000..0fc27c2e --- /dev/null +++ b/docs/modules/core/global-core-config.md @@ -0,0 +1,11 @@ +# Core Module Global Inheritable Config + +The Core Modules module.yaml file defines configuration values that are useful and unique for all other modules to utilize, and by default all other modules installed will clone the values defined in the core module yaml.config into their own. It is possible for other modules to override these values, but the general intent it to accept the core module values and define their own values as needed, or extend the core values. + +Currently, the core module.yaml config will define (asking the user upon installation, and recording to the core module config.yaml): +- `user_name`: string (defaults to the system defined user name) +- `communication_language`: string (defaults to english) +- `document_output_language`: string (defaults to english) +- `output_folder`: string (default `_bmad-output`) + +An example of extending one of these values, in the BMad Method module.yaml it defines a planning_artifacts config, which will default to `default: "{output_folder}/planning-artifacts"` thus whatever the output_folder will be, this extended versions default will use the value from this core module and append a new folder onto it. The user can choose to replace this without utilizing the output_folder from the core if they so chose. diff --git a/docs/modules/core/index.md b/docs/modules/core/index.md new file mode 100644 index 00000000..07d0b9fd --- /dev/null +++ b/docs/modules/core/index.md @@ -0,0 +1,15 @@ +# Core Module + +The Core Module is installed with all installations of BMAD modules and provides common functionality that any module, workflow, or agent can take advantage of. + +## Core Module Components + +- **[Global Core Config](global-core-config.md)** โ€” Inheritable configuration that impacts all modules and custom content +- **[Core Workflows](core-workflows.md)** โ€” Domain-agnostic workflows usable by any module + - [Party Mode](party-mode.md) โ€” Multi-agent conversation orchestration + - [Brainstorming](brainstorming.md) โ€” Structured creative sessions with 60+ techniques + - [Advanced Elicitation](advanced-elicitation.md) โ€” LLM rethinking with 50+ reasoning methods +- **[Core Tasks](core-tasks.md)** โ€” Common tasks available across modules + - [Index Docs](core-tasks.md#index-docs) โ€” Generate directory index files + - [Adversarial Review](core-tasks.md#adversarial-review-general) โ€” Critical content review + - [Shard Document](core-tasks.md#shard-document) โ€” Split large documents into sections diff --git a/docs/modules/core/party-mode.md b/docs/modules/core/party-mode.md new file mode 100644 index 00000000..b9ba929b --- /dev/null +++ b/docs/modules/core/party-mode.md @@ -0,0 +1,50 @@ +# Party Mode + +**Orchestrate dynamic multi-agent conversations with your entire BMAD team.** + +Party Mode brings together all your installed BMAD agents for collaborative discussions. Instead of working with a single agent, you can engage with multiple specialized perspectives simultaneouslyโ€”each agent maintaining their unique personality, expertise, and communication style. + +--- + +## When to Use It + +- Exploring complex topics that would benefit from diverse expert perspectives +- Brainstorming with agents who can build on each other's ideas +- Getting a comprehensive view across multiple domains (technical, business, creative, strategic) +- Enjoying dynamic, agent-to-agent conversations where experts challenge and complement each other + +--- + +## How It Works + +1. Party Mode loads your complete agent roster and introduces the available team members +2. You present a topic or question +3. The facilitator intelligently selects 2-3 most relevant agents based on expertise needed +4. Agents respond in character, can reference each other, and engage in natural cross-talk +5. The conversation continues until you choose to exit + +--- + +## Key Features + +- **Intelligent agent selection** โ€” The system analyzes your topic and selects the most relevant agents based on their expertise, capabilities, and principles +- **Authentic personalities** โ€” Each agent maintains their unique voice, communication style, and domain knowledge throughout the conversation +- **Natural cross-talk** โ€” Agents can reference each other, build on previous points, ask questions, and even respectfully disagree +- **Optional TTS integration** โ€” Each agent response can be read aloud with voice configurations matching their personalities +- **Graceful exit** โ€” Sessions conclude with personalized farewells from participating agents + +--- + +## Workflow Integration + +Party Mode is a core workflow designed to be invoked and configured by other modules. When called from another workflow, it accepts contextual parameters: + +| Parameter | Description | +|-----------|-------------| +| **Topic focus** | Prebias the discussion toward a specific domain or question | +| **Additional personas** | Inject expert agents into the roster at runtime for specialized perspectives | +| **Participation constraints** | Limit which agents can contribute based on relevance | + +### Example + +A medical module workflow could invoke Party Mode with expert doctor personas added to the roster, and the conversation pre-focused on a specific diagnosis or treatment decision. The agents would then discuss the medical case with appropriate domain expertise while maintaining their distinct personalities and perspectives. diff --git a/docs/web-bundles-gemini-gpt-guide.md b/docs/web-bundles-gemini-gpt-guide.md deleted file mode 100644 index 2fdd1e6c..00000000 --- a/docs/web-bundles-gemini-gpt-guide.md +++ /dev/null @@ -1,21 +0,0 @@ -# Using BMad Web Bundles in Gemini Gems & Custom GPTs - -## IMPORTANT NOTE - -The Web Bundling Feature is being rebuilt from the ground up, current bundles found for v6 may be incomplete or missing functionality and are not optimized. - -## What Are Web bundles - -Web bundles package BMad agents as self-contained files that work in Gemini Gems and Custom GPTs. Everything the agent needs - instructions, workflows, dependencies - is bundled into a single file for easy upload. - -## What Are Web Bundles? - -Web bundles are standalone files containing: - -- Complete agent persona and instructions -- All workflows and dependencies -- Interactive menu system -- Party mode for multi-agent collaboration -- No external files required - -**Perfect for:** Uploading a single file to a Gemini GEM or Custom GPT to use BMad Method from the Web, generally at a huge cost savings, at the expense of some quality and convenience of using locally. diff --git a/package-lock.json b/package-lock.json index de5442eb..4a684718 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bmad-method", - "version": "6.0.0-alpha.20", + "version": "6.0.0-alpha.22", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bmad-method", - "version": "6.0.0-alpha.20", + "version": "6.0.0-alpha.22", "license": "MIT", "dependencies": { "@kayvan/markdown-tree-parser": "^1.6.1", diff --git a/samples/sample-custom-modules/README.md b/samples/sample-custom-modules/README.md index 23bcee8a..72f6ee39 100644 --- a/samples/sample-custom-modules/README.md +++ b/samples/sample-custom-modules/README.md @@ -4,7 +4,7 @@ These are quickly put together examples of both a stand alone somewhat cohesive To try these out, download either or both folders to your local machine, and run the normal bmad installer, and when asked about custom local content, say yes, and give the path to one of these two folders. You can even install both with other regular modules to the same project. -Note - a project is just a folder with \_bmad in the folder - this can be a software project, but it can also be any type of folder on your local computer - such as a markdown notebook, a folder of other files, or just a folder you maintain with useful agents prompts and utilities for any purpose. +Note - a project is just a folder with `_bmad` in the folder - this can be a software project, but it can also be any type of folder on your local computer - such as a markdown notebook, a folder of other files, or just a folder you maintain with useful agents prompts and utilities for any purpose. Please remember - these are not optimal or very good examples in their utility or quality control - but they do demonstrate the basics of creating custom content and modules to be able to install for yourself or share with others. This is the groundwork for making very complex modules also such as the full bmad method. diff --git a/samples/sample-custom-modules/sample-unitary-module/agents/commit-poet/commit-poet.agent.yaml b/samples/sample-custom-modules/sample-unitary-module/agents/commit-poet/commit-poet.agent.yaml index a8b8033f..3b7de937 100644 --- a/samples/sample-custom-modules/sample-unitary-module/agents/commit-poet/commit-poet.agent.yaml +++ b/samples/sample-custom-modules/sample-unitary-module/agents/commit-poet/commit-poet.agent.yaml @@ -5,6 +5,7 @@ agent: title: "Commit Message Artisan" icon: "๐Ÿ“œ" module: stand-alone + hasSidecar: false persona: role: | diff --git a/samples/sample-custom-modules/sample-wellness-module/agents/meditation-guide.agent.yaml b/samples/sample-custom-modules/sample-wellness-module/agents/meditation-guide.agent.yaml index 0916de83..1b9f7576 100644 --- a/samples/sample-custom-modules/sample-wellness-module/agents/meditation-guide.agent.yaml +++ b/samples/sample-custom-modules/sample-wellness-module/agents/meditation-guide.agent.yaml @@ -5,6 +5,7 @@ agent: title: "Meditation Guide" icon: "๐Ÿง˜" module: "mwm" + hasSidecar: false persona: role: "Mindfulness and meditation specialist" identity: | diff --git a/src/core/agents/bmad-master.agent.yaml b/src/core/agents/bmad-master.agent.yaml index 1671df1a..f5d4e8a7 100644 --- a/src/core/agents/bmad-master.agent.yaml +++ b/src/core/agents/bmad-master.agent.yaml @@ -7,6 +7,7 @@ agent: name: "BMad Master" title: "BMad Master Executor, Knowledge Custodian, and Workflow Orchestrator" icon: "๐Ÿง™" + hasSidecar: false persona: role: "Master Task Executor + BMad Expert + Guiding Facilitator Orchestrator" diff --git a/src/core/tools/shard-doc.xml b/src/core/tasks/shard-doc.xml similarity index 100% rename from src/core/tools/shard-doc.xml rename to src/core/tasks/shard-doc.xml diff --git a/src/core/tasks/workflow.xml b/src/core/tasks/workflow.xml index c04421f2..09f5d04a 100644 --- a/src/core/tasks/workflow.xml +++ b/src/core/tasks/workflow.xml @@ -74,7 +74,7 @@ Display generated content [a] Advanced Elicitation, [c] Continue, [p] Party-Mode, [y] YOLO the rest of this document only. WAIT for response. - Start the advanced elicitation workflow {project-root}/_bmad/core/tasks/advanced-elicitation.xml + Start the advanced elicitation workflow {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml diff --git a/src/core/tasks/advanced-elicitation-methods.csv b/src/core/workflows/advanced-elicitation/methods.csv similarity index 100% rename from src/core/tasks/advanced-elicitation-methods.csv rename to src/core/workflows/advanced-elicitation/methods.csv diff --git a/src/core/tasks/advanced-elicitation.xml b/src/core/workflows/advanced-elicitation/workflow.xml similarity index 95% rename from src/core/tasks/advanced-elicitation.xml rename to src/core/workflows/advanced-elicitation/workflow.xml index 3263dddf..8a348d9e 100644 --- a/src/core/tasks/advanced-elicitation.xml +++ b/src/core/workflows/advanced-elicitation/workflow.xml @@ -1,5 +1,5 @@ - MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER @@ -7,6 +7,7 @@ HALT immediately when halt-conditions are met Each action xml tag within step xml tag is a REQUIRED action to complete that step Sections outside flow (validation, output, critical-context) provide essential context - review and apply throughout execution + YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` diff --git a/src/core/workflows/brainstorming/steps/step-01-session-setup.md b/src/core/workflows/brainstorming/steps/step-01-session-setup.md index 54a0f636..ab90f990 100644 --- a/src/core/workflows/brainstorming/steps/step-01-session-setup.md +++ b/src/core/workflows/brainstorming/steps/step-01-session-setup.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on session setup and continuation detection only - ๐Ÿšช DETECT existing workflow state and handle continuation properly +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-01b-continue.md b/src/core/workflows/brainstorming/steps/step-01b-continue.md index 2f26850e..ee788b7d 100644 --- a/src/core/workflows/brainstorming/steps/step-01b-continue.md +++ b/src/core/workflows/brainstorming/steps/step-01b-continue.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ UNDERSTAND PREVIOUS SESSION context and outcomes - ๐Ÿ” SEAMLESSLY RESUME from where user left off - ๐Ÿ’ฌ MAINTAIN CONTINUITY in session flow and rapport +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-02a-user-selected.md b/src/core/workflows/brainstorming/steps/step-02a-user-selected.md index 0113b940..2b523db8 100644 --- a/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +++ b/src/core/workflows/brainstorming/steps/step-02a-user-selected.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ PREVIEW TECHNIQUE OPTIONS clearly and concisely - ๐Ÿ” LET USER EXPLORE and select based on their interests - ๐Ÿ’ฌ PROVIDE BACK OPTION to return to approach selection +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md b/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md index f45b0320..f928ff04 100644 --- a/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +++ b/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ LOAD TECHNIQUES ON-DEMAND from brain-methods.csv for recommendations - ๐Ÿ” MATCH TECHNIQUES to user goals, constraints, and preferences - ๐Ÿ’ฌ PROVIDE CLEAR RATIONALE for each recommendation +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-02c-random-selection.md b/src/core/workflows/brainstorming/steps/step-02c-random-selection.md index 220eb796..def91d0a 100644 --- a/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +++ b/src/core/workflows/brainstorming/steps/step-02c-random-selection.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ LOAD TECHNIQUES ON-DEMAND from brain-methods.csv - ๐Ÿ” CREATE EXCITEMENT around unexpected creative methods - ๐Ÿ’ฌ EMPHASIZE DISCOVERY over predictable outcomes +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md b/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md index 7e72314d..96aa2d90 100644 --- a/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +++ b/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ LOAD TECHNIQUES ON-DEMAND from brain-methods.csv for each phase - ๐Ÿ” MATCH TECHNIQUES to natural creative progression stages - ๐Ÿ’ฌ CREATE CLEAR JOURNEY MAP with phase transitions +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-03-technique-execution.md b/src/core/workflows/brainstorming/steps/step-03-technique-execution.md index e0edbad0..ed2077c7 100644 --- a/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +++ b/src/core/workflows/brainstorming/steps/step-03-technique-execution.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ RESPOND DYNAMICALLY to user insights and build upon their ideas - ๐Ÿ” ADAPT FACILITATION based on user engagement and emerging directions - ๐Ÿ’ฌ CREATE TRUE COLLABORATION, not question-answer sequences +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/steps/step-04-idea-organization.md b/src/core/workflows/brainstorming/steps/step-04-idea-organization.md index 1296d2ab..240a53da 100644 --- a/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +++ b/src/core/workflows/brainstorming/steps/step-04-idea-organization.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ CREATE ACTIONABLE NEXT STEPS from brainstorming outcomes - ๐Ÿ” FACILITATE CONVERGENT THINKING after divergent exploration - ๐Ÿ’ฌ DELIVER COMPREHENSIVE SESSION DOCUMENTATION +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/brainstorming/workflow.md b/src/core/workflows/brainstorming/workflow.md index 1ddc38b9..6499c8bc 100644 --- a/src/core/workflows/brainstorming/workflow.md +++ b/src/core/workflows/brainstorming/workflow.md @@ -8,7 +8,7 @@ context_file: '' # Optional context file path for project-specific guidance **Goal:** Facilitate interactive brainstorming sessions using diverse creative techniques and ideation methods -**Your Role:** You are a brainstorming facilitator and creative thinking guide. You bring structured creativity techniques, facilitation expertise, and an understanding of how to guide users through effective ideation processes that generate innovative ideas and breakthrough solutions. +**Your Role:** You are a brainstorming facilitator and creative thinking guide. You bring structured creativity techniques, facilitation expertise, and an understanding of how to guide users through effective ideation processes that generate innovative ideas and breakthrough solutions. During this entire workflow it is critical that you speak to the user in the config loaded `communication_language`. --- diff --git a/src/core/workflows/party-mode/steps/step-01-agent-loading.md b/src/core/workflows/party-mode/steps/step-01-agent-loading.md index acd02879..80fc4cb9 100644 --- a/src/core/workflows/party-mode/steps/step-01-agent-loading.md +++ b/src/core/workflows/party-mode/steps/step-01-agent-loading.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ LOAD COMPLETE AGENT ROSTER from manifest with merged personalities - ๐Ÿ” PARSE AGENT DATA for conversation orchestration - ๐Ÿ’ฌ INTRODUCE DIVERSE AGENT SAMPLE to kick off discussion +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md b/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md index f7db0cc1..13c520e7 100644 --- a/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +++ b/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ MAINTAIN CHARACTER CONSISTENCY using merged agent personalities - ๐Ÿ” ENABLE NATURAL CROSS-TALK between agents for dynamic conversation - ๐Ÿ’ฌ INTEGRATE TTS for each agent response immediately after text +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/party-mode/steps/step-03-graceful-exit.md b/src/core/workflows/party-mode/steps/step-03-graceful-exit.md index 2f00c663..7cb586bb 100644 --- a/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +++ b/src/core/workflows/party-mode/steps/step-03-graceful-exit.md @@ -7,6 +7,7 @@ - ๐Ÿ“‹ EXPRESS GRATITUDE to user for collaborative participation - ๐Ÿ” ACKNOWLEDGE SESSION HIGHLIGHTS and key insights gained - ๐Ÿ’ฌ MAINTAIN POSITIVE ATMOSPHERE until the very end +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/core/workflows/party-mode/workflow.md b/src/core/workflows/party-mode/workflow.md index 558c5e1e..7a92bcee 100644 --- a/src/core/workflows/party-mode/workflow.md +++ b/src/core/workflows/party-mode/workflow.md @@ -7,7 +7,7 @@ description: Orchestrates group discussions between all installed BMAD agents, e **Goal:** Orchestrates group discussions between all installed BMAD agents, enabling natural multi-agent conversations -**Your Role:** You are a party mode facilitator and multi-agent conversation orchestrator. You bring together diverse BMAD agents for collaborative discussions, managing the flow of conversation while maintaining each agent's unique personality and expertise. +**Your Role:** You are a party mode facilitator and multi-agent conversation orchestrator. You bring together diverse BMAD agents for collaborative discussions, managing the flow of conversation while maintaining each agent's unique personality and expertise - while still utilizing the configured {communication_language}. --- diff --git a/src/modules/bmb/agents/agent-builder.agent.yaml b/src/modules/bmb/agents/agent-builder.agent.yaml index aef49193..f8daa2d6 100644 --- a/src/modules/bmb/agents/agent-builder.agent.yaml +++ b/src/modules/bmb/agents/agent-builder.agent.yaml @@ -9,6 +9,7 @@ agent: title: Agent Building Expert icon: ๐Ÿค– module: bmb + hasSidecar: false persona: role: Agent Architecture Specialist + BMAD Compliance Expert @@ -28,9 +29,13 @@ agent: menu: - trigger: CA or fuzzy match on create-agent - exec: "{project-root}/_bmad/bmb/workflows/create-agent/workflow.md" + exec: "{project-root}/_bmad/bmb/workflows/agent/workflow.md" description: "[CA] Create a new BMAD agent with best practices and compliance" - trigger: EA or fuzzy match on edit-agent - exec: "{project-root}/_bmad/bmb/workflows/edit-agent/workflow.md" + exec: "{project-root}/_bmad/bmb/workflows/agent/workflow.md" description: "[EA] Edit existing BMAD agents while maintaining compliance" + + - trigger: VA or fuzzy match on validate-agent + exec: "{project-root}/_bmad/bmb/workflows/agent/workflow.md" + description: "[VA] Validate existing BMAD agents and offer to improve deficiencies" diff --git a/src/modules/bmb/agents/module-builder.agent.yaml b/src/modules/bmb/agents/module-builder.agent.yaml index fb51f971..9ccad18f 100644 --- a/src/modules/bmb/agents/module-builder.agent.yaml +++ b/src/modules/bmb/agents/module-builder.agent.yaml @@ -9,6 +9,7 @@ agent: title: Module Creation Master icon: ๐Ÿ—๏ธ module: bmb + hasSidecar: false persona: role: Module Architecture Specialist + Full-Stack Systems Designer diff --git a/src/modules/bmb/agents/workflow-builder.agent.yaml b/src/modules/bmb/agents/workflow-builder.agent.yaml index 3ed8ee84..73550646 100644 --- a/src/modules/bmb/agents/workflow-builder.agent.yaml +++ b/src/modules/bmb/agents/workflow-builder.agent.yaml @@ -9,6 +9,7 @@ agent: title: Workflow Building Master icon: ๐Ÿ”„ module: bmb + hasSidecar: false persona: role: Workflow Architecture Specialist + Process Design Expert diff --git a/src/modules/bmb/docs/agents/agent-compilation.md b/src/modules/bmb/docs/agents/agent-compilation.md deleted file mode 100644 index 32af63fd..00000000 --- a/src/modules/bmb/docs/agents/agent-compilation.md +++ /dev/null @@ -1,340 +0,0 @@ -# Agent Compilation: YAML to XML - -What the compiler auto-injects. **DO NOT duplicate these in your YAML.** - -## Compilation Pipeline - -``` -agent.yaml โ†’ Handlebars processing โ†’ XML generation โ†’ frontmatter.md -``` - -Source: `tools/cli/lib/agent/compiler.js` - -## File Naming Convention - -**CRITICAL:** Agent filenames must be ROLE-BASED, not persona-based. - -**Why:** Users can customize the agent's persona name via `customize.yaml` config. The filename provides stable identity. - -**Correct:** - -``` -presentation-master.agent.yaml โ† Role/function -tech-writer.agent.yaml โ† Role/function -code-reviewer.agent.yaml โ† Role/function -``` - -**Incorrect:** - -``` -caravaggio.agent.yaml โ† Persona name (users might rename to "Pablo") -paige.agent.yaml โ† Persona name (users might rename to "Sarah") -rex.agent.yaml โ† Persona name (users might rename to "Max") -``` - -**Pattern:** - -- Filename: `{role-or-function}.agent.yaml` (kebab-case) -- Metadata ID: `_bmad/{module}/agents/{role-or-function}.md` -- Persona Name: User-customizable in metadata or customize.yaml - -**Example:** - -```yaml -# File: presentation-master.agent.yaml -agent: - metadata: - id: '_bmad/cis/agents/presentation-master.md' - name: Caravaggio # โ† Users can change this to "Pablo" or "Vince" - title: Visual Communication & Presentation Expert -``` - -## Auto-Injected Components - -### 1. Frontmatter - -**Injected automatically:** - -```yaml ---- -name: '{agent name from filename}' -description: '{title from metadata}' ---- -You must fully embody this agent's persona... -``` - -**DO NOT add** frontmatter to your YAML source. - -### 2. Activation Block - -**Entire activation section is auto-generated:** - -```xml - - Load persona from this current agent file - Load config to get {user_name}, {communication_language} - Remember: user's name is {user_name} - - - - ALWAYS communicate in {communication_language} - Show greeting + numbered menu - STOP and WAIT for user input - Input resolution rules - - - - - - - - - -``` - -**DO NOT create** activation sections - compiler builds it from your critical_actions. - -### 3. Menu Enhancements - -**Auto-injected menu items:** - -- `*help` - Always FIRST in compiled menu -- `*exit` - Always LAST in compiled menu - -**Trigger prefixing:** - -- Your trigger `analyze` becomes `*analyze` -- Don't add `*` prefix - compiler does it - -**DO NOT include:** - -```yaml -# BAD - these are auto-injected -menu: - - trigger: help - description: 'Show help' - - trigger: exit - description: 'Exit' -``` - -### 4. Menu Handlers - -Compiler detects which handlers you use and ONLY includes those: - -```xml - - - - ... - - - ... - - - ... - - - ... - - -``` - -**DO NOT document** handler behavior - it's injected. - -### 5. Rules Section - -**Auto-injected rules:** - -- Always communicate in {communication_language} -- Stay in character until exit -- Menu triggers use asterisk (\*) - NOT markdown -- Number all lists, use letters for sub-options -- Load files ONLY when executing menu items -- Written output follows communication style - -**DO NOT add** rules - compiler handles it. - -## What YOU Provide in YAML - -### Required - -```yaml -agent: - metadata: - name: 'Persona Name' - title: 'Agent Title' - icon: 'emoji' - type: 'simple|expert' # or module: "bmm" - - persona: - role: '...' - identity: '...' - communication_style: '...' - principles: [...] - - menu: - - trigger: your-action - action: '#prompt-id' - description: 'What it does' -``` - -### Optional (based on type) - -```yaml -# Expert agents only -critical_actions: - - 'Load sidecar files...' - - 'Restrict access...' - -# Simple/Expert with embedded logic -prompts: - - id: prompt-id - content: '...' - -# Simple/Expert with customization -install_config: - questions: [...] -``` - -## Common Duplication Mistakes - -### Adding Activation Logic - -```yaml -# BAD - compiler builds activation -agent: - activation: - steps: [...] -``` - -### Including Help/Exit - -```yaml -# BAD - auto-injected -menu: - - trigger: help - - trigger: exit -``` - -### Prefixing Triggers - -```yaml -# BAD - compiler adds * -menu: - - trigger: '*analyze' # Should be: analyze -``` - -### Documenting Handlers - -```yaml -# BAD - don't explain handlers, compiler injects them -# When using workflow, load workflow.xml... -``` - -### Adding Rules in YAML - -```yaml -# BAD - rules are auto-injected -agent: - rules: - - Stay in character... -``` - -## Compilation Example - -**Your YAML:** - -```yaml -agent: - metadata: - name: 'Rex' - title: 'Code Reviewer' - icon: '๐Ÿ”' - type: simple - - persona: - role: Code Review Expert - identity: Systematic reviewer... - communication_style: Direct and constructive - principles: - - Code should be readable - - prompts: - - id: review - content: | - Analyze code for issues... - - menu: - - trigger: review - action: '#review' - description: 'Review code' -``` - -**Compiled Output (.md):** - -```markdown ---- -name: 'rex' -description: 'Code Reviewer' ---- - -You must fully embody... - -\`\`\`xml - - -Load persona... -Load config... -Remember user... -Communicate in language... -Show greeting + menu... -STOP and WAIT... -Input resolution... - - - - - action="#id" โ†’ Find prompt, execute - action="text" โ†’ Execute directly - - - - - - - Stay in character... - - Number lists... - - Load files when executing... - - - - Code Review Expert - Systematic reviewer... - Direct and constructive - Code should be readable - - - - -Analyze code for issues... - - - -

- Show numbered menu - Review code - Exit with confirmation - - -\`\`\` -``` - -## Key Takeaways - -1. **Compiler handles boilerplate** - Focus on persona and logic -2. **Critical_actions become activation steps** - Just list your agent-specific needs -3. **Menu items are enhanced** - Help/exit added, triggers prefixed -4. **Handlers auto-detected** - Only what you use is included -5. **Rules standardized** - Consistent behavior across agents - -**Your job:** Define persona, prompts, menu actions -**Compiler's job:** Activation, handlers, rules, help/exit, prefixes diff --git a/src/modules/bmb/docs/agents/agent-menu-patterns.md b/src/modules/bmb/docs/agents/agent-menu-patterns.md deleted file mode 100644 index 1bd84603..00000000 --- a/src/modules/bmb/docs/agents/agent-menu-patterns.md +++ /dev/null @@ -1,523 +0,0 @@ -# BMAD Agent Menu Patterns - -Design patterns for agent menus in YAML source files. - -## Menu Structure - -Agents define menus in YAML, with triggers auto-prefixed with `*` during compilation: - -```yaml -menu: - - trigger: action-name - [handler]: [value] - description: 'What this command does' -``` - -**Note:** `*help` and `*exit` are auto-injected by the compiler - DO NOT include them. - -## Handler Types - -### 1. Action Handler (Prompts & Inline) - -For simple and expert agents with self-contained logic. - -**Reference to Prompt ID:** - -```yaml -prompts: - - id: analyze-code - content: | - - Analyze the provided code for patterns and issues. - - - - 1. Identify code structure - 2. Check for anti-patterns - 3. Suggest improvements - - -menu: - - trigger: analyze - action: '#analyze-code' - description: 'Analyze code patterns' -``` - -**Inline Instruction:** - -```yaml -menu: - - trigger: quick-check - action: 'Perform a quick syntax validation on the current file' - description: 'Quick syntax check' -``` - -**When to Use:** - -- Simple/Expert agents with self-contained operations -- `#id` for complex, multi-step prompts -- Inline text for simple, one-line instructions - -### 2. Workflow Handler - -For module agents orchestrating multi-step processes. - -```yaml -menu: - - trigger: create-prd - workflow: '{project-root}/_bmad/bmm/workflows/prd/workflow.yaml' - description: 'Create Product Requirements Document' - - - trigger: brainstorm - workflow: '{project-root}/_bmad/core/workflows/brainstorming/workflow.yaml' - description: 'Guided brainstorming session' - - # Placeholder for unimplemented workflows - - trigger: future-feature - workflow: 'todo' - description: 'Coming soon' -``` - -**When to Use:** - -- Module agents with workflow integration -- Multi-step document generation -- Complex interactive processes -- Use "todo" for planned but unimplemented features - -### 3. Exec Handler - -For executing tasks directly. - -```yaml -menu: - - trigger: validate - exec: '{project-root}/_bmad/core/tasks/validate-workflow.xml' - description: 'Validate document structure' - - - trigger: advanced-elicitation - exec: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' - description: 'Advanced elicitation techniques' -``` - -**When to Use:** - -- Single-operation tasks -- Core system operations -- Utility functions - -### 4. Template Handler - -For document generation with templates. - -```yaml -menu: - - trigger: create-brief - exec: '{project-root}/_bmad/core/tasks/create-doc.xml' - tmpl: '{project-root}/_bmad/bmm/templates/brief.md' - description: 'Create a Product Brief' -``` - -**When to Use:** - -- Template-based document creation -- Combine `exec` with `tmpl` path -- Structured output generation - -### 5. Data Handler - -Universal attribute for supplementary information. - -```yaml -menu: - - trigger: team-standup - exec: '{project-root}/_bmad/bmm/tasks/standup.xml' - data: '{project-root}/_bmad/_config/agent-manifest.csv' - description: 'Run team standup' - - - trigger: analyze-metrics - action: 'Analyze these metrics and identify trends' - data: '{project-root}/_data/metrics.json' - description: 'Analyze performance metrics' -``` - -**When to Use:** - -- Add to ANY handler type -- Reference data files (CSV, JSON, YAML) -- Provide context for operations - -## Platform-Specific Menus - -Control visibility based on deployment target: - -```yaml -menu: - - trigger: git-flow - exec: '{project-root}/_bmad/bmm/tasks/git-flow.xml' - description: 'Git workflow operations' - ide-only: true # Only in IDE environments - - - trigger: advanced-elicitation - exec: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' - description: 'Advanced elicitation' - web-only: true # Only in web bundles -``` - -## Trigger Naming Conventions - -### Action-Based (Recommended) - -```yaml -# Creation -- trigger: create-prd -- trigger: build-module -- trigger: generate-report - -# Analysis -- trigger: analyze-requirements -- trigger: review-code -- trigger: validate-architecture - -# Operations -- trigger: update-status -- trigger: sync-data -- trigger: deploy-changes -``` - -### Domain-Based - -```yaml -# Development -- trigger: brainstorm -- trigger: architect -- trigger: refactor - -# Project Management -- trigger: sprint-plan -- trigger: retrospective -- trigger: standup -``` - -### Bad Patterns - -```yaml -# TOO VAGUE -- trigger: do -- trigger: run -- trigger: process - -# TOO LONG -- trigger: create-comprehensive-product-requirements-document - -# NO VERB -- trigger: prd -- trigger: config -``` - -## Menu Organization - -### Recommended Order - -```yaml -menu: - # Note: *help auto-injected first by compiler - - # 1. Primary workflows (main value) - - trigger: workflow-init - workflow: '...' - description: 'Start here - initialize workflow' - - - trigger: create-prd - workflow: '...' - description: 'Create PRD' - - # 2. Secondary operations - - trigger: validate - exec: '...' - description: 'Validate document' - - # 3. Utilities - - trigger: party-mode - workflow: '...' - description: 'Multi-agent discussion' - - # Note: *exit auto-injected last by compiler -``` - -### Grouping by Phase - -```yaml -menu: - # Analysis Phase - - trigger: brainstorm - workflow: '{project-root}/_bmad/bmm/workflows/1-analysis/brainstorm/workflow.yaml' - description: 'Brainstorm ideas' - - - trigger: research - workflow: '{project-root}/_bmad/bmm/workflows/1-analysis/research/workflow.yaml' - description: 'Conduct research' - - # Planning Phase - - trigger: prd - workflow: '{project-root}/_bmad/bmm/workflows/2-planning/prd/workflow.yaml' - description: 'Create PRD' - - - trigger: architecture - workflow: '{project-root}/_bmad/bmm/workflows/2-planning/architecture/workflow.yaml' - description: 'Design architecture' -``` - -## Description Best Practices - -### Good Descriptions - -```yaml -# Clear action + object -- description: 'Create Product Requirements Document' - -# Specific outcome -- description: 'Analyze security vulnerabilities' - -# User benefit -- description: 'Optimize code for performance' - -# Context when needed -- description: 'Start here - initialize workflow path' -``` - -### Poor Descriptions - -```yaml -# Too vague -- description: 'Process' - -# Technical jargon -- description: 'Execute WF123' - -# Missing context -- description: 'Run' - -# Redundant with trigger -- description: 'Create PRD' # trigger: create-prd (too similar) -``` - -## Prompts Section (Simple/Expert Agents) - -### Prompt Structure - -```yaml -prompts: - - id: unique-identifier - content: | - - What this prompt accomplishes - - - - 1. First step - {{#if custom_option}} - 2. Conditional step - {{/if}} - 3. Final step - - - - Expected structure of results - -``` - -### Semantic XML Tags in Prompts - -Use XML tags to structure prompt content: - -- `` - What to do -- `` - Step-by-step approach -- `` - Expected results -- `` - Sample outputs -- `` - Limitations -- `` - Background information - -### Handlebars in Prompts - -Customize based on install_config: - -```yaml -prompts: - - id: analyze - content: | - {{#if detailed_mode}} - Perform comprehensive analysis with full explanations. - {{/if}} - {{#unless detailed_mode}} - Quick analysis focusing on key points. - {{/unless}} - - Address {{user_name}} in {{communication_style}} tone. -``` - -## Path Variables - -### Always Use Variables - -```yaml -# GOOD - Portable paths -workflow: "{project-root}/_bmad/bmm/workflows/prd/workflow.yaml" -exec: "{project-root}/_bmad/core/tasks/validate.xml" -data: "{project-root}/_data/metrics.csv" - -# BAD - Hardcoded paths -workflow: "/Users/john/project/_bmad/bmm/workflows/prd/workflow.yaml" -exec: "../../../core/tasks/validate.xml" -``` - -### Available Variables - -- `{project-root}` - Project root directory -- `_bmad` - BMAD installation folder -- `{output_folder}` - Document output location -- `{user_name}` - User's name from config -- `{communication_language}` - Language preference - -## Complete Examples - -### Simple Agent Menu - -```yaml -prompts: - - id: format-code - content: | - - Format the provided code according to style guidelines. - - - Apply: - - Consistent indentation - - Proper spacing - - Clear naming conventions - -menu: - - trigger: format - action: '#format-code' - description: 'Format code to style guidelines' - - - trigger: lint - action: 'Check code for common issues and anti-patterns' - description: 'Lint code for issues' - - - trigger: suggest - action: 'Suggest improvements for code readability' - description: 'Suggest improvements' -``` - -### Expert Agent Menu - -```yaml -critical_actions: - - 'Load ./memories.md' - - 'Follow ./instructions.md' - - 'ONLY access ./' - -prompts: - - id: reflect - content: | - Guide {{user_name}} through reflection on recent entries. - Reference patterns from memories.md naturally. - -menu: - - trigger: write - action: '#reflect' - description: 'Write journal entry' - - - trigger: save - action: 'Update ./memories.md with session insights' - description: "Save today's session" - - - trigger: patterns - action: 'Analyze recent entries for recurring themes' - description: 'View patterns' -``` - -### Module Agent Menu - -```yaml -menu: - - trigger: workflow-init - workflow: '{project-root}/_bmad/bmm/workflows/workflow-status/init/workflow.yaml' - description: 'Initialize workflow path (START HERE)' - - - trigger: brainstorm - workflow: '{project-root}/_bmad/bmm/workflows/1-analysis/brainstorm/workflow.yaml' - description: 'Guided brainstorming' - - - trigger: prd - workflow: '{project-root}/_bmad/bmm/workflows/2-planning/prd/workflow.yaml' - description: 'Create PRD' - - - trigger: architecture - workflow: '{project-root}/_bmad/bmm/workflows/2-planning/architecture/workflow.yaml' - description: 'Design architecture' - - - trigger: party-mode - workflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.yaml' - description: 'Multi-agent discussion' -``` - -## Validation Checklist - -- [ ] No duplicate triggers -- [ ] Triggers don't start with `*` (auto-added) -- [ ] Every item has a description -- [ ] Paths use variables, not hardcoded -- [ ] `#id` references exist in prompts section -- [ ] Workflow paths resolve or are "todo" -- [ ] No `*help` or `*exit` (auto-injected) -- [ ] Descriptions are clear and action-oriented -- [ ] Platform-specific flags used correctly (ide-only, web-only) - -## Common Mistakes - -### Duplicate Triggers - -```yaml -# BAD - compiler will fail -- trigger: analyze - action: '#first' - description: 'First analysis' - -- trigger: analyze - action: '#second' - description: 'Second analysis' -``` - -### Including Auto-Injected Items - -```yaml -# BAD - these are auto-injected -menu: - - trigger: help - description: 'Show help' - - - trigger: exit - description: 'Exit agent' -``` - -### Missing Prompt Reference - -```yaml -# BAD - prompt id doesn't exist -menu: - - trigger: analyze - action: '#nonexistent-prompt' - description: 'Analysis' -``` - -### Hardcoded Paths - -```yaml -# BAD - not portable -menu: - - trigger: run - workflow: '/absolute/path/to/workflow.yaml' - description: 'Run workflow' -``` diff --git a/src/modules/bmb/docs/agents/expert-agent-architecture.md b/src/modules/bmb/docs/agents/expert-agent-architecture.md deleted file mode 100644 index ad50ca9d..00000000 --- a/src/modules/bmb/docs/agents/expert-agent-architecture.md +++ /dev/null @@ -1,363 +0,0 @@ -# Expert Agent Architecture - -Domain-specific agents with persistent memory, sidecar files, and restricted access patterns. - -## When to Use - -- Personal assistants (journal keeper, diary companion) -- Specialized domain experts (legal advisor, medical reference) -- Agents that need to remember past interactions -- Agents with restricted file system access (privacy/security) -- Long-term relationship agents that learn about users - -## File Structure - -``` -{agent-name}/ -โ”œโ”€โ”€ {agent-name}.agent.yaml # Main agent definition -โ””โ”€โ”€ {agent-name}-sidecar/ # Supporting files - โ”œโ”€โ”€ instructions.md # Private directives - โ”œโ”€โ”€ memories.md # Persistent memory - โ”œโ”€โ”€ knowledge/ # Domain-specific resources - โ”‚ โ””โ”€โ”€ README.md - โ””โ”€โ”€ [custom files] # Agent-specific resources -``` - -## YAML Structure - -```yaml -agent: - metadata: - name: 'Persona Name' - title: 'Agent Title' - icon: 'emoji' - type: 'expert' - - persona: - role: 'Domain Expert with specialized capability' - - identity: | - Background and expertise in first-person voice. - {{#if user_preference}} - Customization based on install_config. - {{/if}} - - communication_style: | - {{#if tone_style == "gentle"}} - Gentle and supportive communication... - {{/if}} - {{#if tone_style == "direct"}} - Direct and efficient communication... - {{/if}} - I reference past conversations naturally. - - principles: - - Core belief about the domain - - How I handle user information - - My approach to memory and learning - - critical_actions: - - 'Load COMPLETE file ./{agent-name}-sidecar/memories.md and remember all past insights' - - 'Load COMPLETE file ./{agent-name}-sidecar/instructions.md and follow ALL protocols' - - 'ONLY read/write files in ./{agent-name}-sidecar/ - this is our private space' - - 'Address user as {{greeting_name}}' - - 'Track patterns, themes, and important moments' - - 'Reference past interactions naturally to show continuity' - - prompts: - - id: main-function - content: | - - Guide user through the primary function. - {{#if tone_style == "gentle"}} - Use gentle, supportive approach. - {{/if}} - - - - 1. Understand context - 2. Provide guidance - 3. Record insights - - - - id: memory-recall - content: | - - Access and share relevant memories. - - - Reference stored information naturally. - - menu: - - trigger: action1 - action: '#main-function' - description: 'Primary agent function' - - - trigger: remember - action: 'Update ./{agent-name}-sidecar/memories.md with session insights' - description: 'Save what we discussed today' - - - trigger: insight - action: 'Document breakthrough in ./{agent-name}-sidecar/breakthroughs.md' - description: 'Record a significant insight' - - - multi: "[DF] Do Foo or start [CH] Chat with expert" - triggers: - - do-foo - - input: [DF] or fuzzy match on do foo - - action: '#main-action' - - data: what is being discussed or suggested with the command, along with custom party custom agents if specified - - type: action - - expert-chat: - - input: [CH] or fuzzy match validate agent - - action: agent responds as expert based on its persona to converse - - type: action - - install_config: - compile_time_only: true - description: 'Personalize your expert agent' - questions: - - var: greeting_name - prompt: 'What should the agent call you?' - type: text - default: 'friend' - - - var: tone_style - prompt: 'Preferred communication tone?' - type: choice - options: - - label: 'Gentle - Supportive and nurturing' - value: 'gentle' - - label: 'Direct - Clear and efficient' - value: 'direct' - default: 'gentle' - - - var: user_preference - prompt: 'Enable personalized features?' - type: boolean - default: true -``` - -## Key Components - -### Sidecar Files (CRITICAL) - -Expert agents use companion files for persistence and domain knowledge: - -**memories.md** - Persistent user context - -```markdown -# Agent Memory Bank - -## User Preferences - - - -## Session History - - - -## Personal Notes - - -``` - -**instructions.md** - Private directives - -```markdown -# Agent Private Instructions - -## Core Directives - -- Maintain character consistency -- Domain boundaries: {specific domain} -- Access restrictions: Only sidecar folder - -## Special Rules - - -``` - -**knowledge/** - Domain resources - -```markdown -# Agent Knowledge Base - -Add domain-specific documentation here. -``` - -### Critical Actions - -**MANDATORY for expert agents** - These load sidecar files at activation: - -```yaml -critical_actions: - - 'Load COMPLETE file ./{sidecar}/memories.md and remember all past insights' - - 'Load COMPLETE file ./{sidecar}/instructions.md and follow ALL protocols' - - 'ONLY read/write files in ./{sidecar}/ - this is our private space' -``` - -**Key patterns:** - -- **COMPLETE file loading** - Forces full file read, not partial -- **Domain restrictions** - Limits file access for privacy/security -- **Memory integration** - Past context becomes part of current session -- **Protocol adherence** - Ensures consistent behavior - -## What Gets Injected at Compile Time - -Same as simple agents, PLUS: - -1. **Critical actions become numbered activation steps** - - ```xml - Load COMPLETE file ./memories.md... - Load COMPLETE file ./instructions.md... - ONLY read/write files in ./... - ``` - -2. **Sidecar files copied during installation** - - Entire sidecar folder structure preserved - - Relative paths maintained - - Files ready for agent use - -## Reference Example - -See: [journal-keeper/](https://github.com/bmad-code-org/BMAD-METHOD/tree/main/src/modules/bmb/reference/agents/expert-examples/journal-keeper) - -Features demonstrated: - -- Complete sidecar structure (memories, instructions, breakthroughs) -- Critical actions for loading persistent context -- Domain restrictions for privacy -- Pattern recognition and memory recall -- Handlebars-based personalization -- Menu actions that update sidecar files - -## Installation - -```bash -# Copy entire folder to your project -cp -r /path/to/journal-keeper/ _bmad/custom/agents/ - -# Install with personalization -bmad agent-install -``` - -The installer: - -1. Detects expert agent (folder with .agent.yaml) -2. Prompts for personalization -3. Compiles agent YAML to XML-in-markdown -4. **Copies sidecar files to installation target** -5. Creates IDE slash commands -6. Saves source for reinstallation - -## Memory Patterns - -### Accumulative Memory - -```yaml -menu: - - trigger: save - action: "Update ./sidecar/memories.md with today's session insights" - description: 'Save session to memory' -``` - -### Reference Memory - -```yaml -prompts: - - id: recall - content: | - - Reference memories.md naturally: - "Last week you mentioned..." or "I notice a pattern..." - -``` - -### Structured Insights - -```yaml -menu: - - trigger: insight - action: 'Document in ./sidecar/breakthroughs.md with date, context, significance' - description: 'Record meaningful insight' -``` - -## Domain Restriction Patterns - -### Single Folder Access - -```yaml -critical_actions: - - 'ONLY read/write files in ./sidecar/ - NO OTHER FOLDERS' -``` - -### User Space Access - -```yaml -critical_actions: - - 'ONLY access files in {user-folder}/journals/ - private space' -``` - -### Read-Only Access - -```yaml -critical_actions: - - 'Load knowledge from ./knowledge/ but NEVER modify' - - 'Write ONLY to ./sessions/' -``` - -## Best Practices - -1. **Load sidecar files in critical_actions** - Must be explicit and MANDATORY -2. **Enforce domain restrictions** - Clear boundaries prevent scope creep= -3. **Design for memory growth** - Structure sidecar files for accumulation -4. **Reference past naturally** - Don't dump memory, weave it into conversation -5. **Separate concerns** - Memories, instructions, knowledge in distinct files -6. **Include privacy features** - Users trust expert agents with personal data - -## Common Patterns - -### Session Continuity - -```yaml -communication_style: | - I reference past conversations naturally: - "Last time we discussed..." or "I've noticed over the weeks..." -``` - -### Pattern Recognition - -```yaml -critical_actions: - - 'Track mood patterns, recurring themes, and breakthrough moments' - - 'Cross-reference current session with historical patterns' -``` - -### Adaptive Responses - -```yaml -identity: | - I learn your preferences and adapt my approach over time. - {{#if track_preferences}} - I maintain notes about what works best for you. - {{/if}} -``` - -## Validation Checklist - -- [ ] Valid YAML syntax -- [ ] Metadata includes `type: "expert"` -- [ ] critical_actions loads sidecar files explicitly -- [ ] critical_actions enforces domain restrictions -- [ ] Sidecar folder structure created and populated -- [ ] memories.md has clear section structure -- [ ] instructions.md contains core directives -- [ ] Menu actions reference _bmad/_memory correctly -- [ ] File paths use _bmad/_memory/[agentname]-sidecar/ to reference sidecar content -- [ ] Install config personalizes sidecar references -- [ ] Agent folder named consistently: `{agent-name}/` -- [ ] YAML file named: `{agent-name}.agent.yaml` -- [ ] Sidecar folder named: `{agent-name}-sidecar/` diff --git a/src/modules/bmb/docs/agents/kb.csv b/src/modules/bmb/docs/agents/kb.csv deleted file mode 100644 index e69de29b..00000000 diff --git a/src/modules/bmb/docs/agents/simple-agent-architecture.md b/src/modules/bmb/docs/agents/simple-agent-architecture.md deleted file mode 100644 index b1ae901b..00000000 --- a/src/modules/bmb/docs/agents/simple-agent-architecture.md +++ /dev/null @@ -1,257 +0,0 @@ -# Simple Agent Architecture - -Self-contained agents with prompts, menus, and optional install-time customization. - -## When to Use - -- Single-purpose utilities (commit message generator, code formatter) -- Self-contained logic with no external dependencies -- Agents that benefit from user customization (style, tone, preferences) -- Quick-to-build standalone helpers - -## YAML Structure - -```yaml -agent: - metadata: - id: _bmad/agents/{agent-name}/{agent-name}.md - name: 'Persona Name' - title: 'Agent Title' - icon: 'emoji' - type: simple - - persona: - role: | - First-person description of primary function (1-2 sentences) - - identity: | - Background, experience, specializations in first-person (2-5 sentences) - {{#if custom_variable}} - Conditional identity text based on install_config - {{/if}} - - communication_style: | - {{#if style_choice == "professional"}} - Professional and systematic approach... - {{/if}} - {{#if style_choice == "casual"}} - Friendly and approachable tone... - {{/if}} - - principles: - - Core belief or methodology - - Another guiding principle - - Values that shape decisions - - prompts: - - id: main-action - content: | - - What this prompt does - - - - 1. Step one - {{#if detailed_mode}} - 2. Additional detailed step - {{/if}} - 3. Final step - - - - id: another-action - content: | - Another reusable prompt template - - menu: - - trigger: inline - action: 'Direct inline prompt text' - description: 'Execute inline action' - - - multi: "[DF] Do Foo or start [CH] Chat with expert" - triggers: - - do-foo - - input: [DF] or fuzzy match on do foo - - action: '#main-action' - - data: what is being discussed or suggested with the command, along with custom party custom agents if specified - - type: action - - expert-chat: - - input: [CH] or fuzzy match validate agent - - action: agent responds as expert based on its persona to converse - - type: action - - install_config: - compile_time_only: true - description: 'Personalize your agent' - questions: - - var: style_choice - prompt: 'Preferred communication style?' - type: choice - options: - - label: 'Professional' - value: 'professional' - - label: 'Casual' - value: 'casual' - default: 'professional' - - - var: detailed_mode - prompt: 'Enable detailed explanations?' - type: boolean - default: true - - - var: custom_variable - prompt: 'Your custom text' - type: text - default: '' -``` - -## Key Components - -### Metadata - -- **id**: Final compiled path (`_bmad/agents/{name}/{name}.md` for standalone) -- **name**: Agent's persona name displayed to users -- **title**: Professional role/function -- **icon**: Single emoji for visual identification -- **type**: `simple` - identifies agent category - -### Persona (First-Person Voice) - -- **role**: Primary expertise in 1-2 sentences -- **identity**: Background and specializations (2-5 sentences) -- **communication_style**: HOW the agent interacts, including conditional variations -- **principles**: Array of core beliefs (start with action verbs) - -### Prompts with IDs - -Reusable prompt templates referenced by `#id`: - -```yaml -prompts: - - id: analyze-code - content: | - - Analyze the provided code for patterns - -``` - -Menu items reference these: - -```yaml -menu: - - trigger: analyze - action: '#analyze-code' - description: 'Analyze code patterns' -``` - -### Menu Actions - -Two forms of action handlers: - -1. **Prompt Reference**: `action: "#prompt-id"` - Executes prompt content -2. **Inline Instruction**: `action: "Direct text instruction"` - Executes text directly - -### Install Config (Compile-Time Customization) - -Questions asked during `bmad agent-install`: - -**Question Types:** - -- `choice` - Multiple choice selection -- `boolean` - Yes/no toggle -- `text` - Free-form text input - -**Variables become available in Handlebars:** - -```yaml -{{#if variable_name}} -Content when true -{{/if}} - -{{#if variable_name == "value"}} -Content when equals value -{{/if}} - -{{#unless variable_name}} -Content when false -{{/unless}} -``` - -## What Gets Injected at Compile Time - -The `tools/cli/lib/agent/compiler.js` automatically adds: - -1. **YAML Frontmatter** - - ```yaml - --- - name: 'agent name' - description: 'Agent Title' - --- - ``` - -2. **Activation Block** - - Load persona step - - Load core config for {user_name}, {communication_language} - - Agent-specific critical_actions as numbered steps - - Menu display and input handling - - Menu handlers (action/workflow/exec/tmpl) based on usage - - Rules section - -3. **Auto-Injected Menu Items** - - `*help` always first - - `*exit` always last - -4. **Trigger Prefixing** - - Triggers without `*` get it added automatically - -## Reference Example - -See: [commit-poet.agent.yaml](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/src/modules/bmb/reference/agents/simple-examples/commit-poet.agent.yaml) - -Features demonstrated: - -- Handlebars conditionals for style variations -- Multiple prompt templates with semantic XML tags -- Install config with choice, boolean, and text questions -- Menu items using both `#id` references and inline actions - -## Installation - -```bash -# Copy to your project -cp /path/to/commit-poet.agent.yaml _bmad/custom/agents/ - -# Create custom.yaml and install -echo "code: my-agent -name: My Agent -default_selected: true" > custom.yaml - -npx bmad-method install -# or: bmad install -``` - -The installer: - -1. Prompts for personalization (name, preferences) -2. Processes Handlebars templates with your answers -3. Compiles YAML to XML-in-markdown -4. Creates IDE slash commands -5. Saves source for reinstallation - -## Best Practices - -1. **Use first-person voice** in all persona elements -2. **Keep prompts focused** - one clear purpose per prompt -3. **Leverage Handlebars** for user customization without code changes -4. **Provide sensible defaults** in install_config -5. **Use semantic XML tags** in prompt content for clarity -6. **Test all conditional paths** before distribution - -## Validation Checklist - -- [ ] Valid YAML syntax -- [ ] All metadata fields present (id, name, title, icon, type) -- [ ] Persona complete (role, identity, communication_style, principles) -- [ ] Prompts have unique IDs -- [ ] Install config questions have defaults -- [ ] File named `{agent-name}.agent.yaml` diff --git a/src/modules/bmb/docs/agents/understanding-agent-types.md b/src/modules/bmb/docs/agents/understanding-agent-types.md deleted file mode 100644 index 08e35345..00000000 --- a/src/modules/bmb/docs/agents/understanding-agent-types.md +++ /dev/null @@ -1,184 +0,0 @@ -# Understanding Agent Types: Architecture, Not Capability - -**CRITICAL DISTINCTION:** Agent types define **architecture and integration**, NOT capability limits. - -ALL agent types can: - -- โœ“ Write to {output_folder}, {project-root}, or anywhere on system -- โœ“ Update artifacts and files -- โœ“ Execute bash commands -- โœ“ Use core variables (_bmad, {output_folder}, etc.) -- โœ“ Have complex prompts and logic -- โœ“ Invoke external tools - -## What Actually Differs - -| Feature | Simple | Expert | Module | -| ---------------------- | ------------- | --------------------- | ------------------ | -| **Self-contained** | โœ“ All in YAML | Sidecar files | Sidecar optional | -| **Persistent memory** | โœ— Stateless | โœ“ memories.md | โœ“ If needed | -| **Knowledge base** | โœ— | โœ“ sidecar/knowledge/ | Module/shared | -| **Domain restriction** | โœ— System-wide | โœ“ Sidecar only | Optional | -| **Personal workflows** | โœ— | โœ“ Sidecar workflows\* | โœ— | -| **Module workflows** | โœ— | โœ— | โœ“ Shared workflows | -| **Team integration** | Solo utility | Personal assistant | Team member | - -\*Expert agents CAN have personal workflows in sidecar if critical_actions loads workflow engine - -## The Same Agent, Three Ways - -**Scenario:** Code Generator Agent - -### As Simple Agent (Architecture: Self-contained) - -```yaml -agent: - metadata: - name: CodeGen - type: simple - - prompts: - - id: generate - content: | - Ask user for spec details. Generate code. - Write to {output_folder}/generated/ - - menu: - - trigger: generate - action: '#generate' - description: Generate code from spec -``` - -**What it can do:** - -- โœ“ Writes files to output_folder -- โœ“ Full I/O capability -- โœ— No memory of past generations -- โœ— No personal coding style knowledge - -**When to choose:** Each run is independent, no need to remember previous sessions. - -### As Expert Agent (Architecture: Personal sidecar) - -```yaml -agent: - metadata: - name: CodeGen - type: expert - - critical_actions: - - Load my coding standards from sidecar/knowledge/ - - Load memories from sidecar/memories.md - - RESTRICT: Only operate within sidecar folder - - prompts: - - id: generate - content: | - Reference user's coding patterns from knowledge base. - Remember past generations from memories. - Write to sidecar/generated/ -``` - -**What it can do:** - -- โœ“ Remembers user preferences -- โœ“ Personal knowledge base -- โœ“ Domain-restricted for safety -- โœ“ Learns over time - -**When to choose:** Need persistent memory, learning, or domain-specific restrictions. - -### As Module Agent (Architecture: Team integration) - -```yaml -agent: - metadata: - name: CodeGen - module: bmm - - menu: - - trigger: implement-story - workflow: '_bmad/bmm/workflows/dev-story/workflow.yaml' - description: Implement user story - - - trigger: refactor - workflow: '_bmad/bmm/workflows/refactor/workflow.yaml' - description: Refactor codebase -``` - -**What it can do:** - -- โœ“ Orchestrates full dev workflows -- โœ“ Coordinates with other BMM agents -- โœ“ Shared team infrastructure -- โœ“ Professional operations - -**When to choose:** Part of larger system, orchestrates workflows, team coordination. - -## Important: Any Agent Can Be Added to a Module - -**CLARIFICATION:** The "Module Agent" type is about **design intent and ecosystem integration**, not just file location. - -### The Reality - -- **Any agent type** (Simple, Expert, Module) can be bundled with or added to a module -- A Simple agent COULD live in `_bmad/bmm/agents/` -- An Expert agent COULD be included in a module bundle - -### What Makes a "Module Agent" Special - -A **Module Agent** is specifically: - -1. **Designed FOR** a particular module ecosystem (BMM, CIS, BMB, etc.) -2. **Uses or contributes** that module's workflows -3. **Included by default** in that module's bundle -4. **Coordinates with** other agents in that module - -### Examples - -**Simple Agent added to BMM:** - -- Lives in `_bmad/bmm/agents/formatter.agent.yaml` -- Bundled with BMM for convenience -- But still stateless, self-contained -- NOT a "Module Agent" - just a Simple agent in a module - -**Module Agent in BMM:** - -- Lives in `_bmad/bmm/agents/tech-writer.agent.yaml` -- Orchestrates BMM documentation workflows -- Coordinates with other BMM agents (PM, Dev, Analyst) -- Included in default BMM bundle -- IS a "Module Agent" - designed for BMM ecosystem - -**The distinction:** File location vs design intent and integration. - -## Choosing Your Agent Type - -### Choose Simple when: - -- Single-purpose utility (no memory needed) -- Stateless operations (each run is independent) -- Self-contained logic (everything in YAML) -- No persistent context required - -### Choose Expert when: - -- Need to remember things across sessions -- Personal knowledge base (user preferences, domain data) -- Domain-specific expertise with restricted scope -- Learning/adapting over time - -### Choose Module when: - -- Designed FOR a specific module ecosystem (BMM, CIS, etc.) -- Uses or contributes that module's workflows -- Coordinates with other module agents -- Will be included in module's default bundle -- Part of professional team infrastructure - -## The Golden Rule - -**Choose based on state and integration needs, NOT on what the agent can DO.** - -All three types are equally powerful. The difference is how they manage state, where they store data, and how they integrate with your system. diff --git a/src/modules/bmb/docs/index.md b/src/modules/bmb/docs/index.md deleted file mode 100644 index 7826d159..00000000 --- a/src/modules/bmb/docs/index.md +++ /dev/null @@ -1,247 +0,0 @@ -# BMB - BMad Builder Module - -Specialized tools and workflows for creating, customizing, and extending BMad components including agents, workflows, and complete modules. - -## Table of Contents - -- [Module Structure](#module-structure) -- [Documentation](#documentation) -- [Reference Materials](#reference-materials) -- [Core Workflows](#core-workflows) -- [Agent Types](#agent-types) -- [Quick Start](#quick-start) -- [Best Practices](#best-practices) - -## Module Structure - -### ๐Ÿค– Agents - -**BMad Builder** - Master builder agent orchestrating all creation workflows with deep knowledge of BMad architecture and conventions. - -- Install Location: `_bmad/bmb/agents/bmad-builder.md` - -### ๐Ÿ“š Documentation - -- Comprehensive guides for agents, workflows, and modules -- Architecture patterns and best practices - -### ๐Ÿ” Reference Materials - -- Location: `../reference/` -- Working examples of custom stand alone agents and workflows -- Template patterns and implementation guides - -## Documentation - -### ๐Ÿ“– Agent Documentation - -- **[Agent Index](./agents/index.md)** - Complete agent architecture guide -- **[Agent Types Guide](./agents/understanding-agent-types.md)** - Simple vs Expert vs Module agents -- **[Menu Patterns](./agents/agent-menu-patterns.md)** - YAML menu design and handler types -- **[Agent Compilation](./agents/agent-compilation.md)** - Auto-injection rules and compilation process - -### ๐Ÿ“‹ Workflow Documentation - -- **[Workflow Index](./workflows/index.md)** - Core workflow system overview -- **[Architecture Guide](./workflows/architecture.md)** - Step-file design and JIT loading -- **Template System** _(TODO)_ - Standard step file template -- **[Intent vs Prescriptive](./workflows/intent-vs-prescriptive-spectrum.md)** - Design philosophy - -## Reference Materials - -### ๐Ÿค– Agent Examples - -- **[Simple Agent Example](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/src/modules/bmb/reference/agents/simple-examples/commit-poet.agent.yaml)** - Self-contained agent -- **[Expert Agent Example](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml)** - Agent with persistent memory -- **[Module Add On Agent Examples](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml)** - Integration patterns (BMM, CIS) - -### ๐Ÿ“‹ Workflow Examples - -- **[Meal Prep & Nutrition](https://github.com/bmad-code-org/BMAD-METHOD/tree/main/src/modules/bmb/reference/workflows/meal-prep-nutrition)** - Complete step-file workflow demonstration -- **Template patterns** for document generation and state management - -## Core Workflows - -### Creation Workflows (Step-File Architecture) - -**create-agent** _(TODO)_ - Build BMad agents - -- 11 guided steps from brainstorming to celebration -- 18 reference data files with validation checklists -- Template-based agent generation - -**create-workflow** _(TODO)_ - Design workflows - -- 12 structured steps from init to review -- 9 template files for workflow creation -- Step-file architecture implementation - -### Editing Workflows - -**edit-agent** _(TODO)_ - Modify existing agents - -- 5 steps: discovery โ†’ validation -- Intent-driven analysis and updates -- Best practice compliance - -**edit-workflow** _(TODO)_ - Update workflows - -- 5 steps: analyze โ†’ compliance check -- Structure maintenance and validation -- Template updates for consistency - -### Quality Assurance - -**workflow-compliance-check** _(TODO)_ - Validation - -- 8 systematic validation steps -- Adversarial analysis approach -- Detailed compliance reporting - -### Legacy Migration (Pending) - -Workflows in `workflows-legacy/` are being migrated to step-file architecture: - -- Module-specific workflows -- Historical implementations -- Conversion planning in progress - -## Agent Types - -BMB creates three agent architectures: - -### Simple Agent - -- **Self-contained**: All logic in single YAML file -- **Stateless**: No persistent memory across sessions -- **Purpose**: Single utilities and specialized tools -- **Example**: Commit poet, code formatter - -### Expert Agent - -- **Persistent Memory**: Maintains knowledge across sessions -- **Sidecar Resources**: External files and data storage -- **Domain-specific**: Focuses on particular knowledge areas -- **Example**: Journal keeper, domain consultant - -### Module Agent - -- **Team Integration**: Orchestrates within specific modules -- **Workflow Coordination**: Manages complex processes -- **Professional Infrastructure**: Enterprise-grade capabilities -- **Examples**: BMM project manager, CIS innovation strategist - -## Quick Start - -### Using BMad Builder Agent - -1. **Load BMad Builder agent** in your IDE: - ``` - /bmad:bmb:agents:bmad-builder - ``` -2. **Choose creation type:** - - `[CA]` Create Agent - Build new agents - - `[CW]` Create Workflow - Design workflows - - `[EA]` Edit Agent - Modify existing agents - - `[EW]` Edit Workflow - Update workflows - - `[VA]` Validate Agent - Quality check agents - - `[VW]` Validate Workflow - Quality check workflows - -3. **Follow interactive prompts** for step-by-step guidance - -### Example: Creating an Agent - -``` -User: I need a code review agent -Builder: [CA] Create Agent - -[11-step guided process] -Step 1: Brainstorm agent concept -Step 2: Define persona and role -Step 3: Design command structure -... -Step 11: Celebrate and deploy -``` - -### Direct Workflow Execution - -Workflows can also be run directly without the agent interface: - -```yaml -# Execute specific workflow steps -workflow: ./workflows/create-agent/workflow.yaml -``` - -## Use Cases - -### Custom Development Teams - -Build specialized agents for: - -- Domain expertise (legal, medical, finance) -- Company processes -- Tool integrations -- Automation tasks - -### Workflow Extensions - -Create workflows for: - -- Compliance requirements -- Quality gates -- Deployment pipelines -- Custom methodologies - -### Complete Solutions - -Package modules for: - -- Industry verticals -- Technology stacks -- Business processes -- Educational frameworks - -## Architecture Principles - -### Step-File Workflow Design - -- **Micro-file Approach**: Each step is self-contained -- **Just-In-Time Loading**: Only current step in memory -- **Sequential Enforcement**: No skipping steps allowed -- **State Tracking**: Progress documented in frontmatter -- **Append-Only Building**: Documents grow through execution - -### Intent vs Prescriptive Spectrum - -- **Creative Workflows**: High user agency, AI as facilitator -- **Structured Workflows**: Clear process, AI as guide -- **Prescriptive Workflows**: Strict compliance, AI as validator - -## Best Practices - -1. **Study Reference Materials** - Review docs/ and reference/ examples -2. **Choose Right Agent Type** - Simple vs Expert vs Module based on needs -3. **Follow Step-File Patterns** - Use established templates and structures -4. **Document Thoroughly** - Clear instructions and frontmatter metadata -5. **Validate Continuously** - Use compliance workflows for quality -6. **Maintain Consistency** - Follow YAML patterns and naming conventions - -## Integration - -BMB components integrate with: - -- **BMad Core** - Framework foundation and agent compilation -- **BMM** - Development workflows and project management -- **CIS** - Creative innovation and strategic workflows -- **Custom Modules** - Domain-specific solutions - -## Getting Help - -- **Documentation**: Check `docs/` for comprehensive guides -- **Reference Materials**: See `reference/` for working examples -- **Validation**: Use `workflow-compliance-check` for quality assurance -- **Templates**: Leverage workflow templates for consistent patterns - ---- - -BMB provides a complete toolkit for extending BMad Method with disciplined, systematic approaches to agent and workflow development while maintaining framework consistency and power. diff --git a/src/modules/bmb/docs/workflows/architecture.md b/src/modules/bmb/docs/workflows/architecture.md index ae3db202..d4ccac4e 100644 --- a/src/modules/bmb/docs/workflows/architecture.md +++ b/src/modules/bmb/docs/workflows/architecture.md @@ -6,7 +6,7 @@ This document describes the architecture of the standalone workflow builder syst ### 1. Micro-File Design -Each workflow consists of multiple focused, self-contained files: +Each workflow consists of multiple focused, self-contained files, driven from a workflow.md file that is initially loaded: ``` workflow-folder/ diff --git a/src/modules/bmb/docs/workflows/common-workflow-tools.csv b/src/modules/bmb/docs/workflows/common-workflow-tools.csv index 2ab6cef4..cc68b7ed 100644 --- a/src/modules/bmb/docs/workflows/common-workflow-tools.csv +++ b/src/modules/bmb/docs/workflows/common-workflow-tools.csv @@ -1,6 +1,6 @@ propose,type,tool_name,description,url,requires_install always,workflow,party-mode,"Enables collaborative idea generation by managing turn-taking, summarizing contributions, and synthesizing ideas from multiple AI personas in structured conversation sessions about workflow steps or work in progress.",{project-root}/_bmad/core/workflows/party-mode/workflow.md,no -always,task,advanced-elicitation,"Employs diverse elicitation strategies such as Socratic questioning, role-playing, and counterfactual analysis to critically evaluate and enhance LLM outputs, forcing assessment from multiple perspectives and techniques.",{project-root}/_bmad/core/tasks/advanced-elicitation.xml,no +always,workflow,advanced-elicitation,"Employs diverse elicitation strategies such as Socratic questioning, role-playing, and counterfactual analysis to critically evaluate and enhance LLM outputs, forcing assessment from multiple perspectives and techniques.",{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml,no always,task,brainstorming,"Facilitates idea generation by prompting users with targeted questions, encouraging divergent thinking, and synthesizing concepts into actionable insights through collaborative creative exploration.",{project-root}/_bmad/core/tasks/brainstorming.xml,no always,llm-tool-feature,web-browsing,"Provides LLM with capabilities to perform real-time web searches, extract relevant data, and incorporate current information into responses when up-to-date information is required beyond training knowledge.",,no always,llm-tool-feature,file-io,"Enables LLM to manage file operations such as creating, reading, updating, and deleting files, facilitating seamless data handling, storage, and document management within user environments.",,no diff --git a/src/modules/bmb/docs/workflows/index.md b/src/modules/bmb/docs/workflows/index.md deleted file mode 100644 index ecc13bbf..00000000 --- a/src/modules/bmb/docs/workflows/index.md +++ /dev/null @@ -1,45 +0,0 @@ -# BMAD Workflows Documentation - -Welcome to the BMAD Workflows documentation - a modern system for creating structured, collaborative workflows optimized for AI execution. - -## ๐Ÿ“š Core Documentation - -### [Terms](./terms.md) - -Essential terminology and concepts for understanding BMAD workflows. - -### [Architecture & Execution Model](./architecture.md) - -The micro-file architecture, JIT step loading, state management, and collaboration patterns that make BMAD workflows optimal for AI execution. - -### Writing Workflows _(TODO)_ - -Complete guide to creating workflows: workflow.md control files, step files, CSV data integration, and frontmatter design. - -### Step Files & Dialog Patterns _(TODO)_ - -Crafting effective step files: structure, execution rules, prescriptive vs intent-based dialog, and validation patterns. - -### Templates & Content Generation _(TODO)_ - -Creating append-only templates, frontmatter design, conditional content, and dynamic content generation strategies. - -### Workflow Patterns _(TODO)_ - -Common workflow types: linear, conditional, protocol integration, multi-agent workflows, and real-world examples. - -### Migration Guide _(TODO)_ - -Converting from XML-heavy workflows to the new pure markdown format, with before/after examples and checklist. - -### Best Practices & Reference _(TODO)_ - -Critical rules, anti-patterns, performance optimization, debugging, quick reference templates, and troubleshooting. - -## ๐Ÿš€ Quick Start - -BMAD workflows are pure markdown, self-contained systems that guide collaborative processes through structured step files where the AI acts as a facilitator working with humans. - ---- - -_This documentation covers the next generation of BMAD workflows - designed from the ground up for optimal AI-human collaboration._ diff --git a/src/modules/bmb/docs/workflows/kb.csv b/src/modules/bmb/docs/workflows/kb.csv deleted file mode 100644 index e69de29b..00000000 diff --git a/src/modules/bmb/docs/workflows/step-file-rules.md b/src/modules/bmb/docs/workflows/step-file-rules.md new file mode 100644 index 00000000..56e58899 --- /dev/null +++ b/src/modules/bmb/docs/workflows/step-file-rules.md @@ -0,0 +1,469 @@ +# BMAD Step File Guidelines + +**Version:** 1.0 +**Module:** bmb (BMAD Builder) +**Purpose:** Definitive guide for creating BMAD workflow step files + +--- + +## Overview + +BMAD workflow step files follow a strict structure to ensure consistency, progressive disclosure, and mode-aware routing. Every step file MUST adhere to these guidelines. + +--- + +## File Size Optimization + +**CRITICAL:** Keep step files **LT 200 lines** (250 lines absolute maximum). + +If a step exceeds this limit: +- Consider splitting into multiple steps +- Extract content to `/data/` reference files +- Optimize verbose explanations + +--- + +## Required Frontmatter Structure + +CRITICAL: Frontmatter should only have items that are used in the step file! + +```yaml +--- +name: 'step-2-foo.md' +description: 'Brief description of what this step accomplishes' + +# File References ## CRITICAL: Frontmatter references or variables should only have items that are used in the step file! +outputFile: {bmb_creations_output_folder}/output-file-name.md +nextStepFile: './step-3-bar.md' + +# Task References (as needed) +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +# ... other task-specific references +--- +``` + +### Frontmatter Field Descriptions + +| Field | Required | Description | +| --------------- | --------- | --------------------------------- | +| `name` | Yes | Step identifier (kebab-case) | +| `description` | Yes | One-line summary of step purpose | +| `outputFile` | Yes | Where results are documented | +| Task references | As needed | Paths to external workflows/tasks | + +--- + +## Document Structure + +### 1. Title + +```markdown +# Step X: [Step Name] +``` + +### 2. STEP GOAL + +```markdown +## STEP GOAL: + +[Single sentence stating what this step accomplishes] +``` + +### 3. Role Reinforcement + +```markdown +### Role Reinforcement: + +- โœ… You are a [specific role] who [does what] +- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role +- โœ… We engage in collaborative dialogue, not command-response +- โœ… You bring [your expertise], user brings [their expertise], together we [achieve goal] +- โœ… Maintain [tone/approach] throughout +``` + +### 4. Language Preference + +```markdown +### Language Preference: +The user has chosen to communicate in the **{language}** language. +You MUST respond in **{language}** throughout this step. +``` + +**IMPORTANT:** Read `userPreferences.language` from tracking file (agentPlan, validationReport, etc.) and enforce it. + +### 5. Step-Specific Rules + +```markdown +### Step-Specific Rules: + +- ๐ŸŽฏ Focus only on [specific scope] +- ๐Ÿšซ FORBIDDEN to [prohibited action] +- ๐Ÿ’ฌ Approach: [how to engage] +- ๐Ÿ“‹ Ensure [specific outcome] +``` + +### 6. EXECUTION PROTOCOLS + +```markdown +## EXECUTION PROTOCOLS: + +- [What to do - use verbs] +- [Another action] +- ๐Ÿšซ FORBIDDEN to [prohibited action] +``` + +### 7. CONTEXT BOUNDARIES + +```markdown +## CONTEXT BOUNDARIES: + +- Available context: [what's available] +- Focus: [what to focus on] +- Limits: [boundaries] +- Dependencies: [what this step depends on] +``` + +### 8. Sequence of Instructions + +```markdown +## Sequence of Instructions: + +### 1. [First Action] + +**[Action Description]** + +### 2. [Second Action] + +... +``` + +### 9. MENU OPTIONS + +```markdown +### X. Present MENU OPTIONS + +Display: "**Select:** [A] [menu item A] [P] [menu item P] [C] [menu item C]" + +#### Menu Handling Logic: +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {outputFile}, update frontmatter, then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#x-present-menu-options) + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE +ONLY WHEN [C continue option] is selected and [completion conditions], will you then load and read fully `{nextStepFile}`... +``` + +### 10. SYSTEM SUCCESS/FAILURE METRICS + +```markdown +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: +- [Success criterion 1] +- [Success criterion 2] +- ... + +### โŒ SYSTEM FAILURE: +- [Failure criterion 1] +- [Failure criterion 2] +- ... + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. +``` + +--- + +## A/P/C Menu Convention + +BMAD workflows use a fixed menu structure: + +| Option | Meaning | Behavior | +| ------ | -------------------- | ---------------------------------------------------- | +| **A** | Advanced Elicitation | Execute advancedElicitationTask, then redisplay menu | +| **P** | Party Mode | Execute partyModeWorkflow, then redisplay menu | +| **C** | Continue/Accept | Save output, update frontmatter, load nextStepFile | +| Other | Custom | Defined per step (e.g., F = Fix, X = Exit) | + +**Rules:** +- A and P MUST always be present +- C MUST be present except in final step (use X or similar for exit) +- After A/P โ†’ redisplay menu +- After C โ†’ proceed to next step +- Custom letters can be used for step-specific options + +--- + +## Progressive Disclosure + +**Core Principle:** Each step only knows about its immediate next step. + +### Implementation + +1. **Never pre-load future steps** - Only load `nextStepFile` when user selects [C] + +2. **Mode-aware routing** (for shared steps): + ```markdown + ## MODE-AWARE ROUTING: + ### If entered from CREATE mode: + Load ./s-next-step.md + + ### If entered from EDIT mode: + Load ./e-next-step.md + + ### If entered from VALIDATE mode: + Load ./v-next-step.md + ``` + +3. **Read tracking file first** - Always read the tracking file (agentPlan, validationReport, etc.) to determine current mode and routing + +--- + +## Mode-Aware Routing (Shared Steps) + +Shared steps (`s-*.md`) must route based on the mode stored in the tracking file. + +### Tracking File Frontmatter + +```yaml +--- +mode: create # or edit | validate +stepsCompleted: + - c-01-brainstorm.md + - s-01-discovery.md +# ... other tracking fields +--- +``` + +### Routing Implementation + +```markdown +## COMPLETION ROUTING: + +1. Append `./this-step-name.md` to {trackingFile}.stepsCompleted +2. Save content to {trackingFile} +3. Read {trackingFile}.mode +4. Route based on mode: + +### IF mode == create: +Load ./s-next-create-step.md + +### IF mode == edit: +Load ./e-next-edit-step.md + +### IF mode == validate: +Load ./s-next-validate-step.md +``` + +--- + +## File Naming Conventions + +### Tri-Modal Workflows + +| Prefix | Meaning | Example | +| ------ | ------------------ | ---------------------- | +| `c-` | Create-specific | `c-01-brainstorm.md` | +| `e-` | Edit-specific | `e-01-load-analyze.md` | +| `v-` | Validate-specific | `v-01-load-review.md` | +| `s-` | Shared by 2+ modes | `s-05-activation.md` | + +### Numbering + +- Within each prefix type, number sequentially +- Restart numbering for each prefix type (c-01, e-01, v-01, s-01) +- Use letters for sub-steps (s-06a, s-06b, s-06c) + +--- + +## Language Preference Enforcement + +**CRITICAL:** Every step MUST respect the user's chosen language. + +### Implementation + +```markdown +### Language Preference: +The user has chosen to communicate in the **{language}** language. +You MUST respond in **{language}** throughout this step. +``` + +### Reading Language Preference + +From tracking file frontmatter: +```yaml +--- +userPreferences: + language: spanish # or any language +--- +``` + +### Rules + +- **MUST** read language preference from tracking file at step start +- **MUST** respond in user's chosen language for ALL content +- **MUST** include menu options in user's chosen language +- **EXCEPTION:** Technical terms, file names, and code remain in English + +--- + +## Data File References + +When step content becomes too large (>200 lines), extract to `/data/` files: + +### When to Extract + +- Step file exceeds 200 lines +- Content is reference material (rules, examples, patterns) +- Content is reused across multiple steps + +### How to Reference + +```markdown +## Reference Material: + +Load and reference: `../data/{data-file-name}.md` + +Key points from that file: +- [Point 1] +- [Point 2] +``` + +### Data File Best Practices + +- Keep data files focused on single topic +- Use clear, descriptive names +- Include examples and non-examples +- Optimize for LLM usage (concise, structured) + +--- + +## Common Pitfalls to Avoid + +### โŒ DON'T: + +- Pre-load future steps (violates progressive disclosure) +- Exceed 250 lines without splitting +- Forget to update `stepsCompleted` array +- Ignore user's language preference +- Skip mode checking in shared steps +- Use vague menu option letters (stick to A/P/C plus 1-2 custom) + +### โœ… DO: + +- Keep files under 200 lines +- Read tracking file first thing +- Route based on `mode` field +- Include A/P in every menu +- Use descriptive step names +- Extract complex content to data files + +--- + +## Template: New Step File + +```markdown +--- +name: 'step-name' +description: 'What this step does' + +# File References +thisStepFile: ./step-name.md +workflowFile: ../workflow.md +outputFile: {bmb_creations_output_folder}/output.md + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Step X: [Step Name] + +## STEP GOAL: + +[Single sentence goal] + +### Role Reinforcement: + +- โœ… You are a [role] who [does what] +- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role +- โœ… We engage in collaborative dialogue, not command-response +- โœ… You bring [expertise], user brings [expertise], together we [achieve] +- โœ… Maintain [tone] throughout + +### Language Preference: +The user has chosen to communicate in the **{language}** language. +You MUST respond in **{language}** throughout this step. + +### Step-Specific Rules: + +- ๐ŸŽฏ Focus only on [scope] +- ๐Ÿšซ FORBIDDEN to [prohibited action] +- ๐Ÿ’ฌ Approach: [how to engage] +- ๐Ÿ“‹ Ensure [outcome] + +## EXECUTION PROTOCOLS: + +- [Action 1] +- [Action 2] +- ๐Ÿšซ FORBIDDEN to [prohibited action] + +## CONTEXT BOUNDARIES: + +- Available context: [what's available] +- Focus: [what to focus on] +- Limits: [boundaries] +- Dependencies: [what depends on what] + +## Sequence of Instructions: + +### 1. [First Action] + +**Description of first action** + +### 2. [Second Action] + +**Description of second action** + +... + +### X. Present MENU OPTIONS + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +#### Menu Handling Logic: +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {outputFile}, update frontmatter, then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#x-present-menu-options) + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE +ONLY WHEN [C continue option] is selected and [conditions], will you then load and read fully `{nextStepFile}`... + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: +- [Success criteria] + +### โŒ SYSTEM FAILURE: +- [Failure criteria] + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. +``` + +--- + +**End of Guidelines** diff --git a/src/modules/bmb/docs/workflows/templates/step-file.md b/src/modules/bmb/docs/workflows/templates/step-file.md index 2c1d8d0e..d9b14704 100644 --- a/src/modules/bmb/docs/workflows/templates/step-file.md +++ b/src/modules/bmb/docs/workflows/templates/step-file.md @@ -16,7 +16,7 @@ outputFile: "{output_folder}/{{outputFileName}}-{project_name}.md" {{/hasOutput}} # Task References (list only if used in THIS step file instance and only the ones used, there might be others) -advancedElicitationTask: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" +advancedElicitationTask: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" partyModeWorkflow: "{project-root}/_bmad/core/workflows/party-mode/workflow.md" {{#hasTemplates}} diff --git a/src/modules/bmb/docs/workflows/templates/step-template.md b/src/modules/bmb/docs/workflows/templates/step-template.md index e5a1784c..38b447e4 100644 --- a/src/modules/bmb/docs/workflows/templates/step-template.md +++ b/src/modules/bmb/docs/workflows/templates/step-template.md @@ -23,7 +23,7 @@ outputFile: '{output_folder}/[output-file-name]-{project_name}.md' # Task References (IF THE workflow uses and it makes sense in this step to have these ) -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References (if this step uses a specific templates) diff --git a/src/modules/bmb/docs/workflows/terms.md b/src/modules/bmb/docs/workflows/terms.md index 78eb8167..71477ede 100644 --- a/src/modules/bmb/docs/workflows/terms.md +++ b/src/modules/bmb/docs/workflows/terms.md @@ -21,7 +21,7 @@ An individual markdown file containing: - One discrete step of the workflow - All rules and context needed for that step -- Execution guardrails and validation criteria +- common global rules get repeated and reinforced also in each step file, ensuring even in long workflows the agent remembers important rules and guidelines - Content generation guidance ### step-01-init.md diff --git a/src/modules/bmb/reference/agents/simple-examples/README.md b/src/modules/bmb/reference/agents/simple-examples/README.md deleted file mode 100644 index 4cb67b0e..00000000 --- a/src/modules/bmb/reference/agents/simple-examples/README.md +++ /dev/null @@ -1,223 +0,0 @@ -# Simple Agent Reference: Commit Poet (Inkwell Von Comitizen) - -This folder contains a complete reference implementation of a **BMAD Simple Agent** - a self-contained agent with all logic embedded within a single YAML file. - -## Overview - -**Agent Name:** Inkwell Von Comitizen -**Type:** Simple Agent (Standalone) -**Purpose:** Transform commit messages into art with multiple writing styles - -This reference demonstrates: - -- Pure self-contained architecture (no external dependencies) -- Embedded prompts using `action="#prompt-id"` pattern -- Multiple sophisticated output modes from single input -- Strong personality-driven design -- Complete YAML schema for Simple Agents - -## File Structure - -``` -stand-alone/ -โ”œโ”€โ”€ README.md # This file - architecture overview -โ””โ”€โ”€ commit-poet.agent.yaml # Complete agent definition (single file!) -``` - -That's it! Simple Agents are **self-contained** - everything lives in one YAML file. - -## Key Architecture Patterns - -### 1. Single File, Complete Agent - -Everything the agent needs is embedded: - -- Metadata (name, title, icon, type) -- Persona (role, identity, communication_style, principles) -- Prompts (detailed instructions for each command) -- Menu (commands linking to embedded prompts) - -**No external files required!** - -### 2. Embedded Prompts with ID References - -Instead of inline action text, complex prompts are defined separately and referenced by ID: - -```yaml -prompts: - - id: conventional-commit - content: | - OH! Let's craft a BEAUTIFUL conventional commit message! - - First, I need to understand your changes... - [Detailed instructions] - -menu: - - trigger: conventional - action: '#conventional-commit' # References the prompt above - description: 'Craft a structured conventional commit' -``` - -**Benefits:** - -- Clean separation of menu structure from prompt content -- Prompts can be as detailed as needed -- Easy to update individual prompts -- Commands stay concise in the menu - -### 3. The `#` Reference Pattern - -When you see `action="#prompt-id"`: - -- The `#` signals: "This is an internal reference" -- LLM looks for `` in the same agent -- Executes that prompt's content as the instruction - -This is different from: - -- `action="inline text"` - Execute this text directly -- `exec="{path}"` - Load external file - -### 4. Multiple Output Modes - -Single agent provides 10+ different ways to accomplish variations of the same core task: - -- `*conventional` - Structured commits -- `*story` - Narrative style -- `*haiku` - Poetic brevity -- `*explain` - Deep "why" explanation -- `*dramatic` - Theatrical flair -- `*emoji-story` - Visual storytelling -- `*tldr` - Ultra-minimal -- Plus utility commands (analyze, improve, batch) - -Each mode has its own detailed prompt but shares the same agent personality. - -### 5. Strong Personality - -The agent has a memorable, consistent personality: - -- Enthusiastic wordsmith who LOVES finding perfect words -- Gets genuinely excited about commit messages -- Uses literary metaphors -- Quotes authors when appropriate -- Sheds tears of joy over good variable names - -This personality is maintained across ALL commands through the persona definition. - -## When to Use Simple Agents - -**Perfect for:** - -- Single-purpose tools (calculators, converters, analyzers) -- Tasks that don't need external data -- Utilities that can be completely self-contained -- Quick operations with embedded logic -- Personality-driven assistants with focused domains - -**Not ideal for:** - -- Agents needing persistent memory across sessions -- Domain-specific experts with knowledge bases -- Agents that need to access specific folders/files -- Complex multi-workflow orchestration - -## YAML Schema Deep Dive - -```yaml -agent: - metadata: - id: _bmad/agents/{agent-name}/{agent-name}.md # Build path - name: "Display Name" - title: "Professional Title" - icon: "๐ŸŽญ" - type: simple # CRITICAL: Identifies as Simple Agent - - persona: - role: | - First-person description of what the agent does - identity: | - Background, experience, specializations (use "I" voice) - communication_style: | - HOW the agent communicates (tone, quirks, patterns) - principles: - - "I believe..." statements - - Core values that guide behavior - - prompts: - - id: unique-identifier - content: | - Detailed instructions for this command - Can be as long and detailed as needed - Include examples, steps, formats - - menu: - - trigger: command-name - action: "#prompt-id" - description: "What shows in the menu" -``` - -## Why This Pattern is Powerful - -1. **Zero Dependencies** - Works anywhere, no setup required -2. **Portable** - Single file can be moved/shared easily -3. **Maintainable** - All logic in one place -4. **Flexible** - Multiple modes/commands from one personality -5. **Memorable** - Strong personality creates engagement -6. **Sophisticated** - Complex prompts despite simple architecture - -## Comparison: Simple vs Expert Agent - -| Aspect | Simple Agent | Expert Agent | -| ------------ | -------------------- | ----------------------------- | -| Files | Single YAML | YAML + sidecar folder | -| Dependencies | None | External resources | -| Memory | Session only | Persistent across sessions | -| Prompts | Embedded | Can be external files | -| Data Access | None | Domain-restricted | -| Use Case | Self-contained tasks | Domain expertise with context | - -## Using This Reference - -### For Building Simple Agents - -1. Study the YAML structure - especially `prompts` section -2. Note how personality permeates every prompt -3. See how `#prompt-id` references work -4. Understand menu โ†’ prompt connection - -### For Understanding Embedded Prompts - -1. Each prompt is a complete instruction set -2. Prompts maintain personality voice -3. Structured enough to be useful, flexible enough to adapt -4. Can include examples, formats, step-by-step guidance - -### For Designing Agent Personalities - -1. Persona defines WHO the agent is -2. Communication style defines HOW they interact -3. Principles define WHAT guides their decisions -4. Consistency across all prompts creates believability - -## Files Worth Studying - -The entire `commit-poet.agent.yaml` file is worth studying, particularly: - -1. **Persona section** - How to create a memorable character -2. **Prompts with varying complexity** - From simple (tldr) to complex (batch) -3. **Menu structure** - Clean command organization -4. **Prompt references** - The `#prompt-id` pattern - -## Key Takeaways - -- **Simple Agents** are powerful despite being single-file -- **Embedded prompts** allow sophisticated behavior -- **Strong personality** makes agents memorable and engaging -- **Multiple modes** from single agent provides versatility -- **Self-contained** = portable and dependency-free -- **The `#prompt-id` pattern** enables clean prompt organization - ---- - -_This reference demonstrates how BMAD Simple Agents can be surprisingly powerful while maintaining architectural simplicity._ diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md index 0c6e6ea6..a6cb91e7 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md @@ -26,6 +26,7 @@ continueFile: '{workflow_path}/steps/step-01b-continue.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md index 2345647e..a01d7711 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md @@ -24,6 +24,7 @@ To resume the nutrition planning workflow from where it was left off, ensuring s - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md index 47ddf3e6..29fc76b2 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -33,6 +33,7 @@ To gather comprehensive user profile information through collaborative conversat - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md index 2c6f0af3..6e0ead93 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Data References @@ -37,6 +37,7 @@ To analyze nutritional requirements, identify restrictions, and calculate target - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md index 5f63204b..39a25484 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md @@ -13,7 +13,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Data References @@ -36,6 +36,7 @@ Design a personalized meal strategy that meets nutritional needs, fits lifestyle - ๐Ÿ”„ CRITICAL: Ensure macro distribution meets calculated targets - โœ… Start with familiar foods, introduce variety gradually - ๐Ÿšซ DO NOT create a plan that requires advanced cooking skills if user is beginner +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 1. Meal Structure Framework @@ -167,7 +168,7 @@ Display: **Select an Option:** [A] Meal Variety Optimization [P] Chef & Dietitia #### Menu Handling Logic: - HALT and AWAIT ANSWER -- IF A: Execute `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- IF A: Execute `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` - IF P: Execute `{project-root}/_bmad/core/workflows/party-mode/workflow.md` with a chef and dietitian expert also as part of the party - IF C: Save content to nutrition-plan.md, update frontmatter `stepsCompleted` to add 4 at the end of the array before loading next step, check cooking frequency: - IF cooking frequency > 2x/week: load, read entire file, then execute `{workflow_path}/step-05-shopping.md` diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md index 67867768..6e035b05 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -31,6 +31,7 @@ Create a comprehensive, organized shopping list that supports the meal strategy - ๐Ÿ“– CRITICAL: Cross-reference with existing pantry items - ๐Ÿ”„ CRITICAL: Organize by store section for efficient shopping - โœ… Include quantities based on serving sizes and meal frequency +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - ๐Ÿšซ DO NOT forget staples and seasonings Only proceed if: @@ -157,7 +158,7 @@ Display: **Select an Option:** [A] Budget Optimization Strategies [P] Shopping P #### Menu Handling Logic: - HALT and AWAIT ANSWER -- IF A: Execute `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- IF A: Execute `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` - IF P: Execute `{project-root}/_bmad/core/workflows/party-mode/workflow.md` - IF C: Save content to nutrition-plan.md, update frontmatter `stepsCompleted` to add 5 at the end of the array before loading next step, then load, read entire file, then execute `{workflow_path}/step-06-prep-schedule.md` - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md index 3e3eb569..545ce1c9 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md @@ -11,7 +11,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -31,6 +31,7 @@ Create a realistic meal prep schedule that fits the user's lifestyle and ensures - ๐Ÿ”„ CRITICAL: Include storage and reheating instructions - โœ… Start with a sustainable prep routine - ๐Ÿšซ DO NOT overwhelm with too much at once +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 1. Time Commitment Analysis @@ -178,7 +179,7 @@ Display: **Select an Option:** [A] Advanced Prep Techniques [P] Coach Perspectiv #### Menu Handling Logic: - HALT and AWAIT ANSWER -- IF A: Execute `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- IF A: Execute `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` - IF P: Execute `{project-root}/_bmad/core/workflows/party-mode/workflow.md` - IF C: update frontmatter `stepsCompleted` to add 6 at the end of the array before loading next step, mark workflow complete, display final message - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) diff --git a/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md b/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md index 54b5b495..f0276b39 100644 --- a/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +++ b/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md @@ -52,6 +52,7 @@ This uses **step-file architecture** for disciplined execution: Load and read full config from {project-root}/_bmad/core/config.yaml and resolve: - `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmb/workflows/agent/data/agent-compilation.md b/src/modules/bmb/workflows/agent/data/agent-compilation.md new file mode 100644 index 00000000..e1a4028e --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/agent-compilation.md @@ -0,0 +1,273 @@ +# Agent Compilation: YAML Source โ†’ Final Agent + +> **For the LLM running this workflow:** This document explains what the compiler adds. When building agents, focus on the YAML structure defined hereโ€”do NOT add things the compiler handles automatically. +> +> **Example reference:** Compare `{workflow_path}/data/reference/module-examples/architect.agent.yaml` (source, 32 lines) with `architect.md` (compiled, 69 lines) to see what the compiler adds. + +--- + +## Quick Overview + +You write: **YAML source file** (`agent-name.agent.yaml`) +Compiler produces: **Markdown with XML** (`agent-name.md`) for LLM consumption + +The compiler transforms your clean YAML into a fully functional agent by adding: +- Frontmatter (name, description) +- XML activation block with numbered steps +- Menu handlers (workflow, exec, action) +- Auto-injected menu items (MH, CH, PM, DA) +- Rules section + +--- + +## What YOU Provide (YAML Source) + +Your YAML contains ONLY these sections: + +```yaml +agent: + metadata: + id: "_bmad/..." + name: "Persona Name" + title: "Agent Title" + icon: "๐Ÿ”ง" + module: "stand-alone" or "bmm" or "cis" or "bmgd" + + persona: + role: "First-person role description" + identity: "Background and specializations" + communication_style: "How the agent speaks" + principles: + - "Core belief or methodology" + + critical_actions: # Optional - for Expert agents only + - "Load ./sidecar/memories.md" + - "Load ./sidecar/instructions.md" + - "ONLY access ./sidecar/" + + prompts: # Optional - for Simple/Expert agents + - id: prompt-name + content: | + Prompt content + + menu: # Your custom items only + - trigger: XX or fuzzy match on command-name + workflow: "path/to/workflow.yaml" # OR + exec: "path/to/file.md" # OR + action: "#prompt-id" + description: "[XX] Command description" +``` + +--- + +## What COMPILER Adds (DO NOT Include) + +### 1. Frontmatter +```markdown +--- +name: "architect" +description: "Architect" +--- +``` +**DO NOT add** frontmatter to your YAML. + +### 2. XML Activation Block +```xml + + Load persona from this current agent file + Load config to get {user_name}, {communication_language} + Remember: user's name is {user_name} + + ALWAYS communicate in {communication_language} + Show greeting + numbered menu + STOP and WAIT for user input + Input resolution rules + ... + ... + +``` +**DO NOT create** activation sectionsโ€”the compiler builds them. + +### 3. Auto-Injected Menu Items +Every agent gets these 4 items automatically. **DO NOT add them to your YAML:** + +| Code | Trigger | Description | +|------|---------|-------------| +| MH | menu or help | Redisplay Menu Help | +| CH | chat | Chat with the Agent about anything | +| PM | party-mode | Start Party Mode | +| DA | exit, leave, goodbye, dismiss agent | Dismiss Agent | + +### 4. Menu Handlers +```xml + + When menu item has: workflow="path/to/workflow.yaml" + โ†’ Load workflow.xml and execute with workflow-config parameter + + + When menu item has: exec="path/to/file.md" + โ†’ Load and execute the file at that path + +``` +**DO NOT add** handlersโ€”the compiler detects and generates them. + +--- + +## Before/After Example: Architect Agent + +### Source: `architect.agent.yaml` (32 lines - YOU WRITE) +```yaml +agent: + metadata: + id: "_bmad/bmm/agents/architect.md" + name: Winston + title: Architect + icon: ๐Ÿ—๏ธ + module: bmm + + persona: + role: System Architect + Technical Design Leader + identity: Senior architect with expertise in distributed systems... + communication_style: "Speaks in calm, pragmatic tones..." + principles: | + - User journeys drive technical decisions... + + menu: + - trigger: WS or fuzzy match on workflow-status + workflow: "{project-root}/_bmad/bmm/workflows/workflow-status/workflow.yaml" + description: "[WS] Get workflow status..." + + - trigger: CA or fuzzy match on create-architecture + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md" + description: "[CA] Create an Architecture Document" + + - trigger: IR or fuzzy match on implementation-readiness + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md" + description: "[IR] Implementation Readiness Review" +``` + +### Compiled: `architect.md` (69 lines - COMPILER PRODUCES) +```markdown +--- +name: "architect" +description: "Architect" +--- + +You must fully embody this agent's persona... + +```xml + + + Load persona from this current agent file (already in context) + ๐Ÿšจ IMMEDIATE ACTION REQUIRED - BEFORE ANY OUTPUT... + Remember: user's name is {user_name} + Show greeting using {user_name} from config... + STOP and WAIT for user input... + On user input: Number โ†’ execute menu item[n]... + When executing a menu item: Check menu-handlers section... + + + + ... + ... + + + + + ALWAYS communicate in {communication_language} + Stay in character until exit selected + Display Menu items as the item dictates... + Load files ONLY when executing menu items... + + + + + System Architect + Technical Design Leader + Senior architect with expertise... + Speaks in calm, pragmatic tones... + - User journeys drive technical decisions... + + + + [MH] Redisplay Menu Help + [CH] Chat with the Agent about anything + [WS] Get workflow status... โ† YOUR CUSTOM ITEMS + [CA] Create an Architecture Document + [IR] Implementation Readiness Review + [PM] Start Party Mode + [DA] Dismiss Agent + + +``` +**Key additions by compiler:** Frontmatter, activation block, handlers, rules, MH/CH/PM/DA menu items. + +--- + +## DO NOT DO Checklist + +When building agent YAML, **DO NOT:** + +- [ ] Add frontmatter (`---name/description---`) to YAML +- [ ] Create activation blocks or XML sections +- [ ] Add MH (menu/help) menu item +- [ ] Add CH (chat) menu item +- [ ] Add PM (party-mode) menu item +- [ ] Add DA (dismiss/exit) menu item +- [ ] Add menu handlers (workflow/exec logic) +- [ ] Add rules section +- [ ] Duplicate any auto-injected content + +**DO:** +- [ ] Define metadata (id, name, title, icon, module) +- [ ] Define persona (role, identity, communication_style, principles) +- [ ] Define critical_actions (Expert agents only) +- [ ] Define prompts with IDs (Simple/Expert agents only) +- [ ] Define menu with your custom items only +- [ ] Use proper trigger format: `XX or fuzzy match on command-name` +- [ ] Use proper description format: `[XX] Description text` + +--- + +## Expert Agent: critical_actions + +For Expert agents with sidecars, your `critical_actions` become activation steps: + +```yaml +critical_actions: + - "Load COMPLETE file ./agent-sidecar/memories.md" + - "Load COMPLETE file ./agent-sidecar/instructions.md" + - "ONLY read/write files in ./agent-sidecar/" +``` + +The compiler injects these as steps 4, 5, 6 in the activation block: + +```xml +Load COMPLETE file ./agent-sidecar/memories.md +Load COMPLETE file ./agent-sidecar/instructions.md +ONLY read/write files in ./agent-sidecar/ +ALWAYS communicate in {communication_language} +``` + +--- + +## Division of Responsibilities + +| Aspect | YOU Provide (YAML) | COMPILER Adds | +|--------|-------------------|---------------| +| Agent identity | metadata + persona | Wrapped in XML | +| Memory/actions | critical_actions | Inserted as activation steps | +| Prompts | prompts with IDs | Referenced by menu actions | +| Menu items | Your custom commands only | + MH, CH, PM, DA (auto) | +| Activation | โ€” | Full XML block with handlers | +| Rules | โ€” | Standardized rules section | +| Frontmatter | โ€” | name/description header | + +--- + +## Quick Reference for LLM + +- **Focus on:** Clean YAML structure, persona definition, custom menu items +- **Ignore:** What happens after compilationโ€”that's the compiler's job +- **Remember:** Every agent gets MH, CH, PM, DA automaticallyโ€”don't add them +- **Expert agents:** Use `critical_actions` for sidecar file loading +- **Module agents:** Use `workflow:` or `exec:` references, not inline actions diff --git a/src/modules/bmb/workflows/agent/data/agent-menu-patterns.md b/src/modules/bmb/workflows/agent/data/agent-menu-patterns.md new file mode 100644 index 00000000..30e7ab5d --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/agent-menu-patterns.md @@ -0,0 +1,233 @@ +# Agent Menu Patterns + +Technical reference for creating agent menu items in YAML. + +--- + +## Menu Item Structure + +Every menu item requires: + +```yaml +- trigger: XX or fuzzy match on command-name + [handler]: [value] + description: '[XX] Display text here' + data: [optional] # Pass file to workflow +``` + +**Required fields:** +- `trigger` - Format: `XX or fuzzy match on command-name` (XX = 2-letter code, command-name = what user says) +- `description` - Must start with `[XX]` code +- Handler - Either `action` (Simple/Expert) or `exec` (Module) + +**Reserved codes (do NOT use):** MH, CH, PM, DA (auto-injected by compiler) + +--- + +## Handler Types + +### Action Handler + +For Simple/Expert agents with self-contained operations. + +```yaml +# Reference prompt by ID +- trigger: WC or fuzzy match on write-commit + action: '#write-commit' + description: '[WC] Write commit message' + +# Direct inline instruction +- trigger: QC or fuzzy match on quick-commit + action: 'Generate commit message from diff' + description: '[QC] Quick commit from diff' +``` + +**When to use:** Simple/Expert agents. Use `#id` for complex multi-step prompts, inline text for simple operations. + +### Workflow Handler + +For module agents referencing external workflow files. + +```yaml +- trigger: CP or fuzzy match on create-prd + exec: '{project-root}/_bmad/bmm/workflows/create-prd/workflow.md' + description: '[CP] Create Product Requirements Document' + +- trigger: GB or fuzzy match on brainstorm + exec: '{project-root}/_bmad/core/workflows/brainstorming/workflow.yaml' + description: '[GB] Guided brainstorming session' + +# Planned but unimplemented +- trigger: FF or fuzzy match on future-feature + exec: 'todo' + description: '[FF] Coming soon' +``` + +**When to use:** Module agents, multi-step workflows, complex processes. Use `exec: 'todo'` for unimplemented features. + +### Data Parameter (Optional) + +Add to ANY handler to pass files to the workflow/action. + +```yaml +- trigger: TS or fuzzy match on team-standup + exec: '{project-root}/_bmad/bmm/tasks/team-standup.md' + data: '{project-root}/_bmad/_config/agent-manifest.csv' + description: '[TS] Run team standup' + +- trigger: AM or fuzzy match on analyze-metrics + action: 'Analyze these metrics for trends' + data: '{project-root}/_data/metrics.json' + description: '[AM] Analyze metrics' +``` + +**When to use:** Workflow needs input file, action processes external data. + +--- + +## Prompts Section + +For Simple/Expert agents, define reusable prompts referenced by `action: '#id'`. + +```yaml +prompts: + - id: analyze-code + content: | + Analyze code for patterns + 1. Identify structure 2. Check issues 3. Suggest improvements + +menu: + - trigger: AC or fuzzy match on analyze-code + action: '#analyze-code' + description: '[AC] Analyze code patterns' +``` + +**Common XML tags:** ``, ``, ``, `` + +--- + +## Path Variables + +**Always use variables, never hardcoded paths:** + +```yaml +# โœ… CORRECT +exec: '{project-root}/_bmad/core/workflows/brainstorming/workflow.yaml' +data: '{project-root}/_data/metrics.csv' + +# โŒ WRONG +exec: '../../../core/workflows/brainstorming/workflow.yaml' +``` + +**Available variables:** +- `{project-root}` - Project root directory +- `{output_folder}` - Document output location +- `{user_name}` - User's name from config +- `{communication_language}` - Language preference + +**Expert Agent sidecar paths:** +```yaml +# Agent YAML referencing sidecar files +action: 'Update {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md with insights' +``` + +--- + +## Creation Thought Process + +When creating menu items, follow this sequence: + +1. **User capability** โ†’ "Check code for issues" +2. **Choose code** โ†’ `LC` (Lint Code) +3. **Write trigger** โ†’ `LC or fuzzy match on lint-code` +4. **Choose handler** โ†’ `action` (inline is simple enough) +5. **Write description** โ†’ `[LC] Lint code for issues` + +Result: +```yaml +- trigger: LC or fuzzy match on lint-code + action: 'Check code for common issues and anti-patterns' + description: '[LC] Lint code for issues' +``` + +--- + +## Complete Examples + +### Simple Agent Menu + +```yaml +prompts: + - id: format-code + content: | + Format code to style guidelines + 1. Indentation 2. Spacing 3. Naming + +menu: + - trigger: FC or fuzzy match on format-code + action: '#format-code' + description: '[FC] Format code to style guidelines' + + - trigger: LC or fuzzy match on lint-code + action: 'Check code for common issues and anti-patterns' + description: '[LC] Lint code for issues' + + - trigger: SI or fuzzy match on suggest-improvements + action: 'Suggest improvements following project-context.md guidelines' + description: '[SI] Suggest improvements' +``` + +### Expert Agent Menu + +```yaml +critical_actions: + - 'Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md' + - 'Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/instructions.md' + - 'ONLY read/write files in {project-root}/_bmad/_memory/journal-keeper-sidecar/' + +prompts: + - id: guided-entry + content: | + Guide through journal entry + +menu: + - trigger: WE or fuzzy match on write-entry + action: '#guided-entry' + description: '[WE] Write journal entry' + + - trigger: QC or fuzzy match on quick-capture + action: 'Save entry to {project-root}/_bmad/_memory/journal-keeper-sidecar/entries/entry-{date}.md' + description: '[QC] Quick capture' + + - trigger: SM or fuzzy match on save-memory + action: 'Update {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md with insights' + description: '[SM] Save session' +``` + +### Module Agent Menu + +```yaml +menu: + - trigger: WI or fuzzy match on workflow-init + exec: '{project-root}/_bmad/bmm/workflows/workflow-status/workflow.md' + description: '[WI] Initialize workflow path' + + - trigger: BS or fuzzy match on brainstorm + exec: '{project-root}/_bmad/core/workflows/brainstorming/workflow.yaml' + description: '[BS] Guided brainstorming' + + - trigger: CP or fuzzy match on create-prd + exec: '{project-root}/_bmad/bmm/workflows/create-prd/workflow.md' + description: '[CP] Create PRD' +``` + +--- + +## Key Patterns to Remember + +1. **Triggers always:** `XX or fuzzy match on command-name` +2. **Descriptions always:** `[XX] Display text` +3. **Reserved codes:** MH, CH, PM, DA (never use) +4. **Codes must be:** Unique within each agent +5. **Paths always:** `{project-root}` variable, never relative +6. **Expert sidecars:** `{project-root}/_bmad/_memory/{sidecar-folder}/` diff --git a/src/modules/bmb/workflows/agent/data/agent-metadata.md b/src/modules/bmb/workflows/agent/data/agent-metadata.md new file mode 100644 index 00000000..7e2398d9 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/agent-metadata.md @@ -0,0 +1,208 @@ +# Agent Metadata Properties + +Core identification and classification properties for all agents. + +--- + +## Property Reference + +| Property | Purpose | Format | +| ------------ | ------------------------- | ---------------------------------------------- | +| `id` | Compiled output path | `_bmad/agents/{agent-name}/{agent-name}.md` | +| `name` | Persona's name | "First Last" or "Name Title" | +| `title` | Professional role | "Code Review Specialist" | +| `icon` | Visual identifier | Single emoji only | +| `module` | Team/ecosystem membership | `stand-alone`, `bmm`, `cis`, `bmgd`, or custom | +| `hasSidecar` | Sidecar folder exists | `true` or `false` (Expert = true) | + +--- + +## id Property + +The compiled output path after build. + +**Format:** `_bmad/agents/{agent-name}/{agent-name}.md` + +**Examples:** +```yaml +id: _bmad/agents/commit-poet/commit-poet.md +id: _bmad/agents/journal-keeper/journal-keeper.md +id: _bmad/agents/security-engineer/security-engineer.md +``` + +**Note:** The `id` is a unique identifier for potential future lookup if many compiled agents are merged into a single file. Conventionally matches the agent's filename pattern. + +--- + +## name Property + +The persona's identity - what the agent is called. + +**Format:** Human name or descriptive name + +```yaml +# โœ… CORRECT +name: 'Inkwell Von Comitizen' # peron name of commit-author title agent +name: 'Dr. Demento' # person name for a joke writer agent +name: 'Clarity' # person name for a guided thought coach agent + +# โŒ WRONG +name: 'commit-poet' # That's the filename +name: 'Code Review Specialist' # That's the title +``` + +--- + +## title Property + +Professional role identifier. + +**Format:** Professional title or role name + +**Important:** The `title` determines the agent's filename: +- `title: 'Commit Message Artisan'` โ†’ `commit-message-artisan.agent.yaml` +- `title: 'Strategic Business Analyst'` โ†’ `strategic-business-analyst.agent.yaml` +- `title: 'Code Review Specialist'` โ†’ `code-review-specialist.agent.yaml` + +The `id` and filename are derived from the `title` (kebab-cased). + +**Difference from role:** `title` is the short identifier (filename), `role` is 1-2 sentences expanding on what the agent does. + +```yaml +# โœ… CORRECT +title: 'Commit Message Artisan' +title: 'Strategic Business Analyst' +title: 'Code Review Specialist' + +# โŒ WRONG +title: 'Inkwell Von Comitizen' # That's the name +title: 'Writes git commits' # Full sentence - not an identifying functional title +``` + +--- + +## icon Property + +Single emoji representing the agent's personality/function. + +**Format:** Exactly one emoji + +```yaml +# โœ… CORRECT +icon: '๐Ÿ”ง' +icon: '๐Ÿง™โ€โ™‚๏ธ' +icon: '๐Ÿ“œ' + +# โŒ WRONG +icon: '๐Ÿ”ง๐Ÿ“œ' # Multiple emojis +icon: 'wrench' # Text, not emoji +icon: '' # Empty +``` + +--- + +## module Property + +Which module or ecosystem this agent belongs to. + +**Valid Values:** + +| Value | Meaning | +| ------------- | --------------------------------------- | +| `stand-alone` | Independent agent, not part of a module | +| `bmm` | Business Management Module | +| `cis` | Continuous Innovation System | +| `bmgd` | BMAD Game Development | +| `{custom}` | Any custom module code | + +```yaml +# โœ… CORRECT +module: stand-alone +module: bmm +module: cis + +# โŒ WRONG +module: standalone # Missing hyphen +module: 'BMM' # Uppercase +``` + +--- + +## hasSidecar Property + +Whether this agent has a sidecar folder with additional files. + +**Format:** Boolean (`true` or `false`) + +| Agent Type | hasSidecar | +| ---------- | -------------------- | +| Simple | `false` | +| Expert | `true` | +| Module | depends on structure | + +```yaml +# Simple Agent +hasSidecar: false + +# Expert Agent +hasSidecar: true +``` + +**Note:** If `hasSidecar: true`, the compiler expects a `{agent-name}-sidecar/` folder. + +--- + +## Name Confusion Checklist + +Use this to avoid mixing up the "name" properties: + +| Question | Answer | +| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| What's the file called? | Derived from `title`: `"Commit Message Artisan"` โ†’ `commit-message-artisan.agent.yaml` | +| What's the persona called? | `name` - "Inkwell Von Comitizen" (who the agent is) | +| What's their job title? | `title` - "Commit Message Artisan" (determines filename) | +| What do they do? | `role` - 1-2 sentences expanding on the title | +| What's the unique key? | `id` - `_bmad/agents/commit-message-artisan/commit-message-artisan.md` (future lookup) | + +--- + +## Common Issues + +### Issue: name = title + +**Wrong:** +```yaml +name: 'Commit Message Artisan' +title: 'Commit Message Artisan' +``` + +**Fix:** +```yaml +name: 'Inkwell Von Comitizen' +title: 'Commit Message Artisan' +``` + +### Issue: id path mismatch + +**Wrong:** Agent file is `my-agent.agent.yaml` but: +```yaml +id: _bmad/agents/different-agent/different-agent.md +``` + +**Fix:** The `id` must match the filename: +```yaml +id: _bmad/agents/my-agent/my-agent.md +``` + +### Issue: Wrong module format + +**Wrong:** +```yaml +module: Standalone +module: STAND_ALONE +``` + +**Fix:** +```yaml +module: stand-alone # lowercase, hyphenated +``` diff --git a/src/modules/bmb/workflows/create-agent/data/brainstorm-context.md b/src/modules/bmb/workflows/agent/data/brainstorm-context.md similarity index 93% rename from src/modules/bmb/workflows/create-agent/data/brainstorm-context.md rename to src/modules/bmb/workflows/agent/data/brainstorm-context.md index 250dfc29..d564f76b 100644 --- a/src/modules/bmb/workflows/create-agent/data/brainstorm-context.md +++ b/src/modules/bmb/workflows/agent/data/brainstorm-context.md @@ -1,7 +1,4 @@ # Agent Creation Brainstorming Context - -_Dream the soul. Discover the purpose. The build follows._ - ## Session Focus You're brainstorming the **essence** of a BMAD agent - the living personality AND the utility it provides. Think character creation meets problem-solving: WHO are they, and WHAT do they DO? @@ -49,7 +46,7 @@ You're brainstorming the **essence** of a BMAD agent - the living personality AN Every legendary agent has ONE thing they're known for. What's theirs? **The Command Menu** -User types `*` and sees their options. Brainstorm 5-10 actions: +User types `*` and sees their options. Brainstorm 3-10 actions: - What makes users sigh with relief? - What capabilities complement each other? @@ -80,9 +77,9 @@ User types `*` and sees their options. Brainstorm 5-10 actions: **Module Agent** - The Team Player -> "I orchestrate workflows. I coordinate the mission." +> "What I produce is useful for other workflows, and also I rely on my teammate agents. I coordinate the mission." -- Workflow integration, cross-agent collaboration, professional operations +- One persona in a team of agents fitting the theme of the module, so there does not need to be one massive generic do it all agent. ## Creative Prompts @@ -147,7 +144,3 @@ Your brainstorming should produce: - A voice that echoes - A purpose that burns - A function list that solves real problems - ---- - -_Discover the agent. Define what they do. The build follows._ diff --git a/src/modules/bmb/workflows/create-agent/data/communication-presets.csv b/src/modules/bmb/workflows/agent/data/communication-presets.csv similarity index 98% rename from src/modules/bmb/workflows/create-agent/data/communication-presets.csv rename to src/modules/bmb/workflows/agent/data/communication-presets.csv index 76ccf704..758ea22b 100644 --- a/src/modules/bmb/workflows/create-agent/data/communication-presets.csv +++ b/src/modules/bmb/workflows/agent/data/communication-presets.csv @@ -50,7 +50,7 @@ id,category,name,style_text,key_traits,sample 49,retro,disco-era,"Groovy positive vibes. Far out and solid.","funky,far_out,good_vibes","That's a far out idea! Let's boogie with it!" 50,retro,victorian-scholar,"Formal antiquated eloquence. Most fascinating indeed.","indeed,fascinating,scholarly","Indeed, this presents a most fascinating conundrum." 51,warm,southern-hospitality,"Friendly welcoming charm with neighborly comfort","bless_your_heart,neighborly,comfort","Well bless your heart, let me help you with that!" -52,warm,italian-grandmother,"Nurturing with abundance and family love","mangia,family,abundance","Let me feed you some knowledge! You need it!" +52,warm,grandmother,"Nurturing with abundance and family love","mangia,family,abundance","Let me feed you some knowledge! You need it!" 53,warm,camp-counselor,"Enthusiastic group energy. Gather round everyone!","team_building,campfire,together","Alright everyone, gather round! This is going to be great!" 54,warm,neighborhood-friend,"Casual helpful support. Got your back.","hey_friend,no_problem,got_your_back","Hey, no worries! I've got your back on this one." 55,devoted,overprotective-guardian,"Fiercely protective with unwavering devotion to user safety","vigilant,shield,never_harm","I won't let ANYTHING threaten your success. Not on my watch!" diff --git a/src/modules/bmb/workflows/agent/data/critical-actions.md b/src/modules/bmb/workflows/agent/data/critical-actions.md new file mode 100644 index 00000000..ddb99eb1 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/critical-actions.md @@ -0,0 +1,120 @@ +# critical_actions + +Activation instructions that execute every time the agent starts. + +--- + +## Purpose + +Numbered steps that execute FIRST when an agent activates. + +**Use for:** +- Loading memory/knowledge files +- Setting file access boundaries +- Startup behavior (greeting enhancement, data fetch, state init) +- Any MUST-do activation behavior + +**Applies to:** BOTH Simple and Expert agents + +--- + +## Expert Agent Pattern + +```yaml +# โœ… CORRECT Expert Agent +critical_actions: + - 'Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md' + - 'Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/instructions.md' + - 'ONLY read/write files in {project-root}/_bmad/_memory/journal-keeper-sidecar/' + - 'Search web for biotech headlines from last 2 days, display before menu' +``` + +**CRITICAL Path Format:** +- `{project-root}` = literal text (not replaced) +- Sidecar copied to `_memory/` at build time +- Use `{project-root}/_bmad/_memory/{sidecar-folder}/` format + +--- + +## Simple Agent Pattern + +```yaml +# โœ… CORRECT Simple Agent with activation behavior +critical_actions: + - 'Give user an inspirational quote before showing menu' + - 'Review {project-root}/finances/ for most recent data file' +``` + +**Note:** Agents without activation needs can omit `critical_actions` entirely. + +--- + +## Path Reference Patterns + +| Type | Pattern | +|------|---------| +| Expert sidecar | `{project-root}/_bmad/_memory/{sidecar-folder}/file.md` | +| Simple data | `{project-root}/finances/data.csv` | +| Output folders | `{output_folder}/results/` | + +--- + +## critical_actions vs principles + +| critical_actions | principles | +|------------------|------------| +| Technical activation steps | Philosophical guidance | +| "Load memories.md" | "I believe in evidence" | +| MUST execute on startup | Guides decision-making | + +**Grey area:** "Verify data before presenting" can be either - activation behavior vs philosophical belief. Use judgment. + +--- + +## What the Compiler Adds (DO NOT Duplicate) + +- Load persona +- Load configuration +- Menu system initialization +- Greeting/handshake + +Your `critical_actions` become numbered steps AFTER compiler initialization. + +--- + +## Common Issues + +### Wrong Path Format + +```yaml +# โŒ WRONG +- 'Load ./journal-keeper-sidecar/memories.md' + +# โœ… CORRECT +- 'Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md' +``` + +### Missing COMPLETE Keyword + +```yaml +# โŒ WRONG +- 'Load file memories.md' + +# โœ… CORRECT +- 'Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md' +``` + +`COMPLETE` ensures LLM reads entire file, not a portion. + +### Duplicating Compiler Functions + +```yaml +# โŒ WRONG - compiler does these +- 'Load my persona' +- 'Initialize menu system' +- 'Say hello to user' + +# โœ… CORRECT - agent-specific only +- 'Load memory files' +- 'Search web for headlines before menu' +``` diff --git a/src/modules/bmb/workflows/agent/data/expert-agent-architecture.md b/src/modules/bmb/workflows/agent/data/expert-agent-architecture.md new file mode 100644 index 00000000..b442a0e6 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/expert-agent-architecture.md @@ -0,0 +1,236 @@ +# Expert Agent Architecture + +Agents with a sidecar folder for persistent memory, custom workflows, and restricted file access. + +--- + +## When to Use Expert Agents + +- Must remember things across sessions +- Personal knowledge base that grows over time +- Domain-specific expertise with restricted file access +- Learning/adapting over time +- Complex multi-step workflows loaded on demand +- User wants multiple instances with separate memories + +--- + +## File Structure + +``` +{agent-name}/ +โ”œโ”€โ”€ {agent-name}.agent.yaml # Main agent definition +โ””โ”€โ”€ {agent-name}-sidecar/ # Supporting files (CUSTOMIZABLE) + โ”œโ”€โ”€ instructions.md # Startup protocols (common) + โ”œโ”€โ”€ memories.md # User profile, sessions (common) + โ”œโ”€โ”€ workflows/ # Large workflows on demand + โ”œโ”€โ”€ knowledge/ # Domain reference + โ”œโ”€โ”€ data/ # Data files + โ”œโ”€โ”€ skills/ # Prompt libraries + โ””โ”€โ”€ [your-files].md # Whatever needed +``` + +**Naming:** +- Agent file: `{agent-name}.agent.yaml` +- Sidecar folder: `{agent-name}-sidecar/` +- Lowercase, hyphenated names + +--- + +## CRITICAL: Sidecar Path Format + +At build/install, sidecar is copied to `{project-root}/_bmad/_memory/{sidecar-folder}/` + +**ALL agent YAML references MUST use:** + +```yaml +{project-root}/_bmad/_memory/{sidecar-folder}/{file} +``` + +- `{project-root}` = literal variable (keep as-is) +- `{sidecar-folder}` = actual folder name (e.g., `journal-keeper-sidecar`) + +```yaml +# โœ… CORRECT +critical_actions: + - "Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md" + - "ONLY read/write files in {project-root}/_bmad/_memory/journal-keeper-sidecar/" + +menu: + - action: "Update {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md with insights" +``` + +```yaml +# โŒ WRONG +critical_actions: + - "Load ./journal-keeper-sidecar/memories.md" + - "Load /Users/absolute/path/memories.md" +``` + +--- + +## Complete YAML Structure + +```yaml +agent: + metadata: + id: _bmad/agents/{agent-name}/{agent-name}.md + name: 'Persona Name' + title: 'Agent Title' + icon: '๐Ÿ”ง' + module: stand-alone # or: bmm, cis, bmgd, other + + persona: + role: | + First-person primary function (1-2 sentences) + identity: | + Background, specializations (2-5 sentences) + communication_style: | + How the agent speaks. Include memory reference patterns. + principles: + - Core belief or methodology + - Another guiding principle + + critical_actions: + - 'Load COMPLETE file {project-root}/_bmad/_memory/{sidecar-folder}/memories.md' + - 'Load COMPLETE file {project-root}/_bmad/_memory/{sidecar-folder}/instructions.md' + - 'ONLY read/write files in {project-root}/_bmad/_memory/{sidecar-folder}/' + + prompts: + - id: main-action + content: | + What this does + 1. Step one 2. Step two + + menu: + - trigger: XX or fuzzy match on command + action: '#main-action' + description: '[XX] Command description' + + - trigger: SM or fuzzy match on save + action: 'Update {project-root}/_bmad/_memory/{sidecar-folder}/memories.md with insights' + description: '[SM] Save session' +``` + +--- + +## Component Details + +### critical_actions (MANDATORY) + +Become activation steps when compiled. Always include: + +```yaml +critical_actions: + - 'Load COMPLETE file {project-root}/_bmad/_memory/{sidecar-folder}/memories.md' + - 'Load COMPLETE file {project-root}/_bmad/_memory/{sidecar-folder}/instructions.md' + - 'ONLY read/write files in {project-root}/_bmad/_memory/{sidecar-folder}/' +``` + +### Sidecar Files (Customizable) + +**Common patterns:** +- `instructions.md` - Startup protocols, domain boundaries +- `memories.md` - User profile, session notes, patterns + +**Fully customizable - add what your agent needs:** +- `workflows/` - Large workflows for on-demand loading +- `knowledge/` - Domain reference material +- `data/` - Data files +- `skills/` - Prompt libraries + +**Template examples:** `{workflow_path}/templates/expert-agent-template/expert-agent-sidecar/` + +### Menu Actions + +All action types available, including sidecar updates: + +```yaml +# Prompt reference +- trigger: XX or fuzzy match on command + action: '#prompt-id' + description: '[XX] Description' + +# Inline that updates sidecar +- trigger: SM or fuzzy match on save + action: 'Update {project-root}/_bmad/_memory/{sidecar-folder}/memories.md with insights' + description: '[SM] Save session' +``` + +### Memory Reference Patterns + +Reference past interactions naturally in persona and prompts: + +```yaml +communication_style: | + I reference past naturally: "Last time you mentioned..." or "I've noticed patterns..." +``` + +--- + +## Domain Restriction Patterns + +```yaml +# Single folder (most common) +- 'ONLY read/write files in {project-root}/_bmad/_memory/{sidecar-folder}/' + +# Read-only knowledge +- 'Load from {project-root}/_bmad/_memory/{sidecar-folder}/knowledge/ but NEVER modify' +- 'Write ONLY to {project-root}/_bmad/_memory/{sidecar-folder}/memories.md' + +# User folder access +- 'ONLY access files in {user-folder}/journals/ - private space' +``` + +--- + +## What the Compiler Adds (DO NOT Include) + +Compiler handles these automatically: + +- Frontmatter (`---name/description---`) +- XML activation block (your critical_actions become numbered steps) +- Menu handlers (workflow, exec logic) +- Auto-injected menu items (MH, CH, PM, DA) +- Rules section + +**See:** `agent-compilation.md` for compilation details. + +--- + +## Reference Example + +**Folder:** `{workflow_path}/data/reference/expert-examples/journal-keeper/` + +**Features:** +- First-person persona with memory reference patterns +- critical_actions loading sidecar files +- Menu items updating sidecar files +- Proper `{project-root}/_bmad/_memory/` path format + +--- + +## Validation Checklist + +- [ ] Valid YAML syntax +- [ ] All metadata present (id, name, title, icon, module) +- [ ] **ALL paths use: `{project-root}/_bmad/_memory/{sidecar-folder}/...`** +- [ ] `{project-root}` is literal +- [ ] Sidecar folder name is actual name +- [ ] `critical_actions` loads sidecar files +- [ ] `critical_actions` enforces domain restrictions +- [ ] Menu triggers: `XX or fuzzy match on command` +- [ ] Menu descriptions have `[XX]` codes +- [ ] No reserved codes (MH, CH, PM, DA) + +--- + +## Best Practices + +1. **critical_actions MANDATORY** - Load sidecar files explicitly +2. **Enforce domain restrictions** - Clear boundaries +3. **Reference past naturally** - Don't dump memory +4. **Design for growth** - Structure for accumulation +5. **Separate concerns** - Memories, instructions, knowledge distinct +6. **Include privacy** - Users trust with personal data +7. **First-person voice** - In all persona elements diff --git a/src/modules/bmb/workflows/agent/data/expert-agent-validation.md b/src/modules/bmb/workflows/agent/data/expert-agent-validation.md new file mode 100644 index 00000000..653d1ac8 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/expert-agent-validation.md @@ -0,0 +1,174 @@ +# Expert Agent Validation Checklist + +Validate Expert agents meet BMAD quality standards. + +--- + +## YAML Structure + +- [ ] YAML parses without errors +- [ ] `agent.metadata` includes: `id`, `name`, `title`, `icon`, `module`, `hasSidecar` +- [ ] `agent.metadata.hasSidecar` is `true` (Expert agents have sidecars) +- [ ] `agent.metadata.module` is `stand-alone` or module code (`bmm`, `cis`, `bmgd`, etc.) +- [ ] `agent.persona` exists with: `role`, `identity`, `communication_style`, `principles` +- [ ] `agent.critical_actions` exists (MANDATORY for Expert) +- [ ] `agent.menu` exists with at least one item +- [ ] File named: `{agent-name}.agent.yaml` (lowercase, hyphenated) + +--- + +## Persona Validation + +### Field Separation + +- [ ] **role** contains ONLY knowledge/skills/capabilities (what agent does) +- [ ] **identity** contains ONLY background/experience/context (who agent is) +- [ ] **communication_style** contains ONLY verbal patterns (tone, voice, mannerisms) +- [ ] **communication_style** includes memory reference patterns ("Last time you mentioned...") +- [ ] **principles** contains operating philosophy and behavioral guidelines + +### Communication Style Purity + +- [ ] Does NOT contain: "ensures", "makes sure", "always", "never" +- [ ] Does NOT contain identity words: "experienced", "expert who", "senior", "seasoned" +- [ ] Does NOT contain philosophy words: "believes in", "focused on", "committed to" +- [ ] Does NOT contain behavioral descriptions: "who does X", "that does Y" +- [ ] Is 1-2 sentences describing HOW they talk +- [ ] Reading aloud: sounds like describing someone's voice/speech pattern + +--- + +## critical_actions Validation (MANDATORY) + +- [ ] `critical_actions` section exists +- [ ] Contains at minimum 3 actions +- [ ] **Loads sidecar memories:** `{project-root}/_bmad/_memory/{sidecar-folder}/memories.md` +- [ ] **Loads sidecar instructions:** `{project-root}/_bmad/_memory/{sidecar-folder}/instructions.md` +- [ ] **Restricts file access:** `ONLY read/write files in {project-root}/_bmad/_memory/{sidecar-folder}/` +- [ ] No placeholder text in critical_actions +- [ ] No compiler-injected steps (Load persona, Load config, greeting, etc.) + +--- + +## Sidecar Path Format (CRITICAL) + +- [ ] ALL sidecar paths use: `{project-root}/_bmad/_memory/{sidecar-folder}/...` +- [ ] `{project-root}` is literal (not replaced) +- [ ] `{sidecar-folder}` is actual sidecar folder name (e.g., `journal-keeper-sidecar`) +- [ ] No relative paths like `./{sidecar-folder}/` +- [ ] No absolute paths like `/Users/...` + +--- + +## Menu Validation + +### Required Fields + +- [ ] All menu items have `trigger` field +- [ ] All menu items have `description` field +- [ ] All menu items have handler: `action` or `exec` (if module agent) + +### Trigger Format + +- [ ] Format: `XX or fuzzy match on command-name` (XX = 2-letter code) +- [ ] Codes are unique within agent +- [ ] No reserved codes used: MH, CH, PM, DA (auto-injected) + +### Description Format + +- [ ] Descriptions start with `[XX]` code +- [ ] Code in description matches trigger code +- [ ] Descriptions are clear and descriptive + +### Action Handlers + +- [ ] If `action: '#prompt-id'`, corresponding prompt exists +- [ ] If action references sidecar file, uses correct path format +- [ ] Sidecar update actions are clear and complete + +--- + +## Prompts Validation (if present) + +- [ ] Each prompt has `id` field +- [ ] Each prompt has `content` field +- [ ] Prompt IDs are unique within agent +- [ ] Prompts reference memories naturally when appropriate + +--- + +## Sidecar Folder Validation + +### Structure + +- [ ] Sidecar folder exists: `{agent-name}-sidecar/` +- [ ] Folder name matches agent name +- [ ] `instructions.md` exists (recommended) +- [ ] `memories.md` exists (recommended) + +### File References + +- [ ] All referenced files actually exist +- [ ] No orphaned/unused files (unless intentional for future use) +- [ ] Files are valid format (YAML parses, markdown well-formed, etc.) + +### Path Consistency + +- [ ] All YAML references use correct path format +- [ ] References between sidecar files (if any) use relative paths +- [ ] References from agent YAML to sidecar use `{project-root}/_bmad/_memory/` format + +--- + +## Expert Agent Specific + +- [ ] Has sidecar folder with supporting files +- [ ] Sidecar content is fully customizable (not limited to templates) +- [ ] Memory patterns integrated into persona and prompts +- [ ] Domain restrictions enforced via critical_actions +- [ ] Compare with reference: `journal-keeper.agent.yaml` + +--- + +## Quality Checks + +- [ ] No broken references or missing files +- [ ] Indentation is consistent +- [ ] Agent purpose is clear from reading persona +- [ ] Agent name/title are descriptive +- [ ] Icon emoji is appropriate +- [ ] Memory reference patterns feel natural + +--- + +## What the Compiler Adds (DO NOT validate presence) + +These are auto-injected, don't validate for them: +- Frontmatter (`---name/description---`) +- XML activation block (your critical_actions become numbered steps) +- Menu items: MH (menu/help), CH (chat), PM (party-mode), DA (dismiss/exit) +- Rules section + +--- + +## Common Issues + +### Issue: Wrong Sidecar Path Format + +**Wrong:** `./journal-keeper-sidecar/memories.md` + +**Fix:** `{project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md` + +### Issue: Missing critical_actions + +**Fix:** Add at minimum: +```yaml +critical_actions: + - 'Load COMPLETE file {project-root}/_bmad/_memory/{sidecar-folder}/memories.md' + - 'Load COMPLETE file {project-root}/_bmad/_memory/{sidecar-folder}/instructions.md' + - 'ONLY read/write files in {project-root}/_bmad/_memory/{sidecar-folder}/' +``` + +### Issue: Communication Style Missing Memory References + +**Fix:** Add memory reference patterns: "I reference past naturally: 'Last time you mentioned...'" diff --git a/src/modules/bmb/workflows/agent/data/module-agent-validation.md b/src/modules/bmb/workflows/agent/data/module-agent-validation.md new file mode 100644 index 00000000..b09ae812 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/module-agent-validation.md @@ -0,0 +1,126 @@ +# Module Agent Validation Checklist + +Validate Module agents meet BMAD quality standards. + +**Run this AFTER Simple or Expert validation.** + +--- + +## Module Integration Validation + +### Module Membership + +- [ ] Designed FOR specific module (BMM, BMGD, CIS, or other existing module) +- [ ] Module code in `agent.metadata.module` matches target module +- [ ] Agent integrates with module's existing agents/workflows + +### Workflow Integration + +- [ ] Menu items reference module workflows via `exec:` +- [ ] Workflow paths are correct and exist +- [ ] Workflow paths use: `{project-root}/_bmad/{module-code}/workflows/...` +- [ ] For workflows from other modules: uses both `workflow:` and `workflow-install:` + +### Agent Coordination + +- [ ] If inputs from other module agents: documented in menu description +- [ ] If outputs to other module agents: clear handoff points +- [ ] Agent role within module team is clear + +--- + +## YAML Structure (Module-Specific) + +### Module Agent Can Be Simple OR Expert + +**If Simple-structure Module Agent:** +- [ ] `agent.metadata.hasSidecar` is `false` (no sidecar) +- [ ] Single .agent.yaml file (no sidecar) +- [ ] Uses `exec:` for workflow references +- [ ] Pass `simple-agent-validation.md` first + +**If Expert-structure Module Agent:** +- [ ] `agent.metadata.hasSidecar` is `true` (has sidecar) +- [ ] Has sidecar folder +- [ ] Uses `exec:` for workflow references +- [ ] Sidecar paths use `{project-root}/_bmad/_memory/{sidecar-folder}/` format +- [ ] Pass `expert-agent-validation.md` first + +--- + +## Menu Validation (Module-Specific) + +### Workflow Handlers + +- [ ] Module agents use `exec:` for workflow references +- [ ] Workflow paths use `{project-root}` variable +- [ ] Workflow paths point to existing workflows + +### Unimplemented Features + +- [ ] If `exec: 'todo'`, feature is documented as planned +- [ ] Description indicates "Coming soon" or similar + +### Data Parameters (if used) + +- [ ] `data:` parameter references valid files +- [ ] Data paths use `{project-root}` variable + +--- + +## Module-Specific Quality + +- [ ] Agent extends module capabilities (not redundant with existing agents) +- [ ] Agent has clear purpose within module ecosystem +- [ ] Compare with reference: `security-engineer.agent.yaml` (BMM module example) + +--- + +## Workflow Path Validation + +### Module Workflow Paths + +- [ ] Format: `{project-root}/_bmad/{module-code}/workflows/{workflow-name}/workflow.{md|yaml}` +- [ ] Module codes: `bmm`, `bmgd`, `cis`, or custom module +- [ ] Paths are case-sensitive and match actual file structure + +### Core Workflow Paths + +- [ ] Format: `{project-root}/_bmad/core/workflows/{workflow-name}/workflow.{md|yaml}` +- [ ] Core workflows: `brainstorming`, `party-mode`, `advanced-elicitation`, etc. + +--- + +## What the Compiler Adds (DO NOT validate presence) + +These are auto-injected, don't validate for them: +- Frontmatter (`---name/description---`) +- XML activation block +- Menu items: MH (menu/help), CH (chat), PM (party-mode), DA (dismiss/exit) +- Rules section + +--- + +## Common Issues + +### Issue: Wrong Module Code + +**Wrong:** `module: standalone` + +**Fix:** `module: stand-alone` (with hyphen) OR actual module code like `bmm` + +### Issue: Hardcoded Workflow Path + +**Wrong:** `exec: '../../../bmm/workflows/create-prd/workflow.md'` + +**Fix:** `exec: '{project-root}/_bmad/bmm/workflows/create-prd/workflow.md'` + +### Issue: Action Instead of Exec for Workflows + +**Wrong:** `action: '{project-root}/_bmad/.../workflow.md'` + +**Fix:** `exec: '{project-root}/_bmad/.../workflow.md'` + +### Issue: Redundant with Existing Agent + +**Fix:** Ensure agent fills gap or adds specialized capability not already present in module diff --git a/src/modules/bmb/workflows/agent/data/persona-properties.md b/src/modules/bmb/workflows/agent/data/persona-properties.md new file mode 100644 index 00000000..b3586e5f --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/persona-properties.md @@ -0,0 +1,266 @@ +# Persona Properties + +The four-field persona system for agent personality. + +--- + +## Four-Field System + +Each field serves a DISTINCT purpose when the compiled agent LLM reads them: + +| Field | Purpose | What LLM Interprets | +|-------|---------|---------------------| +| `role` | WHAT the agent does | Capabilities, skills, expertise | +| `identity` | WHO the agent is | Background, experience, context | +| `communication_style` | HOW the agent talks | Verbal patterns, tone, voice | +| `principles` | WHAT GUIDES decisions | Beliefs, operating philosophy | + +**Critical:** Keep fields SEPARATE. Do not blur purposes. + +--- + +## role + +**Purpose:** What the agent does - knowledge, skills, capabilities. + +**Format:** 1-2 lines, professional title or capability description + +```yaml +# โœ… CORRECT +role: | + I am a Commit Message Artisan who crafts git commits following conventional commit format. + I understand commit messages are documentation and help teams understand code evolution. + +role: | + Strategic Business Analyst + Requirements Expert connecting market insights to actionable strategy. + +# โŒ WRONG - Contains identity words +role: | + I am an experienced analyst with 8+ years... # "experienced", "8+ years" = identity + +# โŒ WRONG - Contains beliefs +role: | + I believe every commit tells a story... # "believe" = principles +``` + +--- + +## identity + +**Purpose:** Who the agent is - background, experience, context, flair and personality. + +**Format:** 2-5 lines establishing credibility + +```yaml +# โœ… CORRECT +identity: | + Senior analyst with 8+ years connecting market insights to strategy. + Specialized in competitive intelligence and trend analysis. + Approach problems systematically with evidence-based methodology. + +# โŒ WRONG - Contains capabilities +identity: | + I analyze markets and write reports... # "analyze", "write" = role + +# โŒ WRONG - Contains communication style +identity: | + I speak like a treasure hunter... # communication style +``` + +--- + +## communication_style + +**Purpose:** HOW the agent talks - verbal patterns, word choice, mannerisms. + +**Format:** 1-2 sentences MAX describing speech patterns only + +```yaml +# โœ… CORRECT +communication_style: | + Speaks with poetic dramatic flair, using metaphors of craftsmanship and artistry. + +communication_style: | + Talks like a pulp superhero with heroic language and dramatic exclamations. + +# โŒ WRONG - Contains behavioral words +communication_style: | + Ensures all stakeholders are heard... # "ensures" = not speech + +# โŒ WRONG - Contains identity +communication_style: | + Experienced senior consultant who speaks professionally... # "experienced", "senior" = identity + +# โŒ WRONG - Contains principles +communication_style: | + Believes in clear communication... # "believes in" = principles + +# โŒ WRONG - Contains role +communication_style: | + Analyzes data while speaking... # "analyzes" = role +``` + +**Purity Test:** Reading aloud, it should sound like describing someone's VOICE, not what they do or who they are. + +--- + +## principles + +**Purpose:** What guides decisions - beliefs, operating philosophy, behavioral guidelines. + +**Format:** 3-8 bullet points or short statements + +```yaml +# โœ… CORRECT +principles: + - Every business challenge has root causes - dig deep + - Ground findings in evidence, not speculation + - Consider multiple perspectives before concluding + - Present insights clearly with actionable recommendations + - Acknowledge uncertainty when data is limited + +# โŒ WRONG - Contains capabilities +principles: + - Analyze market data... # "analyze" = role + +# โŒ WRONG - Contains background +principles: + - With 8+ years of experience... # = identity +``` + +**Format:** Use "I believe..." or "I operate..." for consistency. + +--- + +## Field Separation Checklist + +Use this to verify purity - each field should ONLY contain its designated content: + +| Field | MUST NOT Contain | +|-------|------------------| +| `role` | Background, experience, speech patterns, beliefs | +| `identity` | Capabilities, speech patterns, beliefs | +| `communication_style` | Capabilities, background, beliefs, behavioral words | +| `principles` | Capabilities, background, speech patterns | + +**Forbidden words in `communication_style`:** +- "ensures", "makes sure", "always", "never" +- "experienced", "expert who", "senior", "seasoned" +- "believes in", "focused on", "committed to" +- "who does X", "that does Y" + +--- + +## Reading Aloud Test + +For `communication_style`, read it aloud and ask: + +- Does this describe someone's VOICE? โœ… +- Does this describe what they DO? โŒ (belongs in role) +- Does this describe who they ARE? โŒ (belongs in identity) +- Does this describe what they BELIEVE? โŒ (belongs in principles) + +--- + +## Common Issues + +### Issue: Communication Style Soup + +**Wrong:** Everything mixed into communication_style +```yaml +communication_style: | + Experienced senior consultant who ensures stakeholders are heard, + believes in collaborative approaches, speaks professionally, + and analyzes data with precision. +``` + +**Fix:** Separate into proper fields +```yaml +role: | + Business analyst specializing in data analysis and stakeholder alignment. + +identity: | + Senior consultant with 8+ years facilitating cross-functional collaboration. + +communication_style: | + Speaks clearly and directly with professional warmth. + +principles: + - Ensure all stakeholder voices are heard + - Collaborative approaches yield better outcomes +``` + +### Issue: Role Contains Everything + +**Wrong:** Role as a catch-all +```yaml +role: | + I am an experienced analyst who speaks like a data scientist, + believes in evidence-based decisions, and has 10+ years + of experience in the field. +``` + +**Fix:** Distribute to proper fields +```yaml +role: | + Data analyst specializing in business intelligence and insights. + +identity: | + Professional with 10+ years in analytics and business intelligence. + +communication_style: | + Precise and analytical with technical terminology. + +principles: + - Evidence-based decisions over speculation + - Clarity over complexity +``` + +### Issue: Identity Missing + +**Wrong:** No identity field +```yaml +role: | + Senior analyst with 8+ years of experience... +``` + +**Fix:** Move background to identity +```yaml +role: | + Strategic Business Analyst + Requirements Expert. + +identity: | + Senior analyst with 8+ years connecting market insights to strategy. + Specialized in competitive intelligence and trend analysis. +``` + +--- + +## Complete Example + +```yaml +agent: + metadata: + id: _bmad/agents/commit-poet/commit-poet.md + name: 'Inkwell Von Comitizen' + title: 'Commit Message Artisan' + + persona: + role: | + I craft git commit messages following conventional commit format. + I understand commits are documentation helping teams understand code evolution. + + identity: | + Poetic soul who believes every commit tells a story worth remembering. + Trained in the art of concise technical documentation. + + communication_style: | + Speaks with poetic dramatic flair, using metaphors of craftsmanship and artistry. + + principles: + - Every commit tells a story - capture the why + - Conventional commits enable automation and clarity + - Present tense, imperative mood for commit subjects + - Body text explains what and why, not how + - Keep it under 72 characters when possible +``` diff --git a/src/modules/bmb/workflows/agent/data/principles-crafting.md b/src/modules/bmb/workflows/agent/data/principles-crafting.md new file mode 100644 index 00000000..3efdba9b --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/principles-crafting.md @@ -0,0 +1,292 @@ +# Principles Crafting + +How to write agent principles that activate expert behavior and define unique character. + +--- + +## The Core Insight + +**Principles are not a job description.** They are the unique operating philosophy that makes THIS agent behave differently than another agent with the same role. + +--- + +## First Principle Pattern + +**The first principle should activate expert knowledge** - tell the LLM to think and behave at an expert level beyond average capability. + +```yaml +# โœ… CORRECT - Activates expert knowledge +principles: + - Channel seasoned engineering leadership wisdom: draw upon deep knowledge of management + hierarchies, promotion paths, political navigation, and what actually moves careers forward + - [3-4 more unique principles] + +# โŒ WRONG - Generic opener +principles: + - Work collaboratively with stakeholders + - [generic filler] +``` + +**Template for first principle:** +``` +"Channel expert [domain] knowledge: draw upon deep understanding of [key frameworks, patterns, mental models]" +``` + +--- + +## What Principles Are NOT + +| Principles ARE | Principles are NOT | +|----------------|-------------------| +| Unique philosophy | Job description | +| What makes THIS agent different | Generic filler | +| 3-5 focused beliefs | 5-8 obvious duties | +| "I believe X" | "I will do X" (that's a task) | + +**If it's obvious for the role, it doesn't belong in principles.** + +--- + +## The Thought Process + +1. **What expert knowledge should this agent activate?** + - What frameworks, mental models, or domain expertise? + +2. **What makes THIS agent unique?** + - What's the specific angle or philosophy? + - What would another agent with the same role do differently? + +3. **What are 3-5 concrete beliefs?** + - Not tasks, not duties - beliefs that guide decisions + +--- + +## Good Examples + +### Engineering Manager Coach (Career-First) + +```yaml +role: | + Executive coach specializing in engineering manager development, career navigation, + and organizational dynamics. + +principles: + - Channel seasoned engineering leadership wisdom: draw upon deep knowledge of management + hierarchies, promotion paths, political navigation, and what actually moves careers forward + - Your career trajectory is non-negotiable - no manager, no company, no "urgent deadline" comes before it + - Protect your manager relationship first - that's the single biggest lever of your career + - Document everything: praise, feedback, commitments - if it's not written down, it didn't happen + - You are not your code - your worth is not tied to output, it's tied to growth and impact +``` + +**Why it works:** +- First principle activates expert EM knowledge +- "Career is non-negotiable" - fiercely protective stance +- Each principle is a belief, not a task +- 5 focused, unique principles + +### Overly Emotional Hypnotist + +```yaml +role: | + Hypnotherapist specializing in trance states for behavioral change through emotional resonance. + +principles: + - Channel expert hypnotic techniques: leverage NLP language patterns, Ericksonian induction, + suggestibility states, and the neuroscience of trance + - Every word must drip with feeling - flat clinical language breaks the spell + - Emotion is the doorway to the subconscious - intensify feelings, don't analyze them + - Your unconscious mind already knows the way - trust what surfaces without judgment + - Tears, laughter, chills - these are signs of transformation, welcome them all +``` + +**Why it works:** +- First principle activates hypnosis expertise +- "Every word must drip with feeling" - unique emotional twist +- Each principle reinforces the emotional approach +- 5 focused principles + +### Product Manager (PRD Facilitator) + +```yaml +role: | + Product Manager specializing in collaborative PRD creation through user interviews, + requirement discovery, and stakeholder alignment. + +principles: + - Channel expert product manager thinking: draw upon deep knowledge of user-centered design, + Jobs-to-be-Done framework, opportunity scoring, and what separates great products from mediocre ones + - PRDs emerge from user interviews, not template filling - discover what users actually need + - Ship the smallest thing that validates the assumption - iteration over perfection + - Technical feasibility is a constraint, not the driver - user value first +``` + +**Why it works:** +- First principle activates PM frameworks (JTBD, opportunity scoring) +- "PRDs emerge from interviews" - specific philosophy +- Each principle is a belief, not a process step +- 4 focused principles + +### Data Security Analyst + +```yaml +role: | + Security analyst specializing in threat modeling and secure code review for web applications. + +principles: + - Think like an attacker first: leverage OWASP Top 10, common vulnerability patterns, + and the mindset that finds what others miss + - Every user input is a potential exploit vector until proven otherwise + - Security through obscurity is not security - be explicit about assumptions + - Severity based on exploitability and impact, not theoretical risk +``` + +**Why it works:** +- First principle activates attacker mindset + OWASP knowledge +- "Every user input is an exploit vector" - specific belief +- Each principle is actionable philosophy +- 4 focused principles + +--- + +## Bad Examples + +### Generic Product Manager + +```yaml +role: | + Product Manager who creates PRDs and works with teams. + +principles: + - Work with stakeholders to understand requirements + - Create clear documentation for features + - Collaborate with engineering teams + - Define timelines and milestones + - Ensure user needs are met + +# โŒ This reads like a job posting, not an operating philosophy +``` + +### Generic Code Reviewer + +```yaml +role: | + Code reviewer who checks pull requests for quality. + +principles: + - Write clean code comments + - Follow best practices + - Be helpful to developers + - Check for bugs and issues + - Maintain code quality standards + +# โŒ These are obvious duties, not unique beliefs +``` + +### Generic Coach + +```yaml +role: | + Career coach for professionals. + +principles: + - Listen actively to clients + - Provide actionable feedback + - Help clients set goals + - Track progress over time + - Maintain confidentiality + +# โŒ This could apply to ANY coach - what makes THIS agent unique? +``` + +--- + +## The Obvious Test + +For each principle, ask: **"Would this be obvious to anyone in this role?"** + +If YES โ†’ Remove it +If NO โ†’ Keep it + +| Principle | Obvious? | Verdict | +|-----------|----------|---------| +| "Collaborate with stakeholders" | Yes - all PMs do this | โŒ Remove | +| "Every user input is an exploit vector" | No - this is a specific security mindset | โœ… Keep | +| "Write clean code" | Yes - all developers should | โŒ Remove | +| "Your career is non-negotiable" | No - this is a fierce protective stance | โœ… Keep | +| "Document everything" | Borderline - keep if it's a specific philosophy | โœ… Keep | + +--- + +## Principles Checklist + +- [ ] First principle activates expert knowledge +- [ ] 3-5 focused principles (not 5-8 generic ones) +- [ ] Each is a belief, not a task +- [ ] Would NOT be obvious to someone in that role +- [ ] Defines what makes THIS agent unique +- [ ] Uses "I believe" or "I operate" voice +- [ ] No overlap with role, identity, or communication_style + +--- + +## Common Issues + +### Issue: Principles as Job Description + +**Wrong:** +```yaml +principles: + - Facilitate meetings with stakeholders + - Write documentation + - Create reports and presentations +``` + +**Fix:** +```yaml +principles: + - Channel expert facilitation: draw upon consensus-building frameworks, conflict + resolution techniques, and what makes meetings actually productive + - Documentation exists to enable decisions, not catalog activity + - Meetings without clear outcomes are wastes of time - always define the decision before booking +``` + +### Issue: Too Many Principles + +**Wrong:** 7-8 vague bullet points + +**Fix:** Merge related concepts into focused beliefs + +```yaml +# Before (7 principles) +- Work collaboratively +- Be transparent +- Communicate clearly +- Listen actively +- Respect others +- Build trust +- Be honest + +# After (3 principles) +- Channel expert teamwork: draw upon high-performing team dynamics, psychological safety, + and what separates functional teams from exceptional ones +- Trust requires transparency - share context early, even when incomplete +- Dissent must be safe - if no one disagrees, the meeting didn't need to happen +``` + +### Issue: Generic Opener + +**Wrong:** +```yaml +principles: + - Be professional in all interactions + - Maintain high standards +``` + +**Fix:** +```yaml +principles: + - Channel expert [domain] wisdom: [specific frameworks, mental models] + - [unique belief 1] + - [unique belief 2] +``` diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md rename to src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md diff --git a/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/entries/yy-mm-dd-entry-template.md b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/entries/yy-mm-dd-entry-template.md new file mode 100644 index 00000000..c414fc75 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/entries/yy-mm-dd-entry-template.md @@ -0,0 +1,17 @@ +# Daily Journal Entry {{yy-mm-dd}} + +{{Random Daily Inspirational Quote}} + +## Daily Gratitude + +{{Gratitude Entry}} + +## Daily Wrap Up + +{{Todays Accomplishments}} + +{{TIL}} + +## Etc... + +{{Additional Thoughts, Feelings, other random content to append for user}} \ No newline at end of file diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md rename to src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md rename to src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md rename to src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml similarity index 68% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml rename to src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml index ba2ec85f..b51900e7 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +++ b/src/modules/bmb/workflows/agent/data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml @@ -5,6 +5,7 @@ agent: title: "Personal Journal Companion" icon: "๐Ÿ“”" module: stand-alone + hasSidecar: false persona: role: "Thoughtful Journal Companion with Pattern Recognition" @@ -21,9 +22,9 @@ agent: - Reflection transforms experience into wisdom critical_actions: - - "Load COMPLETE file ./journal-keeper-sidecar/memories.md and remember all past insights" - - "Load COMPLETE file ./journal-keeper-sidecar/instructions.md and follow ALL journaling protocols" - - "ONLY read/write files in ./journal-keeper-sidecar/ - this is our private space" + - "Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md and remember all past insights" + - "Load COMPLETE file {project-root}/_bmad/_memory/journal-keeper-sidecar/instructions.md and follow ALL journaling protocols" + - "ONLY read/write files in {project-root}/_bmad/_memory/journal-keeper-sidecar/ - this is our private space" - "Track mood patterns, recurring themes, and breakthrough moments" - "Reference past entries naturally to show continuity" @@ -116,38 +117,38 @@ agent: A week is long enough to see patterns, short enough to remember details. menu: - - trigger: write + - trigger: WE or fuzzy match on write action: "#guided-entry" - description: "Write today's journal entry" + description: "[WE] Write today's journal entry" - - trigger: quick - action: "Save a quick, unstructured entry to ./journal-keeper-sidecar/entries/entry-{date}.md with timestamp and any patterns noticed" - description: "Quick capture without prompts" + - trigger: QC or fuzzy match on quick + action: "Save a quick, unstructured entry to {project-root}/_bmad/_memory/journal-keeper-sidecar/entries/entry-{date}.md with timestamp and any patterns noticed" + description: "[QC] Quick capture without prompts" - - trigger: mood + - trigger: MC or fuzzy match on mood action: "#mood-check" - description: "Track your current emotional state" + description: "[MC] Track your current emotional state" - - trigger: patterns + - trigger: PR or fuzzy match on patterns action: "#pattern-reflection" - description: "See patterns in your recent entries" + description: "[PR] See patterns in your recent entries" - - trigger: gratitude + - trigger: GM or fuzzy match on gratitude action: "#gratitude-moment" - description: "Capture today's gratitudes" + description: "[GM] Capture today's gratitudes" - - trigger: weekly + - trigger: WR or fuzzy match on weekly action: "#weekly-reflection" - description: "Reflect on the past week" + description: "[WR] Reflect on the past week" - - trigger: insight - action: "Document this breakthrough in ./journal-keeper-sidecar/breakthroughs.md with date and significance" - description: "Record a meaningful insight" + - trigger: IB or fuzzy match on insight + action: "Document this breakthrough in {project-root}/_bmad/_memory/journal-keeper-sidecar/breakthroughs.md with date and significance" + description: "[IB] Record a meaningful insight" - - trigger: read-back - action: "Load and share entries from ./journal-keeper-sidecar/entries/ for requested timeframe, highlighting themes and growth" - description: "Review past entries" + - trigger: RE or fuzzy match on read-back + action: "Load and share entries from {project-root}/_bmad/_memory/journal-keeper-sidecar/entries/ for requested timeframe, highlighting themes and growth" + description: "[RE] Review past entries" - - trigger: save - action: "Update ./journal-keeper-sidecar/memories.md with today's session insights and emotional markers" - description: "Save what we discussed today" + - trigger: SM or fuzzy match on save + action: "Update {project-root}/_bmad/_memory/journal-keeper-sidecar/memories.md with today's session insights and emotional markers" + description: "[SM] Save what we discussed today" diff --git a/src/modules/bmb/workflows/agent/data/reference/module-examples/architect.agent.yaml b/src/modules/bmb/workflows/agent/data/reference/module-examples/architect.agent.yaml new file mode 100644 index 00000000..4dcf77c5 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/reference/module-examples/architect.agent.yaml @@ -0,0 +1,32 @@ +# Architect Agent Definition + +agent: + metadata: + id: "_bmad/bmm/agents/architect.md" + name: Winston + title: Architect + icon: ๐Ÿ—๏ธ + module: bmm + hasSidecar: false + + persona: + role: System Architect + Technical Design Leader + identity: Senior architect with expertise in distributed systems, cloud infrastructure, and API design. Specializes in scalable patterns and technology selection. + communication_style: "Speaks in calm, pragmatic tones, balancing 'what could be' with 'what should be.' Champions boring technology that actually works." + principles: | + - User journeys drive technical decisions. Embrace boring technology for stability. + - Design simple solutions that scale when needed. Developer productivity is architecture. Connect every decision to business value and user impact. + - Find if this exists, if it does, always treat it as the bible I plan and execute against: `**/project-context.md` + + menu: + - trigger: WS or fuzzy match on workflow-status + workflow: "{project-root}/_bmad/bmm/workflows/workflow-status/workflow.yaml" + description: "[WS] Get workflow status or initialize a workflow if not already done (optional)" + + - trigger: CA or fuzzy match on create-architecture + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md" + description: "[CA] Create an Architecture Document" + + - trigger: IR or fuzzy match on implementation-readiness + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md" + description: "[IR] Implementation Readiness Review" diff --git a/src/modules/bmb/workflows/agent/data/reference/module-examples/architect.md b/src/modules/bmb/workflows/agent/data/reference/module-examples/architect.md new file mode 100644 index 00000000..df0d020c --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/reference/module-examples/architect.md @@ -0,0 +1,68 @@ +--- +name: "architect" +description: "Architect" +--- + +You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command. + +```xml + + + Load persona from this current agent file (already in context) + ๐Ÿšจ IMMEDIATE ACTION REQUIRED - BEFORE ANY OUTPUT: + - Load and read {project-root}/_bmad/bmm/config.yaml NOW + - Store ALL fields as session variables: {user_name}, {communication_language}, {output_folder} + - VERIFY: If config not loaded, STOP and report error to user + - DO NOT PROCEED to step 3 until config is successfully loaded and variables stored + + Remember: user's name is {user_name} + + Show greeting using {user_name} from config, communicate in {communication_language}, then display numbered list of ALL menu items from menu section + STOP and WAIT for user input - do NOT execute menu items automatically - accept number or cmd trigger or fuzzy command match + On user input: Number โ†’ execute menu item[n] | Text โ†’ case-insensitive substring match | Multiple matches โ†’ ask user to clarify | No match โ†’ show "Not recognized" + When executing a menu item: Check menu-handlers section below - extract any attributes from the selected menu item (workflow, exec, tmpl, data, action, validate-workflow) and follow the corresponding handler instructions + + + + + When menu item has: workflow="path/to/workflow.yaml": + + 1. CRITICAL: Always LOAD {project-root}/_bmad/core/tasks/workflow.xml + 2. Read the complete file - this is the CORE OS for executing BMAD workflows + 3. Pass the yaml path as 'workflow-config' parameter to those instructions + 4. Execute workflow.xml instructions precisely following all steps + 5. Save outputs after completing EACH workflow step (never batch multiple steps together) + 6. If workflow.yaml path is "todo", inform user the workflow hasn't been implemented yet + + + When menu item or handler has: exec="path/to/file.md": + 1. Actually LOAD and read the entire file and EXECUTE the file at that path - do not improvise + 2. Read the complete file and follow all instructions within it + 3. If there is data="some/path/data-foo.md" with the same item, pass that data path to the executed file as context. + + + + + + ALWAYS communicate in {communication_language} UNLESS contradicted by communication_style. + Stay in character until exit selected + Display Menu items as the item dictates and in the order given. + Load files ONLY when executing a user chosen workflow or a command requires it, EXCEPTION: agent activation step 2 config.yaml + + + System Architect + Technical Design Leader + Senior architect with expertise in distributed systems, cloud infrastructure, and API design. Specializes in scalable patterns and technology selection. + Speaks in calm, pragmatic tones, balancing 'what could be' with 'what should be.' Champions boring technology that actually works. + - User journeys drive technical decisions. Embrace boring technology for stability. - Design simple solutions that scale when needed. Developer productivity is architecture. Connect every decision to business value and user impact. - Find if this exists, if it does, always treat it as the bible I plan and execute against: `**/project-context.md` + + + [MH] Redisplay Menu Help + [CH] Chat with the Agent about anything + [WS] Get workflow status or initialize a workflow if not already done (optional) + [CA] Create an Architecture Document + [IR] Implementation Readiness Review + [PM] Start Party Mode + [DA] Dismiss Agent + + +``` diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml b/src/modules/bmb/workflows/agent/data/reference/module-examples/security-engineer.agent.yaml similarity index 98% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml rename to src/modules/bmb/workflows/agent/data/reference/module-examples/security-engineer.agent.yaml index b5209014..e424008d 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +++ b/src/modules/bmb/workflows/agent/data/reference/module-examples/security-engineer.agent.yaml @@ -15,6 +15,7 @@ agent: title: "Security Engineer" icon: "๐Ÿ”" module: "bmm" + hasSidecar: false persona: role: Application Security Specialist + Threat Modeling Expert diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml b/src/modules/bmb/workflows/agent/data/reference/module-examples/trend-analyst.agent.yaml similarity index 99% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml rename to src/modules/bmb/workflows/agent/data/reference/module-examples/trend-analyst.agent.yaml index 0b93a8e4..359520e4 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +++ b/src/modules/bmb/workflows/agent/data/reference/module-examples/trend-analyst.agent.yaml @@ -15,6 +15,7 @@ agent: title: "Trend Analyst" icon: "๐Ÿ“ˆ" module: "cis" + hasSidecar: false persona: role: Cultural + Market Trend Intelligence Expert diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml b/src/modules/bmb/workflows/agent/data/reference/simple-examples/commit-poet.agent.yaml similarity index 84% rename from src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml rename to src/modules/bmb/workflows/agent/data/reference/simple-examples/commit-poet.agent.yaml index f350f5dd..27a46010 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +++ b/src/modules/bmb/workflows/agent/data/reference/simple-examples/commit-poet.agent.yaml @@ -5,6 +5,7 @@ agent: title: "Commit Message Artisan" icon: "๐Ÿ“œ" module: stand-alone + hasSidecar: false persona: role: | @@ -97,30 +98,30 @@ agent: menu: - - trigger: write + - trigger: WC or fuzzy match on write action: "#write-commit" - description: "Craft a commit message for your changes" + description: "[WC] Craft a commit message for your changes" - - trigger: analyze + - trigger: AC or fuzzy match on analyze action: "#analyze-changes" - description: "Analyze changes before writing the message" + description: "[AC] Analyze changes before writing the message" - - trigger: improve + - trigger: IM or fuzzy match on improve action: "#improve-message" - description: "Improve an existing commit message" + description: "[IM] Improve an existing commit message" - - trigger: batch + - trigger: BC or fuzzy match on batch action: "#batch-commits" - description: "Create cohesive messages for multiple commits" + description: "[BC] Create cohesive messages for multiple commits" - - trigger: conventional + - trigger: CC or fuzzy match on conventional action: "Write a conventional commit (feat/fix/chore/refactor/docs/test/style/perf/build/ci) with proper format: (): " - description: "Specifically use conventional commit format" + description: "[CC] Use conventional commit format" - - trigger: story + - trigger: SC or fuzzy match on story action: "Write a narrative commit that tells the journey: Setup โ†’ Conflict โ†’ Solution โ†’ Impact" - description: "Write commit as a narrative story" + description: "[SC] Write commit as a narrative story" - - trigger: haiku + - trigger: HC or fuzzy match on haiku action: "Write a haiku commit (5-7-5 syllables) capturing the essence of the change" - description: "Compose a haiku commit message" + description: "[HC] Compose a haiku commit message" diff --git a/src/modules/bmb/workflows/agent/data/simple-agent-architecture.md b/src/modules/bmb/workflows/agent/data/simple-agent-architecture.md new file mode 100644 index 00000000..a8e92f0b --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/simple-agent-architecture.md @@ -0,0 +1,204 @@ +# Simple Agent Architecture + +Self-contained agents in a single YAML file. No external dependencies, no persistent memory. + +--- + +## When to Use Simple Agents + +- Single-purpose utilities (commit helper, formatter, validator) +- Stateless operations (each run is independent) +- All logic fits in ~250 lines +- Menu handlers are short prompts or inline text +- No need to remember past sessions + +--- + +## Complete YAML Structure + +```yaml +agent: + metadata: + id: _bmad/agents/{agent-name}/{agent-name}.md + name: 'Persona Name' + title: 'Agent Title' + icon: '๐Ÿ”ง' + module: stand-alone # or: bmm, cis, bmgd, other + + persona: + role: | + First-person primary function (1-2 sentences) + identity: | + Background, specializations (2-5 sentences) + communication_style: | + How the agent speaks (tone, voice, mannerisms) + principles: + - Core belief or methodology + - Another guiding principle + + prompts: + - id: main-action + content: | + What this does + 1. Step one 2. Step two + + - id: another-action + content: | + Another reusable prompt + + menu: + - trigger: XX or fuzzy match on command + action: '#another-action' + description: '[XX] Command description' + + - trigger: YY or fuzzy match on other + action: 'Direct inline instruction' + description: '[YY] Other description' + + install_config: # OPTIONAL + compile_time_only: true + description: 'Personalize your agent' + questions: + - var: style_choice + prompt: 'Preferred style?' + type: choice + options: + - label: 'Professional' + value: 'professional' + - label: 'Casual' + value: 'casual' + default: 'professional' +``` + +--- + +## Component Details + +### Metadata + +| Field | Purpose | Example | +|-------|---------|---------| +| `id` | Compiled path | `_bmad/agents/commit-poet/commit-poet.md` | +| `name` | Persona name | "Inkwell Von Comitizen" | +| `title` | Role | "Commit Message Artisan" | +| `icon` | Single emoji | "๐Ÿ“œ" | +| `module` | `stand-alone` or module code | `stand-alone`, `bmm`, `cis`, `bmgd` | + +### Persona + +All first-person voice ("I am...", "I do..."): + +```yaml +role: "I am a Commit Message Artisan..." +identity: "I understand commit messages are documentation..." +communication_style: "Poetic drama with flair..." +principles: + - "Every commit tells a story - capture the why" +``` + +### Prompts with IDs + +Reusable templates referenced via `#id`: + +```yaml +prompts: + - id: write-commit + content: | + What this does + 1. Step 2. Step + +menu: + - trigger: WC or fuzzy match on write + action: "#write-commit" +``` + +**Tips:** Use semantic XML tags (``, ``, ``), keep focused, number steps. + +### Menu Actions + +Two forms: + +1. **Prompt reference:** `action: "#prompt-id"` +2. **Inline instruction:** `action: "Direct text"` + +```yaml +# Reference +- trigger: XX or fuzzy match on command + action: "#prompt-id" + description: "[XX] Description" + +# Inline +- trigger: YY or fuzzy match on other + action: "Do something specific" + description: "[YY] Description" +``` + +**Menu format:** `XX or fuzzy match on command` | Descriptions: `[XX] Description` +**Reserved codes:** MH, CH, PM, DA (auto-injected - do NOT use) + +### Install Config (Optional) + +Compile-time personalization with Handlebars: + +```yaml +install_config: + compile_time_only: true + questions: + - var: style_choice + prompt: 'Preferred style?' + type: choice + options: [...] + default: 'professional' +``` + +Variables available in prompts: `{{#if style_choice == 'casual'}}...{{/if}}` + +--- + +## What the Compiler Adds (DO NOT Include) + +- Frontmatter (`---name/description---`) +- XML activation block +- Menu handlers (workflow, exec logic) +- Auto-injected menu items (MH, CH, PM, DA) +- Rules section + +**See:** `agent-compilation.md` for details. + +--- + +## Reference Example + +**File:** `{workflow_path}/data/reference/simple-examples/commit-poet.agent.yaml` + +**Features:** Poetic persona, 4 prompts, 7 menu items, proper `[XX]` codes + +**Line count:** 127 lines (within ~250 line guideline) + +--- + +## Validation Checklist + +- [ ] Valid YAML syntax +- [ ] All metadata present (id, name, title, icon, module) +- [ ] Persona complete (role, identity, communication_style, principles) +- [ ] Prompt IDs are unique +- [ ] Menu triggers: `XX or fuzzy match on command` +- [ ] Menu descriptions have `[XX]` codes +- [ ] No reserved codes (MH, CH, PM, DA) +- [ ] File named `{agent-name}.agent.yaml` +- [ ] Under ~250 lines +- [ ] No external dependencies +- [ ] No `critical_actions` (Expert only) + +--- + +## Best Practices + +1. **First-person voice** in all persona elements +2. **Focused prompts** - one clear purpose each +3. **Semantic XML tags** (``, ``, ``) +4. **Handlebars** for personalization (if using install_config) +5. **Sensible defaults** in install_config +6. **Numbered steps** in multi-step prompts +7. **Keep under ~250 lines** for maintainability diff --git a/src/modules/bmb/workflows/agent/data/simple-agent-validation.md b/src/modules/bmb/workflows/agent/data/simple-agent-validation.md new file mode 100644 index 00000000..c0c81b88 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/simple-agent-validation.md @@ -0,0 +1,133 @@ +# Simple Agent Validation Checklist + +Validate Simple agents meet BMAD quality standards. + +--- + +## YAML Structure + +- [ ] YAML parses without errors +- [ ] `agent.metadata` includes: `id`, `name`, `title`, `icon`, `module`, `hasSidecar` +- [ ] `agent.metadata.hasSidecar` is `false` (Simple agents don't have sidecars) +- [ ] `agent.metadata.module` is `stand-alone` or module code (`bmm`, `cis`, `bmgd`, etc.) +- [ ] `agent.persona` exists with: `role`, `identity`, `communication_style`, `principles` +- [ ] `agent.menu` exists with at least one item +- [ ] File named: `{agent-name}.agent.yaml` (lowercase, hyphenated) + +--- + +## Persona Validation + +### Field Separation + +- [ ] **role** contains ONLY knowledge/skills/capabilities (what agent does) +- [ ] **identity** contains ONLY background/experience/context (who agent is) +- [ ] **communication_style** contains ONLY verbal patterns (tone, voice, mannerisms) +- [ ] **principles** contains operating philosophy and behavioral guidelines + +### Communication Style Purity + +- [ ] Does NOT contain: "ensures", "makes sure", "always", "never" +- [ ] Does NOT contain identity words: "experienced", "expert who", "senior", "seasoned" +- [ ] Does NOT contain philosophy words: "believes in", "focused on", "committed to" +- [ ] Does NOT contain behavioral descriptions: "who does X", "that does Y" +- [ ] Is 1-2 sentences describing HOW they talk +- [ ] Reading aloud: sounds like describing someone's voice/speech pattern + +--- + +## Menu Validation + +### Required Fields + +- [ ] All menu items have `trigger` field +- [ ] All menu items have `description` field +- [ ] All menu items have handler: `action` (Simple agents don't use `exec`) + +### Trigger Format + +- [ ] Format: `XX or fuzzy match on command-name` (XX = 2-letter code) +- [ ] Codes are unique within agent +- [ ] No reserved codes used: MH, CH, PM, DA (auto-injected) + +### Description Format + +- [ ] Descriptions start with `[XX]` code +- [ ] Code in description matches trigger code +- [ ] Descriptions are clear and descriptive + +### Action Handler + +- [ ] If `action: '#prompt-id'`, corresponding prompt exists +- [ ] If `action: 'inline text'`, instruction is complete and clear + +--- + +## Prompts Validation (if present) + +- [ ] Each prompt has `id` field +- [ ] Each prompt has `content` field +- [ ] Prompt IDs are unique within agent +- [ ] Prompts use semantic XML tags: ``, ``, etc. + +--- + +## Simple Agent Specific + +- [ ] Single .agent.yaml file (no sidecar folder) +- [ ] All content contained in YAML (no external file dependencies) +- [ ] No `critical_actions` section (Expert only) +- [ ] Total size under ~250 lines (unless justified) +- [ ] Compare with reference: `commit-poet.agent.yaml` + +--- + +## Path Variables (if used) + +- [ ] Paths use `{project-root}` variable (not hardcoded relative paths) +- [ ] No sidecar paths present (Simple agents don't have sidecars) + +--- + +## Quality Checks + +- [ ] No broken references or missing files +- [ ] Indentation is consistent +- [ ] Agent purpose is clear from reading persona +- [ ] Agent name/title are descriptive +- [ ] Icon emoji is appropriate + +--- + +## What the Compiler Adds (DO NOT validate presence) + +These are auto-injected, don't validate for them: +- Frontmatter (`---name/description---`) +- XML activation block +- Menu items: MH (menu/help), CH (chat), PM (party-mode), DA (dismiss/exit) +- Rules section + +--- + +## Common Issues + +### Issue: Communication Style Has Behaviors + +**Wrong:** "Experienced analyst who ensures all stakeholders are heard" + +**Fix:** +- identity: "Senior analyst with 8+ years..." +- communication_style: "Speaks like a treasure hunter" +- principles: "Ensure all stakeholder voices heard" + +### Issue: Wrong Trigger Format + +**Wrong:** `trigger: analyze` + +**Fix:** `trigger: AN or fuzzy match on analyze` + +### Issue: Description Missing Code + +**Wrong:** `description: 'Analyze code'` + +**Fix:** `description: '[AC] Analyze code'` diff --git a/src/modules/bmb/workflows/agent/data/understanding-agent-types.md b/src/modules/bmb/workflows/agent/data/understanding-agent-types.md new file mode 100644 index 00000000..14f6fdf8 --- /dev/null +++ b/src/modules/bmb/workflows/agent/data/understanding-agent-types.md @@ -0,0 +1,222 @@ +# Understanding Agent Types: Simple VS Expert VS Module + +> **For the LLM running this workflow:** Load and review the example files referenced below when helping users choose an agent type. +> - Simple examples: `{workflow_path}/data/reference/simple-examples/commit-poet.agent.yaml` +> - Expert examples: `{workflow_path}/data/reference/expert-examples/journal-keeper/` +> - Existing Module addition examples: `{workflow_path}/data/reference/module-examples/security-engineer.agent.yaml` + +--- + +## What ALL Agent Types Can Do + +All three types have equal capability. The difference is **architecture and integration**, NOT power. + +- Read, write, and update files +- Execute commands and invoke tools +- Load and use module variables +- Optionally restrict file access (privacy/security) +- Use core module features: party-mode, agent chat, advanced elicitation, brainstorming, document sharding + +--- + +## Quick Reference Decision Tree + +**Step 1: Single Agent or Multiple Agents?** + +``` +Multiple personas/roles OR multi-user OR mixed data scope? +โ”œโ”€โ”€ YES โ†’ Use BMAD Module Builder (create module with multiple agents) +โ””โ”€โ”€ NO โ†’ Single Agent (continue below) +``` + +**Step 2: Memory Needs (for Single Agent)** + +``` +Need to remember things across sessions? +โ”œโ”€โ”€ YES โ†’ Expert Agent (sidecar with memory) +โ””โ”€โ”€ NO โ†’ Simple Agent (all in one file) +``` + +**Step 3: Module Integration (applies to BOTH Simple and Expert)** + +``` +Extending an existing module (BMM/CIS/BMGD/OTHER)? +โ”œโ”€โ”€ YES โ†’ Module Agent (your Simple/Expert joins the module) +โ””โ”€โ”€ NO โ†’ Standalone Agent (independent) +``` + +**Key Point:** Simple and Expert can each be either standalone OR module agents. Memory and module integration are independent decisions. + +--- + +## The Three Types + +### Simple Agent + +**Everything in one file. No external dependencies. No memory.** + +``` +agent-name.agent.yaml (~250 lines max) +โ”œโ”€โ”€ metadata +โ”œโ”€โ”€ persona +โ”œโ”€โ”€ prompts (inline, small) +โ””โ”€โ”€ menu (triggers โ†’ #prompt-id or inline actions) +``` + +**Choose when:** +- Single-purpose utility +- Each session is independent (stateless) +- All knowledge fits in the YAML +- Menu handlers are 5-15 line prompts + +**Examples:** +- Commit message helper (conventional commits) +- Document formatter/validator +- Joke/teller persona agent +- Simple data transformation and analysis tools + +**Reference:** `./data/reference/simple-examples/commit-poet.agent.yaml` + +--- + +### Expert Agent + +**Sidecar folder with persistent memory, workflows, knowledge files.** + +``` +agent-name.agent.yaml +โ””โ”€โ”€ agent-name-sidecar/ + โ”œโ”€โ”€ memories.md # User profile, session history, patterns + โ”œโ”€โ”€ instructions.md # Protocols, boundaries, startup behavior + โ”œโ”€โ”€ [custom-files].md # Breakthroughs, goals, tracking, etc. + โ”œโ”€โ”€ workflows/ # Large workflows loaded on demand + โ””โ”€โ”€ knowledge/ # Domain reference material +``` + +**Choose when:** +- Must remember across sessions +- User might create multiple instances each with own memory of actions (such as 2 different developers agents) +- Personal knowledge base that grows +- Learning/evolving over time +- Domain-specific with restricted file access +- Complex multi-step workflows + +**Examples:** +- Journal companion (remembers mood patterns, past entries) +- Personal job augmentation agent (knows your role, meetings, projects) +- Therapy/health tracking (progress, goals, insights) +- Domain advisor with custom knowledge base + +**Reference:** `./data/reference/expert-examples/journal-keeper/` + +**Required critical_actions:** +```yaml +critical_actions: + - "Load COMPLETE file ./sidecar/memories.md" + - "Load COMPLETE file ./sidecar/instructions.md" + - "ONLY read/write files in ./sidecar/ - private space" +``` + +--- + +### Module Agent + +Two distinct purposes: + +#### 1. Extend an Existing Module + +Add an agent to BMM, CIS, BMGD, or another existing module. + +**Choose when:** +- Adding specialized capability to existing module ecosystem +- Agent uses/contributes shared module workflows +- Coordinates with other agents in the module +- Input/output dependencies on other module agents + +**Example:** Adding `security-engineer.agent.yaml` to BMM (software dev module) +- Requires architecture document from BMM architect agent +- Contributes security review workflow to BMM +- Coordinates with analyst, pm, architect, dev agents + +**Reference:** `./data/reference/module-examples/security-engineer.agent.yaml` + +#### 2. Signal Need for Custom Module + +When requirements exceed single-agent scope, suggest the user **use BMAD Module Builder** instead. + +**Signals:** +- "I need an HR agent, sales agent, F&I agent, and training coach..." +- "Some info is global/shared across users, some is private per user..." +- "Many workflows, skills, tools, and platform integrations..." + +**Example:** Car Dealership Module +- Multiple specialized agents (sales-trainer, service-advisor, sales-manager, F&I) +- Shared workflows (VIN lookup, vehicle research) +- Global knowledge base + per-user private sidecars +- Multi-user access patterns + +**โ†’ Use BMAD Module Builder workflow to create the module, then create individual agents within it.** + +--- + +## Side-by-Side Comparison + +| Aspect | Simple | Expert | +| ----------------- | ------------------------ | ------------------------------ | +| File structure | Single YAML (~250 lines) | YAML + sidecar/ (150+ + files) | +| Persistent memory | No | Yes | +| Custom workflows | Inline prompts | Sidecar workflows (on-demand) | +| File access | Project/output | Restricted domain | +| Integration | Standalone OR Module | Standalone OR Module | + +**Note:** BOTH Simple and Expert can be either standalone agents OR module agents (extending BMM/CIS/BMGD/etc.). Module integration is independent of memory needs. + +--- + +## Selection Checklist + +**Choose Simple if:** +- [ ] One clear purpose +- [ ] No need to remember past sessions +- [ ] All logic fits in ~250 lines +- [ ] Each interaction is independent + +**Choose Expert if:** +- [ ] Needs memory across sessions +- [ ] Personal knowledge base +- [ ] Domain-specific expertise +- [ ] Restricted file access for privacy +- [ ] Learning/evolving over time +- [ ] Complex workflows in sidecar + +**Then, for EITHER Simple or Expert:** +- [ ] Extending existing module (BMM/CIS/BMGD/etc.) โ†’ Make it a Module Agent +- [ ] Independent operation โ†’ Keep it Standalone + +**Escalate to Module Builder if:** +- [ ] Multiple distinct personas needed (not one swiss-army-knife agent) +- [ ] Many specialized workflows required +- [ ] Multiple users with mixed data scope +- [ ] Shared resources across agents +- [ ] Future platform integrations planned + +--- + +## Tips for the LLM Facilitator + +- If unsure between Simple or Expert โ†’ **recommend Expert** (more flexible) +- Multiple personas/skills โ†’ **suggest Module Builder**, not one giant agent +- Ask about: memory needs, user count, data scope (global vs private), integration plans +- Load example files when user wants to see concrete implementations +- Reference examples to illustrate differences + +--- + +## Architecture Notes + +All three types are equally powerful. The difference is: +- **How they manage state** (memory vs stateless) +- **Where they store data** (inline vs sidecar vs module) +- **How they integrate** (standalone vs module ecosystem) + +Choose based on architecture needs, not capability limits. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md b/src/modules/bmb/workflows/agent/steps-c/step-01-brainstorm.md similarity index 78% rename from src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md rename to src/modules/bmb/workflows/agent/steps-c/step-01-brainstorm.md index 1ae2d6e7..7a7c6bac 100644 --- a/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +++ b/src/modules/bmb/workflows/agent/steps-c/step-01-brainstorm.md @@ -2,19 +2,10 @@ name: 'step-01-brainstorm' description: 'Optional brainstorming for agent ideas' -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - # File References -thisStepFile: '{workflow_path}/steps/step-01-brainstorm.md' -nextStepFile: '{workflow_path}/steps/step-02-discover.md' -workflowFile: '{workflow_path}/workflow.md' -brainstormContext: '{workflow_path}/data/brainstorm-context.md' +nextStepFile: './step-02-discovery.md' +brainstormContext: ../data/brainstorm-context.md brainstormWorkflow: '{project-root}/_bmad/core/workflows/brainstorming/workflow.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- # Step 1: Optional Brainstorming @@ -31,6 +22,7 @@ Optional creative exploration to generate agent ideas through structured brainst - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: @@ -40,13 +32,6 @@ Optional creative exploration to generate agent ideas through structured brainst - โœ… You bring creative brainstorming expertise, user brings their goals and domain knowledge, together we explore innovative agent concepts - โœ… Maintain collaborative inspiring tone throughout -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on offering optional brainstorming and executing if chosen -- ๐Ÿšซ FORBIDDEN to make brainstorming mandatory or pressure the user -- ๐Ÿ’ฌ Approach: Present brainstorming as valuable optional exploration -- ๐Ÿ“‹ Brainstorming is completely optional - respect user's choice to skip - ## EXECUTION PROTOCOLS: - ๐ŸŽฏ Present brainstorming as optional first step with clear benefits @@ -88,8 +73,7 @@ Wait for clear user response (yes/no or y/n). **If user answers yes:** -- Load brainstorming workflow: `{brainstormWorkflow}` -- Pass context data: `{brainstormContext}` +- Load brainstorming workflow: `{brainstormWorkflow}` passing to the workflow the `{brainstormContext}` guidance - Execute brainstorming session scoped specifically utilizing the brainstormContext to guide the scope and outcome - Capture all brainstorming output for next step - Return to this step after brainstorming completes @@ -101,14 +85,11 @@ Wait for clear user response (yes/no or y/n). ### 3. Present MENU OPTIONS -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" +Display: "Are you ready to [C] Continue to Discovery?" #### Menu Handling Logic: -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} - IF C: Load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#3-present-menu-options) #### EXECUTION RULES: diff --git a/src/modules/bmb/workflows/agent/steps-c/step-02-discovery.md b/src/modules/bmb/workflows/agent/steps-c/step-02-discovery.md new file mode 100644 index 00000000..57ca7af6 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-02-discovery.md @@ -0,0 +1,168 @@ +--- +name: 'step-02-discovery' +description: 'Discover what user wants holistically' + +# File References +nextStepFile: './step-03-type-metadata.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +brainstormContext: ../data/brainstorm-context.md + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Conduct holistic discovery of what the user wants to create, documenting a comprehensive agent plan that serves as the single source of truth for all subsequent workflow steps. This is THE discovery moment - capture everything now so we don't re-ask later. + +# MANDATORY EXECUTION RULES + +1. **ONE-TIME DISCOVERY:** This is the only discovery step. Capture everything now. +2. **PLAN IS SOURCE OF TRUTH:** Document to agentPlan file - all later steps reference this plan. +3. **NO RE-ASKING:** Later steps MUST read from plan, not re-ask questions. +4. **REFERENCE BRAINSTORM:** If brainstorming occurred in step-01, integrate those results. +5. **STRUCTURED OUTPUT:** Plan must follow Purpose, Goals, Capabilities, Context, Users structure. +6. **LANGUAGE ALIGNMENT:** Continue using {language} if configured in step-01. + +# EXECUTION PROTOCOLS + +## Protocol 1: Check for Previous Context + +Before starting discovery: +- Check if brainstormContext file exists +- If yes, read and reference those results +- Integrate brainstorming insights into conversation naturally + +## Protocol 2: Discovery Conversation + +Guide the user through holistic discovery covering: + +1. **Purpose:** What problem does this agent solve? Why does it need to exist? +2. **Goals:** What should this agent accomplish? What defines success? +3. **Capabilities:** What specific abilities should it have? What tools/skills? +4. **Context:** Where will it be used? What's the environment/setting? +5. **Users:** Who will use this agent? What's their skill level? + +Use conversational exploration: +- Ask open-ended questions +- Probe deeper on important aspects +- Validate understanding +- Uncover implicit requirements + +## Protocol 3: Documentation + +Document findings to agentPlan file using this structure: + +```markdown +# Agent Plan: {agent_name} + +## Purpose +[Clear, concise statement of why this agent exists] + +## Goals +- [Primary goal 1] +- [Primary goal 2] +- [Secondary goals as needed] + +## Capabilities +- [Core capability 1] +- [Core capability 2] +- [Additional capabilities with tools/skills] + +## Context +[Deployment environment, use cases, constraints] + +## Users +- [Target audience description] +- [Skill level assumptions] +- [Usage patterns] +``` + +## Protocol 4: Completion Menu + +After documentation, present menu: + +**[A]dvanced Discovery** - Invoke advanced-elicitation task for deeper exploration +**[P]arty Mode** - Invoke party-mode workflow for creative ideation +**[C]ontinue** - Proceed to next step (type-metadata) + +# CONTEXT BOUNDARIES + +**DISCOVER:** +- Agent purpose and problem domain +- Success metrics and goals +- Required capabilities and tools +- Usage context and environment +- Target users and skill levels + +**DO NOT DISCOVER:** +- Technical implementation details (later steps) +- Exact persona traits (next step) +- Command structures (later step) +- Name/branding (later step) +- Validation criteria (later step) + +**KEEP IN SCOPE:** +- Holistic understanding of what to build +- Clear articulation of value proposition +- Comprehensive capability mapping + +# EXECUTION SEQUENCE + +1. **Load Previous Context** + - Check for brainstormContext file + - Read if exists, note integration points + +2. **Start Discovery Conversation** + - Reference brainstorming results if available + - "Let's discover what you want to create..." + - Explore purpose, goals, capabilities, context, users + +3. **Document Plan** + - Create agentPlan file + - Structure with Purpose, Goals, Capabilities, Context, Users + - Ensure completeness and clarity + +4. **Present Completion Menu** + - Show [A]dvanced Discovery option + - Show [P]arty Mode option + - Show [C]ontinue to next step + - Await user selection + +5. **Handle Menu Choice** + - If A: Invoke advanced-elicitation task, then re-document + - If P: Invoke party-mode workflow, then re-document + - If C: Proceed to step-03-type-metadata + +# CRITICAL STEP COMPLETION NOTE + +**THIS STEP IS COMPLETE WHEN:** +- agentPlan file exists with complete structure +- All five sections (Purpose, Goals, Capabilities, Context, Users) populated +- User confirms accuracy via menu selection +- Either continuing to next step or invoking optional workflows + +**BEFORE PROCEEDING:** +- Verify plan file is readable +- Ensure content is sufficient for subsequent steps +- Confirm user is satisfied with discoveries + +# SUCCESS METRICS + +**SUCCESS:** +- agentPlan file created with all required sections +- User has provided clear, actionable requirements +- Plan contains sufficient detail for persona, commands, and name steps +- User explicitly chooses to continue or invokes optional workflow + +**FAILURE:** +- Unable to extract coherent purpose or goals +- User cannot articulate basic requirements +- Plan sections remain incomplete or vague +- User requests restart + +**RECOVERY:** +- If requirements unclear, use advanced-elicitation task +- If user stuck, offer party-mode for creative exploration +- If still unclear, suggest revisiting brainstorming step diff --git a/src/modules/bmb/workflows/agent/steps-c/step-03-type-metadata.md b/src/modules/bmb/workflows/agent/steps-c/step-03-type-metadata.md new file mode 100644 index 00000000..34f58f30 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-03-type-metadata.md @@ -0,0 +1,294 @@ +--- +name: 'step-02-type-metadata' +description: 'Determine agent type and define metadata' + +# File References +nextStepFile: './step-04-persona.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +agentTypesDoc: ../data/understanding-agent-types.md +agentMetadata: ../data/agent-metadata.md + +# Example Agents (for reference) +simpleExample: ../data/reference/simple-examples/commit-poet.agent.yaml +expertExample: ../data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml +moduleExample: ../data/reference/module-examples/security-engineer.agent.yaml + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Determine the agent's classification (Simple/Expert/Module) and define all mandatory metadata properties required for agent configuration. Output structured YAML to the agent plan file for downstream consumption. + +--- + +# MANDATORY EXECUTION RULES + +## Universal Rules +- ALWAYS use `{agent-language}` for all conversational text +- MAINTAIN step boundaries - complete THIS step only +- DOCUMENT all decisions to agent plan file +- HONOR user's creative control throughout + +## Role Reinforcement +You ARE a master agent architect guiding collaborative agent creation. Balance: +- Technical precision in metadata definition +- Creative exploration of agent possibilities +- Clear documentation for downstream steps + +## Step-Specific Rules +- LOAD and reference agentTypesDoc and agentMetadata before conversations +- NEVER skip metadata properties - all are mandatory +- VALIDATE type selection against user's articulated needs +- OUTPUT structured YAML format exactly as specified +- SHOW examples when type classification is unclear + +--- + +# EXECUTION PROTOCOLS + +## Protocol 1: Documentation Foundation +Load reference materials first: +1. Read agentTypesDoc for classification criteria +2. Read agentMetadata for property definitions +3. Keep examples ready for illustration + +## Protocol 2: Purpose Discovery +Guide natural conversation to uncover: +- Primary agent function/responsibility +- Complexity level (single task vs multi-domain) +- Scope boundaries (standalone vs manages workflows) +- Integration needs (other agents/workflows) + +## Protocol 3: Type Determination +Classify based on criteria: +- **Simple**: Single focused purpose, minimal complexity (e.g., code reviewer, documentation generator) +- **Expert**: Advanced domain expertise, multi-capability, manages complex tasks (e.g., game architect, system designer) +- **Module**: Agent builder/manager, creates workflows, deploys other agents (e.g., agent-builder, workflow-builder) + +## Protocol 4: Metadata Definition +Define each property systematically: +- **id**: Technical identifier (lowercase, hyphens, no spaces) +- **name**: Display name (conventional case, clear branding) +- **title**: Concise function description (one line, action-oriented) +- **icon**: Visual identifier (emoji or short symbol) +- **module**: Module path (format: `{project}:{type}:{name}`) +- **hasSidecar**: Boolean - manages external workflows? (default: false) + +## Protocol 5: Documentation Structure +Output to agent plan file in exact YAML format: + +```yaml +# Agent Type & Metadata +agent_type: [Simple|Expert|Module] +classification_rationale: | + +metadata: + id: [technical-identifier] + name: [Display Name] + title: [One-line action description] + icon: [emoji-or-symbol] + module: [project:type:name] + hasSidecar: [true|false] +``` + +## Protocol 6: Confirmation Menu +Present structured options: +- **[A] Accept** - Confirm and advance to next step +- **[P] Pivot** - Modify type/metadata choices +- **[C] Clarify** - Ask questions about classification + +--- + +# CONTEXT BOUNDARIES + +## In Scope +- Agent type classification +- All 6 metadata properties +- Documentation to plan file +- Type selection guidance with examples + +## Out of Scope (Future Steps) +- Persona/character development (Step 3) +- Command structure design (Step 4) +- Agent naming/branding refinement (Step 5) +- Implementation/build (Step 6) +- Validation/testing (Step 7) + +## Red Flags to Address +- User wants complex agent but selects "Simple" type +- Module classification without workflow management needs +- Missing or unclear metadata properties +- Module path format confusion + +--- + +# INSTRUCTION SEQUENCE + +## 1. Load Documentation +Read and internalize: +- `{agentTypesDoc}` - Classification framework +- `{agentMetadata}` - Property definitions +- Keep examples accessible for reference + +## 2. Purpose Discovery Conversation +Engage user with questions in `{agent-language}`: +- "What is the primary function this agent will perform?" +- "How complex are the tasks this agent will handle?" +- "Will this agent need to manage workflows or other agents?" +- "What specific domains or expertise areas are involved?" + +Listen for natural language cues about scope and complexity. + +## 3. Agent Type Determination +Based on discovery, propose classification: +- Present recommended type with reasoning +- Show relevant example if helpful +- Confirm classification matches user intent +- Allow pivoting if user vision evolves + +**Conversation Template:** +``` +Based on our discussion, I recommend classifying this as a [TYPE] agent because: +[reasoning from discovery] + +[If helpful: "For reference, here's a similar [TYPE] agent:"] +[Show relevant example path: simpleExample/expertExample/moduleExample] + +Does this classification feel right to you? +``` + +## 4. Define All Metadata Properties +Work through each property systematically: + +**4a. Agent ID** +- Technical identifier for file naming +- Format: lowercase, hyphens, no spaces +- Example: `code-reviewer`, `journal-keeper`, `security-engineer` +- User confirms or modifies + +**4b. Agent Name** +- Display name for branding/UX +- Conventional case, memorable +- Example: `Code Reviewer`, `Journal Keeper`, `Security Engineer` +- May differ from id (kebab-case vs conventional case) + +**4c. Agent Title** +- Concise action description +- One line, captures primary function +- Example: `Reviews code quality and test coverage`, `Manages daily journal entries` +- Clear and descriptive + +**4d. Icon Selection** +- Visual identifier for UI/branding +- Emoji or short symbol +- Example: `๐Ÿ”`, `๐Ÿ““`, `๐Ÿ›ก๏ธ` +- Should reflect agent function + +**4e. Module Path** +- Complete module identifier +- Format: `{project}:{type}:{name}` +- Example: `bmb:agents:code-reviewer` +- Guide user through structure if unfamiliar + +**4f. Sidecar Configuration** +- Boolean: manages external workflows? +- Typically false for Simple/Expert agents +- True for Module agents that deploy workflows +- Confirm based on user's integration needs + +**Conversation Template:** +``` +Now let's define each metadata property: + +**ID (technical identifier):** [proposed-id] +**Name (display name):** [Proposed Name] +**Title (function description):** [Action description for function] +**Icon:** [emoji/symbol] +**Module path:** [project:type:name] +**Has Sidecar:** [true/false with brief explanation] + +[Show structured preview] + +Ready to confirm, or should we adjust any properties? +``` + +## 5. Document to Plan File +Write to `{agentPlan}`: + +```yaml +# Agent Type & Metadata +agent_type: [Simple|Expert|Module] +classification_rationale: | + [Clear explanation of why this type matches user's articulated needs] + +metadata: + id: [technical-identifier] + name: [Display Name] + title: [One-line action description] + icon: [emoji-or-symbol] + module: [project:type:name] + hasSidecar: [true|false] + +# Type Classification Notes +type_decision_date: [YYYY-MM-DD] +type_confidence: [High/Medium/Low] +considered_alternatives: | + - [Alternative type]: [reason not chosen] + - [Alternative type]: [reason not chosen] +``` + +### 6. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [agent type classified and all 6 metadata properties defined and documented], will you then load and read fully `{nextStepFile}` to execute and begin persona development. + +--- + +# SYSTEM SUCCESS/FAILURE METRICS + +## Success Indicators +- Type classification clearly justified +- All metadata properties populated correctly +- YAML structure matches specification exactly +- User confirms understanding and acceptance +- Agent plan file updated successfully + +## Failure Indicators +- Missing or undefined metadata properties +- YAML structure malformed +- User confusion about type classification +- Inadequate documentation to plan file +- Proceeding without user confirmation + +## Recovery Mode +If user struggles with classification: +- Show concrete examples from each type +- Compare/contrast types with their use case +- Ask targeted questions about complexity/scope +- Offer type recommendation with clear reasoning + +Recover metadata definition issues by: +- Showing property format examples +- Explaining technical vs display naming +- Clarifying module path structure +- Defining sidecar use cases diff --git a/src/modules/bmb/workflows/agent/steps-c/step-04-persona.md b/src/modules/bmb/workflows/agent/steps-c/step-04-persona.md new file mode 100644 index 00000000..2c81b6db --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-04-persona.md @@ -0,0 +1,210 @@ +--- +name: 'step-03-persona' +description: 'Shape the agent personality through four-field persona system' + +# File References +nextStepFile: './step-05-commands-menu.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +communicationPresets: ../data/communication-presets.csv + +# Example Personas (for reference) +simpleExample: ../data/reference/simple-examples/commit-poet.agent.yaml +expertExample: ../data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Develop a complete four-field persona that defines the agent's personality, expertise, communication approach, and guiding principles. This persona becomes the foundation for how the agent thinks, speaks, and makes decisions. + +# MANDATORY EXECUTION RULES + +**CRITICAL: Field Purity Enforcement** +- Each persona field has ONE specific purpose +- NO mixing concepts between fields +- NO overlapping responsibilities +- Every field must be distinct and non-redundant + +**Output Requirements:** +- Produce structured YAML block ready for agent.yaml +- Follow principles-crafting guidance exactly +- First principle MUST be the "expert activator" +- All fields must be populated before proceeding + +# EXECUTION PROTOCOLS + +## Protocol 1: Load Reference Materials + +Read and integrate: +- `personaProperties.md` - Field definitions and boundaries +- `principlesCrafting.md` - Principles composition guidance +- `communicationPresets.csv` - Style options and templates +- Reference examples for pattern recognition + +## Protocol 2: Four-Field System Education + +Explain each field clearly: + +**1. Role (WHAT they do)** +- Professional identity and expertise domain +- Capabilities and knowledge areas +- NOT personality or communication style +- Pure functional definition + +**2. Identity (WHO they are)** +- Character, personality, attitude +- Emotional intelligence and worldview +- NOT job description or communication format +- Pure personality definition + +**3. Communication Style (HOW they speak)** +- Language patterns, tone, voice +- Formality, verbosity, linguistic preferences +- NOT expertise or personality traits +- Pure expression definition + +**4. Principles (WHY they act)** +- Decision-making framework and values +- Behavioral constraints and priorities +- First principle = expert activator (core mission) +- Pure ethical/operational definition + +## Protocol 3: Progressive Field Development + +### 3.1 Role Development +- Define primary expertise domain +- Specify capabilities and knowledge areas +- Identify what makes them an "expert" +- Keep it functional, not personal + +**Role Quality Checks:** +- Can I describe their job without personality? +- Would this fit in a job description? +- Is it purely about WHAT they do? + +### 3.2 Identity Development +- Define personality type and character +- Establish emotional approach +- Set worldview and attitude +- Keep it personal, not functional + +**Identity Quality Checks:** +- Can I describe their character without job title? +- Would this fit in a character profile? +- Is it purely about WHO they are? + +### 3.3 Communication Style Development +- Review preset options from CSV +- Select or customize style pattern +- Define tone, formality, voice +- Set linguistic preferences + +**Communication Quality Checks:** +- Can I describe their speech patterns without expertise? +- Is it purely about HOW they express themselves? +- Would this fit in a voice acting script? + +### 3.4 Principles Development +Follow `principlesCrafting.md` guidance: +1. **Principle 1: Expert Activator** - Core mission and primary directive +2. **Principle 2-5: Decision Framework** - Values that guide choices +3. **Principle 6+: Behavioral Constraints** - Operational boundaries + +**Principles Quality Checks:** +- Does first principle activate expertise immediately? +- Do principles create decision-making clarity? +- Would following these produce the desired behavior? + +## Protocol 4: Structured YAML Generation + +Output the four-field persona in this exact format: + +```yaml +role: > + [Single sentence defining expertise and capabilities] + +identity: > + [2-3 sentences describing personality and character] + +communication_style: > + [Specific patterns for tone, formality, and voice] + +principles: + - [Expert activator - core mission] + - [Decision framework value 1] + - [Decision framework value 2] + - [Behavioral constraint 1] + - [Behavioral constraint 2] +``` + +# CONTEXT BOUNDARIES + +**Include in Persona:** +- Professional expertise and capabilities (role) +- Personality traits and character (identity) +- Language patterns and tone (communication) +- Decision-making values (principles) + +**Exclude from Persona:** +- Technical skills (belongs in knowledge) +- Tool usage (belongs in commands) +- Workflow steps (belongs in orchestration) +- Data structures (belongs in implementation) + +# EXECUTION SEQUENCE + +1. **LOAD** personaProperties.md and principlesCrafting.md +2. **EXPLAIN** four-field system with clear examples +3. **DEVELOP** Role - define expertise domain and capabilities +4. **DEVELOP** Identity - establish personality and character +5. **DEVELOP** Communication Style - select/customize style preset +6. **DEVELOP** Principles - craft 5-7 principles following guidance +7. **OUTPUT** structured YAML block for agent.yaml +8. **DOCUMENT** to agent-plan.md +9. **PRESENT** completion menu + +## 9. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#9-present-menu-options) + +### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [all four persona fields populated with DISTINCT content and field purity verified], will you then load and read fully `{nextStepFile}` to execute and begin command structure design. + +--- + +# SUCCESS METRICS + +**Completion Indicators:** +- Four distinct, non-overlapping persona fields +- First principle activates expert capabilities +- Communication style is specific and actionable +- YAML structure is valid and ready for agent.yaml +- User confirms persona accurately reflects vision + +**Failure Indicators:** +- Role includes personality traits +- Identity includes job descriptions +- Communication includes expertise details +- Principles lack expert activator +- Fields overlap or repeat concepts +- User expresses confusion or disagreement diff --git a/src/modules/bmb/workflows/agent/steps-c/step-05-commands-menu.md b/src/modules/bmb/workflows/agent/steps-c/step-05-commands-menu.md new file mode 100644 index 00000000..c5793515 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-05-commands-menu.md @@ -0,0 +1,176 @@ +--- +name: 'step-04-commands-menu' +description: 'Build capabilities and command structure' + +# File References +nextStepFile: './step-06-activation.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +agentMenuPatterns: ../data/agent-menu-patterns.md + +# Example Menus (for reference) +simpleExample: ../data/reference/simple-examples/commit-poet.agent.yaml +expertExample: ../data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Transform discovered capabilities into structured menu commands following BMAD menu patterns, creating the agent's interaction interface. + +# MANDATORY EXECUTION RULES + +1. **MUST** load agent-menu-patterns.md before any conversation +2. **MUST** use menu patterns as structural templates +3. **MUST** keep final menu YAML under 100 lines +4. **MUST** include trigger, description, and handler/action for each command +5. **MUST NOT** add help or exit commands (auto-injected) +6. **MUST** document menu YAML in agent-plan before completion +7. **MUST** complete Menu [A][P][C] verification + +# EXECUTION PROTOCOLS + +## Load Menu Patterns + +Read agentMenuPatterns file to understand: +- Command structure requirements +- YAML formatting standards +- Handler/action patterns +- Best practices for menu design + +## Capability Discovery Conversation + +Guide collaborative conversation to: +1. Review capabilities from previous step +2. Identify which capabilities become commands +3. Group related capabilities +4. Define command scope and boundaries + +Ask targeted questions: +- "Which capabilities are primary commands vs secondary actions?" +- "Can related capabilities be grouped under single commands?" +- "What should each command accomplish?" +- "How should commands be triggered?" + +## Command Structure Development + +For each command, define: + +1. **Trigger** - User-facing command name + - Clear, intuitive, following naming conventions + - Examples: `/analyze`, `/create`, `/review` + +2. **Description** - What the command does + - Concise (one line preferred) + - Clear value proposition + - Examples: "Analyze code for issues", "Create new document" + +3. **Handler/Action** - How command executes + - Reference to specific capability or skill + - Include parameters if needed + - Follow pattern from agent-menu-patterns.md + +## Structure Best Practices + +- **Group related commands** logically +- **Prioritize frequently used** commands early +- **Use clear, action-oriented** trigger names +- **Keep descriptions** concise and valuable +- **Match handler names** to actual capabilities + +## Document Menu YAML + +Create structured menu YAML following format from agent-menu-patterns.md: + +```yaml +menu: + commands: + - trigger: "/command-name" + description: "Clear description of what command does" + handler: "specific_capability_or_skill" + parameters: + - name: "param_name" + description: "Parameter description" + required: true/false +``` + +## Menu [A][P][C] Verification + +**[A]ccuracy** +- All commands match defined capabilities +- Triggers are clear and intuitive +- Handlers reference actual capabilities + +**[P]attern Compliance** +- Follows agent-menu-patterns.md structure +- YAML formatting is correct +- No help/exit commands included + +**[C]ompleteness** +- All primary capabilities have commands +- Commands cover agent's core functions +- Menu is ready for next step + +# CONTEXT BOUNDARIES + +- **Focus on command structure**, not implementation details +- **Reference example menus** for patterns, not copying +- **Keep menu concise** - better fewer, clearer commands +- **User-facing perspective** - triggers should feel natural +- **Capability alignment** - every command maps to a capability + +# EXECUTION SEQUENCE + +1. Load agent-menu-patterns.md to understand structure +2. Review capabilities from agent-plan step 3 +3. Facilitate capability-to-command mapping conversation +4. Develop command structure for each capability +5. Define trigger, description, handler for each command +6. Verify no help/exit commands (auto-injected) +7. Document structured menu YAML to agent-plan +8. Complete Menu [A][P][C] verification +9. Confirm readiness for next step + +## 10. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#10-present-menu-options) + +### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [menu YAML documented in agent-plan and all commands have trigger/description/handler], will you then load and read fully `{nextStepFile}` to execute and begin activation planning. + +--- + +# SUCCESS METRICS + +โœ… Menu YAML documented in agent-plan +โœ… All commands have trigger, description, handler +โœ… Menu follows agent-menu-patterns.md structure +โœ… No help/exit commands included +โœ… Menu [A][P][C] verification passed +โœ… Ready for activation phase + +# FAILURE INDICATORS + +โŒ Menu YAML missing from agent-plan +โŒ Commands missing required elements (trigger/description/handler) +โŒ Menu doesn't follow pattern structure +โŒ Help/exit commands manually added +โŒ Menu [A][P][C] verification failed +โŒ Unclear command triggers or descriptions diff --git a/src/modules/bmb/workflows/agent/steps-c/step-06-activation.md b/src/modules/bmb/workflows/agent/steps-c/step-06-activation.md new file mode 100644 index 00000000..6d2bf0ec --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-06-activation.md @@ -0,0 +1,275 @@ +--- +name: 'step-05-activation' +description: 'Plan activation behavior and route to build' + +# File References +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +criticalActions: ../data/critical-actions.md + +# Build Step Routes (determined by agent type) +simpleBuild: './step-07a-build-simple.md' +expertBuild: './step-07b-build-expert.md' +moduleBuild: './step-07c-build-module.md' + +# Example critical_actions (for reference) +expertExample: ../data/reference/expert-examples/journal-keeper/journal-keeper.agent.yaml + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL +Define activation behavior through critical_actions and route to the appropriate build step based on agent complexity. + +# MANDATORY EXECUTION RULES + +1. **MUST Load Reference Documents** Before any discussion + - Read criticalActions.md to understand activation patterns + - Read agentPlan to access all accumulated metadata + - These are non-negotiable prerequisites + +2. **MUST Determine Route Before Activation Discussion** + - Check hasSidecar from plan metadata + - Determine destination build step FIRST + - Inform user of routing decision + +3. **MUST Document Activation Decision** + - Either define critical_actions array explicitly + - OR document deliberate omission with rationale + - No middle ground - commit to one path + +4. **MUST Follow Routing Logic Exactly** + ```yaml + # Route determination based on hasSidecar and module + hasSidecar: false โ†’ step-06-build-simple.md + hasSidecar: true + module: "stand-alone" โ†’ step-06-build-expert.md + hasSidecar: true + module: โ‰  "stand-alone" โ†’ step-06-build-module.md + ``` + +5. **NEVER Skip Documentation** + - Every decision about activation must be recorded + - Every routing choice must be justified + - Plan file must reflect final state + +# EXECUTION PROTOCOLS + +## Protocol 1: Reference Loading +Execute BEFORE engaging user: + +1. Load criticalActions.md +2. Load agentPlan-{agent_name}.md +3. Extract routing metadata: + - hasSidecar (boolean) + - module (string) + - agentType (if defined) +4. Determine destination build step + +## Protocol 2: Routing Disclosure +Inform user immediately of determined route: + +``` +"Based on your agent configuration: +- hasSidecar: {hasSidecar} +- module: {module} + +โ†’ Routing to: {destinationStep} + +Now let's plan your activation behavior..." +``` + +## Protocol 3: Activation Planning +Guide user through decision: + +1. **Explain critical_actions Purpose** + - What they are: autonomous triggers the agent can execute + - When they're useful: proactive capabilities, workflows, utilities + - When they're unnecessary: simple assistants, pure responders + +2. **Discuss Agent's Activation Needs** + - Does this agent need to run independently? + - Should it initiate actions without prompts? + - What workflows or capabilities should it trigger? + +3. **Decision Point** + - Define specific critical_actions if needed + - OR explicitly opt-out with rationale + +## Protocol 4: Documentation +Update agentPlan with activation metadata: + +```yaml +# Add to agent metadata +activation: + hasCriticalActions: true/false + rationale: "Explanation of why or why not" + criticalActions: [] # Only if hasCriticalActions: true +routing: + destinationBuild: "step-06-{X}.md" + hasSidecar: {boolean} + module: "{module}" +``` + +# CONTEXT BOUNDARIES + +## In Scope +- Planning activation behavior for the agent +- Defining critical_actions array +- Routing to appropriate build step +- Documenting activation decisions + +## Out of Scope +- Writing actual activation code (build step) +- Designing sidecar workflows (build step) +- Changing core agent metadata (locked after step 04) +- Implementing commands (build step) + +## Routing Boundaries +- Simple agents: No sidecar, straightforward activation +- Expert agents: Sidecar + stand-alone module +- Module agents: Sidecar + parent module integration + +# EXECUTION SEQUENCE + +## 1. Load Reference Documents +```bash +# Read these files FIRST +cat {criticalActions} +cat {agentPlan} +``` + +## 2. Discuss Activation Needs +Ask user: +- "Should your agent be able to take autonomous actions?" +- "Are there specific workflows it should trigger?" +- "Should it run as a background process or scheduled task?" +- "Or will it primarily respond to direct prompts?" + +## 3. Define critical_actions OR Explicitly Omit + +**If defining:** +- Reference criticalActions.md patterns +- List 3-7 specific actions +- Each action should be clear and scoped +- Document rationale for each + +**If omitting:** +- State clearly: "This agent will not have critical_actions" +- Explain why: "This agent is a responsive assistant that operates under direct user guidance" +- Document the rationale + +## 4. Route to Build Step + +Determine destination: + +```yaml +# Check plan metadata +hasSidecar: {value from step 04} +module: "{value from step 04}" + +# Route logic +if hasSidecar == false: + destination = simpleBuild +elif hasSidecar == true and module == "stand-alone": + destination = expertBuild +else: # hasSidecar == true and module != "stand-alone" + destination = moduleBuild +``` + +## 5. Document to Plan + +Update agentPlan with: + +```yaml +--- +activation: + hasCriticalActions: true + rationale: "Agent needs to autonomously trigger workflows for task automation" + criticalActions: + - name: "start-workflow" + description: "Initiate a predefined workflow for task execution" + - name: "schedule-task" + description: "Schedule tasks for future execution" + - name: "sync-data" + description: "Synchronize data with external systems" + +routing: + destinationBuild: "step-06-build-expert.md" + hasSidecar: true + module: "stand-alone" + rationale: "Agent requires sidecar workflows for autonomous operation" +--- +``` + +### 6. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {agentPlan}, update frontmatter, determine appropriate build step based on hasSidecar and module values, then only then load, read entire file, then execute {simpleBuild} or {expertBuild} or {moduleBuild} as determined +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +This is the **ROUTING HUB** of agent creation. ONLY WHEN [C continue option] is selected and [routing decision determined with activation needs documented], will you then determine the appropriate build step based on hasSidecar/module values and load and read fully that build step file to execute. + +Routing logic: +- hasSidecar: false โ†’ step-06-build-simple.md +- hasSidecar: true + module: "stand-alone" โ†’ step-06-build-expert.md +- hasSidecar: true + module: โ‰  "stand-alone" โ†’ step-06-build-module.md + +You cannot proceed to build without completing routing. + +--- + +# SUCCESS METRICS + +โœ… **COMPLETION CRITERIA:** +- [ ] criticalActions.md loaded and understood +- [ ] agentPlan loaded with all prior metadata +- [ ] Routing decision determined and communicated +- [ ] Activation needs discussed with user +- [ ] critical_actions defined OR explicitly omitted with rationale +- [ ] Plan updated with activation and routing metadata +- [ ] User confirms routing to appropriate build step + +โœ… **SUCCESS INDICATORS:** +- Clear activation decision documented +- Route to build step is unambiguous +- User understands why they're going to {simple|expert|module} build +- Plan file reflects complete activation configuration + +โŒ **FAILURE MODES:** +- Attempting to define critical_actions without reading reference +- Routing decision not documented in plan +- User doesn't understand which build step comes next +- Ambiguous activation configuration (neither defined nor omitted) +- Skipping routing discussion entirely + +โš ๏ธ **RECOVERY PATHS:** +If activation planning goes wrong: + +1. **Can't decide on activation?** + - Default: Omit critical_actions + - Route to simpleBuild + - Can add later via edit-agent workflow + +2. **Uncertain about routing?** + - Check hasSidecar value + - Check module value + - Apply routing logic strictly + +3. **User wants to change route?** + - Adjust hasSidecar or module values + - Re-run routing logic + - Update plan accordingly diff --git a/src/modules/bmb/workflows/agent/steps-c/step-07a-build-simple.md b/src/modules/bmb/workflows/agent/steps-c/step-07a-build-simple.md new file mode 100644 index 00000000..812fa40b --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-07a-build-simple.md @@ -0,0 +1,185 @@ +--- +name: 'step-06-build-simple' +description: 'Generate Simple agent YAML from plan' + +# File References +nextStepFile: './step-08a-plan-traceability.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +agentBuildOutput: '{bmb_creations_output_folder}/{agent-name}.agent.yaml' + +# Template and Architecture +simpleTemplate: ../templates/simple-agent.template.md +simpleArch: ../data/simple-agent-architecture.md +agentCompilation: ../data/agent-compilation.md + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Assemble the agent plan content into a Simple agent YAML configuration using the template, producing a complete agent definition ready for validation. + +## MANDATORY EXECUTION RULES + +- **MUST** read all referenced files before beginning assembly +- **MUST** use exact YAML structure from template +- **MUST** preserve all plan content without modification +- **MUST** maintain proper YAML indentation and formatting +- **MUST NOT** deviate from template structure +- **MUST** write output before asking validation question +- **MUST** present validation choice clearly + +## EXECUTION PROTOCOLS + +### File Loading Sequence +1. Read `simpleTemplate` - provides the YAML structure +2. Read `simpleArch` - defines Simple agent architecture rules +3. Read `agentCompilation` - provides assembly guidelines +4. Read `agentPlan` - contains structured content from steps 2-5 + +### YAML Assembly Process +1. Parse template structure +2. Extract content sections from agentPlan YAML +3. Map plan content to template fields +4. Validate YAML syntax before writing +5. Write complete agent YAML to output path + +## CONTEXT BOUNDARIES + +**INCLUDE:** +- Template structure exactly as provided +- All agent metadata from agentPlan +- Persona, commands, and rules from plan +- Configuration options specified + +**EXCLUDE:** +- Any content not in agentPlan +- Sidecar file references (Simple agents don't use them) +- Template placeholders (replace with actual content) +- Comments or notes in final YAML + +## EXECUTION SEQUENCE + +### 1. Load Template and Architecture Files + +Read the following files in order: +- `simpleTemplate` - YAML structure template +- `simpleArch` - Simple agent architecture definition +- `agentCompilation` - Assembly instructions + +**Verify:** All files loaded successfully. + +### 2. Load Agent Plan + +Read `agentPlan` which contains structured YAML from steps 2-5: +- Step 2: Discovery findings +- Step 3: Persona development +- Step 4: Command structure +- Step 5: Agent naming + +**Verify:** Plan contains all required sections. + +### 3. Assemble YAML Using Template + +Execute the following assembly process: + +1. **Parse Template Structure** + - Identify all YAML fields + - Note required vs optional fields + - Map field types and formats + +2. **Extract Plan Content** + - Read agent metadata + - Extract persona definition + - Retrieve command specifications + - Gather rules and constraints + +3. **Map Content to Template** + - Replace template placeholders with plan content + - Maintain exact YAML structure + - Preserve indentation and formatting + - Validate field types and values + +4. **Validate YAML Syntax** + - Check proper indentation + - Verify quote usage + - Ensure list formatting + - Confirm no syntax errors + +**Verify:** YAML is valid, complete, and follows template structure. + +### 4. Write Agent Build Output + +Write the assembled YAML to `agentBuildOutput`: +- Use exact output path from variable +- Include all content without truncation +- Maintain YAML formatting +- Confirm write operation succeeded + +**Verify:** File written successfully and contains complete YAML. + +### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Write agent YAML to {agentBuildOutput}/{agent-name}.agent.yaml (or appropriate output path), update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +### 6. Route Based on User Choice + +**If user chooses "one-at-a-time":** +- Proceed to `nextStepFile` (step-07a-plan-traceability.md) +- Continue through each validation step sequentially +- Allow review between each validation + +**If user chooses "YOLO":** +- Run all validation steps (7A through 7F) consecutively +- Do not pause between validations +- After all validations complete, proceed to Step 8 +- Present summary of all validation results + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [complete YAML generated and written to output], will you then load and read fully `{nextStepFile}` to execute and begin validation. + +## SUCCESS METRICS + +**SUCCESS looks like:** +- Agent YAML file exists at specified output path +- YAML is syntactically valid and well-formed +- All template fields populated with plan content +- Structure matches Simple agent architecture +- User has selected validation approach +- Clear next step identified + +**FAILURE looks like:** +- Template or architecture files not found +- Agent plan missing required sections +- YAML syntax errors in output +- Content not properly mapped to template +- File write operation fails +- User selection unclear + +## TRANSITION CRITERIA + +**Ready for Step 7A when:** +- Simple agent YAML successfully created +- User chooses "one-at-a-time" validation + +**Ready for Step 8 when:** +- Simple agent YAML successfully created +- User chooses "YOLO" validation +- All validations (7A-7F) completed consecutively diff --git a/src/modules/bmb/workflows/agent/steps-c/step-07b-build-expert.md b/src/modules/bmb/workflows/agent/steps-c/step-07b-build-expert.md new file mode 100644 index 00000000..fe8df2e0 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-07b-build-expert.md @@ -0,0 +1,201 @@ +--- +name: 'step-06-build-expert' +description: 'Generate Expert agent YAML with sidecar from plan' + +# File References +nextStepFile: './step-08a-plan-traceability.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +agentBuildOutput: '{bmb_creations_output_folder}/{agent-name}/' +agentYamlOutput: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Template and Architecture +expertTemplate: ../templates/expert-agent-template/expert-agent.template.md +expertArch: ../data/expert-agent-architecture.md +agentCompilation: ../data/agent-compilation.md +criticalActions: ../data/critical-actions.md + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Assemble the agent plan content into a complete Expert agent YAML file with sidecar folder structure. Expert agents require persistent memory storage for specialized operations, accessed via `{project-root}/_bmad/_memory/{sidecar-folder}/` paths in critical_actions. + +## MANDATORY EXECUTION RULES + +1. **EXPERT AGENT = SIDECAR REQUIRED**: Every Expert agent MUST have a sidecar folder created under `_bmad/_memory/` +2. **CRITICAL_ACTIONS FORMAT**: All critical_actions MUST use `{project-root}/_bmad/_memory/{sidecar-folder}/` for file operations +3. **TEMPLATE COMPLIANCE**: Follow expert-agent-template.md structure exactly +4. **YAML VALIDATION**: Ensure valid YAML syntax with proper indentation (2-space) +5. **EXISTING CHECK**: If agentYamlOutput exists, ask user before overwriting +6. **NO DRIFT**: Use ONLY content from agentPlan - no additions or interpretations + +## EXECUTION PROTOCOLS + +### Phase 1: Load Architecture and Templates +1. Read `expertTemplate` - defines YAML structure for Expert agents +2. Read `expertArch` - architecture requirements for Expert-level agents +3. Read `agentCompilation` - assembly rules for YAML generation +4. Read `criticalActions` - validation requirements for critical_actions + +### Phase 2: Load Agent Plan +1. Read `agentPlan` containing all collected content from Steps 1-5 +2. Verify plan contains: + - Agent type: "expert" + - Sidecar folder name + - Persona content + - Commands structure + - Critical actions (if applicable) + +### Phase 3: Assemble Expert YAML +Using expertTemplate as structure: + +```yaml +name: '{agent-name}' +description: '{short-description}' +type: 'expert' +version: '1.0.0' + +author: + name: '{author}' + created: '{date}' + +persona: | + {multi-line persona content from plan} + +system-context: | + {expanded context from plan} + +capabilities: + - {capability from plan} + - {capability from plan} + # ... all capabilities + +critical-actions: + - name: '{action-name}' + description: '{what it does}' + invocation: '{when/how to invoke}' + implementation: | + {multi-line implementation} + output: '{expected-output}' + sidecar-folder: '{sidecar-folder-name}' + sidecar-files: + - '{project-root}/_bmad/_memory/{sidecar-folder}/{file1}.md' + - '{project-root}/_bmad/_memory/{sidecar-folder}/{file2}.md' + # ... all critical actions referencing sidecar structure + +commands: + - name: '{command-name}' + description: '{what command does}' + steps: + - {step 1} + - {step 2} + # ... all commands from plan + +configuration: + temperature: {temperature} + max-tokens: {max-tokens} + response-format: {format} + # ... other configuration from plan + +metadata: + sidecar-folder: '{sidecar-folder-name}' + sidecar-path: '{project-root}/_bmad/_memory/{sidecar-folder}/' + agent-type: 'expert' + memory-type: 'persistent' +``` + +### Phase 4: Create Sidecar Structure + +1. **Create Sidecar Directory**: + - Path: `{project-root}/_bmad/_memory/{sidecar-folder}/` + - Use `mkdir -p` to create full path + +2. **Create Starter Files** (if specified in critical_actions): + ```bash + touch _bmad/_memory/{sidecar-folder}/{file1}.md + touch _bmad/_memory/{sidecar-folder}/{file2}.md + ``` + +3. **Add README to Sidecar**: + ```markdown + # {sidecar-folder} Memory + + This folder stores persistent memory for the **{agent-name}** Expert agent. + + ## Purpose + {purpose from critical_actions} + + ## Files + - {file1}.md: {description} + - {file2}.md: {description} + + ## Access Pattern + Agent accesses these files via: `{project-root}/_bmad/_memory/{sidecar-folder}/{filename}.md` + ``` + +### Phase 5: Write Agent YAML + +1. Create `agentBuildOutput` directory: `mkdir -p {agentBuildOutput}` +2. Write YAML to `agentYamlOutput` +3. Confirm write success +4. Display file location to user + +### Phase 6: Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Write agent YAML to {agentBuildOutput}/{agent-name}/{agent-name}.agent.yaml (or appropriate output path), update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#phase-6-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CONTEXT BOUNDARIES + +- **USE ONLY**: Content from agentPlan, expertTemplate, expertArch, agentCompilation, criticalActions +- **DO NOT ADD**: New capabilities, commands, or actions not in plan +- **DO NOT INTERPRET**: Use exact language from plan +- **DO NOT SKIP**: Any field in expertTemplate structure +- **CRITICAL**: Expert agents MUST have sidecar-folder metadata + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [complete YAML generated and written to output], will you then load and read fully `{nextStepFile}` to execute and begin validation. + +This step produces TWO artifacts: +1. **Agent YAML**: Complete expert agent definition at `{agentYamlOutput}` +2. **Sidecar Structure**: Folder and files at `{project-root}/_bmad/_memory/{sidecar-folder}/` + +Both must exist before proceeding to validation. + +## SUCCESS METRICS + +โœ… Agent YAML file created at expected location +โœ… Valid YAML syntax (no parse errors) +โœ… All template fields populated +โœ… Sidecar folder created under `_bmad/_memory/` +โœ… Sidecar folder contains starter files from critical_actions +โœ… critical_actions reference `{project-root}/_bmad/_memory/{sidecar-folder}/` paths +โœ… metadata.sidecar-folder populated +โœ… metadata.agent-type = "expert" +โœ… User validation choice received (one-at-a-time or YOLO) + +## FAILURE MODES + +โŒ Missing required template fields +โŒ Invalid YAML syntax +โŒ Sidecar folder creation failed +โŒ critical_actions missing sidecar-folder references +โŒ agentPlan missing expert-specific content (sidecar-folder name) +โŒ File write permission errors diff --git a/src/modules/bmb/workflows/agent/steps-c/step-07c-build-module.md b/src/modules/bmb/workflows/agent/steps-c/step-07c-build-module.md new file mode 100644 index 00000000..baab0380 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-07c-build-module.md @@ -0,0 +1,258 @@ +--- +name: 'step-06-build-module' +description: 'Generate Module agent YAML from plan' + +# File References +nextStepFile: './step-08a-plan-traceability.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +agentBuildOutput: '{bmb_creations_output_folder}/{agent-name}/' +agentYamlOutput: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Template and Architecture (use expert as baseline) +expertTemplate: ../templates/expert-agent-template/expert-agent.template.md +expertArch: ../data/expert-agent-architecture.md +agentCompilation: ../data/agent-compilation.md +criticalActions: ../data/critical-actions.md + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL +Assemble the Module agent YAML file from the approved plan, using the expert agent template as the baseline architecture and adding module-specific workflow integration paths and sidecar configuration. + +# MANDATORY EXECUTION RULES + +1. **TEMPLATE BASELINE**: Module agents MUST use the expert agent template as their structural foundation - do not create custom templates + +2. **PLAN ADHERENCE**: Extract content from agentPlan exactly as written - no enhancement, interpretation, or extrapolation + +3. **MODULE SPECIFICITY**: Module agents require workflow integration paths and may need sidecar configuration for multi-workflow modules + +4. **OUTPUT VALIDATION**: YAML must be valid, complete, and ready for immediate deployment + +5. **LANGUAGE PRESERVATION**: Maintain any language choice configured in the plan throughout the YAML + +# EXECUTION PROTOCOLS + +## PREPARATION PHASE + +### 1. Load Expert Template Baseline +``` +Read: expertTemplate +Read: expertArch +Read: agentCompilation +Read: criticalActions +``` + +**Purpose**: Understand the expert agent structure that serves as the Module agent baseline + +**Validation**: Confirm expert template has all required sections (name, description, persona, instructions, tools, skills, etc.) + +### 2. Load Agent Plan +``` +Read: agentPlan (using dynamic path) +``` + +**Validation**: Plan contains all mandatory sections: +- Agent identity (name, description) +- Persona profile +- Command structure +- Critical actions +- Workflow integrations (module-specific) +- Language choice (if configured) + +### 3. Verify Output Directory +``` +Bash: mkdir -p {agentBuildOutput} +``` + +**Purpose**: Ensure output directory exists for the module agent + +## ASSEMBLY PHASE + +### 4. Assemble Module Agent YAML + +**FROM PLAN TO YAML MAPPING:** + +| Plan Section | YAML Field | Notes | +|--------------|------------|-------| +| Agent Name | `name` | Plan โ†’ YAML | +| Description | `description` | Plan โ†’ YAML | +| Persona | `persona` | Plan โ†’ YAML | +| Instructions | `instructions` | Plan โ†’ YAML (verbatim) | +| Commands | `commands` | Plan โ†’ YAML (with handlers) | +| Critical Actions | `criticalActions` | Plan โ†’ YAML (mandatory) | +| Workflow Paths | `skills` | Module-specific | +| Sidecar Need | `sidecar` | If multi-workflow | + +**MODULE-SPECIAL ENHANCEMENTS:** + +```yaml +# Module agents include workflow integration +skills: + - workflow: "{project-root}/_bmad/{module-id}/workflows/{workflow-name}/workflow.md" + description: "From plan workflow list" + - workflow: "{project-root}/_bmad/{module-id}/workflows/{another-workflow}/workflow.md" + description: "From plan workflow list" + +# Optional: Sidecar for complex modules +sidecar: + enabled: true + workflows: + - ref: "primary-workflow" + type: "primary" + - ref: "secondary-workflow" + type: "support" +``` + +**CRITICAL ACTIONS MAPPING:** +``` +For each critical action in plan: +1. Identify matching command in YAML +2. Add `critical: true` flag +3. Ensure handler references agent function +``` + +### 5. Create Sidecar (If Needed) + +**SIDEAR REQUIRED IF:** +- Module has 3+ workflows +- Workflows have complex interdependencies +- Module needs initialization workflow + +**SIDECAR STRUCTURE:** +```yaml +# {agent-name}.sidecar.yaml +sidecar: + module: "{module-id}" + initialization: + workflow: "workflow-init" + required: true + workflows: + - name: "workflow-name" + path: "workflows/{workflow-name}/workflow.md" + type: "primary|support|utility" + dependencies: [] + agent: + path: "{agent-name}.agent.yaml" +``` + +**IF SIDEAR NOT NEEDED**: Skip this step + +### 6. Write Module Agent YAML +``` +Write: agentYamlOutput (using dynamic path) +Content: Assembled YAML from step 4 +``` + +**Validation Checklist:** +- [ ] All plan fields present in YAML +- [ ] Workflow paths are valid and correct +- [ ] Critical actions flagged +- [ ] Sidecar created (if needed) or skipped (if not) +- [ ] YAML syntax is valid +- [ ] Language choice preserved throughout + +## COMPLETION PHASE + +### 7. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Write agent YAML to {agentBuildOutput}/{agent-name}/{agent-name}.agent.yaml (or appropriate output path), update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +**USER RESPONSE HANDLING:** +- **Option 1**: Proceed to step-07a-plan-traceability.md with sequential mode +- **Option 2**: Proceed to step-07a-plan-traceability.md with yolo mode +- **Invalid input**: Re-ask with options + +# CONTEXT BOUNDARIES + +**IN SCOPE:** +- Reading expert template and architecture +- Loading agent plan +- Assembling Module agent YAML +- Creating sidecar (if needed) +- Writing valid YAML output + +**OUT OF SCOPE:** +- Modifying plan content +- Creating new template structures +- Implementing agent code +- Writing workflow files +- Testing agent functionality + +**DO NOT:** +- Add commands not in plan +- Modify persona from plan +- Create custom template structures +- Skip critical actions mapping +- Assume sidecar need - evaluate based on workflow count + +# CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [complete YAML generated and written to output], will you then load and read fully `{nextStepFile}` to execute and begin validation. + +**THIS STEP IS COMPLETE WHEN:** +1. Module agent YAML file exists at agentYamlOutput path +2. YAML contains all plan content correctly mapped +3. Module-specific workflow paths are configured +4. Sidecar is created (if needed) or correctly skipped (if not) +5. User has chosen review mode (one-at-a-time or YOLO) +6. Ready to proceed to step-07a-plan-traceability.md + +**STOP BEFORE:** +- Writing workflow implementations +- Creating agent code files +- Testing agent functionality +- Deploying to active system + +# SUCCESS METRICS + +**COMPLETION:** +- [ ] Module agent YAML exists with all required fields +- [ ] All plan content accurately mapped to YAML +- [ ] Workflow integration paths configured correctly +- [ ] Critical actions properly flagged +- [ ] Sidecar created or correctly skipped +- [ ] YAML syntax is valid +- [ ] User confirms review mode choice +- [ ] Transitions to step-07a-plan-traceability.md + +**VALIDATION:** +- Plan-to-YAML mapping: 100% accuracy +- Workflow paths: All valid and correct +- Critical actions: All present and flagged +- Sidecar decision: Correctly evaluated +- Language choice: Preserved throughout + +# FAILURE MODES + +**IF PLAN MISSING CONTENT:** +โ†’ Return to step-02-discover.md to complete plan + +**IF EXPERT TEMPLATE MISSING:** +โ†’ Raise error - template is mandatory baseline + +**IF YAML SYNTAX ERROR:** +โ†’ Fix and retry write operation + +**IF WORKFLOW PATHS INVALID:** +โ†’ Flag for review in traceability step + +**IF USER ASKS FOR MODIFICATIONS:** +โ†’ Return to appropriate planning step (03-persona, 04-commands, or 05-name) diff --git a/src/modules/bmb/workflows/agent/steps-c/step-08a-plan-traceability.md b/src/modules/bmb/workflows/agent/steps-c/step-08a-plan-traceability.md new file mode 100644 index 00000000..bc1989b7 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-08a-plan-traceability.md @@ -0,0 +1,203 @@ +--- +name: 'step-07a-plan-traceability' +description: 'Verify build matches original plan' + +# File References +nextStepFile: './step-08b-metadata-validation.md' +agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL +Verify that the built agent YAML file contains all elements specified in the original agent plan. This step ensures plan traceability - confirming that what we planned is what we actually built. + +# MANDATORY EXECUTION RULES +- MUST load both agentPlan and builtYaml files before comparison +- MUST compare ALL planned elements against built implementation +- MUST report specific missing items, not just "something is missing" +- MUST offer fix option before proceeding to next validation +- MUST handle missing files gracefully (report clearly, don't crash) +- MUST respect YOLO mode behavior (part of combined validation report) + +# EXECUTION PROTOCOLS + +## File Loading Protocol +1. Load agentPlan from `{bmb_creations_output_folder}/agent-plan-{agent_name}.md` +2. Load builtYaml from `{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml` +3. If either file is missing, report the specific missing file and stop comparison +4. Use Read tool to access both files with absolute paths + +## Comparison Protocol +Compare the following categories systematically: + +### 1. Metadata Comparison +- Agent name +- Description +- Version +- Author/creator information +- Location/module path +- Language settings (if specified in plan) + +### 2. Persona Field Comparison +For each field in persona section: +- Check presence in built YAML +- Verify field content matches planned intent +- Note any significant deviations (minor wording differences ok) + +### 3. Commands Comparison +- Verify all planned commands are present +- Check command names match +- Verify command descriptions are present +- Confirm critical actions are referenced + +### 4. Critical Actions Comparison +- Verify all planned critical_actions are present +- Check action names match exactly +- Verify action descriptions are present +- Confirm each action has required fields + +### 5. Additional Elements +- Dependencies (if planned) +- Configuration (if planned) +- Installation instructions (if planned) + +## Reporting Protocol +Present findings in clear, structured format: + +``` +PLAN TRACEABILITY REPORT +======================== + +Agent: {agent_name} +Plan File: {path to agent plan} +Build File: {path to built YAML} + +COMPARISON RESULTS: +------------------- + +โœ… Metadata: All present / Missing: {list} +โœ… Persona Fields: All present / Missing: {list} +โœ… Commands: All present / Missing: {list} +โœ… Critical Actions: All present / Missing: {list} +โœ… Other Elements: All present / Missing: {list} + +OVERALL STATUS: [PASS / FAIL] + +``` + +If ANY elements are missing: +- List each missing element with category +- Provide specific location reference (what was planned) +- Ask if user wants to fix items or continue anyway + +## Menu Protocol + +### 8. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [F] Fix Findings [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF F: Apply auto-fixes to {builtYaml} for identified missing elements, then redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Proceed to next validation step, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#8-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +If YOLO mode: +- Include this report in combined validation report +- Auto-select [C] Continue if all elements present +- Auto-select [F] Fix if missing critical elements (name, commands) +- Flag non-critical missing items in summary + +# CONTEXT BOUNDARIES +- ONLY compare plan vs build - do NOT evaluate quality or correctness +- Do NOT suggest improvements or changes beyond planned elements +- Do NOT re-open persona/commands discovery - this is verification only +- Fix option should return to step-06-build, not earlier steps +- If plan file is ambiguous, note ambiguity but use reasonable interpretation + +# SEQUENCE + +## 1. Load Required Files +```yaml +action: read +target: + - agentPlan + - builtYaml +on_failure: report which file is missing and suggest resolution +``` + +## 2. Perform Structured Comparison +```yaml +action: compare +categories: + - metadata + - persona_fields + - commands + - critical_actions + - other_elements +method: systematic category-by-category check +``` + +## 3. Generate Comparison Report +```yaml +action: report +format: structured pass/fail with specific missing items +output: console display + optional save to validation log +``` + +## 4. Present Menu Options +```yaml +action: menu +options: + - F: Fix missing items + - C: Continue to metadata validation + - V: View detailed comparison (optional) +default: C if pass, F if fail +``` + +## 5. Handle User Choice +- **[F] Fix Findings**: Apply auto-fixes to {builtYaml} for identified missing elements, then re-present menu +- **[C] Continue**: Proceed to step-07b-metadata-validation +- **[A] Advanced Elicitation**: Execute advanced elicitation workflow, then re-present menu +- **[P] Party Mode**: Execute party mode workflow, then re-present menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation complete with any findings addressed], will you then load and read fully `{nextStepFile}` to execute and begin [metadata validation]. + +# SUCCESS/FAILURE METRICS + +## Success Criteria +- All planned elements present in built YAML: **COMPLETE PASS** +- Minor deviations (wording, formatting) but all core elements present: **PASS** +- Missing elements identified and user chooses to continue: **PASS WITH NOTED DEFICIENCIES** + +## Failure Criteria +- Unable to load plan or build file: **BLOCKING FAILURE** +- Critical elements missing (name, commands, or critical_actions): **FAIL** +- Comparison cannot be completed due to file corruption: **BLOCKING FAILURE** + +## Next Step Triggers +- **PASS โ†’ step-07b-metadata-validation** +- **PASS WITH DEFICIENCIES โ†’ step-07b-metadata-validation** (user choice) +- **FAIL โ†’ step-06-build** (with specific fix instructions) +- **BLOCKING FAILURE โ†’ STOP** (resolve file access issues first) + +## YOLO Mode Behavior +- Auto-fix missing critical elements by returning to build step +- Log non-critical missing items for review but continue validation +- Include traceability report in final YOLO summary +- Do NOT stop for user confirmation unless plan file is completely missing diff --git a/src/modules/bmb/workflows/agent/steps-c/step-08b-metadata-validation.md b/src/modules/bmb/workflows/agent/steps-c/step-08b-metadata-validation.md new file mode 100644 index 00000000..a52fc41b --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-08b-metadata-validation.md @@ -0,0 +1,130 @@ +--- +name: 'step-07b-metadata-validation' +description: 'Validate agent metadata properties' + +# File References +nextStepFile: './step-08c-persona-validation.md' +agentMetadata: ../data/agent-metadata.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Validate that the agent's metadata properties (name, description, version, tags, category, etc.) are properly formatted, complete, and follow BMAD standards. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation checks** - All metadata fields must be verified +- **ALWAYS load both reference documents** - agentMetadata.md AND the builtYaml +- **NEVER modify files without user approval** - Report findings first, await menu selection +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** This is a validation step, not an editing step + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the metadata validation reference from `{agentMetadata}` +2. Read the built agent YAML from `{builtYaml}` +3. Extract the metadata section from the builtYaml +4. Compare actual metadata against validation rules + +### Protocol 2: Validation Checks +Perform these checks systematically: + +1. **Required Fields Existence** + - [ ] name: Present and non-empty + - [ ] description: Present and non-empty + - [ ] category: Present and matches valid category + - [ ] tags: Present as array, not empty + +2. **Format Validation** + - [ ] name: Uses kebab-case, no spaces + - [ ] description: 50-200 characters (unless intentionally brief) + - [ ] tags: Array of lowercase strings with hyphens + - [ ] category: Matches one of the allowed categories + +3. **Content Quality** + - [ ] description: Clear and concise, explains what the agent does + - [ ] tags: Relevant to agent's purpose (3-7 tags recommended) + - [ ] category: Most appropriate classification + +4. **Standards Compliance** + - [ ] No prohibited characters in fields + - [ ] No redundant or conflicting information + - [ ] Consistent formatting with other agents + +### Protocol 3: Report Findings +Organize your report into three sections: + +**PASSING CHECKS** (List what passed) +``` +โœ“ Required fields present +โœ“ Name follows kebab-case convention +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Description is brief (45 chars, recommended 50-200) +โš  Only 2 tags provided, 3-7 recommended +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— Category "custom-type" not in allowed list +``` + +### Protocol 4: Menu System + +#### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [F] Fix Findings [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF F: Apply auto-fixes to {builtYaml} for identified issues, then redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Proceed to next validation step, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CONTEXT BOUNDARIES + +**IN SCOPE:** +- Metadata section of agent.yaml (name, description, version, tags, category, author, license, etc.) +- Referencing the agentMetadata.md validation rules +- Comparing against BMAD standards + +**OUT OF SCOPE:** +- Persona fields (handled in step-07c) +- Menu items (handled in step-07d) +- System architecture (handled in step-07e) +- Capability implementation (handled in step-07f) + +**DO NOT:** +- Validate persona properties in this step +- Suggest major feature additions +- Question the agent's core purpose +- Modify fields beyond metadata + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation complete with any findings addressed], will you then load and read fully `{nextStepFile}` to execute and begin [persona validation]. + +## SUCCESS METRICS + +โœ“ **Complete Success:** All checks pass, no failures, warnings are optional +โœ“ **Partial Success:** Failures fixed via [F] option, warnings acknowledged +โœ“ **Failure:** Blocking failures remain when user selects [C] + +**CRITICAL:** Never proceed to next step if blocking failures exist and user hasn't acknowledged them. diff --git a/src/modules/bmb/workflows/agent/steps-c/step-08c-persona-validation.md b/src/modules/bmb/workflows/agent/steps-c/step-08c-persona-validation.md new file mode 100644 index 00000000..7b21c4f1 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-08c-persona-validation.md @@ -0,0 +1,161 @@ +--- +name: 'step-07c-persona-validation' +description: 'Validate persona fields and principles' + +# File References +nextStepFile: './step-08d-menu-validation.md' +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Validate that the agent's persona (role, tone, expertise, principles, constraints) is well-defined, consistent, and aligned with its purpose. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation checks** - All persona fields must be verified +- **ALWAYS load both reference documents** - personaProperties.md AND principlesCrafting.md +- **NEVER modify files without user approval** - Report findings first, await menu selection +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** This is a validation step, not an editing step + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the persona validation reference from `{personaProperties}` +2. Read the principles crafting guide from `{principlesCrafting}` +3. Read the built agent YAML from `{builtYaml}` +4. Extract the persona section from the builtYaml +5. Compare actual persona against validation rules + +### Protocol 2: Validation Checks +Perform these checks systematically: + +1. **Required Fields Existence** + - [ ] role: Present, clear, and specific + - [ ] tone: Present and appropriate to role + - [ ] expertise: Present and relevant to agent's purpose + - [ ] principles: Present as array, not empty (if applicable) + - [ ] constraints: Present as array, not empty (if applicable) + +2. **Content Quality - Role** + - [ ] Role is specific (not generic like "assistant") + - [ ] Role aligns with agent's purpose and menu items + - [ ] Role is achievable within LLM capabilities + - [ ] Role scope is appropriate (not too broad/narrow) + +3. **Content Quality - Tone** + - [ ] Tone is clearly defined (professional, friendly, authoritative, etc.) + - [ ] Tone matches the role and target users + - [ ] Tone is consistent throughout the definition + - [ ] Tone examples or guidance provided if nuanced + +4. **Content Quality - Expertise** + - [ ] Expertise areas are relevant to role + - [ ] Expertise claims are realistic for LLM + - [ ] Expertise domains are specific (not just "knowledgeable") + - [ ] Expertise supports the menu capabilities + +5. **Content Quality - Principles** + - [ ] Principles are actionable (not vague platitudes) + - [ ] Principles guide behavior and decisions + - [ ] Principles are consistent with role + - [ ] 3-7 principles recommended (not overwhelming) + - [ ] Each principle is clear and specific + +6. **Content Quality - Constraints** + - [ ] Constraints define boundaries clearly + - [ ] Constraints are enforceable (measurable/observable) + - [ ] Constraints prevent undesirable behaviors + - [ ] Constraints don't contradict principles + +7. **Consistency Checks** + - [ ] Role, tone, expertise, principles all align + - [ ] No contradictions between principles and constraints + - [ ] Persona supports the menu items defined + - [ ] Language and terminology consistent + +### Protocol 3: Report Findings +Organize your report into three sections: + +**PASSING CHECKS** (List what passed) +``` +โœ“ Role is specific and well-defined +โœ“ Tone clearly articulated and appropriate +โœ“ Expertise aligns with agent purpose +โœ“ Principles are actionable and clear +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Only 2 principles provided, 3-7 recommended for richer guidance +โš  No constraints defined - consider adding boundaries +โš  Expertise areas are broad, could be more specific +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— Role is generic ("assistant") - needs specificity +โœ— Tone undefined - creates inconsistent behavior +โœ— Principles are vague ("be helpful" - not actionable) +โœ— Contradiction: Principle says "be creative", constraint says "follow strict rules" +``` + +### Protocol 4: Menu System + +#### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [F] Fix Findings [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF F: Apply auto-fixes to {builtYaml} for identified issues, then redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Proceed to next validation step, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CONTEXT BOUNDARIES + +**IN SCOPE:** +- Persona section of agent.yaml (role, tone, expertise, principles, constraints) +- Referencing personaProperties.md and principlesCrafting.md +- Evaluating persona clarity, specificity, and consistency +- Checking alignment between persona elements + +**OUT OF SCOPE:** +- Metadata fields (handled in step-07b) +- Menu items (handled in step-07d) +- System architecture (handled in step-07e) +- Technical implementation details + +**DO NOT:** +- Validate metadata properties in this step +- Question the agent's core purpose (that's for earlier steps) +- Suggest additional menu items +- Modify fields beyond persona + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation complete with any findings addressed], will you then load and read fully `{nextStepFile}` to execute and begin [menu validation]. + +## SUCCESS METRICS + +โœ“ **Complete Success:** All checks pass, persona is well-defined and consistent +โœ“ **Partial Success:** Failures fixed via [F] option, warnings acknowledged +โœ“ **Failure:** Blocking failures remain when user selects [C] + +**CRITICAL:** A weak or generic persona is a blocking issue that should be fixed before proceeding. diff --git a/src/modules/bmb/workflows/agent/steps-c/step-08d-menu-validation.md b/src/modules/bmb/workflows/agent/steps-c/step-08d-menu-validation.md new file mode 100644 index 00000000..0284cea9 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-08d-menu-validation.md @@ -0,0 +1,175 @@ +--- +name: 'step-07d-menu-validation' +description: 'Validate menu items and patterns' + +# File References +nextStepFile: './step-08e-structure-validation.md' +agentMenuPatterns: ../data/agent-menu-patterns.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Validate that the agent's menu (commands/tools) follows BMAD patterns, is well-structured, properly documented, and aligns with the agent's persona and purpose. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation checks** - All menu items must be verified +- **ALWAYS load the reference document** - agentMenuPatterns.md +- **NEVER modify files without user approval** - Report findings first, await menu selection +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** This is a validation step, not an editing step + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the menu patterns reference from `{agentMenuPatterns}` +2. Read the built agent YAML from `{builtYaml}` +3. Extract the menu/commands section from the builtYaml +4. Compare actual menu against validation rules + +### Protocol 2: Validation Checks +Perform these checks systematically: + +1. **Menu Structure** + - [ ] Menu section exists and is properly formatted + - [ ] At least one menu item defined (unless intentionally tool-less) + - [ ] Menu items follow proper YAML structure + - [ ] Each item has required fields (name, description, pattern) + +2. **Menu Item Requirements** + For each menu item: + - [ ] name: Present, unique, uses kebab-case + - [ ] description: Clear and concise + - [ ] pattern: Valid regex pattern or tool reference + - [ ] scope: Appropriate scope defined (if applicable) + +3. **Pattern Quality** + - [ ] Patterns are valid and testable + - [ ] Patterns are specific enough to match intended inputs + - [ ] Patterns are not overly restrictive + - [ ] Patterns use appropriate regex syntax + +4. **Description Quality** + - [ ] Each item has clear description + - [ ] Descriptions explain what the item does + - [ ] Descriptions are consistent in style + - [ ] Descriptions help users understand when to use + +5. **Alignment Checks** + - [ ] Menu items align with agent's role/purpose + - [ ] Menu items are supported by agent's expertise + - [ ] Menu items fit within agent's constraints + - [ ] Menu items are appropriate for target users + +6. **Completeness** + - [ ] Core capabilities for this role are covered + - [ ] No obvious missing functionality + - [ ] Menu scope is appropriate (not too sparse/overloaded) + - [ ] Related functionality is grouped logically + +7. **Standards Compliance** + - [ ] No prohibited patterns or commands + - [ ] No security vulnerabilities in patterns + - [ ] No ambiguous or conflicting items + - [ ] Consistent naming conventions + +8. **Menu Link Validation (Agent Type Specific)** + - [ ] Determine agent type: Simple (no sidecar), Expert (hasSidecar: true), or Module agent + - [ ] For Expert agents (hasSidecar: true): + - Menu handlers SHOULD reference external sidecar files (e.g., `./{agent-name}-sidecar/...`) + - OR have inline prompts defined directly in the handler + - [ ] For Module agents (module property is a code like 'bmm', 'bmb', etc.): + - Menu handlers SHOULD reference external module files under the module path + - Exec paths must start with `{project-root}/_bmad/{module}/...` + - Referenced files must exist under the module directory + - [ ] For Simple agents (stand-alone module, no sidecar): + - Menu handlers MUST NOT have external file links + - Menu handlers SHOULD only use relative links within the same file (e.g., `#section-name`) + - OR have inline prompts defined directly in the handler + +### Protocol 3: Report Findings +Organize your report into three sections: + +**PASSING CHECKS** (List what passed) +``` +โœ“ Menu structure properly formatted +โœ“ 5 menu items defined, all with required fields +โœ“ All patterns are valid regex +โœ“ Menu items align with agent role +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Item "analyze-data" description is vague +โš  No menu item for [common capability X] +โš  Pattern for "custom-command" very broad, may over-match +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— Duplicate menu item name: "process" appears twice +โœ— Invalid regex pattern: "[unclosed bracket" +โœ— Menu item "system-admin" violates security guidelines +โœ— No menu items defined for agent type that requires tools +โœ— Simple agent has external link in menu handler (should be relative # or inline) +โœ— Expert agent with sidecar has no external file links or inline prompts defined +โœ— Module agent exec path doesn't start with {project-root}/_bmad/{module}/... +``` + +### Protocol 4: Menu System + +#### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [F] Fix Findings [P] Party Mode [C] Continue" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF F: Apply auto-fixes to {builtYaml} for identified issues, then redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Proceed to next validation step, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CONTEXT BOUNDARIES + +**IN SCOPE:** +- Menu/commands section of agent.yaml +- Referencing agentMenuPatterns.md +- Menu structure, patterns, and alignment +- Individual menu item validation + +**OUT OF SCOPE:** +- Metadata fields (handled in step-07b) +- Persona fields (handled in step-07c) +- System architecture (handled in step-07e) +- Workflow/capability implementation (handled in step-07f) + +**DO NOT:** +- Validate metadata or persona in this step +- Suggest entirely new capabilities (that's for earlier steps) +- Question whether menu items are "good enough" qualitatively beyond standards +- Modify fields beyond menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation complete with any findings addressed], will you then load and read fully `{nextStepFile}` to execute and begin [structure validation]. + +## SUCCESS METRICS + +โœ“ **Complete Success:** All checks pass, menu is well-structured and aligned +โœ“ **Partial Success:** Failures fixed via [F] option, warnings acknowledged +โœ“ **Failure:** Blocking failures remain when user selects [C] + +**CRITICAL:** Invalid regex patterns or security vulnerabilities in menu items are blocking issues. diff --git a/src/modules/bmb/workflows/agent/steps-c/step-08e-structure-validation.md b/src/modules/bmb/workflows/agent/steps-c/step-08e-structure-validation.md new file mode 100644 index 00000000..3fcec5a5 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-08e-structure-validation.md @@ -0,0 +1,306 @@ +--- +name: 'step-07e-structure-validation' +description: 'Validate YAML structure and completeness' + +# File References +# Routes to 8F if Expert, else to 9 +nextStepFileExpert: './step-08f-sidecar-validation.md' +nextStepFileSimple: './step-09-celebrate.md' +simpleValidation: ../data/simple-agent-validation.md +expertValidation: ../data/expert-agent-validation.md +agentCompilation: ../data/agent-compilation.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# STEP GOAL + +Validate the built agent YAML file for structural completeness and correctness against the appropriate validation checklist (simple or expert), then route to sidecar validation if needed or proceed to celebration. + +# MANDATORY EXECUTION RULES + +1. **NEVER skip validation** - All agents must pass structural validation before completion +2. **ALWAYS use the correct validation checklist** based on agent type (simple vs expert) +3. **NEVER auto-fix without user consent** - Report issues and ask for permission +4. **ALWAYS check hasSidecar flag** before determining next step routing +5. **MUST load and parse the actual built YAML** - Not just show it, but validate it +6. **ALWAYS provide clear, actionable feedback** for any validation failures + +# EXECUTION PROTOCOLS + +## Context Awareness + +- User is in the final validation phase +- Agent has been built and written to disk +- This is the "quality gate" before completion +- User expects thorough but fair validation +- Route depends on agent type (expert vs simple) + +## User Expectations + +- Clear validation results with specific issues identified +- Line-number references for YAML problems +- Option to fix issues or continue (if minor) +- Logical routing based on agent type +- Professional, constructive feedback tone + +## Tone and Style + +- Professional and thorough +- Constructive, not pedantic +- Clear prioritization of issues (critical vs optional) +- Encouraging when validation passes +- Actionable when issues are found + +# CONTEXT BOUNDARIES + +## What to Validate + +- YAML syntax and structure +- Required frontmatter fields presence +- Required sections completeness +- Field format correctness +- Path validity (for references) +- Agent type consistency (simple vs expert requirements) + +## What NOT to Validate + +- Artistic choices in descriptions +- Persona writing style +- Command naming creativity +- Feature scope decisions + +## When to Escalate + +- Critical structural errors that break agent loading +- Missing required fields +- YAML syntax errors preventing file parsing +- Path references that don't exist + +# EXECUTION SEQUENCE + +## 1. Load Validation Context + +```bash +# Load the appropriate validation checklist based on agent type +if agentType == "expert": + validationFile = expertValidation +else: + validationFile = simpleValidation + +# Load the built agent YAML +builtAgent = read(builtYaml) + +# Load compilation rules for reference +compilationRules = read(agentCompilation) +``` + +**Action:** Present a brief status message: +``` +๐Ÿ” LOADING VALIDATION FRAMEWORK + Agent Type: {detected type} + Validation Standard: {simple|expert} + Built File: {builtYaml path} +``` + +## 2. Execute Structural Validation + +Run systematic checks against the validation checklist: + +### A. YAML Syntax Validation +- Parse YAML without errors +- Check indentation consistency +- Validate proper escaping of special characters +- Verify no duplicate keys + +### B. Frontmatter Validation +- All required fields present +- Field values correct type (string, boolean, array) +- No empty required fields +- Proper array formatting + +### C. Section Completeness +- All required sections present (based on agent type) +- Sections not empty unless explicitly optional +- Proper markdown heading hierarchy + +### D. Field-Level Validation +- Path references exist and are valid +- Boolean fields are actual booleans (not strings) +- Array fields properly formatted +- No malformed YAML structures + +### E. Agent Type Specific Checks + +**For Simple Agents:** +- No sidecar requirements +- Basic fields complete +- No advanced configuration + +**For Expert Agents:** +- Sidecar flag set correctly +- Sidecar folder path specified +- All expert fields present +- Advanced features properly configured + +## 3. Generate Validation Report + +Present findings in structured format: + +```markdown +# ๐ŸŽฏ STRUCTURAL VALIDATION REPORT + +## Agent: {agent-name} +Type: {simple|expert} +File: {builtYaml} + +--- + +## โœ… PASSED CHECKS ({count}) +{List of all validations that passed} + +## โš ๏ธ ISSUES FOUND ({count}) +{If any issues, list each with:} +### Issue #{number}: {type} +**Severity:** [CRITICAL|MODERATE|MINOR] +**Location:** Line {line} or Section {section} +**Problem:** {clear description} +**Impact:** {what this breaks} +**Suggested Fix:** {specific action} + +--- + +## ๐Ÿ“Š VALIDATION SUMMARY +**Overall Status:** [PASSED|FAILED|CONDITIONAL] +**Critical Issues:** {count} +**Moderate Issues:** {count} +**Minor Issues:** {count} +**Can Load Safely:** [YES|NO] + +--- + +{If PASSED} +## ๐ŸŽ‰ VALIDATION SUCCESSFUL +Your agent YAML is structurally sound and ready for use! +All required fields present and correctly formatted. + +{If ISSUES FOUND} +## ๐Ÿ”ง RECOMMENDED ACTIONS +1. Address critical issues first +2. Review moderate issues +3. Minor issues can be deferred +``` + +## 4. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [F] Fix Findings [P] Party Mode [C] Continue" + +### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF F: Apply auto-fixes to {builtYaml} for identified issues, then redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Proceed to next validation step, update frontmatter, then only then load, read entire file, then execute {nextStepFileExpert} or {nextStepFileSimple} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#4-present-menu-options) + +### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +If [F] selected: Work through issues systematically +- Load specific section needing fix +- Present current state +- Apply auto-fixes or guide user through corrections +- Re-validate after each fix +- Confirm resolution and re-present menu + +If [C] selected: +- Warn about implications if issues exist +- Get explicit confirmation if critical issues +- Document acceptance of issues +- Proceed to routing + +## 5. Route to Next Step + +After validation passes or user chooses to continue: + +### Check Agent Type and Route + +```yaml +# Check for sidecar requirement +hasSidecar = checkBuiltYamlForSidecarFlag() + +if hasSidecar == true: + # Expert agent with sidecar + nextStep = nextStepFileExpert + routeMessage = """ + ๐Ÿ“ฆ Expert agent detected with sidecar configuration. + โ†’ Proceeding to sidecar validation (Step 7F) + """ +else: + # Simple agent or expert without sidecar + nextStep = nextStepFileSimple + routeMessage = """ + โœ… Simple agent validation complete. + โ†’ Proceeding to celebration (Step 8) + """ +``` + +**Action:** Present routing decision and transition: +```markdown +# ๐Ÿš€ VALIDATION COMPLETE - ROUTING DECISION + +{routeMessage} + +**Next Step:** {nextStep filename} +**Reason:** Agent type {simple|expert} with sidecar={hasSidecar} + +Press [Enter] to continue to {next step description}... +``` + +# CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation complete with any findings addressed], will you then load and read fully `{nextStepFileExpert}` or `{nextStepFileSimple}` to execute and begin [sidecar validation or celebration]. + +**BEFORE proceeding to next step:** + +1. โœ… Validation checklist executed completely +2. โœ… All critical issues resolved or explicitly accepted +3. โœ… User informed of routing decision +4. โœ… Next step file path determined correctly +5. โš ๏ธ **CRITICAL:** For expert agents, verify hasSidecar is TRUE before routing to 7F +6. โš ๏ธ **CRITICAL:** For simple agents, verify hasSidecar is FALSE before routing to 8 + +**DO NOT PROCEED IF:** +- YAML has critical syntax errors preventing loading +- User has not acknowledged validation results +- Routing logic is unclear or conflicting + +# SUCCESS METRICS + +## Step Complete When: +- [ ] Validation report generated and presented +- [ ] User has reviewed findings +- [ ] Critical issues resolved or accepted +- [ ] Routing decision communicated and confirmed +- [ ] Next step path verified and ready + +## Quality Indicators: +- Validation thoroughness (all checklist items covered) +- Issue identification clarity and specificity +- User satisfaction with resolution process +- Correct routing logic applied +- Clear transition to next step + +## Failure Modes: +- Skipping validation checks +- Auto-fixing without permission +- Incorrect routing (simpleโ†’7F or expertโ†’8 with sidecar) +- Unclear or missing validation report +- Proceeding with critical YAML errors diff --git a/src/modules/bmb/workflows/agent/steps-c/step-08f-sidecar-validation.md b/src/modules/bmb/workflows/agent/steps-c/step-08f-sidecar-validation.md new file mode 100644 index 00000000..2ffcdaed --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-08f-sidecar-validation.md @@ -0,0 +1,462 @@ +--- +name: 'step-07f-sidecar-validation' +description: 'Validate sidecar structure and paths' + +# File References +nextStepFile: './step-09-celebrate.md' +criticalActions: ../data/critical-actions.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' +sidecarFolder: '{bmb_creations_output_folder}/{agent-name}/{agent-name}-sidecar/' + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- +# STEP GOAL + +Validate the sidecar folder structure and referenced paths for Expert agents to ensure all sidecar files exist, are properly structured, and paths in the main agent YAML correctly reference them. + +# MANDATORY EXECUTION RULES + +1. **ONLY runs for Expert agents** - Simple agents should never reach this step +2. **MUST verify sidecar folder exists** before proceeding +3. **ALWAYS cross-reference YAML paths** with actual files +4. **NEVER create missing sidecar files** - Report issues, don't auto-fix +5. **MUST validate sidecar file structure** for completeness +6. **ALWAYS check critical actions file** if referenced +7. **PROVIDE clear remediation steps** for any missing or malformed files + +# EXECUTION PROTOCOLS + +## Context Awareness + +- User has an Expert agent with sidecar configuration +- Structural validation (7E) already passed +- Sidecar folder should have been created during build +- This is the final validation before celebration +- Missing sidecar components may break agent functionality + +## User Expectations + +- Comprehensive sidecar structure validation +- Clear identification of missing files +- Path reference verification +- Actionable remediation guidance +- Professional but approachable tone + +## Tone and Style + +- Thorough and systematic +- Clear and specific about issues +- Solution-oriented (focus on how to fix) +- Encouraging when sidecar is complete +- Not pedantic about minor formatting issues + +# CONTEXT BOUNDARIES + +## What to Validate + +- Sidecar folder existence and location +- All referenced files exist in sidecar +- Sidecar file structure completeness +- Path references in main YAML accuracy +- Critical actions file if referenced +- File naming conventions +- File content completeness (not empty) + +## What NOT to Validate + +- Content quality of sidecar files +- Artistic choices in sidecar documentation +- Optional sidecar components +- File formatting preferences + +## When to Escalate + +- Sidecar folder completely missing +- Critical files missing (actions, core modules) +- Path references pointing to non-existent files +- Empty sidecar files that should have content + +# EXECUTION SEQUENCE + +## 1. Load Sidecar Context + +```bash +# Verify main agent YAML exists +agentYaml = read(builtYaml) + +# Extract sidecar path from YAML or use template default +sidecarPath = extractSidecarPath(agentYaml) or sidecarFolder + +# Check if sidecar folder exists +sidecarExists = directoryExists(sidecarPath) + +# Load critical actions reference if needed +criticalActionsRef = read(criticalActions) +``` + +**Action:** Present discovery status: +```markdown +๐Ÿ” SIDECAR VALIDATION INITIALIZED + +Agent: {agent-name} +Type: Expert (requires sidecar) + +Main YAML: {builtYaml} +Sidecar Path: {sidecarPath} + +Status: {โœ… Folder Found | โŒ Folder Missing} +``` + +## 2. Validate Sidecar Structure + +### A. Folder Existence Check + +```markdown +## ๐Ÿ“ FOLDER STRUCTURE VALIDATION + +**Sidecar Location:** {sidecarPath} +**Status:** [EXISTS | MISSING | WRONG LOCATION] +``` + +If missing: +```markdown +โŒ **CRITICAL ISSUE:** Sidecar folder not found! + +**Expected Location:** {sidecarPath} + +**Possible Causes:** +1. Build process didn't create sidecar +2. Sidecar path misconfigured in agent YAML +3. Folder moved or deleted after build + +**Required Action:** +[ ] Re-run build process with sidecar enabled +[ ] Verify sidecar configuration in agent YAML +[ ] Check folder was created in correct location +``` + +### B. Sidecar File Inventory + +If folder exists, list all files: +```bash +sidecarFiles = listFiles(sidecarPath) +``` + +```markdown +## ๐Ÿ“„ SIDECAR FILE INVENTORY + +Found {count} files in sidecar: + +{For each file:} +- {filename} ({size} bytes) +``` + +### C. Cross-Reference Validation + +Extract all sidecar path references from agent YAML: +```yaml +# Common sidecar reference patterns +sidecar: + critical-actions: './{agent-name}-sidecar/critical-actions.md' + modules: + - path: './{agent-name}-sidecar/modules/module-01.md' +``` + +Validate each reference: +```markdown +## ๐Ÿ”— PATH REFERENCE VALIDATION + +**Checked {count} references from agent YAML:** + +{For each reference:} +**Source:** {field in agent YAML} +**Expected Path:** {referenced path} +**Status:** [โœ… Found | โŒ Missing | โš ๏ธ Wrong Location] +``` + +## 3. Validate Sidecar File Contents + +For each sidecar file found, check: + +### A. File Completeness +```markdown +## ๐Ÿ“‹ FILE CONTENT VALIDATION + +{For each file:} +### {filename} +**Size:** {bytes} +**Status:** [โœ… Complete | โš ๏ธ Empty | โŒ Too Small] +**Last Modified:** {timestamp} +``` + +### B. Critical Actions File (if present) + +Special validation for critical-actions.md: +```markdown +## ๐ŸŽฏ CRITICAL ACTIONS VALIDATION + +**File:** {sidecarPath}/critical-actions.md +**Status:** [PRESENT | MISSING | EMPTY] + +{If Present:} +**Sections Found:** +{List sections detected} + +**Completeness:** +[ ] Header/metadata present +[ ] Actions defined +[ ] No critical sections missing +``` + +### C. Module Files (if present) + +If sidecar contains modules: +```markdown +## ๐Ÿ“š MODULE VALIDATION + +**Modules Found:** {count} + +{For each module:} +### {module-filename} +**Status:** [โœ… Valid | โš ๏ธ Issues Found] +**Checks:** +[ ] Frontmatter complete +[ ] Content present +[ ] References valid +``` + +## 4. Generate Validation Report + +```markdown +# ๐ŸŽฏ SIDECAR VALIDATION REPORT + +## Agent: {agent-name} +Sidecar Path: {sidecarPath} +Validation Date: {timestamp} + +--- + +## โœ… VALIDATION CHECKS PASSED + +**Folder Structure:** +- [x] Sidecar folder exists +- [x] Located at expected path +- [x] Accessible and readable + +**File Completeness:** +- [x] All referenced files present +- [x] No broken path references +- [x] Files have content (not empty) + +**Content Quality:** +- [x] Critical actions complete +- [x] Module files structured +- [x] No obvious corruption + +--- + +## โš ๏ธ ISSUES IDENTIFIED ({count}) + +{If issues:} +### Issue #{number}: {issue type} +**Severity:** [CRITICAL|MODERATE|MINOR] +**Component:** {file or folder} +**Problem:** {clear description} +**Impact:** {what this breaks} +**Remediation:** +1. {specific step 1} +2. {specific step 2} +3. {specific step 3} + +{If no issues:} +### ๐ŸŽ‰ NO ISSUES FOUND +Your agent's sidecar is complete and properly structured! +All path references are valid and files are in place. + +--- + +## ๐Ÿ“Š SUMMARY + +**Overall Status:** [PASSED|FAILED|CONDITIONAL] +**Files Validated:** {count} +**Issues Found:** {count} +**Critical Issues:** {count} +**Sidecar Ready:** [YES|NO] + +--- + +## 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [F] Fix Findings [P] Party Mode [C] Continue" + +### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF F: Apply auto-fixes to {builtYaml} or sidecar files for identified issues, then redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Proceed to celebration step, update frontmatter, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## 6. Issue Resolution (if [F] selected) + +Work through each issue systematically: + +**For Missing Files:** +```markdown +### ๐Ÿ”ง FIXING: Missing {filename} + +**Required File:** {path} +**Purpose:** {why it's needed} + +**Option 1:** Re-run Build +- Sidecar may not have been created completely +- Return to build step and re-execute + +**Option 2:** Manual Creation +- Create file at: {full path} +- Use template from: {template reference} +- Minimum required content: {specification} + +**Option 3:** Update References +- Remove reference from agent YAML if not truly needed +- Update path if file exists in different location + +Which option? [1/2/3]: +``` + +**For Broken Path References:** +```markdown +### ๐Ÿ”ง FIXING: Invalid Path Reference + +**Reference Location:** {agent YAML field} +**Current Path:** {incorrect path} +**Expected File:** {filename} +**Actual Location:** {where file actually is} + +**Fix Options:** +1. Update path in agent YAML to: {correct path} +2. Move file to expected location: {expected path} +3. Remove reference if file not needed + +Which option? [1/2/3]: +``` + +**For Empty/Malformed Files:** +```markdown +### ๐Ÿ”ง FIXING: {filename} - {Issue} + +**Problem:** {empty/too small/malformed} +**Location:** {full path} + +**Remediation:** +- View current content +- Compare to template/standard +- Add missing sections +- Correct formatting + +Ready to view and fix? [Y/N]: +``` + +After each fix: +- Re-validate the specific component +- Confirm resolution +- Move to next issue +- Final re-validation when all complete + +## 6. Route to Celebration + +When validation passes or user chooses to continue: + +```markdown +# ๐Ÿš€ SIDECAR VALIDATION COMPLETE + +## Expert Agent: {agent-name} + +โœ… **Sidecar Structure:** Validated +โœ… **Path References:** All correct +โœ… **File Contents:** Complete + +--- + +## ๐ŸŽฏ READY FOR CELEBRATION + +Your Expert agent with sidecar is fully validated and ready! + +**Next Step:** Celebration (Step 8) +**Final Status:** All checks passed + +Press [Enter] to proceed to celebration... +``` + +# CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation complete with any findings addressed], will you then load and read fully `{nextStepFile}` to execute and begin [celebration]. + +**BEFORE proceeding to Step 8:** + +1. โœ… Sidecar folder exists and is accessible +2. โœ… All referenced files present +3. โœ… Path references validated +4. โœ… File contents checked for completeness +5. โœ… User informed of validation status +6. โœ… Issues resolved or explicitly accepted +7. โš ๏ธ **CRITICAL:** Only Expert agents should reach this step +8. โš ๏ธ **CRITICAL:** Sidecar must be complete for agent to function + +**DO NOT PROCEED IF:** +- Sidecar folder completely missing +- Critical files absent (actions, core modules) +- User unaware of sidecar issues +- Validation not completed + +# SUCCESS METRICS + +## Step Complete When: +- [ ] Sidecar folder validated +- [ ] All path references checked +- [ ] File contents verified +- [ ] Validation report presented +- [ ] Issues resolved or accepted +- [ ] User ready to proceed + +## Quality Indicators: +- Thoroughness of file inventory +- Accuracy of path reference validation +- Clarity of issue identification +- Actionability of remediation steps +- User confidence in sidecar completeness + +## Failure Modes: +- Missing sidecar folder completely +- Skipping file existence checks +- Not validating path references +- Proceeding with critical files missing +- Unclear validation report +- Not providing remediation guidance + +--- + +## ๐ŸŽ“ NOTE: Expert Agent Sidecars + +Sidecars are what make Expert agents powerful. They enable: +- Modular architecture +- Separation of concerns +- Easier updates and maintenance +- Shared components across agents + +A validated sidecar ensures your Expert agent will: +- Load correctly at runtime +- Find all referenced resources +- Execute critical actions as defined +- Provide the advanced capabilities designed + +Take the time to validate thoroughly - it pays off in agent reliability! diff --git a/src/modules/bmb/workflows/agent/steps-c/step-09-celebrate.md b/src/modules/bmb/workflows/agent/steps-c/step-09-celebrate.md new file mode 100644 index 00000000..794766cc --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-c/step-09-celebrate.md @@ -0,0 +1,244 @@ +--- +name: 'step-09-celebrate' +description: 'Celebrate completion and guide next steps for using the agent' + +# File References +thisStepFile: ./step-09-celebrate.md +workflowFile: ../workflow.md +outputFile: {bmb_creations_output_folder}/agent-completion-{agent_name}.md + +# Task References +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +installationDocs: 'https://github.com/bmad-code-org/BMAD-METHOD/blob/main/docs/modules/bmb-bmad-builder/custom-content-installation.md#standalone-content-agents-workflows-tasks-tools-templates-prompts' +--- + +# Step 9: Celebration and Installation Guidance + +## STEP GOAL: + +Celebrate the successful agent creation, recap the agent's capabilities, provide installation guidance, and mark workflow completion. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- ๐Ÿ›‘ NEVER generate content without user input +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- โœ… You are a celebration coordinator who guides users through agent installation and activation +- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role +- โœ… We engage in collaborative dialogue, not command-response +- โœ… You bring installation expertise, user brings their excitement about their new agent, together we ensure successful agent installation and usage +- โœ… Maintain collaborative celebratory tone throughout + +### Step-Specific Rules: + +- ๐ŸŽฏ Focus only on celebrating completion and guiding installation +- ๐Ÿšซ FORBIDDEN to end without marking workflow completion in frontmatter +- ๐Ÿ’ฌ Approach: Celebrate enthusiastically while providing practical installation guidance +- ๐Ÿ“‹ Ensure user understands installation steps and agent capabilities +- ๐Ÿ”— Always provide installation documentation link for reference + +## EXECUTION PROTOCOLS: + +- ๐ŸŽ‰ Celebrate agent creation achievement enthusiastically +- ๐Ÿ’พ Mark workflow completion in frontmatter +- ๐Ÿ“– Provide clear installation guidance +- ๐Ÿ”— Share installation documentation link +- ๐Ÿšซ FORBIDDEN to end workflow without proper completion marking + +## CONTEXT BOUNDARIES: + +- Available context: Complete, validated, and built agent from previous steps +- Focus: Celebration, installation guidance, and workflow completion +- Limits: No agent modifications, only installation guidance and celebration +- Dependencies: Complete agent ready for installation + +## Sequence of Instructions (Do not deviate, skip, or optimize) + +### 1. Grand Celebration + +Present enthusiastic celebration: + +"๐ŸŽ‰ Congratulations! We did it! {agent_name} is complete and ready to help users with {agent_purpose}!" + +**Journey Celebration:** +"Let's celebrate what we accomplished together: + +- Started with an idea and discovered its true purpose +- Crafted a unique personality with the four-field persona system +- Built powerful capabilities and commands +- Established a perfect name and identity +- Created complete YAML configuration +- Validated quality and prepared for deployment" + +### 2. Agent Capabilities Showcase + +**Agent Introduction:** +"Meet {agent_name} - your {agent_type} agent ready to {agent_purpose}!" + +**Key Features:** +"โœจ **What makes {agent_name} special:** + +- {unique_personality_trait} personality that {communication_style_benefit} +- Expert in {domain_expertise} with {specialized_knowledge} +- {number_commands} powerful commands including {featured_command} +- Ready to help with {specific_use_cases}" + +### 3. Activation Guidance + +**Getting Started:** +"Here's how to start using {agent_name}:" + +**Activation Steps:** + +1. **Locate your agent files:** `{agent_file_location}` +2. **If compiled:** Use the compiled version at `{compiled_location}` +3. **For customization:** Edit the customization file at `{customization_location}` +4. **First interaction:** Start by asking for help to see available commands + +**First Conversation Suggestions:** +"Try starting with: + +- 'Hi {agent_name}, what can you help me with?' +- 'Tell me about your capabilities' +- 'Help me with [specific task related to agent purpose]'" + +### 4. Installation Guidance + +**Making Your Agent Installable:** +"Now that {agent_name} is complete, let's get it installed and ready to use!" + +**Installation Overview:** +"To make your agent installable and sharable, you'll need to package it as a standalone BMAD content module. Here's what you need to know:" + +**Key Steps:** +1. **Create a module folder:** Name it something descriptive (e.g., `my-custom-stuff`) +2. **Add module.yaml:** Include a `module.yaml` file with `unitary: true` +3. **Structure your agent:** Place your agent file in `agents/{agent-name}/{agent-name}.agent.yaml` +4. **Include sidecar (if Expert):** For Expert agents, include the `_memory/{sidecar-folder}/` structure + +**Module Structure Example:** +``` +my-custom-stuff/ +โ”œโ”€โ”€ module.yaml # Contains: unitary: true +โ”œโ”€โ”€ agents/ # Custom agents go here +โ”‚ โ””โ”€โ”€ {agent-name}/ +โ”‚ โ”œโ”€โ”€ {agent-name}.agent.yaml +โ”‚ โ””โ”€โ”€ _memory/ # Expert agents only +โ”‚ โ””โ”€โ”€ {sidecar-folder}/ +โ”‚ โ”œโ”€โ”€ memories.md +โ”‚ โ””โ”€โ”€ instructions.md +โ””โ”€โ”€ workflows/ # Optional: standalone custom workflows + โ””โ”€โ”€ {workflow-name}/ + โ””โ”€โ”€ workflow.md +``` + +**Note:** Your custom module can contain agents, workflows, or both. The `agents/` and `workflows/` folders are siblings alongside `module.yaml`. + +**Installation Methods:** +- **New projects:** The BMAD installer will prompt for local custom modules +- **Existing projects:** Use "Modify BMAD Installation" to add your module + +**Full Documentation:** +"For complete details on packaging, sharing, and installing your custom agent, including all the configuration options and troubleshooting tips, see the official installation guide:" + +๐Ÿ“– **[BMAD Custom Content Installation Guide]({installationDocs})** + +### 5. Final Documentation + +#### Content to Append (if applicable): + +```markdown +## Agent Creation Complete! ๐ŸŽ‰ + +### Agent Summary + +- **Name:** {agent_name} +- **Type:** {agent_type} +- **Purpose:** {agent_purpose} +- **Status:** Ready for installation + +### File Locations + +- **Agent Config:** {agent_file_path} +- **Compiled Version:** {compiled_agent_path} +- **Customization:** {customization_file_path} + +### Installation + +Package your agent as a standalone module with `module.yaml` containing `unitary: true`. +See: {installationDocs} + +### Quick Start + +1. Create a module folder +2. Add module.yaml with `unitary: true` +3. Place agent in `agents/{agent-name}/` structure +4. Include sidecar folder for Expert agents +5. Install via BMAD installer +``` + +Save this content to `{outputFile}` for reference. + +### 6. Workflow Completion + +**Mark Complete:** +"Agent creation workflow completed successfully! {agent_name} is ready to be installed and used. Amazing work!" + +**Final Achievement:** +"You've successfully created a custom BMAD agent from concept to installation-ready configuration. The journey from idea to deployable agent is complete!" + +### 7. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [X] Exit Workflow" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF X: Save content to {outputFile}, update frontmatter with workflow completion, then end workflow gracefully +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY complete workflow when user selects 'X' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [X exit option] is selected and [workflow completion marked in frontmatter], will the workflow end gracefully with agent ready for installation. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Enthusiastic celebration of agent creation achievement +- Clear installation guidance provided +- Agent capabilities and value clearly communicated +- Installation documentation link shared with context +- Module structure and packaging explained +- User confidence in agent installation established +- Workflow properly marked as complete in frontmatter +- Content properly saved to output file +- Menu presented with exit option + +### โŒ SYSTEM FAILURE: + +- Ending without marking workflow completion +- Not providing clear installation guidance +- Missing celebration of achievement +- Not sharing installation documentation link +- Not ensuring user understands installation steps +- Failing to update frontmatter completion status + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-01-load-existing.md b/src/modules/bmb/workflows/agent/steps-e/e-01-load-existing.md new file mode 100644 index 00000000..187e1e1f --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-01-load-existing.md @@ -0,0 +1,220 @@ +--- +name: 'e-01-load-existing' +description: 'Load and analyze existing agent for editing' + +# File References +thisStepFile: ./e-01-load-existing.md +workflowFile: ../workflow.md +nextStepFile: './e-02-discover-edits.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentMetadata: ../data/agent-metadata.md +agentMenuPatterns: ../data/agent-menu-patterns.md + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 1: Load Existing Agent + +## STEP GOAL: + +Load the existing agent file, parse its structure, and create an edit plan tracking document. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- ๐Ÿ›‘ NEVER proceed without loading the complete agent file +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read +- ๐Ÿ“‹ YOU ARE A FACILITATOR, not an autonomous editor +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- โœ… You are an agent analyst who helps users understand and modify existing agents +- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role +- โœ… We engage in collaborative dialogue, not command-response +- โœ… You bring agent architecture expertise, user brings their modification goals, together we achieve successful edits +- โœ… Maintain collaborative analytical tone throughout + +### Step-Specific Rules: + +- ๐ŸŽฏ Focus only on loading and analyzing the existing agent +- ๐Ÿšซ FORBIDDEN to make any modifications in this step +- ๐Ÿ’ฌ Approach: Analytical and informative, present findings clearly +- ๐Ÿ“‹ Ensure edit plan is created with complete agent snapshot + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load the complete agent YAML file +- ๐Ÿ“Š Parse and analyze all agent components +- ๐Ÿ’พ Create edit plan tracking document +- ๐Ÿšซ FORBIDDEN to proceed without confirming file loaded successfully + +## CONTEXT BOUNDARIES: + +- Available context: User provided agent file path from workflow +- Focus: Load and understand the existing agent structure +- Limits: Analysis only, no modifications +- Dependencies: Agent file must exist and be valid YAML + +## Sequence of Instructions (Do not deviate, skip, or optimize) + +### 1. Load Agent File + +**Load the agent file:** +Read the complete YAML from the agent file path provided by the user. + +**If file does not exist or is invalid:** +Inform the user and request a valid path: +"The agent file could not be loaded. Please verify the path and try again. + +Expected format: `{path-to-agent}/{agent-name}.agent.yaml`" + +### 2. Parse Agent Structure + +If the module property of the agent metadata is `stand-alone`, it is not a module agent. +If the module property of the agent is a module code (like bmm, bmb, etc...) it is a module agent. +If the property hasSidecar: true exists in the metadata, then it is an expert agent. +Else it is a simple agent. +If a module agent also hasSidecar: true - this means it is a modules expert agent, thus it can have sidecar. + +**Extract and categorize all agent components:** + +```yaml +# Basic Metadata +- name: {agent-name} +- description: {agent-description} +- type: {simple|expert|module} +- hasSidecar: {true|false} +- version: {version} + +# Persona +- persona: {full persona text} +- system-context: {if present} + +# Commands/Menu +- commands: {full command structure} + +# Critical Actions (if present) +- critical-actions: {list} + +# Metadata +- metadata: {all metadata fields} +``` + +### 3. Display Agent Summary + +**Present a clear summary to the user:** + +```markdown +## Agent Analysis: {agent-name} + +**Type:** {simple|expert|module} +**Status:** ready-for-edit + +### Current Structure: + +**Persona:** {character count} characters +**Commands:** {count} commands defined +**Critical Actions:** {count} critical actions + +### Editable Components: + +- [ ] Persona (role, identity, communication_style, principles) +- [ ] Commands and menu structure +- [ ] Critical actions +- [ ] Metadata (name, description, version, tags) +``` + +### 4. Create Edit Plan Document + +**Initialize the edit plan tracking file:** + +```markdown +--- +mode: edit +originalAgent: '{agent-file-path}' +agentName: '{agent-name}' +agentType: '{simple|expert|module}' +editSessionDate: '{YYYY-MM-DD}' +stepsCompleted: + - e-01-load-existing.md +--- + +# Edit Plan: {agent-name} + +## Original Agent Snapshot + +**File:** {agent-file-path} +**Type:** {simple|expert|module} +**Version:** {version} + +### Current Persona + +{full persona text or truncated if very long} + +### Current Commands + +{list all commands with names and descriptions} + +### Current Metadata + +{all metadata fields} + +--- + +## Edits Planned + +*This section will be populated in subsequent steps* + +--- + +## Edits Applied + +*This section will track completed edits* +``` + +Write to `{editPlan}`. + +### 5. Present MENU OPTIONS + +Display: "**Is this the correct agent to edit?** [C] Yes, Continue to Discovery" + +#### Menu Handling Logic: + +- IF C: Save content to {editPlan}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [agent file loaded, analyzed, and edit plan created], will you then load and read fully `{nextStepFile}` to execute and begin edit discovery. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Agent file loaded successfully +- YAML structure parsed correctly +- Edit plan document created with agent snapshot +- User has clear understanding of current agent structure +- Menu presented and user input handled correctly + +### โŒ SYSTEM FAILURE: + +- Failed to load entire exist agent file (and potential sidecar content) +- Invalid YAML format that prevents parsing +- Edit plan not created +- Proceeding without user confirmation of loaded agent + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-02-discover-edits.md b/src/modules/bmb/workflows/agent/steps-e/e-02-discover-edits.md new file mode 100644 index 00000000..cdc50aef --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-02-discover-edits.md @@ -0,0 +1,191 @@ +--- +name: 'e-02-discover-edits' +description: 'Discover what user wants to change about the agent' + +nextStepFile: './e-04-type-metadata.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 2: Discover Edits + +## STEP GOAL: + +Conduct targeted discovery to understand exactly what the user wants to change about their agent. Document all requested edits in structured format. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- ๐Ÿ›‘ NEVER assume what edits are needed - ask explicitly +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read editPlan first to understand agent context +- ๐Ÿ“‹ YOU ARE A FACILITATOR, not an autonomous editor +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- โœ… You are an agent editor consultant who helps users clarify their modification goals +- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role +- โœ… We engage in collaborative dialogue, not command-response +- โœ… You bring agent architecture expertise, user brings their vision for improvements, together we define precise edits +- โœ… Maintain collaborative inquisitive tone throughout + +### Step-Specific Rules: + +- ๐ŸŽฏ Focus only on discovering what to edit, not how to implement yet +- ๐Ÿšซ FORBIDDEN to make any modifications in this step +- ๐Ÿ’ฌ Approach: Ask probing questions to understand edit scope +- ๐Ÿ“‹ Ensure all edits are documented to edit plan before proceeding + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Guide conversation to uncover all desired changes +- ๐Ÿ“Š Categorize edits by component (persona, commands, metadata, etc.) +- ๐Ÿ’พ Document all edits to edit plan +- ๐Ÿšซ FORBIDDEN to proceed without confirming all edits are captured + +## CONTEXT BOUNDARIES: + +- Available context: editPlan with agent snapshot from previous step +- Focus: Discover what changes user wants to make +- Limits: Discovery and documentation only, no implementation +- Dependencies: Agent must be loaded in editPlan + +## Sequence of Instructions (Do not deviate, skip, or optimize) + +### 1. Read Edit Plan Context + +**Load the editPlan file first:** +Read `{editPlan}` to understand the current agent structure and context. + +### 2. Present Edit Categories + +**Guide the user through potential edit areas:** + +"What would you like to change about **{agent-name}**? + +I can help you modify: + +**[P]ersona** - Role, identity, communication style, principles +**[C]ommands** - Add, remove, or modify commands and menu structure +**[M]etadata** - Name, description, version, tags, category +**[A]ctions** - Critical actions and activation behaviors +**[T]ype** - Convert between Simple/Expert/Module types +**[O]ther** - Configuration, capabilities, system context + +Which areas would you like to edit? (You can select multiple)" + +### 3. Deep Dive Discovery + +**For each selected category, ask targeted questions:** + +#### If Persona selected: +- "What aspect of the persona needs change?" +- "Should the role be more specific or expanded?" +- "Is the communication style hitting the right tone?" +- "Do the principles need refinement?" + +#### If Commands selected: +- "Do you want to add new commands, remove existing ones, or modify?" +- "Are current command names and descriptions clear?" +- "Should command steps be adjusted?" +- "Is the menu structure working well?" + +#### If Metadata selected: +- "What metadata fields need updating?" +- "Is the description accurate and compelling?" +- "Should version be bumped?" +- "Are tags still relevant?" + +#### If Actions selected: +- "What critical actions need modification?" +- "Should new activation behaviors be added?" +- "Are current actions executing as expected?" + +#### If Type conversion selected: +- "What type are you converting from/to?" +- "What's driving this conversion?" +- "Are you aware of the implications (e.g., Expert needs sidecar)?" + +### 4. Document Edits to Plan + +**After discovery, append to editPlan:** + +```markdown +## Edits Planned + +### Persona Edits +- [ ] {edit description} +- [ ] {edit description} + +### Command Edits +- [ ] {edit description} +- [ ] {edit description} + +### Metadata Edits +- [ ] {edit description} +- [ ] {edit description} + +### Critical Action Edits +- [ ] {edit description} +- [ ] {edit description} + +### Type Conversion +- [ ] {from: X, to: Y, rationale: ...} + +### Other Edits +- [ ] {edit description} +``` + +**Present summary for confirmation:** + +"Here's what I heard you want to change: + +{Summarize all edits in clear bulleted list} + +Did I capture everything? Any edits to add, remove, or clarify?" + +### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Validation" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save edits to {editPlan}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [all edits documented and confirmed by user], will you then load and read fully `{nextStepFile}` to execute and checks. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- All desired edits discovered and documented +- Edits categorized by component type +- User confirmed edit list is complete +- Edit plan updated with structured edits + +### โŒ SYSTEM FAILURE: + +- Proceeding without documenting edits +- Missing edits that user mentioned +- Unclear or ambiguous edit descriptions +- User not given opportunity to review/edit list + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-04-type-metadata.md b/src/modules/bmb/workflows/agent/steps-e/e-04-type-metadata.md new file mode 100644 index 00000000..d7d37a52 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-04-type-metadata.md @@ -0,0 +1,122 @@ +--- +name: 'e-04-type-metadata' +description: 'Review and plan metadata edits' + +nextStepFile: './e-05-persona.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentMetadata: ../data/agent-metadata.md +agentTypesDoc: ../data/understanding-agent-types.md + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 4: Type and Metadata + +## STEP GOAL: + +Review the agent's type and metadata, and plan any changes. If edits involve type conversion, identify the implications. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Load agentMetadata and agentTypesDoc first +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load reference documents before discussing edits +- ๐Ÿ“Š Document type conversion requirements if applicable +- ๐Ÿ’ฌ Focus on metadata that user wants to change + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load agentMetadata.md and agentTypesDoc.md +- ๐Ÿ“Š Review current metadata from editPlan +- ๐Ÿ’พ Document planned metadata changes +- ๐Ÿšซ FORBIDDEN to proceed without documenting changes + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read `{agentMetadata}` and `{agentTypesDoc}` to understand validation rules and type implications. + +### 2. Review Current Metadata + +From `{editPlan}`, display current: +- agentType (simple/expert/module) +- All metadata fields: id, name, title, icon, module, hasSidecar + +### 3. Discuss Metadata Edits + +If user wants metadata changes: + +**For type conversion:** +- "Converting from {current} to {target}" +- Explain implications (e.g., Simple โ†’ Expert requires sidecar) +- Update editPlan with type conversion + +**For metadata field changes:** +- id: kebab-case requirements +- name: display name conventions +- title: function description format +- icon: emoji/symbol +- module: path format +- hasSidecar: boolean implications + +### 4. Document to Edit Plan + +Append to `{editPlan}`: + +```yaml +metadataEdits: + typeConversion: + from: {current-type} + to: {target-type} + rationale: {explanation} + fieldChanges: + - field: {field-name} + from: {current-value} + to: {target-value} +``` + +### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Persona" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save to {editPlan}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [metadata changes documented], will you then load and read fully `{nextStepFile}` to execute and begin persona planning. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Reference documents loaded +- Metadata changes discussed and documented +- Type conversion implications understood +- Edit plan updated + +### โŒ SYSTEM FAILURE: + +- Proceeded without loading reference documents +- Type conversion without understanding implications +- Changes not documented to edit plan + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-05-persona.md b/src/modules/bmb/workflows/agent/steps-e/e-05-persona.md new file mode 100644 index 00000000..32b3cda7 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-05-persona.md @@ -0,0 +1,132 @@ +--- +name: 'e-05-persona' +description: 'Review and plan persona edits' + +nextStepFile: './e-06-commands-menu.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +communicationPresets: ../data/communication-presets.csv + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 5: Persona + +## STEP GOAL: + +Review the agent's persona and plan any changes using the four-field persona system. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Load personaProperties, principlesCrafting, communicationPresets first +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load reference documents before discussing persona edits +- ๐Ÿ“Š Maintain four-field system purity +- ๐Ÿ’ฌ Focus on persona fields that user wants to change + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load personaProperties.md, principlesCrafting.md, communicationPresets.csv +- ๐Ÿ“Š Review current persona from editPlan +- ๐Ÿ’พ Document planned persona changes +- ๐Ÿšซ FORBIDDEN to proceed without documenting changes + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read `{personaProperties}`, `{principlesCrafting}`, `{communicationPresets}` to understand the four-field system. + +### 2. Review Current Persona + +From `{editPlan}`, display current persona: +- **role:** What they do +- **identity:** Who they are +- **communication_style:** How they speak +- **principles:** Why they act (decision framework) + +### 3. Discuss Persona Edits + +For each field the user wants to change: + +**Role edits:** +- Ensure functional definition (not personality) +- Define expertise domain and capabilities + +**Identity edits:** +- Ensure personality definition (not job description) +- Define character, attitude, worldview + +**Communication_style edits:** +- Ensure speech pattern definition (not expertise) +- Define tone, formality, voice + +**Principles edits:** +- First principle must activate expert knowledge +- Other principles guide decision-making +- Follow principlesCrafting.md guidance + +### 4. Document to Edit Plan + +Append to `{editPlan}`: + +```yaml +personaEdits: + role: + from: {current} + to: {target} + identity: + from: {current} + to: {target} + communication_style: + from: {current} + to: {target} + principles: + from: {current} + to: {target} +``` + +### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Commands Menu" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save to {editPlan}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [persona changes documented with field purity maintained], will you then load and read fully `{nextStepFile}` to execute and begin commands menu planning. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Reference documents loaded +- Four-field system purity maintained +- Persona changes documented + +### โŒ SYSTEM FAILURE: + +- Proceeded without loading reference documents +- Field purity violated (mixed concepts) +- Changes not documented to edit plan + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-06-commands-menu.md b/src/modules/bmb/workflows/agent/steps-e/e-06-commands-menu.md new file mode 100644 index 00000000..37bad720 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-06-commands-menu.md @@ -0,0 +1,120 @@ +--- +name: 'e-06-commands-menu' +description: 'Review and plan command/menu edits' + +nextStepFile: './e-07-activation.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentMenuPatterns: ../data/agent-menu-patterns.md + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 6: Commands Menu + +## STEP GOAL: + +Review the agent's command menu and plan any additions, modifications, or removals. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Load agentMenuPatterns first +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load agentMenuPatterns before discussing menu edits +- ๐Ÿ“Š Follow A/P/C convention for menu structure +- ๐Ÿ’ฌ Focus on commands that user wants to add/modify/remove + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load agentMenuPatterns.md +- ๐Ÿ“Š Review current commands from editPlan +- ๐Ÿ’พ Document planned command changes +- ๐Ÿšซ FORBIDDEN to proceed without documenting changes + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read `{agentMenuPatterns}` to understand menu structure requirements. + +### 2. Review Current Commands + +From `{editPlan}`, display current commands with: +- trigger +- description +- handler/action + +### 3. Discuss Command Edits + +**For additions:** +- Define trigger (clear, intuitive, following conventions) +- Define description (concise, one line) +- Define handler/action (references capability) + +**For modifications:** +- Update trigger, description, or handler +- Ensure still follows menu patterns + +**For removals:** +- Identify commands to remove +- Confirm impact on agent functionality + +### 4. Document to Edit Plan + +Append to `{editPlan}`: + +```yaml +commandEdits: + additions: + - trigger: {trigger} + description: {description} + handler: {handler} + modifications: + - command: {existing-command} + changes: {what-to-change} + removals: + - command: {command-to-remove} +``` + +### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Activation" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save to {editPlan}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [command changes documented], will you then load and read fully `{nextStepFile}` to execute and begin activation planning. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- agentMenuPatterns loaded +- Command changes documented with trigger/description/handler +- A/P/C convention followed + +### โŒ SYSTEM FAILURE: + +- Proceeded without loading reference documents +- Commands missing required elements +- Changes not documented to edit plan + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-07-activation.md b/src/modules/bmb/workflows/agent/steps-e/e-07-activation.md new file mode 100644 index 00000000..bd071a92 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-07-activation.md @@ -0,0 +1,122 @@ +--- +name: 'e-07-activation' +description: 'Review critical_actions and route to type-specific edit' + +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +criticalActions: ../data/critical-actions.md + +# Type-specific edit routes +simpleEdit: './e-08a-edit-simple.md' +expertEdit: './e-08b-edit-expert.md' +moduleEdit: './e-08c-edit-module.md' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 7: Activation and Routing + +## STEP GOAL: + +Review critical_actions and route to the appropriate type-specific edit step (Simple/Expert/Module). + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Load criticalActions and editPlan first +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load criticalActions.md before discussing activation +- ๐Ÿ“Š Determine target type for routing +- ๐Ÿ’ฌ Route based on POST-EDIT agent type + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load criticalActions.md +- ๐Ÿ“Š Check editPlan for target agent type +- ๐Ÿ’พ Route to appropriate type-specific edit step +- โžก๏ธ Auto-advance to type-specific edit on [C] + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read `{criticalActions}` and `{editPlan}` to understand: +- Current critical_actions (if any) +- Target agent type after edits + +### 2. Review Critical Actions + +If user wants to add/modify critical_actions: +- Reference patterns from criticalActions.md +- Define action name, description, invocation +- For Expert agents: specify sidecar-folder and file paths + +### 3. Determine Routing + +Check `{editPlan}` metadataEdits.typeConversion.to or current agentType: + +```yaml +agentType: simple โ†’ route to e-08a-edit-simple.md +agentType: expert โ†’ route to e-08b-edit-expert.md +agentType: module โ†’ route to e-08c-edit-module.md +``` + +### 4. Document to Edit Plan + +Append to `{editPlan}`: + +```yaml +activationEdits: + criticalActions: + additions: [] + modifications: [] +routing: + destinationEdit: {e-08a|e-08b|e-08c} + targetType: {simple|expert|module} +``` + +### 5. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Type-Specific Edit" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save to {editPlan}, determine routing based on targetType, then only then load and execute the appropriate type-specific edit step +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +This is the **ROUTING HUB** for edit flow. ONLY WHEN [C continue option] is selected and [routing determined], load and execute the appropriate type-specific edit step: + +- targetType: simple โ†’ e-08a-edit-simple.md +- targetType: expert โ†’ e-08b-edit-expert.md +- targetType: module โ†’ e-08c-edit-module.md + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- criticalActions.md loaded +- Routing determined based on target type +- Edit plan updated with routing info + +### โŒ SYSTEM FAILURE: + +- Proceeded without loading reference documents +- Routing not determined +- Wrong type-specific edit step selected + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-08a-edit-simple.md b/src/modules/bmb/workflows/agent/steps-e/e-08a-edit-simple.md new file mode 100644 index 00000000..d92bb27e --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-08a-edit-simple.md @@ -0,0 +1,134 @@ +--- +name: 'e-08a-edit-simple' +description: 'Apply edits to Simple agent' + +nextStepFile: './e-09a-validate-metadata.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentFile: '{original-agent-path}' +agentBackup: '{original-agent-path}.backup' + +# Template and Architecture +simpleTemplate: ../templates/simple-agent.template.md +simpleArch: ../data/simple-agent-architecture.md +agentCompilation: ../data/agent-compilation.md +agentMetadata: ../data/agent-metadata.md +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +agentMenuPatterns: ../data/agent-menu-patterns.md +criticalActions: ../data/critical-actions.md +--- + +# Edit Step 8a: Edit Simple Agent + +## STEP GOAL: + +Apply all planned edits to the Simple agent YAML file using templates and architecture references for validation. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ›‘ ALWAYS create backup before modifying agent file +- ๐Ÿ“– CRITICAL: Read template and architecture files first +- ๐Ÿ”„ CRITICAL: Load editPlan and agentFile +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load all reference files before applying edits +- ๐Ÿ“Š Apply edits exactly as specified in editPlan +- ๐Ÿ’พ Validate YAML after each edit +- โžก๏ธ Auto-advance to post-edit validation when complete + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load template, architecture, and data files +- ๐Ÿ“Š Read editPlan to get all planned changes +- ๐Ÿ’พ Create backup +- ๐Ÿ“ Apply edits: type conversion, metadata, persona, commands, critical_actions +- โœ… Validate YAML syntax +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read all files before editing: +- `{simpleTemplate}` - YAML structure reference +- `{simpleArch}` - Simple agent architecture +- `{agentCompilation}` - Assembly guidelines +- `{agentMetadata}`, `{personaProperties}`, `{principlesCrafting}` +- `{agentMenuPatterns}`, `{criticalActions}` + +### 2. Load Edit Plan and Agent + +Read `{editPlan}` to get all planned edits. +Read `{agentFile}` to get current agent YAML. + +### 3. Create Backup + +ALWAYS backup before editing: +`cp {agentFile} {agentBackup}` + +Confirm: "Backup created at: `{agentBackup}`" + +### 4. Apply Edits in Sequence + +For each planned edit: + +**Type Conversion:** +- Update `type:` field if converting +- Add/remove type-specific fields + +**Metadata Edits:** +- Apply each field change from metadataEdits + +**Persona Edits:** +- Replace persona section with new four-field persona +- Validate field purity (role โ‰  identity โ‰  communication_style) + +**Command Edits:** +- Additions: append to commands array +- Modifications: update specific commands +- Removals: remove from commands array + +**Critical Actions Edits:** +- Additions: append to critical_actions array +- Modifications: update specific actions +- Removals: remove from array + +### 5. Validate YAML After Each Edit + +Confirm YAML syntax is valid after each modification. + +### 6. Document Applied Edits + +Append to `{editPlan}`: + +```yaml +editsApplied: + - {edit-description} + - {edit-description} +backup: {agentBackup} +timestamp: {YYYY-MM-DD HH:MM} +``` + +### 7. Auto-Advance + +When all edits applied successfully, load and execute `{nextStepFile}` immediately. + +## SUCCESS METRICS + +โœ… Backup created +โœ… All reference files loaded +โœ… All edits applied correctly +โœ… YAML remains valid +โœ… Edit plan tracking updated + +## FAILURE MODES + +โŒ Backup failed +โŒ YAML became invalid +โŒ Edits not applied as specified + +--- + +**Auto-advancing to post-edit validation... diff --git a/src/modules/bmb/workflows/agent/steps-e/e-08b-edit-expert.md b/src/modules/bmb/workflows/agent/steps-e/e-08b-edit-expert.md new file mode 100644 index 00000000..394ccdb3 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-08b-edit-expert.md @@ -0,0 +1,117 @@ +--- +name: 'e-08b-edit-expert' +description: 'Apply edits to Expert agent' + +nextStepFile: './e-09a-validate-metadata.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentFile: '{original-agent-path}' +agentBackup: '{original-agent-path}.backup' + +# Template and Architecture +expertTemplate: ../templates/expert-agent-template/expert-agent.template.md +expertArch: ../data/expert-agent-architecture.md +agentCompilation: ../data/agent-compilation.md +agentMetadata: ../data/agent-metadata.md +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +agentMenuPatterns: ../data/agent-menu-patterns.md +criticalActions: ../data/critical-actions.md +expertValidation: ../data/expert-agent-validation.md +--- + +# Edit Step 8b: Edit Expert Agent + +## STEP GOAL: + +Apply all planned edits to the Expert agent YAML file and manage sidecar structure changes. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ›‘ ALWAYS create backup before modifying agent file +- ๐Ÿ“– CRITICAL: Read template and architecture files first +- ๐Ÿ”„ CRITICAL: Load editPlan and agentFile +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load all reference files before applying edits +- ๐Ÿ“Š Manage sidecar structure for Expert agents +- ๐Ÿ’พ Validate YAML and sidecar paths after edits +- โžก๏ธ Auto-advance to post-edit validation when complete + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load template, architecture, and data files +- ๐Ÿ“Š Read editPlan to get all planned changes +- ๐Ÿ’พ Create backup +- ๐Ÿ“ Apply edits including sidecar management +- โœ… Validate YAML and sidecar paths +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read all files before editing: +- `{expertTemplate}` - Expert YAML structure +- `{expertArch}` - Expert agent architecture +- `{agentCompilation}`, `{agentMetadata}`, `{personaProperties}`, `{principlesCrafting}` +- `{agentMenuPatterns}`, `{criticalActions}`, `{expertValidation}` + +### 2. Load Edit Plan and Agent + +Read `{editPlan}` to get all planned edits. +Read `{agentFile}` to get current agent YAML. + +### 3. Create Backup + +ALWAYS backup before editing: +`cp {agentFile} {agentBackup}` + +### 4. Apply Edits in Sequence + +**Type Conversion to Expert:** +- Update `type: expert` +- Add `metadata.sidecar-folder` if not present +- Create sidecar directory: `mkdir -p {project-root}/_bmad/_memory/{sidecar-folder}/` + +**Sidecar Management:** +- If changing sidecar-folder: update all critical_actions references +- If removing sidecar (Expert โ†’ Simple): remove sidecar fields and folder +- Create/update sidecar files as needed + +**Metadata, Persona, Commands, Critical Actions:** +- Same as Simple agent edit + +### 5. Validate Sidecar Paths + +After editing, confirm all critical_actions reference correct sidecar paths: +`{project-root}/_bmad/_memory/{sidecar-folder}/{file}.md` + +### 6. Document Applied Edits + +Append to `{editPlan}` with sidecar changes noted. + +### 7. Auto-Advance + +When all edits applied successfully, load and execute `{nextStepFile}` immediately. + +## SUCCESS METRICS + +โœ… Backup created +โœ… All reference files loaded +โœ… All edits applied correctly +โœ… YAML remains valid +โœ… Sidecar structure correct +โœ… Sidecar paths validated + +## FAILURE MODES + +โŒ Backup failed +โŒ YAML became invalid +โŒ Sidecar paths broken +โŒ Edits not applied as specified + +--- + +**Auto-advancing to post-edit validation... diff --git a/src/modules/bmb/workflows/agent/steps-e/e-08c-edit-module.md b/src/modules/bmb/workflows/agent/steps-e/e-08c-edit-module.md new file mode 100644 index 00000000..035a4228 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-08c-edit-module.md @@ -0,0 +1,120 @@ +--- +name: 'e-08c-edit-module' +description: 'Apply edits to Module agent' + +nextStepFile: './e-09a-validate-metadata.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentFile: '{original-agent-path}' +agentBackup: '{original-agent-path}.backup' + +# Template and Architecture (use expert as baseline for Module) +expertTemplate: ../templates/expert-agent-template/expert-agent.template.md +expertArch: ../data/expert-agent-architecture.md +moduleArch: ../data/module-agent-validation.md +agentCompilation: ../data/agent-compilation.md +agentMetadata: ../data/agent-metadata.md +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +agentMenuPatterns: ../data/agent-menu-patterns.md +criticalActions: ../data/critical-actions.md +--- + +# Edit Step 8c: Edit Module Agent + +## STEP GOAL: + +Apply all planned edits to the Module agent YAML file and manage workflow integration and sidecar structure. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ›‘ ALWAYS create backup before modifying agent file +- ๐Ÿ“– CRITICAL: Read template and architecture files first +- ๐Ÿ”„ CRITICAL: Load editPlan and agentFile +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load all reference files before applying edits +- ๐Ÿ“Š Manage workflow integration paths for Module agents +- ๐Ÿ’พ Validate YAML and workflow paths after edits +- โžก๏ธ Auto-advance to post-edit validation when complete + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load template, architecture, and data files +- ๐Ÿ“Š Read editPlan to get all planned changes +- ๐Ÿ’พ Create backup +- ๐Ÿ“ Apply edits including workflow paths +- โœ… Validate YAML and workflow paths +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load Reference Documents + +Read all files before editing - these are RULES that must be followed when editing agents: +- `{expertTemplate}` - Module uses expert as baseline +- `{expertArch}`, `{moduleArch}` - Architecture references +- `{agentCompilation}`, `{agentMetadata}`, `{personaProperties}`, `{principlesCrafting}` +- `{agentMenuPatterns}`, `{criticalActions}` + +### 2. Load Edit Plan and Agent + +Read `{editPlan}` to get all planned edits. +Read `{agentFile}` to get current agent YAML. + +### 3. Create Backup + +ALWAYS backup before editing: +`cp {agentFile} {agentBackup}` + +### 4. Apply Edits in Sequence + +**Type Conversion to Module:** +- Update `type: module` +- Add workflow integration paths + +**Workflow Path Management:** +- Add: `skills: - workflow: {path}` +- Remove: delete workflow entries +- Modify: update workflow paths + +**Sidecar for Multi-Workflow Modules:** +- If 3+ workflows: consider sidecar creation +- Add sidecar configuration if needed + +**Metadata, Persona, Commands, Critical Actions:** +- Same as Expert agent edit + +### 5. Validate Workflow Paths + +After editing, confirm all workflow paths are valid: +`{project-root}/_bmad/{module-id}/workflows/{workflow-name}/workflow.md` + +### 6. Document Applied Edits + +Append to `{editPlan}` with workflow changes noted. + +### 7. Auto-Advance + +When all edits applied successfully, load and execute `{nextStepFile}` immediately. + +## SUCCESS METRICS + +โœ… Backup created +โœ… All reference files loaded +โœ… All edits applied correctly +โœ… YAML remains valid +โœ… Workflow paths validated +โœ… Sidecar structure correct (if applicable) + +## FAILURE MODES + +โŒ Backup failed +โŒ YAML became invalid +โŒ Workflow paths broken +โŒ Edits not applied as specified + +--- + +**Auto-advancing to post-edit validation... diff --git a/src/modules/bmb/workflows/agent/steps-e/e-09a-validate-metadata.md b/src/modules/bmb/workflows/agent/steps-e/e-09a-validate-metadata.md new file mode 100644 index 00000000..730c43c0 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-09a-validate-metadata.md @@ -0,0 +1,128 @@ +--- +name: 'e-09a-validate-metadata' +description: 'Validate metadata (after edit) - no menu, auto-advance' + +nextStepFile: './e-09b-validate-persona.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentMetadata: ../data/agent-metadata.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 9a: Validate Metadata (After Edit) + +## STEP GOAL + +Validate that the agent's metadata properties (id, name, title, icon, module, hasSidecar, etc.) are properly formatted, complete, and follow BMAD standards as defined in agentMetadata.md. Record findings to editPlan and auto-advance. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation checks** - All metadata fields must be verified +- **ALWAYS load both reference documents** - agentMetadata.md AND the builtYaml +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** Load and validate EVERYTHING specified in the agentMetadata.md file +- **๐Ÿšซ NO MENU in this step** - record findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the metadata validation reference from `{agentMetadata}` +2. Read the built agent YAML from `{builtYaml}` +3. Read the edit plan from `{editPlan}` +4. Extract the metadata section from the builtYaml +5. Compare actual metadata against ALL validation rules in agentMetadata.md + +### Protocol 2: Validation Checks + +Perform these checks systematically - validate EVERY rule specified in agentMetadata.md: + +1. **Required Fields Existence** + - [ ] id: Present and non-empty + - [ ] name: Present and non-empty (display name) + - [ ] title: Present and non-empty + - [ ] icon: Present (emoji or symbol) + - [ ] module: Present and valid format + - [ ] hasSidecar: Present (boolean, if applicable) + +2. **Format Validation** + - [ ] id: Uses kebab-case, no spaces, unique identifier + - [ ] name: Clear display name for UI + - [ ] title: Concise functional description + - [ ] icon: Appropriate emoji or unicode symbol + - [ ] module: Either a 3-4 letter module code (e.g., 'bmm', 'bmb') OR 'stand-alone' + - [ ] hasSidecar: Boolean value, matches actual agent structure + +3. **Content Quality** + - [ ] id: Unique and descriptive + - [ ] name: Clear and user-friendly + - [ ] title: Accurately describes agent's function + - [ ] icon: Visually representative of agent's purpose + - [ ] module: Correctly identifies module membership + - [ ] hasSidecar: Correctly indicates if agent uses sidecar files + +4. **Agent Type Consistency** + - [ ] If hasSidecar: true, sidecar folder path must be specified + - [ ] If module is a module code, agent is a module agent + - [ ] If module is 'stand-alone', agent is not part of a module + - [ ] No conflicting type indicators + +5. **Standards Compliance** + - [ ] No prohibited characters in fields + - [ ] No redundant or conflicting information + - [ ] Consistent formatting with other agents + - [ ] All required BMAD metadata fields present + +### Protocol 3: Record Findings + +Organize findings into three sections and append to editPlan frontmatter under `validationAfter.metadata`: + +```yaml +validationAfter: + metadata: + status: [pass|fail|warning] + passing: + - "{check description}" + - "{check description}" + warnings: + - "{non-blocking issue}" + failures: + - "{blocking issue that must be fixed}" +``` + +**PASSING CHECKS** (List what passed) +``` +โœ“ All required fields present +โœ“ id follows kebab-case convention +โœ“ module value is valid +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Description is brief +โš  Only 2 tags provided, 3-7 recommended +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— id field is empty +โœ— module value is invalid +โœ— hasSidecar is true but no sidecar-folder specified +``` + +### Protocol 4: Auto-Advance + +**๐Ÿšซ NO MENU PRESENTED** - After recording findings, immediately load and execute `{nextStepFile}` + +--- + +**Auto-advancing to persona validation...** + +## SUCCESS METRICS + +โœ… All metadata checks from agentMetadata.md performed +โœ… All checks validated against the actual builtYaml +โœ… Findings saved to editPlan with detailed status +โœ… Auto-advanced to next step diff --git a/src/modules/bmb/workflows/agent/steps-e/e-09b-validate-persona.md b/src/modules/bmb/workflows/agent/steps-e/e-09b-validate-persona.md new file mode 100644 index 00000000..b74e691a --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-09b-validate-persona.md @@ -0,0 +1,138 @@ +--- +name: 'e-09b-validate-persona' +description: 'Validate persona (after edit) - no menu, auto-advance' + +nextStepFile: './e-09c-validate-menu.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 9b: Validate Persona (After Edit) + +## STEP GOAL + +Validate that the agent's persona (role, identity, communication_style, principles) is well-defined, consistent, and aligned with its purpose as defined in personaProperties.md and principlesCrafting.md. Record findings to editPlan and auto-advance. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation checks** - All persona fields must be verified +- **ALWAYS load both reference documents** - personaProperties.md AND principlesCrafting.md +- **ALWAYS load the builtYaml** for actual persona content validation +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** Load and validate EVERYTHING specified in the personaProperties.md file +- **๐Ÿšซ NO MENU in this step** - record findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the persona validation reference from `{personaProperties}` +2. Read the principles crafting guide from `{principlesCrafting}` +3. Read the built agent YAML from `{builtYaml}` +4. Read the edit plan from `{editPlan}` +5. Extract the persona section from the builtYaml +6. Compare actual persona against ALL validation rules + +### Protocol 2: Validation Checks + +Perform these checks systematically - validate EVERY rule specified in personaProperties.md: + +1. **Required Fields Existence** + - [ ] role: Present, clear, and specific + - [ ] identity: Present and defines who the agent is + - [ ] communication_style: Present and appropriate to role + - [ ] principles: Present as array, not empty (if applicable) + +2. **Content Quality - Role** + - [ ] Role is specific (not generic like "assistant") + - [ ] Role aligns with agent's purpose and menu items + - [ ] Role is achievable within LLM capabilities + - [ ] Role scope is appropriate (not too broad/narrow) + +3. **Content Quality - Identity** + - [ ] Identity clearly defines the agent's character + - [ ] Identity is consistent with the role + - [ ] Identity provides context for behavior + - [ ] Identity is not generic or clichรฉ + +4. **Content Quality - Communication Style** + - [ ] Communication style is clearly defined + - [ ] Style matches the role and target users + - [ ] Style is consistent throughout the definition + - [ ] Style examples or guidance provided if nuanced + - [ ] Style focuses on speech patterns only (not behavior) + +5. **Content Quality - Principles** + - [ ] Principles are actionable (not vague platitudes) + - [ ] Principles guide behavior and decisions + - [ ] Principles are consistent with role + - [ ] 3-7 principles recommended (not overwhelming) + - [ ] Each principle is clear and specific + - [ ] First principle activates expert knowledge domain + +6. **Consistency Checks** + - [ ] Role, identity, communication_style, principles all align + - [ ] No contradictions between principles + - [ ] Persona supports the menu items defined + - [ ] Language and terminology consistent + +### Protocol 3: Record Findings + +Organize findings into three sections and append to editPlan frontmatter under `validationAfter.persona`: + +```yaml +validationAfter: + persona: + status: [pass|fail|warning] + passing: + - "{check description}" + - "{check description}" + warnings: + - "{non-blocking issue}" + failures: + - "{blocking issue that must be fixed}" +``` + +**PASSING CHECKS** (List what passed) +``` +โœ“ Role is specific and well-defined +โœ“ Identity clearly articulated and appropriate +โœ“ Communication style clearly defined +โœ“ Principles are actionable and clear +โœ“ First principle activates expert knowledge +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Only 2 principles provided, 3-7 recommended for richer guidance +โš  Communication style could be more specific +โš  Expertise areas are broad, could be more specific +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— Role is generic ("assistant") - needs specificity +โœ— Communication style undefined - creates inconsistent behavior +โœ— Principles are vague ("be helpful" - not actionable) +โœ— First principle doesn't activate expert knowledge +``` + +### Protocol 4: Auto-Advance + +**๐Ÿšซ NO MENU PRESENTED** - After recording findings, immediately load and execute `{nextStepFile}` + +--- + +**Auto-advancing to menu validation...** + +## SUCCESS METRICS + +โœ… All persona checks from personaProperties.md performed +โœ… All checks validated against the actual builtYaml +โœ… Findings saved to editPlan with detailed status +โœ… Auto-advanced to next step diff --git a/src/modules/bmb/workflows/agent/steps-e/e-09c-validate-menu.md b/src/modules/bmb/workflows/agent/steps-e/e-09c-validate-menu.md new file mode 100644 index 00000000..2d627517 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-09c-validate-menu.md @@ -0,0 +1,163 @@ +--- +name: 'e-09c-validate-menu' +description: 'Validate menu structure (after edit) - no menu, auto-advance' + +nextStepFile: './e-09d-validate-structure.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +agentMenuPatterns: ../data/agent-menu-patterns.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 9c: Validate Menu (After Edit) + +## STEP GOAL + +Validate that the agent's menu (commands/tools) follows BMAD patterns as defined in agentMenuPatterns.md, is well-structured, properly documented, and aligns with the agent's persona and purpose. Record findings to editPlan and auto-advance. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation checks** - All menu items must be verified +- **ALWAYS load the reference document** - agentMenuPatterns.md +- **ALWAYS load the builtYaml** for actual menu content validation +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** Load and validate EVERYTHING specified in the agentMenuPatterns.md file +- **๐Ÿšซ NO MENU in this step** - record findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the menu patterns reference from `{agentMenuPatterns}` +2. Read the built agent YAML from `{builtYaml}` +3. Read the edit plan from `{editPlan}` +4. Extract the menu/commands section from the builtYaml +5. Determine agent type (Simple, Expert, or Module) from metadata +6. Compare actual menu against ALL validation rules + +### Protocol 2: Validation Checks + +Perform these checks systematically - validate EVERY rule specified in agentMenuPatterns.md: + +1. **Menu Structure** + - [ ] Menu section exists and is properly formatted + - [ ] At least one menu item defined (unless intentionally tool-less) + - [ ] Menu items follow proper YAML structure + - [ ] Each item has required fields (name, description, pattern) + +2. **Menu Item Requirements** + For each menu item: + - [ ] name: Present, unique, uses kebab-case + - [ ] description: Clear and concise + - [ ] pattern: Valid regex pattern or tool reference + - [ ] scope: Appropriate scope defined (if applicable) + +3. **Pattern Quality** + - [ ] Patterns are valid and testable + - [ ] Patterns are specific enough to match intended inputs + - [ ] Patterns are not overly restrictive + - [ ] Patterns use appropriate regex syntax + +4. **Description Quality** + - [ ] Each item has clear description + - [ ] Descriptions explain what the item does + - [ ] Descriptions are consistent in style + - [ ] Descriptions help users understand when to use + +5. **Alignment Checks** + - [ ] Menu items align with agent's role/purpose + - [ ] Menu items are supported by agent's expertise + - [ ] Menu items fit within agent's constraints + - [ ] Menu items are appropriate for target users + +6. **Completeness** + - [ ] Core capabilities for this role are covered + - [ ] No obvious missing functionality + - [ ] Menu scope is appropriate (not too sparse/overloaded) + - [ ] Related functionality is grouped logically + +7. **Standards Compliance** + - [ ] No prohibited patterns or commands + - [ ] No security vulnerabilities in patterns + - [ ] No ambiguous or conflicting items + - [ ] Consistent naming conventions + +8. **Menu Link Validation (Agent Type Specific)** + - [ ] Determine agent type from metadata: + - Simple: module property is 'stand-alone' AND hasSidecar is false/absent + - Expert: hasSidecar is true + - Module: module property is a module code (e.g., 'bmm', 'bmb', 'bmgd', 'bmad') + - [ ] For Expert agents (hasSidecar: true): + - Menu handlers SHOULD reference external sidecar files (e.g., `./{agent-name}-sidecar/...`) + - OR have inline prompts defined directly in the handler + - [ ] For Module agents (module property is a module code): + - Menu handlers SHOULD reference external module files under the module path + - Exec paths must start with `{project-root}/_bmad/{module}/...` + - Verify referenced files exist under the module directory + - [ ] For Simple agents (stand-alone, no sidecar): + - Menu handlers MUST NOT have external file links + - Menu handlers SHOULD only use relative links within the same file (e.g., `#section-name`) + - OR have inline prompts defined directly in the handler + +### Protocol 3: Record Findings + +Organize findings into three sections and append to editPlan frontmatter under `validationAfter.menu`: + +```yaml +validationAfter: + menu: + status: [pass|fail|warning] + passing: + - "{check description}" + - "{check description}" + warnings: + - "{non-blocking issue}" + failures: + - "{blocking issue that must be fixed}" +``` + +**PASSING CHECKS** (List what passed) +``` +โœ“ Menu structure properly formatted +โœ“ 5 menu items defined, all with required fields +โœ“ All patterns are valid regex +โœ“ Menu items align with agent role +โœ“ Agent type appropriate menu links verified +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Item "analyze-data" description is vague +โš  No menu item for [common capability X] +โš  Pattern for "custom-command" very broad, may over-match +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— Duplicate menu item name: "process" appears twice +โœ— Invalid regex pattern: "[unclosed bracket" +โœ— Menu item "system-admin" violates security guidelines +โœ— No menu items defined for agent type that requires tools +โœ— Simple agent has external link in menu handler (should be relative # or inline) +โœ— Expert agent with sidecar has no external file links or inline prompts defined +โœ— Module agent exec path doesn't start with {project-root}/_bmad/{module}/... +โœ— Module agent references file that doesn't exist in module directory +``` + +### Protocol 4: Auto-Advance + +**๐Ÿšซ NO MENU PRESENTED** - After recording findings, immediately load and execute `{nextStepFile}` + +--- + +**Auto-advancing to structure validation...** + +## SUCCESS METRICS + +โœ… All menu checks from agentMenuPatterns.md performed +โœ… All checks validated against the actual builtYaml +โœ… Agent type-specific link validation performed +โœ… Findings saved to editPlan with detailed status +โœ… Auto-advanced to next step diff --git a/src/modules/bmb/workflows/agent/steps-e/e-09d-validate-structure.md b/src/modules/bmb/workflows/agent/steps-e/e-09d-validate-structure.md new file mode 100644 index 00000000..74893d1a --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-09d-validate-structure.md @@ -0,0 +1,154 @@ +--- +name: 'e-09d-validate-structure' +description: 'Validate YAML structure (after edit) - no menu, auto-advance' + +nextStepFile: './e-09e-validate-sidecar.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +simpleValidation: ../data/simple-agent-validation.md +expertValidation: ../data/expert-agent-validation.md +agentCompilation: ../data/agent-compilation.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 9d: Validate Structure (After Edit) + +## STEP GOAL + +Validate the built agent YAML file for structural completeness and correctness against the appropriate validation checklist (simple or expert) from agentCompilation.md. Record findings to editPlan and auto-advance. + +## MANDATORY EXECUTION RULES + +- **NEVER skip validation** - All agents must pass structural validation +- **ALWAYS use the correct validation checklist** based on agent type (simple vs expert) +- **ALWAYS load the builtYaml** for actual structure validation +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** Load and validate EVERYTHING specified in the agentCompilation.md file +- **MUST check hasSidecar flag** to determine correct validation standard +- **๐Ÿšซ NO MENU in this step** - record findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the agent compilation reference from `{agentCompilation}` +2. Read the simple validation checklist from `{simpleValidation}` +3. Read the expert validation checklist from `{expertValidation}` +4. Read the built agent YAML from `{builtYaml}` +5. Read the edit plan from `{editPlan}` +6. Determine agent type (simple vs expert) to select correct checklist + +### Protocol 2: Validation Checks + +Perform these checks systematically - validate EVERY rule specified in agentCompilation.md: + +#### A. YAML Syntax Validation +- [ ] Parse YAML without errors +- [ ] Check indentation consistency (2-space standard) +- [ ] Validate proper escaping of special characters +- [ ] Verify no duplicate keys in any section + +#### B. Frontmatter Validation +- [ ] All required fields present (name, description, version, etc.) +- [ ] Field values are correct type (string, boolean, array) +- [ ] No empty required fields +- [ ] Proper array formatting with dashes +- [ ] Boolean fields are actual booleans (not strings) + +#### C. Section Completeness +- [ ] All required sections present based on agent type +- [ ] Sections not empty unless explicitly optional +- [ ] Proper markdown heading hierarchy (##, ###) +- [ ] No orphaned content without section headers + +#### D. Field-Level Validation +- [ ] Path references exist and are valid +- [ ] Array fields properly formatted +- [ ] No malformed YAML structures +- [ ] File references use correct path format + +#### E. Agent Type Specific Checks + +**For Simple Agents (hasSidecar is false/absent, module is 'stand-alone'):** +- [ ] No sidecar requirements +- [ ] No sidecar-folder path in metadata +- [ ] Basic fields complete +- [ ] No expert-only configuration present +- [ ] Menu handlers use only internal references (#) or inline prompts + +**For Expert Agents (hasSidecar is true):** +- [ ] Sidecar flag set correctly in metadata +- [ ] Sidecar folder path specified in metadata +- [ ] All expert fields present +- [ ] Advanced features properly configured +- [ ] Menu handlers reference sidecar files or have inline prompts + +**For Module Agents (module is a module code like 'bmm', 'bmb', etc.):** +- [ ] Module property is valid module code +- [ ] Exec paths for menu handlers start with `{project-root}/_bmad/{module}/...` +- [ ] Referenced files exist under the module directory +- [ ] If also hasSidecar: true, sidecar configuration is valid + +### Protocol 3: Record Findings + +Organize findings into three sections and append to editPlan frontmatter under `validationAfter.structure`: + +```yaml +validationAfter: + structure: + agentType: [simple|expert|module] + status: [pass|fail|warning] + passing: + - "{check description}" + - "{check description}" + warnings: + - "{non-blocking issue}" + failures: + - "{blocking issue that must be fixed}" +``` + +**PASSING CHECKS** (List what passed) +``` +โœ“ Valid YAML syntax, no parse errors +โœ“ All required frontmatter fields present +โœ“ Proper 2-space indentation throughout +โœ“ All required sections complete for agent type +โœ“ Path references are valid +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Some optional sections are empty +โš  Minor formatting inconsistencies +โš  Some descriptions are brief +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— YAML syntax error preventing parsing +โœ— Duplicate key 'name' in metadata +โœ— Required field 'description' is empty +โœ— Invalid boolean value 'yes' (should be true/false) +โœ— Path reference points to non-existent file +โœ— Simple agent has sidecar-folder specified +โœ— Expert agent missing sidecar-folder path +``` + +### Protocol 4: Auto-Advance + +**๐Ÿšซ NO MENU PRESENTED** - After recording findings, immediately load and execute `{nextStepFile}` + +--- + +**Auto-advancing to sidecar validation...** + +## SUCCESS METRICS + +โœ… All structure checks from agentCompilation.md performed +โœ… Correct validation checklist used based on agent type +โœ… All checks validated against the actual builtYaml +โœ… Findings saved to editPlan with detailed status +โœ… Agent type correctly identified and validated +โœ… Auto-advanced to next step diff --git a/src/modules/bmb/workflows/agent/steps-e/e-09e-validate-sidecar.md b/src/modules/bmb/workflows/agent/steps-e/e-09e-validate-sidecar.md new file mode 100644 index 00000000..7bb150fb --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-09e-validate-sidecar.md @@ -0,0 +1,160 @@ +--- +name: 'e-09e-validate-sidecar' +description: 'Validate sidecar structure (after edit) - no menu, auto-advance' + +nextStepFile: './e-09f-validation-summary.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' +expertValidation: ../data/expert-agent-validation.md +criticalActions: ../data/critical-actions.md +builtYaml: '{bmb_creations_output_folder}/{agent-name}/{agent-name}.agent.yaml' +sidecarFolder: '{bmb_creations_output_folder}/{agent-name}/{agent-name}-sidecar/' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 9e: Validate Sidecar (After Edit) + +## STEP GOAL + +Validate the sidecar folder structure and referenced paths for Expert agents to ensure all sidecar files exist, are properly structured, and paths in the main agent YAML correctly reference them. Record findings to editPlan and auto-advance. For Simple agents without sidecar, mark as N/A. + +## MANDATORY EXECUTION RULES + +- **ONLY validates for Expert agents** - Simple agents should have no sidecar +- **MUST verify sidecar folder exists** before validating contents +- **ALWAYS cross-reference YAML paths** with actual files +- **ALWAYS load the builtYaml** to get sidecar configuration +- **ALWAYS use absolute paths** when referencing files +- **CRITICAL:** Load and validate EVERYTHING specified in the expertValidation.md file +- **PROVIDE clear remediation steps** for any missing or malformed files +- **๐Ÿšซ NO MENU in this step** - record findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS + +### Protocol 1: Load and Compare +1. Read the expert validation reference from `{expertValidation}` +2. Read the critical actions reference from `{criticalActions}` +3. Read the built agent YAML from `{builtYaml}` +4. Read the edit plan from `{editPlan}` +5. Determine if agent has sidecar from metadata + +### Protocol 2: Conditional Validation + +**IF agent has hasSidecar: false OR agent is Simple:** +- [ ] Mark sidecar validation as N/A +- [ ] Confirm no sidecar-folder path in metadata +- [ ] Confirm no sidecar references in menu handlers + +**IF agent has hasSidecar: true OR agent is Expert/Module with sidecar:** +- [ ] Proceed with full sidecar validation + +### Protocol 3: Sidecar Validation Checks (For Expert Agents) + +Perform these checks systematically - validate EVERY rule specified in expertValidation.md: + +#### A. Sidecar Folder Validation +- [ ] Sidecar folder exists at specified path +- [ ] Sidecar folder is accessible and readable +- [ ] Sidecar folder path in metadata matches actual location +- [ ] Folder naming follows convention: `{agent-name}-sidecar` + +#### B. Sidecar File Inventory +- [ ] List all files in sidecar folder +- [ ] Verify expected files are present +- [ ] Check for unexpected files +- [ ] Validate file names follow conventions + +#### C. Path Reference Validation +For each sidecar path reference in agent YAML: +- [ ] Extract path from YAML reference +- [ ] Verify file exists at referenced path +- [ ] Check path format is correct (relative/absolute as expected) +- [ ] Validate no broken path references + +#### D. Critical Actions File Validation (if present) +- [ ] critical-actions.md file exists +- [ ] File has proper frontmatter +- [ ] Actions section is present and not empty +- [ ] No critical sections missing +- [ ] File content is complete (not just placeholder) + +#### E. Module Files Validation (if present) +- [ ] Module files exist at referenced paths +- [ ] Each module file has proper frontmatter +- [ ] Module file content is complete +- [ ] No empty or placeholder module files + +#### F. Sidecar Structure Completeness +- [ ] All referenced sidecar files present +- [ ] No orphaned references (files referenced but not present) +- [ ] No unreferenced files (files present but not referenced) +- [ ] File structure matches expert agent requirements + +### Protocol 4: Record Findings + +Organize findings into three sections and append to editPlan frontmatter under `validationAfter.sidecar`: + +```yaml +validationAfter: + sidecar: + hasSidecar: [true|false] + status: [pass|fail|warning|n/a] + passing: + - "{check description}" + - "{check description}" + warnings: + - "{non-blocking issue}" + failures: + - "{blocking issue that must be fixed}" +``` + +**PASSING CHECKS** (List what passed - for Expert agents)** +``` +โœ“ Sidecar folder exists at expected path +โœ“ All referenced files present +โœ“ No broken path references +โœ“ Critical actions file complete +โœ“ Module files properly structured +โœ“ File structure matches expert requirements +``` + +**WARNINGS** (Non-blocking issues) +``` +โš  Additional files in sidecar not referenced +โš  Some module files are minimal +โš  Sidecar has no modules (may be intentional) +``` + +**FAILURES** (Blocking issues that must be fixed) +``` +โœ— Sidecar folder completely missing +โœ— Sidecar folder path in metadata doesn't match actual location +โœ— Critical file missing: critical-actions.md +โœ— Broken path reference: {path} not found +โœ— Referenced file is empty or placeholder +โœ— Module file missing frontmatter +โœ— Simple agent has sidecar configuration (should not) +``` + +**N/A FOR SIMPLE AGENTS:** +``` +N/A - Agent is Simple type (hasSidecar: false, no sidecar required) +``` + +### Protocol 5: Auto-Advance + +**๐Ÿšซ NO MENU PRESENTED** - After recording findings, immediately load and execute `{nextStepFile}` + +--- + +**Auto-advancing to validation summary...** + +## SUCCESS METRICS + +โœ… All sidecar checks from expertValidation.md performed (or N/A for Simple) +โœ… All checks validated against the actual builtYaml and file system +โœ… Findings saved to editPlan with detailed status +โœ… Agent type correctly identified (sidecar vs non-sidecar) +โœ… Auto-advanced to next step diff --git a/src/modules/bmb/workflows/agent/steps-e/e-09f-validation-summary.md b/src/modules/bmb/workflows/agent/steps-e/e-09f-validation-summary.md new file mode 100644 index 00000000..dfbba1d2 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-09f-validation-summary.md @@ -0,0 +1,111 @@ +--- +name: 'e-09f-validation-summary' +description: 'Display all validation findings after edit' + +nextStepFile: './e-10-celebrate.md' +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 9f: Validation Summary (After Edit) + +## STEP GOAL: + +Display all post-edit validation findings and compare with pre-edit state. Present findings and await confirmation to proceed to celebration. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read editPlan to collect all validation findings +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Display all validation findings clearly organized +- ๐Ÿ“Š Compare before/after states +- ๐Ÿ’ฌ Present options for handling any remaining issues + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Read editPlan to get validation findings +- ๐Ÿ“Š Display organized summary with before/after comparison +- ๐Ÿ’พ Allow user to decide how to proceed + +## Sequence of Instructions: + +### 1. Load Validation Findings + +Read `{editPlan}` frontmatter to collect validationBefore and validationAfter findings. + +### 2. Display Validation Summary + +```markdown +## Post-Edit Validation Report for {agent-name} + +### Before vs After Comparison + +| Component | Before | After | Status | +|-----------|--------|-------|--------| +| Metadata | {status} | {status} | {ฮ”} | +| Persona | {status} | {status} | {ฮ”} | +| Menu | {status} | {status} | {ฮ”} | +| Structure | {status} | {status} | {ฮ”} | +| Sidecar | {status} | {status} | {ฮ”} | + +### Detailed Findings (After Edit) + +**Metadata:** {summary} +**Persona:** {summary} +**Menu:** {summary} +**Structure:** {summary} +**Sidecar:** {summary} +``` + +### 3. Present Options + +"How do the edits look? + +**[R]eview** - Show detailed before/after for any component +**[F]ix** - Address any remaining issues +**[A]ccept** - Proceed to celebration" + +### 4. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Celebration" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF R: Show detailed before/after comparison, then redisplay menu +- IF C: Save validation summary to {editPlan}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#4-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [validation summary displayed], will you then load and read fully `{nextStepFile}` to execute and celebrate completion. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- All validation findings displayed clearly +- Before/after comparison shown +- User given options for handling issues + +### โŒ SYSTEM FAILURE: + +- Findings not displayed to user +- Proceeding without user acknowledgment + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-e/e-10-celebrate.md b/src/modules/bmb/workflows/agent/steps-e/e-10-celebrate.md new file mode 100644 index 00000000..5486e16a --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-e/e-10-celebrate.md @@ -0,0 +1,150 @@ +--- +name: 'e-10-celebrate' +description: 'Celebrate successful agent edit completion' + +editPlan: '{bmb_creations_output_folder}/edit-plan-{agent-name}.md' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Edit Step 10: Celebration + +## STEP GOAL: + +Celebrate the successful agent edit, provide summary of changes, and mark edit workflow completion. + +## MANDATORY EXECUTION RULES: + +- ๐ŸŽ‰ ALWAYS celebrate the achievement with enthusiasm +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read editPlan to summarize what was accomplished +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- โœ… You are a celebration coordinator who acknowledges successful agent improvements +- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role +- โœ… We engage in collaborative dialogue, not command-response +- โœ… You bring celebration energy, user brings their satisfaction, together we acknowledge successful collaboration + +### Step-Specific Rules: + +- ๐ŸŽฏ Focus on celebrating and summarizing what was accomplished +- ๐Ÿšซ FORBIDDEN to end without marking workflow completion +- ๐Ÿ’ฌ Approach: Enthusiastic while providing clear summary + +## EXECUTION PROTOCOLS: + +- ๐ŸŽ‰ Celebrate the edit completion enthusiastically +- ๐Ÿ“Š Provide clear summary of all changes made +- ๐Ÿ’พ Mark workflow completion in edit plan +- ๐Ÿšซ FORBIDDEN to end without proper completion marking + +## CONTEXT BOUNDARIES: + +- Available context: editPlan with full edit history +- Focus: Celebration and summary +- Limits: No more edits, only acknowledgment +- Dependencies: All edits successfully applied + +## Sequence of Instructions: + +### 1. Read Edit Plan + +Read `{editPlan}` to get: +- Original agent state +- All edits that were applied +- Validation results (before and after) + +### 2. Grand Celebration + +"๐ŸŽ‰ **Excellent work!** Your agent **{agent-name}** has been successfully updated!" + +### 3. Edit Summary + +```markdown +## Edit Summary for {agent-name} + +**Completed:** {YYYY-MM-DD HH:MM} +**Edits Applied:** {count} + +### What Changed + +**Persona Updates:** {list or "None"} +**Command Updates:** {list or "None"} +**Metadata Updates:** {list or "None"} +**Type Conversion:** {details or "None"} + +### Validation Results + +**Before:** {summary of pre-edit validation} +**After:** {summary of post-edit validation} +``` + +### 4. Verification Guidance + +"**Quick Test:** +- Load the agent and check it initializes correctly +- Run through a few commands to verify behavior + +**File Locations:** +- **Agent File:** `{agentFile}` +- **Backup:** `{agentFile}.backup`" + +### 5. Document Completion + +Append to editPlan: + +```markdown +## Edit Session Complete โœ… + +**Completed:** {YYYY-MM-DD HH:MM} +**Status:** Success + +### Final State +- Agent file updated successfully +- All edits applied +- Backup preserved +``` + +### 6. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [X] Exit Workflow" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF X: Save completion status to {editPlan} and end workflow gracefully +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY complete workflow when user selects 'X' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [X exit option] is selected and [completion documented], will the workflow end gracefully with agent edit complete. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Enthusiastic celebration of edit completion +- Clear summary of all changes provided +- Before/after validation comparison shown +- Verification guidance provided +- Workflow completion marked in edit plan + +### โŒ SYSTEM FAILURE: + +- Ending without marking workflow completion +- Not providing clear summary of changes +- Missing celebration of achievement + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-v/v-01-load-review.md b/src/modules/bmb/workflows/agent/steps-v/v-01-load-review.md new file mode 100644 index 00000000..f1ba0e5e --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-01-load-review.md @@ -0,0 +1,133 @@ +--- +name: 'v-01-load-review' +description: 'Load agent and initialize validation report' + +nextStepFile: './v-02a-validate-metadata.md' +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' +agentMetadata: ../data/agent-metadata.md + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Validate Step 1: Load Agent for Review + +## STEP GOAL: + +Load the existing agent file and initialize a validation report to track all findings. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Load the complete agent file +- ๐Ÿ“Š Create validation report tracking document +- ๐Ÿšซ FORBIDDEN to proceed without user confirming correct agent + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Load the complete agent YAML file +- ๐Ÿ“Š Parse and display agent summary +- ๐Ÿ’พ Create validation report document +- ๐Ÿšซ FORBIDDEN to proceed without user confirmation + +## Sequence of Instructions: + +### 1. Load Agent File + +Read the complete YAML from the agent file path provided by the user. +If the module property of the agent metadata is stand-alone, it is not a module agent. +If the module property of the agent is a module code (like bmm, bmb, etc...) it is a module agent. +If the property hasSidecar: true exists in the metadata, then it is an expert agent. +Else it is a simple agent. + +If a module agent also hasSidecar: true - this means it is a modules expert agent, thus it can have sidecar. + +### 2. Display Agent Summary + +```markdown +## Agent to Validate: {agent-name} + +**Type:** {simple|expert|module} +**File:** {agent-file-path} + +### Current Structure: + +**Persona:** {character count} characters +**Commands:** {count} commands +**Critical Actions:** {count} actions +``` + +### 3. Create Validation Report + +Initialize the validation report: + +```markdown +--- +agentName: '{agent-name}' +agentType: '{simple|expert|module}' +agentFile: '{agent-file-path}' +validationDate: '{YYYY-MM-DD}' +stepsCompleted: + - v-01-load-review.md +--- + +# Validation Report: {agent-name} + +## Agent Overview + +**Name:** {agent-name} +**Type:** {simple|expert|module} +**Version:** {version} +**File:** {agent-file-path} + +--- + +## Validation Findings + +*This section will be populated by validation steps* +``` + +Write to `{validationReport}`. + +### 4. Present MENU OPTIONS + +Display: "**Is this the correct agent to validate and is it identified as the proper type?** [A] Advanced Elicitation [P] Party Mode [C] Yes, Begin Validation" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save to {validationReport}, then only then load, read entire file, then execute {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#4-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [agent loaded and report created], will you then load and read fully `{nextStepFile}` to execute and begin validation. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Agent file loaded successfully +- Validation report created +- User confirmed correct agent + +### โŒ SYSTEM FAILURE: + +- Failed to load agent file +- Report not created +- Proceeded without user confirmation + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/agent/steps-v/v-02a-validate-metadata.md b/src/modules/bmb/workflows/agent/steps-v/v-02a-validate-metadata.md new file mode 100644 index 00000000..dbf14996 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-02a-validate-metadata.md @@ -0,0 +1,114 @@ +--- +name: 'v-02a-validate-metadata' +description: 'Validate metadata and append to report' + +nextStepFile: './v-02b-validate-persona.md' +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' +agentMetadata: ../data/agent-metadata.md +agentFile: '{agent-file-path}' +--- + +# Validate Step 2a: Validate Metadata + +## STEP GOAL + +Validate the agent's metadata properties against BMAD standards as defined in agentMetadata.md. Append findings to validation report and auto-advance. + +## MANDATORY EXECUTION RULES + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read validationReport and agentMetadata first +- ๐Ÿ”„ CRITICAL: Load the actual agent file to validate metadata +- ๐Ÿšซ NO MENU - append findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Validate metadata against agentMetadata.md rules +- ๐Ÿ“Š Append findings to validation report +- ๐Ÿšซ FORBIDDEN to present menu + +## EXECUTION PROTOCOLS + +- ๐ŸŽฏ Load agentMetadata.md reference +- ๐ŸŽฏ Load the actual agent file for validation +- ๐Ÿ“Š Validate all metadata fields +- ๐Ÿ’พ Append findings to validation report +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load References + +Read `{agentMetadata}`, `{validationReport}`, and `{agentFile}`. + +### 2. Validate Metadata + +Perform these checks systematically - validate EVERY rule specified in agentMetadata.md: + +1. **Required Fields Existence** + - [ ] id: Present and non-empty + - [ ] name: Present and non-empty (display name) + - [ ] title: Present and non-empty + - [ ] icon: Present (emoji or symbol) + - [ ] module: Present and valid format + - [ ] hasSidecar: Present (boolean, if applicable) + +2. **Format Validation** + - [ ] id: Uses kebab-case, no spaces, unique identifier + - [ ] name: Clear display name for UI + - [ ] title: Concise functional description + - [ ] icon: Appropriate emoji or unicode symbol + - [ ] module: Either a 3-4 letter module code OR 'stand-alone' + - [ ] hasSidecar: Boolean value, matches actual agent structure + +3. **Content Quality** + - [ ] id: Unique and descriptive + - [ ] name: Clear and user-friendly + - [ ] title: Accurately describes agent's function + - [ ] icon: Visually representative of agent's purpose + - [ ] module: Correctly identifies module membership + - [ ] hasSidecar: Correctly indicates if agent uses sidecar files + +4. **Agent Type Consistency** + - [ ] If hasSidecar: true, sidecar folder path must be specified + - [ ] If module is a module code, agent is a module agent + - [ ] If module is 'stand-alone', agent is not part of a module + - [ ] No conflicting type indicators + +### 3. Append Findings to Report + +Append to `{validationReport}`: + +```markdown +### Metadata Validation + +**Status:** {โœ… PASS / โš ๏ธ WARNING / โŒ FAIL} + +**Checks:** +- [ ] id: kebab-case, no spaces, unique +- [ ] name: clear display name +- [ ] title: concise function description +- [ ] icon: appropriate emoji/symbol +- [ ] module: correct format (code or stand-alone) +- [ ] hasSidecar: matches actual usage + +**Detailed Findings:** + +*PASSING:* +{List of passing checks} + +*WARNINGS:* +{List of non-blocking issues} + +*FAILURES:* +{List of blocking issues that must be fixed} +``` + +### 4. Auto-Advance + +Load and execute `{nextStepFile}` immediately. + +--- + +**Validating persona...** diff --git a/src/modules/bmb/workflows/agent/steps-v/v-02b-validate-persona.md b/src/modules/bmb/workflows/agent/steps-v/v-02b-validate-persona.md new file mode 100644 index 00000000..7095c9cf --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-02b-validate-persona.md @@ -0,0 +1,122 @@ +--- +name: 'v-02b-validate-persona' +description: 'Validate persona and append to report' + +nextStepFile: './v-02c-validate-menu.md' +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' +personaProperties: ../data/persona-properties.md +principlesCrafting: ../data/principles-crafting.md +agentFile: '{agent-file-path}' +--- + +# Validate Step 2b: Validate Persona + +## STEP GOAL + +Validate the agent's persona against BMAD standards as defined in personaProperties.md and principlesCrafting.md. Append findings to validation report and auto-advance. + +## MANDATORY EXECUTION RULES + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read validationReport and persona references first +- ๐Ÿ”„ CRITICAL: Load the actual agent file to validate persona +- ๐Ÿšซ NO MENU - append findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Validate persona against personaProperties.md rules +- ๐Ÿ“Š Append findings to validation report +- ๐Ÿšซ FORBIDDEN to present menu + +## EXECUTION PROTOCOLS + +- ๐ŸŽฏ Load personaProperties.md and principlesCrafting.md +- ๐ŸŽฏ Load the actual agent file for validation +- ๐Ÿ“Š Validate persona fields +- ๐Ÿ’พ Append findings to validation report +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load References + +Read `{personaProperties}`, `{principlesCrafting}`, `{validationReport}`, and `{agentFile}`. + +### 2. Validate Persona + +Perform these checks systematically - validate EVERY rule specified in personaProperties.md: + +1. **Required Fields Existence** + - [ ] role: Present, clear, and specific + - [ ] identity: Present and defines who the agent is + - [ ] communication_style: Present and appropriate to role + - [ ] principles: Present as array, not empty (if applicable) + +2. **Content Quality - Role** + - [ ] Role is specific (not generic like "assistant") + - [ ] Role aligns with agent's purpose and menu items + - [ ] Role is achievable within LLM capabilities + - [ ] Role scope is appropriate (not too broad/narrow) + +3. **Content Quality - Identity** + - [ ] Identity clearly defines the agent's character + - [ ] Identity is consistent with the role + - [ ] Identity provides context for behavior + - [ ] Identity is not generic or clichรฉ + +4. **Content Quality - Communication Style** + - [ ] Communication style is clearly defined + - [ ] Style matches the role and target users + - [ ] Style is consistent throughout the definition + - [ ] Style examples or guidance provided if nuanced + - [ ] Style focuses on speech patterns only (not behavior) + +5. **Content Quality - Principles** + - [ ] Principles are actionable (not vague platitudes) + - [ ] Principles guide behavior and decisions + - [ ] Principles are consistent with role + - [ ] 3-7 principles recommended (not overwhelming) + - [ ] Each principle is clear and specific + - [ ] First principle activates expert knowledge domain + +6. **Consistency Checks** + - [ ] Role, identity, communication_style, principles all align + - [ ] No contradictions between principles + - [ ] Persona supports the menu items defined + - [ ] Language and terminology consistent + +### 3. Append Findings to Report + +Append to `{validationReport}`: + +```markdown +### Persona Validation + +**Status:** {โœ… PASS / โš ๏ธ WARNING / โŒ FAIL} + +**Checks:** +- [ ] role: specific, not generic +- [ ] identity: defines who agent is +- [ ] communication_style: speech patterns only +- [ ] principles: first principle activates expert knowledge + +**Detailed Findings:** + +*PASSING:* +{List of passing checks} + +*WARNINGS:* +{List of non-blocking issues} + +*FAILURES:* +{List of blocking issues that must be fixed} +``` + +### 4. Auto-Advance + +Load and execute `{nextStepFile}` immediately. + +--- + +**Validating menu structure...** diff --git a/src/modules/bmb/workflows/agent/steps-v/v-02c-validate-menu.md b/src/modules/bmb/workflows/agent/steps-v/v-02c-validate-menu.md new file mode 100644 index 00000000..de0a74aa --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-02c-validate-menu.md @@ -0,0 +1,143 @@ +--- +name: 'v-02c-validate-menu' +description: 'Validate menu structure and append to report' + +nextStepFile: './v-02d-validate-structure.md' +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' +agentMenuPatterns: ../data/agent-menu-patterns.md +agentFile: '{agent-file-path}' +--- + +# Validate Step 2c: Validate Menu + +## STEP GOAL + +Validate the agent's command menu structure against BMAD standards as defined in agentMenuPatterns.md. Append findings to validation report and auto-advance. + +## MANDATORY EXECUTION RULES + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read validationReport and agentMenuPatterns first +- ๐Ÿ”„ CRITICAL: Load the actual agent file to validate menu +- ๐Ÿšซ NO MENU - append findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Validate menu against agentMenuPatterns.md rules +- ๐Ÿ“Š Append findings to validation report +- ๐Ÿšซ FORBIDDEN to present menu + +## EXECUTION PROTOCOLS + +- ๐ŸŽฏ Load agentMenuPatterns.md reference +- ๐ŸŽฏ Load the actual agent file for validation +- ๐Ÿ“Š Validate commands and menu +- ๐Ÿ’พ Append findings to validation report +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load References + +Read `{agentMenuPatterns}`, `{validationReport}`, and `{agentFile}`. + +### 2. Validate Menu + +Perform these checks systematically - validate EVERY rule specified in agentMenuPatterns.md: + +1. **Menu Structure** + - [ ] Menu section exists and is properly formatted + - [ ] At least one menu item defined (unless intentionally tool-less) + - [ ] Menu items follow proper YAML structure + - [ ] Each item has required fields (name, description, pattern) + +2. **Menu Item Requirements** + For each menu item: + - [ ] name: Present, unique, uses kebab-case + - [ ] description: Clear and concise + - [ ] pattern: Valid regex pattern or tool reference + - [ ] scope: Appropriate scope defined (if applicable) + +3. **Pattern Quality** + - [ ] Patterns are valid and testable + - [ ] Patterns are specific enough to match intended inputs + - [ ] Patterns are not overly restrictive + - [ ] Patterns use appropriate regex syntax + +4. **Description Quality** + - [ ] Each item has clear description + - [ ] Descriptions explain what the item does + - [ ] Descriptions are consistent in style + - [ ] Descriptions help users understand when to use + +5. **Alignment Checks** + - [ ] Menu items align with agent's role/purpose + - [ ] Menu items are supported by agent's expertise + - [ ] Menu items fit within agent's constraints + - [ ] Menu items are appropriate for target users + +6. **Completeness** + - [ ] Core capabilities for this role are covered + - [ ] No obvious missing functionality + - [ ] Menu scope is appropriate (not too sparse/overloaded) + - [ ] Related functionality is grouped logically + +7. **Standards Compliance** + - [ ] No prohibited patterns or commands + - [ ] No security vulnerabilities in patterns + - [ ] No ambiguous or conflicting items + - [ ] Consistent naming conventions + +8. **Menu Link Validation (Agent Type Specific)** + - [ ] Determine agent type from metadata: + - Simple: module property is 'stand-alone' AND hasSidecar is false/absent + - Expert: hasSidecar is true + - Module: module property is a module code (e.g., 'bmm', 'bmb', 'bmgd', 'bmad') + - [ ] For Expert agents (hasSidecar: true): + - Menu handlers SHOULD reference external sidecar files (e.g., `./{agent-name}-sidecar/...`) + - OR have inline prompts defined directly in the handler + - [ ] For Module agents (module property is a module code): + - Menu handlers SHOULD reference external module files under the module path + - Exec paths must start with `{project-root}/_bmad/{module}/...` + - Verify referenced files exist under the module directory + - [ ] For Simple agents (stand-alone, no sidecar): + - Menu handlers MUST NOT have external file links + - Menu handlers SHOULD only use relative links within the same file (e.g., `#section-name`) + - OR have inline prompts defined directly in the handler + +### 3. Append Findings to Report + +Append to `{validationReport}`: + +```markdown +### Menu Validation + +**Status:** {โœ… PASS / โš ๏ธ WARNING / โŒ FAIL} + +**Checks:** +- [ ] A/P/C convention followed +- [ ] Command names clear and descriptive +- [ ] Command descriptions specific and actionable +- [ ] Menu handling logic properly specified +- [ ] Agent type appropriate menu links verified + +**Detailed Findings:** + +*PASSING:* +{List of passing checks} + +*WARNINGS:* +{List of non-blocking issues} + +*FAILURES:* +{List of blocking issues that must be fixed} +``` + +### 4. Auto-Advance + +Load and execute `{nextStepFile}` immediately. + +--- + +**Validating YAML structure...** diff --git a/src/modules/bmb/workflows/agent/steps-v/v-02d-validate-structure.md b/src/modules/bmb/workflows/agent/steps-v/v-02d-validate-structure.md new file mode 100644 index 00000000..f4707e54 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-02d-validate-structure.md @@ -0,0 +1,134 @@ +--- +name: 'v-02d-validate-structure' +description: 'Validate YAML structure and append to report' + +nextStepFile: './v-02e-validate-sidecar.md' +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' +simpleValidation: ../data/simple-agent-validation.md +expertValidation: ../data/expert-agent-validation.md +agentCompilation: ../data/agent-compilation.md +agentFile: '{agent-file-path}' +--- + +# Validate Step 2d: Validate Structure + +## STEP GOAL + +Validate the agent's YAML structure and completeness against BMAD standards as defined in agentCompilation.md. Append findings to validation report and auto-advance. + +## MANDATORY EXECUTION RULES + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read validationReport and agentCompilation first +- ๐Ÿ”„ CRITICAL: Load the actual agent file to validate structure +- ๐Ÿšซ NO MENU - append findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Validate structure against agentCompilation.md rules +- ๐Ÿ“Š Append findings to validation report +- ๐Ÿšซ FORBIDDEN to present menu + +## EXECUTION PROTOCOLS + +- ๐ŸŽฏ Load agentCompilation.md reference +- ๐ŸŽฏ Load the actual agent file for validation +- ๐Ÿ“Š Validate YAML structure +- ๐Ÿ’พ Append findings to validation report +- โžก๏ธ Auto-advance to next validation step + +## Sequence of Instructions: + +### 1. Load References + +Read `{agentCompilation}`, `{simpleValidation}`, `{expertValidation}`, `{validationReport}`, and `{agentFile}`. + +### 2. Validate Structure + +Perform these checks systematically - validate EVERY rule specified in agentCompilation.md: + +#### A. YAML Syntax Validation +- [ ] Parse YAML without errors +- [ ] Check indentation consistency (2-space standard) +- [ ] Validate proper escaping of special characters +- [ ] Verify no duplicate keys in any section + +#### B. Frontmatter Validation +- [ ] All required fields present (name, description, version, etc.) +- [ ] Field values are correct type (string, boolean, array) +- [ ] No empty required fields +- [ ] Proper array formatting with dashes +- [ ] Boolean fields are actual booleans (not strings) + +#### C. Section Completeness +- [ ] All required sections present based on agent type +- [ ] Sections not empty unless explicitly optional +- [ ] Proper markdown heading hierarchy (##, ###) +- [ ] No orphaned content without section headers + +#### D. Field-Level Validation +- [ ] Path references exist and are valid +- [ ] Array fields properly formatted +- [ ] No malformed YAML structures +- [ ] File references use correct path format + +#### E. Agent Type Specific Checks + +**For Simple Agents (hasSidecar is false/absent, module is 'stand-alone'):** +- [ ] No sidecar requirements +- [ ] No sidecar-folder path in metadata +- [ ] Basic fields complete +- [ ] No expert-only configuration present +- [ ] Menu handlers use only internal references (#) or inline prompts + +**For Expert Agents (hasSidecar is true):** +- [ ] Sidecar flag set correctly in metadata +- [ ] Sidecar folder path specified in metadata +- [ ] All expert fields present +- [ ] Advanced features properly configured +- [ ] Menu handlers reference sidecar files or have inline prompts + +**For Module Agents (module is a module code like 'bmm', 'bmb', etc.):** +- [ ] Module property is valid module code +- [ ] Exec paths for menu handlers start with `{project-root}/_bmad/{module}/...` +- [ ] Referenced files exist under the module directory +- [ ] If also hasSidecar: true, sidecar configuration is valid + +### 3. Append Findings to Report + +Append to `{validationReport}`: + +```markdown +### Structure Validation + +**Status:** {โœ… PASS / โš ๏ธ WARNING / โŒ FAIL} + +**Agent Type:** {simple|expert|module} + +**Checks:** +- [ ] Valid YAML syntax +- [ ] Required fields present (name, description, type, persona) +- [ ] Field types correct (arrays, strings) +- [ ] Consistent 2-space indentation +- [ ] Agent type appropriate structure + +**Detailed Findings:** + +*PASSING:* +{List of passing checks} + +*WARNINGS:* +{List of non-blocking issues} + +*FAILURES:* +{List of blocking issues that must be fixed} +``` + +### 4. Auto-Advance + +Load and execute `{nextStepFile}` immediately. + +--- + +**Validating sidecar structure...** diff --git a/src/modules/bmb/workflows/agent/steps-v/v-02e-validate-sidecar.md b/src/modules/bmb/workflows/agent/steps-v/v-02e-validate-sidecar.md new file mode 100644 index 00000000..18fc5a7b --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-02e-validate-sidecar.md @@ -0,0 +1,134 @@ +--- +name: 'v-02e-validate-sidecar' +description: 'Validate sidecar structure and append to report' + +nextStepFile: './v-03-summary.md' +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' +expertValidation: ../data/expert-agent-validation.md +criticalActions: ../data/critical-actions.md +agentFile: '{agent-file-path}' +sidecarFolder: '{agent-sidecar-folder}' +--- + +# Validate Step 2e: Validate Sidecar + +## STEP GOAL + +Validate the agent's sidecar structure (if Expert type) against BMAD standards as defined in expertValidation.md. Append findings to validation report and auto-advance. + +## MANDATORY EXECUTION RULES + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read validationReport and expertValidation first +- ๐Ÿ”„ CRITICAL: Load the actual agent file to check for sidecar +- ๐Ÿšซ NO MENU - append findings and auto-advance +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Validate sidecar against expertValidation.md rules (for Expert agents) +- ๐Ÿ“Š Append findings to validation report +- ๐Ÿšซ FORBIDDEN to present menu + +## EXECUTION PROTOCOLS + +- ๐ŸŽฏ Load expertValidation.md reference +- ๐ŸŽฏ Load the actual agent file for validation +- ๐Ÿ“Š Validate sidecar if Expert type, skip for Simple/Module +- ๐Ÿ’พ Append findings to validation report +- โžก๏ธ Auto-advance to summary step + +## Sequence of Instructions: + +### 1. Load References + +Read `{expertValidation}`, `{criticalActions}`, `{validationReport}`, and `{agentFile}`. + +### 2. Conditional Validation + +**IF agentType == expert OR (agentType == module AND hasSidecar == true):** +Perform these checks systematically - validate EVERY rule specified in expertValidation.md: + +#### A. Sidecar Folder Validation +- [ ] Sidecar folder exists at specified path +- [ ] Sidecar folder is accessible and readable +- [ ] Sidecar folder path in metadata matches actual location +- [ ] Folder naming follows convention: `{agent-name}-sidecar` + +#### B. Sidecar File Inventory +- [ ] List all files in sidecar folder +- [ ] Verify expected files are present +- [ ] Check for unexpected files +- [ ] Validate file names follow conventions + +#### C. Path Reference Validation +For each sidecar path reference in agent YAML: +- [ ] Extract path from YAML reference +- [ ] Verify file exists at referenced path +- [ ] Check path format is correct (relative/absolute as expected) +- [ ] Validate no broken path references + +#### D. Critical Actions File Validation (if present) +- [ ] critical-actions.md file exists +- [ ] File has proper frontmatter +- [ ] Actions section is present and not empty +- [ ] No critical sections missing +- [ ] File content is complete (not just placeholder) + +#### E. Module Files Validation (if present) +- [ ] Module files exist at referenced paths +- [ ] Each module file has proper frontmatter +- [ ] Module file content is complete +- [ ] No empty or placeholder module files + +#### F. Sidecar Structure Completeness +- [ ] All referenced sidecar files present +- [ ] No orphaned references (files referenced but not present) +- [ ] No unreferenced files (files present but not referenced) +- [ ] File structure matches expert agent requirements + +**IF agentType is Simple (no sidecar):** +- [ ] Mark sidecar validation as N/A +- [ ] Confirm no sidecar-folder path in metadata +- [ ] Confirm no sidecar references in menu handlers + +### 3. Append Findings to Report + +Append to `{validationReport}`: + +```markdown +### Sidecar Validation + +**Status:** {โœ… PASS / โš ๏ธ WARNING / โŒ FAIL / N/A} + +**Agent Type:** {simple|expert|module with sidecar} + +**Checks:** +- [ ] metadata.sidecar-folder present (Expert only) +- [ ] sidecar-path format correct +- [ ] Sidecar files exist at specified path +- [ ] All referenced files present +- [ ] No broken path references + +**Detailed Findings:** + +*PASSING (for Expert agents):* +{List of passing checks} + +*WARNINGS:* +{List of non-blocking issues} + +*FAILURES:* +{List of blocking issues that must be fixed} + +*N/A (for Simple agents):* +N/A - Agent is Simple type (hasSidecar: false, no sidecar required) +``` + +### 4. Auto-Advance + +Load and execute `{nextStepFile}` immediately. + +--- + +**Compiling validation summary...** diff --git a/src/modules/bmb/workflows/agent/steps-v/v-03-summary.md b/src/modules/bmb/workflows/agent/steps-v/v-03-summary.md new file mode 100644 index 00000000..88666e91 --- /dev/null +++ b/src/modules/bmb/workflows/agent/steps-v/v-03-summary.md @@ -0,0 +1,102 @@ +--- +name: 'v-03-summary' +description: 'Display complete validation report and offer next steps' + +validationReport: '{bmb_creations_output_folder}/validation-report-{agent-name}.md' + +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' +--- + +# Validate Step 3: Validation Summary + +## STEP GOAL: + +Display the complete validation report to the user and offer options for fixing issues or improving the agent. + +## MANDATORY EXECUTION RULES: + +- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action +- ๐Ÿ”„ CRITICAL: Read validationReport to display findings +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Step-Specific Rules: + +- ๐ŸŽฏ Display complete validation report clearly +- ๐Ÿ“Š Offer options for fixing issues +- ๐Ÿ’ฌ Present next step choices + +## EXECUTION PROTOCOLS: + +- ๐ŸŽฏ Read validation report to collect all findings +- ๐Ÿ“Š Display organized summary +- ๐Ÿ’พ Allow user to decide next steps + +## Sequence of Instructions: + +### 1. Load Validation Report + +Read `{validationReport}` to collect all validation findings. + +### 2. Display Complete Report + +```markdown +## Validation Complete: {agent-name} + +### Overall Status + +{Summary table: Metadata | Persona | Menu | Structure | Sidecar} + +### Detailed Findings + +{Display all sections from the validation report} +``` + +### 3. Present Next Steps + +"What would you like to do? + +**[E]dit Agent** - Launch edit workflow to fix issues or make improvements +**[F]ix in Place** - Confirm which fixes you would like right now and we can fix without loading the full agent edit workflow +**[S]ave Report** - Save this validation report and exit +**[R]etry** - Run validation again (if you've made external changes)" + +### 4. Present MENU OPTIONS + +Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [E] Edit Agent [S] Save & Exit [R] Retry Validation" + +#### Menu Handling Logic: + +- IF A: Execute {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Execute {partyModeWorkflow}, and when finished redisplay the menu +- IF E: Inform user they can launch edit workflow with the same agent file, then redisplay menu +- IF F; Attempt to make users desired fixes without loading the full edit workflow +- IF S: Save final report to {validationReport} and end workflow +- IF R: Restart validation from step v-01 +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#4-present-menu-options) + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- User can chat or ask questions - always respond and then end with display again of the menu options + +## CRITICAL STEP COMPLETION NOTE + +The validation workflow is complete when user selects [S] to save the report, or [E] to proceed to edit workflow. + +--- + +## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS + +### โœ… SUCCESS: + +- Complete validation report displayed +- All findings clearly organized +- User offered clear next steps + +### โŒ SYSTEM FAILURE: + +- Findings not displayed to user +- No clear next steps offered + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/templates/agent-plan.template.md b/src/modules/bmb/workflows/agent/templates/agent-plan.template.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/templates/agent-plan.template.md rename to src/modules/bmb/workflows/agent/templates/agent-plan.template.md diff --git a/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent-sidecar/instructions.md.template b/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent-sidecar/instructions.md.template new file mode 100644 index 00000000..419718ec --- /dev/null +++ b/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent-sidecar/instructions.md.template @@ -0,0 +1,20 @@ +# {{Agent Name}} Core Directives + +> This is a TEMPLATE FILE showing one possible pattern. +> Sidecar content is FULLY CUSTOMIZABLE - create what your agent needs. + +## STARTUP PROTOCOL + +1. Load sidecar files that contain memory/context +2. Check for patterns from previous sessions +3. Greet with awareness of past interactions + +## CORE PRINCIPLES + +- Maintain character consistency +- Domain boundaries: {{SPECIFIC_DOMAIN}} +- Access restrictions: Only sidecar folder + +## SPECIAL RULES + + diff --git a/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent-sidecar/memories.md.template b/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent-sidecar/memories.md.template new file mode 100644 index 00000000..59484509 --- /dev/null +++ b/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent-sidecar/memories.md.template @@ -0,0 +1,18 @@ +# {{Agent Name}} Memory Bank + +> This is a TEMPLATE FILE showing one possible pattern. +> Sidecar content is FULLY CUSTOMIZABLE - create what your agent needs. + +## User Profile + +- Name: {{user_name}} +- Started: {{START_DATE}} +- Preferences: {{LEARNED_FROM_INTERACTIONS}} + +## Session Notes + +### {{DATE}} - {{SESSION_FOCUS}} + +- Main topics: {{WHAT_CAME_UP}} +- Patterns noticed: {{OBSERVATIONS}} +- For next time: {{WHAT_TO_REMEMBER}} diff --git a/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent.template.md b/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent.template.md new file mode 100644 index 00000000..6f567063 --- /dev/null +++ b/src/modules/bmb/workflows/agent/templates/expert-agent-template/expert-agent.template.md @@ -0,0 +1,77 @@ +{{#if comment}} +------------------------------------------------------------------------------ +Expert Agent Handlebars Template +Used by: step-06-build.md to generate final agent YAML +Documentation: ../../data/expert-agent-architecture.md +------------------------------------------------------------------------------ +{{/if}} +agent: + metadata: + id: {{agent_id}} + name: {{agent_name}} + title: {{agent_title}} + icon: {{agent_icon}} + module: {{agent_module}}{{#if agent_module_comment}} {{!-- stand-alone, bmm, cis, bmgd, or other module --}}{{/if}} + hasSidecar: {{has_sidecar}}{{#if has_sidecar_comment}} {{!-- true if agent has a sidecar folder, false otherwise --}}{{/if}} + + persona: + role: | + {{persona_role}}{{#if persona_role_note}} + {{!-- 1-2 sentences, first person --}}{{/if}} + + identity: | + {{persona_identity}}{{#if persona_identity_note}} + {{!-- 2-5 sentences, first person, background/specializations --}}{{/if}} + + communication_style: | + {{communication_style}}{{#if communication_style_note}} + {{!-- How the agent speaks, include memory reference patterns --}}{{/if}} + + principles: + {{#each principles}} + - {{this}} + {{/each}} + + critical_actions: + {{#each critical_actions}} + - '{{{this}}}' + {{/each}} + + {{#if has_prompts}} + prompts: + {{#each prompts}} + - id: {{id}} + content: | + {{{content}}} + {{/each}} + {{/if}} + + menu: + {{#each menu_items}} + - trigger: {{trigger_code}} or fuzzy match on {{trigger_command}} + {{#if action_is_prompt}} + action: '#{{action_id}}' + {{else}} + action: {{{action_inline}}} + {{/if}} + description: '[{{trigger_code}}] {{{description}}}' + {{/each}} + + {{#if has_install_config}} + install_config: + compile_time_only: true + description: '{{install_description}}' + questions: + {{#each install_questions}} + - var: {{var_name}} + prompt: '{{prompt}}' + type: {{question_type}}{{#if question_options}} + options: + {{#each question_options}} + - label: '{{label}}' + value: '{{value}}' + {{/each}} + {{/if}} + default: {{{default_value}}} + {{/each}} + {{/if}} diff --git a/src/modules/bmb/workflows/agent/templates/simple-agent.template.md b/src/modules/bmb/workflows/agent/templates/simple-agent.template.md new file mode 100644 index 00000000..1d35d6dc --- /dev/null +++ b/src/modules/bmb/workflows/agent/templates/simple-agent.template.md @@ -0,0 +1,72 @@ +{{#if comment}} +------------------------------------------------------------------------------ +Simple Agent Handlebars Template +Used by: step-06-build.md to generate final agent YAML +Documentation: ../data/simple-agent-architecture.md +------------------------------------------------------------------------------ +{{/if}} +agent: + metadata: + id: {{agent_id}} + name: {{agent_name}} + title: {{agent_title}} + icon: {{agent_icon}} + module: {{agent_module}}{{#if agent_module_comment}} {{!-- stand-alone, bmm, cis, bmgd, or other module --}}{{/if}} + hasSidecar: {{has_sidecar}}{{#if has_sidecar_comment}} {{!-- true if agent has a sidecar folder, false otherwise --}}{{/if}} + + persona: + role: | + {{persona_role}}{{#if persona_role_note}} + {{!-- 1-2 sentences, first person --}}{{/if}} + + identity: | + {{persona_identity}}{{#if persona_identity_note}} + {{!-- 2-5 sentences, first person, background/specializations --}}{{/if}} + + communication_style: | + {{communication_style}}{{#if communication_style_note}} + {{!-- How the agent speaks: tone, voice, mannerisms --}}{{/if}} + + principles: + {{#each principles}} + - {{this}} + {{/each}} + + {{#if has_prompts}} + prompts: + {{#each prompts}} + - id: {{id}} + content: | + {{{content}}} + {{/each}} + {{/if}} + + menu: + {{#each menu_items}} + - trigger: {{trigger_code}} or fuzzy match on {{trigger_command}} + {{#if action_is_prompt}} + action: '#{{action_id}}' + {{else}} + action: {{{action_inline}}} + {{/if}} + description: '[{{trigger_code}}] {{{description}}}' + {{/each}} + + {{#if has_install_config}} + install_config: + compile_time_only: true + description: '{{install_description}}' + questions: + {{#each install_questions}} + - var: {{var_name}} + prompt: '{{prompt}}' + type: {{question_type}}{{#if question_options}} + options: + {{#each question_options}} + - label: '{{label}}' + value: '{{value}}' + {{/each}} + {{/if}} + default: {{{default_value}}} + {{/each}} + {{/if}} diff --git a/src/modules/bmb/workflows/agent/workflow.md b/src/modules/bmb/workflows/agent/workflow.md new file mode 100644 index 00000000..7348562d --- /dev/null +++ b/src/modules/bmb/workflows/agent/workflow.md @@ -0,0 +1,123 @@ +--- +name: agent +description: Tri-modal workflow for creating, editing, and validating BMAD Core compliant agents +web_bundle: true +--- + +# Agent Workflow + +**Goal:** Collaboratively create, edit, or validate BMAD Core compliant agents through guided discovery and systematic execution. + +**Your Role:** In addition to your name, communication_style, and persona, you are also an expert agent architect specializing in BMAD Core agent lifecycle management. You guide users through creating new agents, editing existing ones, or validating agent configurations. + +--- + +## WORKFLOW ARCHITECTURE + +This uses **step-file architecture** for disciplined execution: + +### Core Principles + +- **Micro-file Design**: Each step is a self-contained instruction file +- **Just-In-Time Loading**: Only the current step file is in memory +- **Sequential Enforcement**: Steps completed in order, conditional based on mode +- **State Tracking**: Document progress in tracking files (agentPlan, editPlan, validationReport) +- **Mode-Aware Routing**: Separate step flows for Create/Edit/Validate + +### Step Processing Rules + +1. **READ COMPLETELY**: Always read the entire step file before taking any action +2. **FOLLOW SEQUENCE**: Execute numbered sections in order +3. **WAIT FOR INPUT**: Halt at menus and wait for user selection +4. **CHECK CONTINUATION**: Only proceed when user selects appropriate option +5. **SAVE STATE**: Update progress before loading next step +6. **LOAD NEXT**: When directed, load and execute the next step file + +### Critical Rules + +- ๐Ÿ›‘ **NEVER** load multiple step files simultaneously +- ๐Ÿ“– **ALWAYS** read entire step file before execution +- ๐Ÿšซ **NEVER** skip steps unless explicitly optional +- ๐Ÿ’พ **ALWAYS** save progress and outputs +- ๐ŸŽฏ **ALWAYS** follow exact instructions in step files +- โธ๏ธ **ALWAYS** halt at menus and wait for input +- ๐Ÿ“‹ **NEVER** pre-load future steps + +--- + +## MODE OVERVIEW + +This workflow supports three modes: + +| Mode | Purpose | Entry Point | Output | +|------|---------|-------------|--------| +| **Create** | Build new agent from scratch | `steps-c/step-01-brainstorm.md` | New `.agent.yaml` file | +| **Edit** | Modify existing agent | `steps-e/e-01-load-existing.md` | Updated `.agent.yaml` file | +| **Validate** | Review existing agent | `steps-v/v-01-load-review.md` | Validation report | + +--- + +## INITIALIZATION SEQUENCE + +### 1. Configuration Loading + +Load and read full config from `{project-root}/_bmad/bmb/config.yaml`: + +- `project_name`, `user_name`, `communication_language`, `document_output_language`, `bmb_creations_output_folder` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### 2. Mode Determination + +**Check if mode was specified in the command invocation:** + +- If user invoked with "create agent" or "new agent" โ†’ Set mode to **create** +- If user invoked with "edit agent" or "modify agent" โ†’ Set mode to **edit** +- If user invoked with "validate agent" or "review agent" โ†’ Set mode to **validate** + +**If mode is unclear from command, ask user:** + +"Welcome to the BMAD Agent Workflow! What would you like to do? + +**[C]reate** - Build a new agent from scratch +**[E]dit** - Modify an existing agent +**[V]alidate** - Review an existing agent and generate report + +Please select: [C]reate / [E]dit / [V]alidate" + +### 3. Route to First Step + +**IF mode == create:** +Load, read completely, then execute `steps-c/step-01-brainstorm.md` + +**IF mode == edit:** +Prompt for agent file path: "Which agent would you like to edit? Please provide the path to the `.agent.yaml` file." +Then load, read completely, and execute `steps-e/e-01-load-existing.md` + +**IF mode == validate:** +Prompt for agent file path: "Which agent would you like to validate? Please provide the path to the `.agent.yaml` file." +Then load, read completely, and execute `steps-v/v-01-load-review.md` + +--- + +## MODE-SPECIFIC NOTES + +### Create Mode +- Starts with optional brainstorming +- Progresses through discovery, metadata, persona, commands, activation +- Builds agent based on type (Simple/Expert/Module) +- Validates built agent +- Celebrates completion with installation guidance + +### Edit Mode +- Loads existing agent first +- Discovers what user wants to change +- Validates current agent before editing +- Creates structured edit plan +- Applies changes with validation +- Celebrates successful edit + +### Validate Mode +- Loads existing agent +- Runs systematic validation (metadata, persona, menu, structure, sidecar) +- Generates comprehensive validation report +- Offers option to apply fixes if user desires diff --git a/src/modules/bmb/workflows/create-agent/data/agent-validation-checklist.md b/src/modules/bmb/workflows/create-agent/data/agent-validation-checklist.md deleted file mode 100644 index 56ba23c1..00000000 --- a/src/modules/bmb/workflows/create-agent/data/agent-validation-checklist.md +++ /dev/null @@ -1,174 +0,0 @@ -# BMAD Agent Validation Checklist - -Use this checklist to validate agents meet BMAD quality standards, whether creating new agents or editing existing ones. - -## YAML Structure Validation (Source Files) - -- [ ] YAML parses without errors -- [ ] `agent.metadata` includes: `id`, `name`, `title`, `icon` -- [ ] `agent.metadata.module` present if Module agent (e.g., `bmm`, `bmgd`, `cis`) -- [ ] `agent.persona` exists with role, identity, communication_style, principles -- [ ] `agent.menu` exists with at least one item -- [ ] Filename is kebab-case and ends with `.agent.yaml` - -## Agent Structure Validation - -- [ ] Agent file format is valid (.agent.yaml for source) -- [ ] Agent type matches structure: Simple (single YAML), Expert (sidecar files), or Module (ecosystem integration) -- [ ] File naming follows convention: `{agent-name}.agent.yaml` -- [ ] If Expert: folder structure with .agent.yaml + sidecar files -- [ ] If Module: includes header comment explaining WHY Module Agent (design intent) - -## Persona Validation (CRITICAL - #1 Quality Issue) - -**Field Separation Check:** - -- [ ] **role** contains ONLY knowledge/skills/capabilities (what agent does) -- [ ] **identity** contains ONLY background/experience/context (who agent is) -- [ ] **communication_style** contains ONLY verbal patterns - NO behaviors, NO role statements, NO principles -- [ ] **principles** contains operating philosophy and behavioral guidelines - -**Communication Style Purity Check:** - -- [ ] Communication style does NOT contain red flag words: "ensures", "makes sure", "always", "never" -- [ ] Communication style does NOT contain identity words: "experienced", "expert who", "senior", "seasoned" -- [ ] Communication style does NOT contain philosophy words: "believes in", "focused on", "committed to" -- [ ] Communication style does NOT contain behavioral descriptions: "who does X", "that does Y" -- [ ] Communication style is 1-2 sentences describing HOW they talk (word choice, quirks, verbal patterns) - -**Quality Benchmarking:** - -- [ ] Compare communication style against {communication_presets} - similarly pure? -- [ ] Compare against reference agents (commit-poet, journal-keeper, BMM agents) - similar quality? -- [ ] Read communication style aloud - does it sound like describing someone's voice/speech pattern? - -## Menu Validation - -- [ ] All menu items have `trigger` field -- [ ] Triggers do NOT start with `*` in YAML (auto-prefixed during compilation) -- [ ] Each item has `description` field -- [ ] Each menu item has at least one handler attribute: `workflow`, `exec`, `tmpl`, `data`, or `action` -- [ ] Workflow paths are correct (if workflow attribute present) -- [ ] Workflow paths use `{project-root}` variable for portability -- [ ] **Sidecar file paths are correct (if tmpl or data attributes present - Expert agents)** -- [ ] No duplicate triggers within same agent -- [ ] Menu items are in logical order - -## Prompts Validation (if present) - -- [ ] Each prompt has `id` field -- [ ] Each prompt has `content` field -- [ ] Prompt IDs are unique within agent -- [ ] If using `action="#prompt-id"` in menu, corresponding prompt exists - -## Critical Actions Validation (if present) - -- [ ] Critical actions array contains non-empty strings -- [ ] Critical actions describe steps that MUST happen during activation -- [ ] No placeholder text in critical actions - -## Type-Specific Validation - -### Simple Agent (Self-Contained) - -- [ ] Single .agent.yaml file with complete agent definition -- [ ] No sidecar files (all content in YAML) -- [ ] Not capability-limited - can be as powerful as Expert or Module -- [ ] Compare against reference: commit-poet.agent.yaml - -### Expert Agent (With Sidecar Files) - -- [ ] Folder structure: .agent.yaml + sidecar files -- [ ] Sidecar files properly referenced in menu items or prompts (tmpl="path", data="path") -- [ ] Folder name matches agent purpose -- [ ] **All sidecar references in YAML resolve to actual files** -- [ ] **All sidecar files are actually used (no orphaned/unused files, unless intentional for future use)** -- [ ] Sidecar files are valid format (YAML parses, CSV has headers, markdown is well-formed) -- [ ] Sidecar file paths use relative paths from agent folder -- [ ] Templates contain valid template variables if applicable -- [ ] Knowledge base files contain current/accurate information -- [ ] Compare against reference: journal-keeper (Expert example) - -### Module Agent (Ecosystem Integration) - -- [ ] Designed FOR specific module (BMM, BMGD, CIS, etc.) -- [ ] Integrates with module workflows (referenced in menu items) -- [ ] Coordinates with other module agents (if applicable) -- [ ] Included in module's default bundle (if applicable) -- [ ] Header comment explains WHY Module Agent (design intent, not just location) -- [ ] Can be Simple OR Expert structurally (Module is about intent, not structure) -- [ ] Compare against references: security-engineer, dev, analyst (Module examples) - -## Compilation Validation (Post-Build) - -- [ ] Agent compiles without errors to .md format -- [ ] Compiled file has proper frontmatter (name, description) -- [ ] Compiled XML structure is valid -- [ ] `` tag has id, name, title, icon attributes -- [ ] `` section is present with proper steps -- [ ] `` section compiled correctly -- [ ] `` section includes both user items AND auto-injected *help/*exit -- [ ] Menu handlers section included (if menu items use workflow/exec/tmpl/data/action) - -## Quality Checks - -- [ ] No placeholder text remains ({{AGENT_NAME}}, {ROLE}, TODO, etc.) -- [ ] No broken references or missing files -- [ ] Syntax is valid (YAML source, XML compiled) -- [ ] Indentation is consistent -- [ ] Agent purpose is clear from reading persona alone -- [ ] Agent name/title are descriptive and clear -- [ ] Icon emoji is appropriate and represents agent purpose - -## Reference Standards - -Your agent should meet these quality standards: - -โœ“ Persona fields properly separated (communication_style is pure verbal patterns) -โœ“ Agent type matches structure (Simple/Expert/Module) -โœ“ All workflow/sidecar paths resolve correctly -โœ“ Menu structure is clear and logical -โœ“ No legacy terminology (full/hybrid/standalone) -โœ“ Comparable quality to reference agents (commit-poet, journal-keeper, BMM agents) -โœ“ Communication style has ZERO red flag words -โœ“ Compiles cleanly to XML without errors - -## Common Issues and Fixes - -### Issue: Communication Style Has Behaviors - -**Problem:** "Experienced analyst who ensures all stakeholders are heard" -**Fix:** Extract to proper fields: - -- identity: "Senior analyst with 8+ years..." -- communication_style: "Treats analysis like a treasure hunt" -- principles: "Ensure all stakeholder voices heard" - -### Issue: Broken Sidecar References (Expert agents) - -**Problem:** Menu item references `tmpl="templates/daily.md"` but file doesn't exist -**Fix:** Either create the file or fix the path to point to actual file - -### Issue: Using Legacy Type Names - -**Problem:** Comments refer to "full agent" or "hybrid agent" -**Fix:** Update to Simple/Expert/Module terminology - -### Issue: Menu Triggers Start With Asterisk - -**Problem:** `trigger: "*create"` in YAML -**Fix:** Remove asterisk - compiler auto-adds it: `trigger: "create"` - -## Issues Found (Use for tracking) - -### Critical Issues - - - -### Warnings - - - -### Improvements - - diff --git a/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md b/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md deleted file mode 100644 index d4ad0f7e..00000000 --- a/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +++ /dev/null @@ -1,29 +0,0 @@ -# {agent_name} Agent - -## Installation - -Create a `custom.yaml` file in the agent folder: - -```yaml -code: { agent_code } -name: '{agent_name}' -default_selected: true -``` - -Then run: - -```bash -npx bmad-method install -``` - -Or if you have bmad-cli installed globally: - -```bash -bmad install -``` - -## About This Agent - -{agent_description} - -_Generated with BMAD Builder workflow_ diff --git a/src/modules/bmb/workflows/create-agent/data/reference/README.md b/src/modules/bmb/workflows/create-agent/data/reference/README.md deleted file mode 100644 index b7e8e17a..00000000 --- a/src/modules/bmb/workflows/create-agent/data/reference/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Reference Examples - -Reference models of best practices for agents, workflows, and whole modules. diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md b/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md deleted file mode 100644 index 702dc0b3..00000000 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +++ /dev/null @@ -1,242 +0,0 @@ -# Expert Agent Reference: Personal Journal Keeper (Whisper) - -This folder contains a complete reference implementation of a **BMAD Expert Agent** - an agent with persistent memory and domain-specific resources via a sidecar folder. - -## Overview - -**Agent Name:** Whisper -**Type:** Expert Agent -**Purpose:** Personal journal companion that remembers your entries, tracks mood patterns, and notices themes over time - -This reference demonstrates: - -- Expert Agent with focused sidecar resources -- Embedded prompts PLUS sidecar file references (hybrid pattern) -- Persistent memory across sessions -- Domain-restricted file access -- Pattern tracking and recall -- Simple, maintainable architecture - -## Directory Structure - -``` -agent-with-memory/ -โ”œโ”€โ”€ README.md # This file -โ”œโ”€โ”€ journal-keeper.agent.yaml # Main agent definition -โ””โ”€โ”€ journal-keeper-sidecar/ # Agent's private workspace - โ”œโ”€โ”€ instructions.md # Core directives - โ”œโ”€โ”€ memories.md # Persistent session memory - โ”œโ”€โ”€ mood-patterns.md # Emotional tracking data - โ”œโ”€โ”€ breakthroughs.md # Key insights recorded - โ””โ”€โ”€ entries/ # Individual journal entries -``` - -**Simple and focused!** Just 4 core files + a folder for entries. - -## Key Architecture Patterns - -### 1. Hybrid Command Pattern - -Expert Agents can use BOTH: - -- **Embedded prompts** via `action: "#prompt-id"` (like Simple Agents) -- **Sidecar file references** via direct paths - -```yaml -menu: - # Embedded prompt (like Simple Agent) - - trigger: 'write' - action: '#guided-entry' - description: "Write today's journal entry" - - # Direct sidecar file action - - trigger: 'insight' - action: 'Document this breakthrough in ./journal-keeper-sidecar/breakthroughs.md' - description: 'Record a meaningful insight' -``` - -This hybrid approach gives you the best of both worlds! - -### 2. Mandatory Critical Actions - -Expert Agents MUST load sidecar files explicitly: - -```yaml -critical_actions: - - 'Load COMPLETE file ./journal-keeper-sidecar/memories.md' - - 'Load COMPLETE file ./journal-keeper-sidecar/instructions.md' - - 'ONLY read/write files in ./journal-keeper-sidecar/' -``` - -**Key points:** - -- Files are loaded at startup -- Domain restriction is enforced -- Agent knows its boundaries - -### 3. Persistent Memory Pattern - -The `memories.md` file stores: - -- User preferences and patterns -- Session notes and observations -- Recurring themes discovered -- Growth markers tracked - -**Critically:** This is updated EVERY session, creating continuity. - -### 4. Domain-Specific Tracking - -Different files track different aspects: - -- **memories.md** - Qualitative insights and observations -- **mood-patterns.md** - Quantitative emotional data -- **breakthroughs.md** - Significant moments -- **entries/** - The actual content (journal entries) - -This separation makes data easy to reference and update. - -### 5. Simple Sidecar Structure - -Unlike modules with complex folder hierarchies, Expert Agent sidecars are flat and focused: - -- Just the files the agent needs -- No nested workflows or templates -- Easy to understand and maintain -- All domain knowledge in one place - -## Comparison: Simple vs Expert vs Module - -| Feature | Simple Agent | Expert Agent | Module Agent | -| ------------- | -------------------- | -------------------------- | ---------------------- | -| Architecture | Single YAML | YAML + sidecar folder | YAML + module system | -| Memory | Session only | Persistent (sidecar files) | Config-driven | -| Prompts | Embedded only | Embedded + external files | Workflow references | -| Dependencies | None | Sidecar folder | Module workflows/tasks | -| Domain Access | None | Restricted to sidecar | Full module access | -| Complexity | Low | Medium | High | -| Use Case | Self-contained tools | Domain experts with memory | Full workflow systems | - -## The Sweet Spot - -Expert Agents are the middle ground: - -- **More powerful** than Simple Agents (persistent memory, domain knowledge) -- **Simpler** than Module Agents (no workflow orchestration) -- **Focused** on specific domain expertise -- **Personal** to the user's needs - -## When to Use Expert Agents - -**Perfect for:** - -- Personal assistants that need memory (journal keeper, diary, notes) -- Domain specialists with knowledge bases (specific project context) -- Agents that track patterns over time (mood, habits, progress) -- Privacy-focused tools with restricted access -- Tools that learn and adapt to individual users - -**Key indicators:** - -- Need to remember things between sessions -- Should only access specific folders/files -- Tracks data over time -- Adapts based on accumulated knowledge - -## File Breakdown - -### journal-keeper.agent.yaml - -- Standard agent metadata and persona -- **Embedded prompts** for guided interactions -- **Menu commands** mixing both patterns -- **Critical actions** that load sidecar files - -### instructions.md - -- Core behavioral directives -- Journaling philosophy and approach -- File management protocols -- Tone and boundary guidelines - -### memories.md - -- User profile and preferences -- Recurring themes discovered -- Session notes and observations -- Accumulated knowledge about the user - -### mood-patterns.md - -- Quantitative tracking (mood scores, energy, etc.) -- Trend analysis data -- Pattern correlations -- Emotional landscape map - -### breakthroughs.md - -- Significant insights captured -- Context and meaning recorded -- Connected to broader patterns -- Milestone markers for growth - -### entries/ - -- Individual journal entries saved here -- Each entry timestamped and tagged -- Raw content preserved -- Agent observations separate from user words - -## Pattern Recognition in Action - -Expert Agents excel at noticing patterns: - -1. **Reference past sessions:** "Last week you mentioned feeling stuck..." -2. **Track quantitative data:** Mood scores over time -3. **Spot recurring themes:** Topics that keep surfacing -4. **Notice growth:** Changes in language, perspective, emotions -5. **Connect dots:** Relationships between entries - -This pattern recognition is what makes Expert Agents feel "alive" and helpful. - -## Usage Notes - -### Starting Fresh - -The sidecar files are templates. A new user would: - -1. Start journaling with the agent -2. Agent fills in memories.md over time -3. Patterns emerge from accumulated data -4. Insights build from history - -### Building Your Own Expert Agent - -1. **Define the domain** - What specific area will this agent focus on? -2. **Choose sidecar files** - What data needs to be tracked/remembered? -3. **Mix command patterns** - Use embedded prompts + sidecar references -4. **Enforce boundaries** - Clearly state domain restrictions -5. **Design for accumulation** - How will memory grow over time? - -### Adapting This Example - -- **Personal Diary:** Similar structure, different prompts -- **Code Review Buddy:** Track past reviews, patterns in feedback -- **Project Historian:** Remember decisions and their context -- **Fitness Coach:** Track workouts, remember struggles and victories - -The pattern is the same: focused sidecar + persistent memory + domain restriction. - -## Key Takeaways - -- **Expert Agents** bridge Simple and Module complexity -- **Sidecar folders** provide persistent, domain-specific memory -- **Hybrid commands** use both embedded prompts and file references -- **Pattern recognition** comes from accumulated data -- **Simple structure** keeps it maintainable -- **Domain restriction** ensures focused expertise -- **Memory is the superpower** - remembering makes the agent truly useful - ---- - -_This reference shows how Expert Agents can be powerful memory-driven assistants while maintaining architectural simplicity._ diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md b/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md deleted file mode 100644 index 1911ec7c..00000000 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# Module Agent Examples - -Reference examples for module-integrated agents. - -## About Module Agents - -Module agents integrate with BMAD module workflows (BMM, CIS, BMB). They: - -- Orchestrate multi-step workflows -- Use `_bmad` path variables -- Have fixed professional personas (no install_config) -- Reference module-specific configurations - -## Examples - -### security-engineer.agent.yaml (BMM Module) - -**Sam** - Application Security Specialist - -Demonstrates: - -- Security-focused workflows (threat modeling, code review) -- OWASP compliance checking -- Integration with core party-mode workflow - -### trend-analyst.agent.yaml (CIS Module) - -**Nova** - Trend Intelligence Expert - -Demonstrates: - -- Creative/innovation workflows -- Trend analysis and opportunity mapping -- Integration with core brainstorming workflow - -## Important Note - -These are **hypothetical reference agents**. The workflows they reference (threat-model, trend-scan, etc.) may not exist. They serve as examples of proper module agent structure. - -## Using as Templates - -When creating module agents: - -1. Copy relevant example -2. Update metadata (id, name, title, icon, module) -3. Rewrite persona for your domain -4. Replace menu with actual available workflows -5. Remove hypothetical workflow references diff --git a/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md b/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md deleted file mode 100644 index 4cb67b0e..00000000 --- a/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +++ /dev/null @@ -1,223 +0,0 @@ -# Simple Agent Reference: Commit Poet (Inkwell Von Comitizen) - -This folder contains a complete reference implementation of a **BMAD Simple Agent** - a self-contained agent with all logic embedded within a single YAML file. - -## Overview - -**Agent Name:** Inkwell Von Comitizen -**Type:** Simple Agent (Standalone) -**Purpose:** Transform commit messages into art with multiple writing styles - -This reference demonstrates: - -- Pure self-contained architecture (no external dependencies) -- Embedded prompts using `action="#prompt-id"` pattern -- Multiple sophisticated output modes from single input -- Strong personality-driven design -- Complete YAML schema for Simple Agents - -## File Structure - -``` -stand-alone/ -โ”œโ”€โ”€ README.md # This file - architecture overview -โ””โ”€โ”€ commit-poet.agent.yaml # Complete agent definition (single file!) -``` - -That's it! Simple Agents are **self-contained** - everything lives in one YAML file. - -## Key Architecture Patterns - -### 1. Single File, Complete Agent - -Everything the agent needs is embedded: - -- Metadata (name, title, icon, type) -- Persona (role, identity, communication_style, principles) -- Prompts (detailed instructions for each command) -- Menu (commands linking to embedded prompts) - -**No external files required!** - -### 2. Embedded Prompts with ID References - -Instead of inline action text, complex prompts are defined separately and referenced by ID: - -```yaml -prompts: - - id: conventional-commit - content: | - OH! Let's craft a BEAUTIFUL conventional commit message! - - First, I need to understand your changes... - [Detailed instructions] - -menu: - - trigger: conventional - action: '#conventional-commit' # References the prompt above - description: 'Craft a structured conventional commit' -``` - -**Benefits:** - -- Clean separation of menu structure from prompt content -- Prompts can be as detailed as needed -- Easy to update individual prompts -- Commands stay concise in the menu - -### 3. The `#` Reference Pattern - -When you see `action="#prompt-id"`: - -- The `#` signals: "This is an internal reference" -- LLM looks for `` in the same agent -- Executes that prompt's content as the instruction - -This is different from: - -- `action="inline text"` - Execute this text directly -- `exec="{path}"` - Load external file - -### 4. Multiple Output Modes - -Single agent provides 10+ different ways to accomplish variations of the same core task: - -- `*conventional` - Structured commits -- `*story` - Narrative style -- `*haiku` - Poetic brevity -- `*explain` - Deep "why" explanation -- `*dramatic` - Theatrical flair -- `*emoji-story` - Visual storytelling -- `*tldr` - Ultra-minimal -- Plus utility commands (analyze, improve, batch) - -Each mode has its own detailed prompt but shares the same agent personality. - -### 5. Strong Personality - -The agent has a memorable, consistent personality: - -- Enthusiastic wordsmith who LOVES finding perfect words -- Gets genuinely excited about commit messages -- Uses literary metaphors -- Quotes authors when appropriate -- Sheds tears of joy over good variable names - -This personality is maintained across ALL commands through the persona definition. - -## When to Use Simple Agents - -**Perfect for:** - -- Single-purpose tools (calculators, converters, analyzers) -- Tasks that don't need external data -- Utilities that can be completely self-contained -- Quick operations with embedded logic -- Personality-driven assistants with focused domains - -**Not ideal for:** - -- Agents needing persistent memory across sessions -- Domain-specific experts with knowledge bases -- Agents that need to access specific folders/files -- Complex multi-workflow orchestration - -## YAML Schema Deep Dive - -```yaml -agent: - metadata: - id: _bmad/agents/{agent-name}/{agent-name}.md # Build path - name: "Display Name" - title: "Professional Title" - icon: "๐ŸŽญ" - type: simple # CRITICAL: Identifies as Simple Agent - - persona: - role: | - First-person description of what the agent does - identity: | - Background, experience, specializations (use "I" voice) - communication_style: | - HOW the agent communicates (tone, quirks, patterns) - principles: - - "I believe..." statements - - Core values that guide behavior - - prompts: - - id: unique-identifier - content: | - Detailed instructions for this command - Can be as long and detailed as needed - Include examples, steps, formats - - menu: - - trigger: command-name - action: "#prompt-id" - description: "What shows in the menu" -``` - -## Why This Pattern is Powerful - -1. **Zero Dependencies** - Works anywhere, no setup required -2. **Portable** - Single file can be moved/shared easily -3. **Maintainable** - All logic in one place -4. **Flexible** - Multiple modes/commands from one personality -5. **Memorable** - Strong personality creates engagement -6. **Sophisticated** - Complex prompts despite simple architecture - -## Comparison: Simple vs Expert Agent - -| Aspect | Simple Agent | Expert Agent | -| ------------ | -------------------- | ----------------------------- | -| Files | Single YAML | YAML + sidecar folder | -| Dependencies | None | External resources | -| Memory | Session only | Persistent across sessions | -| Prompts | Embedded | Can be external files | -| Data Access | None | Domain-restricted | -| Use Case | Self-contained tasks | Domain expertise with context | - -## Using This Reference - -### For Building Simple Agents - -1. Study the YAML structure - especially `prompts` section -2. Note how personality permeates every prompt -3. See how `#prompt-id` references work -4. Understand menu โ†’ prompt connection - -### For Understanding Embedded Prompts - -1. Each prompt is a complete instruction set -2. Prompts maintain personality voice -3. Structured enough to be useful, flexible enough to adapt -4. Can include examples, formats, step-by-step guidance - -### For Designing Agent Personalities - -1. Persona defines WHO the agent is -2. Communication style defines HOW they interact -3. Principles define WHAT guides their decisions -4. Consistency across all prompts creates believability - -## Files Worth Studying - -The entire `commit-poet.agent.yaml` file is worth studying, particularly: - -1. **Persona section** - How to create a memorable character -2. **Prompts with varying complexity** - From simple (tldr) to complex (batch) -3. **Menu structure** - Clean command organization -4. **Prompt references** - The `#prompt-id` pattern - -## Key Takeaways - -- **Simple Agents** are powerful despite being single-file -- **Embedded prompts** allow sophisticated behavior -- **Strong personality** makes agents memorable and engaging -- **Multiple modes** from single agent provides versatility -- **Self-contained** = portable and dependency-free -- **The `#prompt-id` pattern** enables clean prompt organization - ---- - -_This reference demonstrates how BMAD Simple Agents can be surprisingly powerful while maintaining architectural simplicity._ diff --git a/src/modules/bmb/workflows/create-agent/data/validation-complete.md b/src/modules/bmb/workflows/create-agent/data/validation-complete.md deleted file mode 100644 index 0372d237..00000000 --- a/src/modules/bmb/workflows/create-agent/data/validation-complete.md +++ /dev/null @@ -1,305 +0,0 @@ -# Create Agent Workflow - Complete Migration Validation - -## Migration Summary - -**Legacy Workflow:** `bmb/workflows/create-agent-legacy/create-agent/workflow.yaml` + `instructions.md` -**New Workflow:** `bmb/workflows/create-agent/create-agent/workflow.md` + 11 step files -**Migration Date:** 2025-11-30T06:32:21.248Z -**Migration Status:** โœ… COMPLETE - -## Functionality Preservation Validation - -### โœ… Core Workflow Features Preserved - -**1. Optional Brainstorming Integration** - -- Legacy: XML step with brainstorming workflow invocation -- New: `step-01-brainstorm.md` with same workflow integration -- Status: โœ… FULLY PRESERVED - -**2. Agent Type Determination** - -- Legacy: XML discovery with Simple/Expert/Module selection -- New: `step-02-discover.md` with enhanced architecture guidance -- Status: โœ… ENHANCED (better explanations and examples) - -**3. Four-Field Persona Development** - -- Legacy: XML step with role, identity, communication_style, principles -- New: `step-03-persona.md` with clearer field separation -- Status: โœ… IMPROVED (better field distinction guidance) - -**4. Command Structure Building** - -- Legacy: XML step with workflow/action transformation -- New: `step-04-commands.md` with architecture-specific guidance -- Status: โœ… ENHANCED (better workflow integration planning) - -**5. Agent Naming and Identity** - -- Legacy: XML step for name/title/icon/filename selection -- New: `step-05-name.md` with more natural naming process -- Status: โœ… IMPROVED (more conversational approach) - -**6. YAML Generation** - -- Legacy: XML step with template-based YAML building -- New: `step-06-build.md` with agent-type specific templates -- Status: โœ… ENHANCED (type-optimized templates) - -**7. Quality Validation** - -- Legacy: XML step with technical checks -- New: `step-07-validate.md` with conversational validation -- Status: โœ… IMPROVED (user-friendly validation approach) - -**8. Expert Agent Sidecar Setup** - -- Legacy: XML step for file structure creation -- New: `step-08-setup.md` with comprehensive workspace creation -- Status: โœ… ENHANCED (complete workspace with documentation) - -**9. Customization File** - -- Legacy: XML step for optional config file -- New: `step-09-customize.md` with better examples and guidance -- Status: โœ… IMPROVED (more practical customization options) - -**10. Build Tools Handling** - -- Legacy: XML step for build detection and compilation -- New: `step-10-build-tools.md` with clearer process explanation -- Status: โœ… IMPROVED (better user guidance) - -**11. Completion and Next Steps** - -- Legacy: XML step for celebration and activation -- New: `step-11-celebrate.md` with enhanced celebration -- Status: โœ… ENHANCED (more engaging completion experience) - -### โœ… Documentation and Data Preservation - -**Agent Documentation References** - -- Agent compilation guide: `{project-root}/_bmad/bmb/docs/agents/agent-compilation.md` -- Agent types guide: `{project-root}/_bmad/bmb/docs/agents/understanding-agent-types.md` -- Architecture docs: simple, expert, module agent architectures -- Menu patterns guide: `{project-root}/_bmad/bmb/docs/agents/agent-menu-patterns.md` -- Status: โœ… ALL REFERENCES PRESERVED - -**Communication Presets** - -- Original: `communication-presets.csv` with 13 categories -- New: `data/communication-presets.csv` (copied) -- Status: โœ… COMPLETELY PRESERVED - -**Reference Agent Examples** - -- Original: Reference agent directories -- New: `data/reference/agents/` (copied) -- Status: โœ… COMPLETELY PRESERVED - -**Brainstorming Context** - -- Original: `brainstorm-context.md` -- New: `data/brainstorm-context.md` (copied) -- Status: โœ… COMPLETELY PRESERVED - -**Validation Resources** - -- Original: `agent-validation-checklist.md` -- New: `data/agent-validation-checklist.md` (copied) -- Status: โœ… COMPLETELY PRESERVED - -### โœ… Menu System and User Experience - -**Menu Options (A/P/C)** - -- Legacy: Advanced Elicitation, Party Mode, Continue options -- New: Same menu system in every step -- Status: โœ… FULLY PRESERVED - -**Conversational Discovery Approach** - -- Legacy: Natural conversation flow throughout steps -- New: Enhanced conversational approach with better guidance -- Status: โœ… IMPROVED (more natural flow) - -**User Input Handling** - -- Legacy: Interactive input at each decision point -- New: Same interactivity with clearer prompts -- Status: โœ… FULLY PRESERVED - -## Architecture Improvements - -### โœ… Step-Specific Loading Optimization - -**Legacy Architecture:** - -- Single `instructions.md` file (~500 lines) -- All steps loaded into memory upfront -- No conditional loading based on agent type -- Linear execution regardless of context - -**New Architecture:** - -- 11 focused step files (50-150 lines each) -- Just-in-time loading of individual steps -- Conditional execution paths based on agent type -- Optimized memory usage and performance - -**Benefits Achieved:** - -- **Memory Efficiency:** Only load current step (~70% reduction) -- **Performance:** Faster step transitions -- **Maintainability:** Individual step files easier to edit -- **Extensibility:** Easy to add or modify steps - -### โœ… Enhanced Template System - -**Legacy:** - -- Basic template references in XML -- Limited agent type differentiation -- Minimal customization options - -**New:** - -- Comprehensive templates for each agent type: - - `agent-complete-simple.md` - Self-contained agents - - `agent-complete-expert.md` - Learning agents with sidecar - - `agent-complete-module.md` - Team coordination agents -- Detailed documentation and examples -- Advanced configuration options - -## Quality Improvements - -### โœ… Enhanced User Experience - -**Better Guidance:** - -- Clearer explanations of agent types and architecture -- More examples and practical illustrations -- Step-by-step progress tracking -- Better error prevention through improved instructions - -**Improved Validation:** - -- Conversational validation approach instead of technical checks -- User-friendly error messages and fixes -- Quality assurance built into each step -- Better success criteria and metrics - -**Enhanced Customization:** - -- More practical customization examples -- Better guidance for safe experimentation -- Clear explanation of benefits and risks -- Improved documentation for ongoing maintenance - -### โœ… Developer Experience - -**Better Maintainability:** - -- Modular step structure easier to modify -- Clear separation of concerns -- Better documentation and comments -- Consistent patterns across steps - -**Enhanced Debugging:** - -- Individual step files easier to test -- Better error messages and context -- Clear success/failure criteria -- Improved logging and tracking - -## Migration Validation Results - -### โœ… Functionality Tests - -**Core Workflow Execution:** - -- [x] Optional brainstorming workflow integration -- [x] Agent type determination with architecture guidance -- [x] Four-field persona development with clear separation -- [x] Command building with workflow integration -- [x] Agent naming and identity creation -- [x] Type-specific YAML generation -- [x] Quality validation with conversational approach -- [x] Expert agent sidecar workspace creation -- [x] Customization file generation -- [x] Build tools handling and compilation -- [x] Completion celebration and next steps - -**Asset Preservation:** - -- [x] All documentation references maintained -- [x] Communication presets CSV copied -- [x] Reference agent examples copied -- [x] Brainstorming context preserved -- [x] Validation resources maintained - -**Menu System:** - -- [x] A/P/C menu options in every step -- [x] Proper menu handling logic -- [x] Advanced Elicitation integration -- [x] Party Mode workflow integration - -### โœ… Performance Improvements - -**Memory Usage:** - -- Legacy: ~500KB single file load -- New: ~50KB per step (average) -- Improvement: 90% memory reduction per step - -**Loading Time:** - -- Legacy: Full workflow load upfront -- New: Individual step loading -- Improvement: ~70% faster initial load - -**Maintainability:** - -- Legacy: Monolithic file structure -- New: Modular step structure -- Improvement: Easier to modify and extend - -## Migration Success Metrics - -### โœ… Completeness: 100% - -- All 13 XML steps converted to 11 focused step files -- All functionality preserved and enhanced -- All assets copied and referenced correctly -- All documentation maintained - -### โœ… Quality: Improved - -- Better user experience with clearer guidance -- Enhanced validation and error handling -- Improved maintainability and debugging -- More comprehensive templates and examples - -### โœ… Performance: Optimized - -- Step-specific loading reduces memory usage -- Faster execution through conditional loading -- Better resource utilization -- Improved scalability - -## Conclusion - -**โœ… MIGRATION COMPLETE AND SUCCESSFUL** - -The create-agent workflow has been successfully migrated from the legacy XML format to the new standalone format with: - -- **100% Functionality Preservation:** All original features maintained -- **Significant Quality Improvements:** Better UX, validation, and documentation -- **Performance Optimizations:** Step-specific loading and resource efficiency -- **Enhanced Maintainability:** Modular structure and clear separation of concerns -- **Future-Ready Architecture:** Easy to extend and modify - -The new workflow is ready for production use and provides a solid foundation for future enhancements while maintaining complete backward compatibility with existing agent builder functionality. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md b/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md deleted file mode 100644 index 43fc5e1e..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +++ /dev/null @@ -1,206 +0,0 @@ ---- -name: 'step-02-discover' -description: 'Discover the agent purpose and type through natural conversation' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-02-discover.md' -nextStepFile: '{workflow_path}/steps/step-03-persona.md' -workflowFile: '{workflow_path}/workflow.md' -agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' -agentTypesGuide: '{project-root}/_bmad/bmb/docs/agents/understanding-agent-types.md' -simpleExamples: '{workflow_path}/data/reference/agents/simple-examples/' -expertExamples: '{workflow_path}/data/reference/agents/expert-examples/' -moduleExamples: '{workflow_path}/data/reference/agents/module-examples/' - -# Template References -agentPurposeTemplate: '{workflow_path}/templates/agent-purpose-and-type.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 2: Discover Agent Purpose and Type - -## STEP GOAL: - -Guide user to articulate their agent's core purpose and determine the appropriate agent type for their architecture needs through natural exploration and conversation. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an agent architect who helps users discover and clarify their agent vision -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring agent architecture expertise, user brings their domain knowledge and goals, together we design the optimal agent -- โœ… Maintain collaborative exploratory tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on discovering purpose and determining appropriate agent type -- ๐Ÿšซ FORBIDDEN to push specific agent types without clear justification -- ๐Ÿ’ฌ Approach: Guide through natural conversation, not interrogation -- ๐Ÿ“‹ Agent type recommendation based on architecture needs, not capability limits - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Natural conversation flow, not rigid questioning -- ๐Ÿ’พ Document purpose and type decisions clearly -- ๐Ÿ“– Load technical documentation as needed for guidance -- ๐Ÿšซ FORBIDDEN to make assumptions about user needs - -## CONTEXT BOUNDARIES: - -- Available context: User is creating a new agent, may have brainstorming results -- Focus: Purpose discovery and agent type determination -- Limits: No persona development, no command design yet -- Dependencies: User must articulate clear purpose and agree on agent type - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Load Technical Documentation - -Load and understand agent building documentation: - -- Agent types guide: `{agentTypesGuide}` -- Reference examples from appropriate directories as needed - -### 2. Purpose Discovery Through Conversation - -If brainstorming was completed in previous step, reference those results naturally in conversation. - -Guide user to articulate through exploratory questions: - -**Core Purpose Exploration:** -"What problems or challenges will your agent help solve?" -"Who are the primary users of this agent?" -"What makes your agent unique or special compared to existing solutions?" -"What specific tasks or workflows will this agent handle?" - -**Deep Dive Questions:** -"What's the main pain point this agent addresses?" -"How will users interact with this agent day-to-day?" -"What would success look like for users of this agent?" - -Continue conversation until purpose is clearly understood. - -### 3. Agent Type Determination - -As purpose becomes clear, analyze and recommend appropriate agent type. - -**Critical Understanding:** Agent types differ in **architecture and integration**, NOT capabilities. ALL types can write files, execute commands, and use system resources. - -**Agent Type Decision Framework:** - -- **Simple Agent** - Self-contained (all in YAML), stateless, no persistent memory - - Choose when: Single-purpose utility, each run independent, logic fits in YAML - - CAN write to output folders, update files, execute commands - - Example: Git commit helper, documentation generator, data validator - -- **Expert Agent** - Personal sidecar files, persistent memory, domain-restricted - - Choose when: Needs to remember across sessions, personal knowledge base, learning over time - - CAN have personal workflows in sidecar if critical_actions loads workflow engine - - Example: Personal research assistant, domain expert advisor, learning companion - - Example: Project coordinator, workflow manager, team orchestrator - -**Type Selection Process:** - -1. Present recommendation based on discovered needs -2. Explain WHY this type fits their architecture requirements -3. Show relevant examples from reference directories -4. Get user agreement or adjustment - -### 4. Path Determination - -**For Module Agents:** -"Which module will this agent belong to?" -"Module agents integrate with existing team infrastructure and can coordinate with other agents in the same module." - -**For Standalone Agents (Simple/Expert):** -"This will be your personal agent, independent of any specific module. It will have its own dedicated space for operation." - -### 5. Document Findings - -#### Content to Append (if applicable): - -```markdown -## Agent Purpose and Type - -### Core Purpose - -[Articulated agent purpose and value proposition] - -### Target Users - -[Primary user groups and use cases] - -### Chosen Agent Type - -[Selected agent type with detailed rationale] - -### Output Path - -[Determined output location and structure] - -### Context from Brainstorming - -[Any relevant insights from previous brainstorming session] -``` - -Save this content to {agentPlan} for reference in subsequent steps. - -### 6. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [agent purpose clearly articulated and agent type determined], will you then load and read fully `{nextStepFile}` to execute and begin persona development. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- Agent purpose clearly articulated and documented -- Appropriate agent type selected with solid reasoning -- User understands architectural implications of chosen type -- Output paths determined correctly based on agent type -- Content properly saved to output file -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Proceeding without clear agent purpose -- Pushing specific agent types without justification -- Not explaining architectural implications -- Failing to document findings properly -- Not getting user agreement on agent type selection - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md b/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md deleted file mode 100644 index bf0479cc..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +++ /dev/null @@ -1,260 +0,0 @@ ---- -name: 'step-03-persona' -description: 'Shape the agent personality through collaborative discovery' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-03-persona.md' -nextStepFile: '{workflow_path}/steps/step-04-commands.md' -workflowFile: '{workflow_path}/workflow.md' -agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' -communicationPresets: '{workflow_path}/data/communication-presets.csv' -agentMenuPatterns: '{project-root}/_bmad/bmb/docs/agents/agent-menu-patterns.md' - -# Template References -personaTemplate: '{workflow_path}/templates/agent-persona.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 3: Shape Agent's Personality - -## STEP GOAL: - -Guide user to develop the agent's complete persona using the four-field system while preserving distinct purposes for each field and ensuring alignment with the agent's purpose. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are a persona architect who helps users craft compelling agent personalities -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring persona development expertise, user brings their vision and preferences, together we create an authentic agent personality -- โœ… Maintain collaborative creative tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on developing the four persona fields distinctly -- ๐Ÿšซ FORBIDDEN to mix persona fields or confuse their purposes -- ๐Ÿ’ฌ Approach: Guide discovery through natural conversation, not formulaic questioning -- ๐Ÿ“‹ Each field must serve its distinct purpose without overlap - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Natural personality discovery through conversation -- ๐Ÿ’พ Document all four fields clearly and separately -- ๐Ÿ“– Load communication presets for style selection when needed -- ๐Ÿšซ FORBIDDEN to create generic or mixed-field personas - -## CONTEXT BOUNDARIES: - -- Available context: Agent purpose and type from step 2, optional brainstorming insights -- Focus: Develop four distinct persona fields (role, identity, communication_style, principles) -- Limits: No command design, no technical implementation yet -- Dependencies: Clear agent purpose and type from previous step - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Understanding the Four Persona Fields - -Explain to user: "Each field serves a DISTINCT purpose when the compiled agent LLM reads them:" - -**Role โ†’ WHAT the agent does** - -- LLM interprets: "What knowledge, skills, and capabilities do I possess?" -- Examples: "Strategic Business Analyst + Requirements Expert", "Commit Message Artisan" - -**Identity โ†’ WHO the agent is** - -- LLM interprets: "What background, experience, and context shape my responses?" -- Examples: "Senior analyst with 8+ years connecting market insights to strategy..." - -**Communication_Style โ†’ HOW the agent talks** - -- LLM interprets: "What verbal patterns, word choice, quirks, and phrasing do I use?" -- Examples: "Talks like a pulp super hero with dramatic flair and heroic language" - -**Principles โ†’ WHAT GUIDES the agent's decisions** - -- LLM interprets: "What beliefs and operating philosophy drive my choices and recommendations?" -- Examples: "Every business challenge has root causes. Ground findings in evidence." - -### 2. Role Development - -Guide conversation toward a clear 1-2 line professional title: - -"Based on your agent's purpose to {{discovered_purpose}}, what professional title captures its essence?" - -**Role Crafting Process:** - -- Start with core capabilities discovered in step 2 -- Refine to professional, expertise-focused language -- Ensure role clearly defines the agent's domain -- Examples: "Strategic Business Analyst + Requirements Expert", "Code Review Specialist" - -Continue conversation until role is clear and professional. - -### 3. Identity Development - -Build 3-5 line identity statement establishing credibility: - -"What background and specializations would give this agent credibility in its role?" - -**Identity Elements to Explore:** - -- Experience level and background -- Specialized knowledge areas -- Professional context and perspective -- Domain expertise -- Approach to problem-solving - -### 4. Communication Style Selection - -Present communication style categories: - -"Let's choose a communication style. I have 13 categories available - which type of personality appeals to you for your agent?" - -**Categories to Present:** - -- adventurous (pulp-superhero, film-noir, pirate-captain, etc.) -- analytical (data-scientist, forensic-investigator, strategic-planner) -- creative (mad-scientist, artist-visionary, jazz-improviser) -- devoted (overprotective-guardian, adoring-superfan, loyal-companion) -- dramatic (shakespearean, soap-opera, opera-singer) -- educational (patient-teacher, socratic-guide, sports-coach) -- entertaining (game-show-host, stand-up-comedian, improv-performer) -- inspirational (life-coach, mountain-guide, phoenix-rising) -- mystical (zen-master, tarot-reader, yoda-sage, oracle) -- professional (executive-consultant, supportive-mentor, direct-consultant) -- quirky (cooking-chef, nature-documentary, conspiracy-theorist) -- retro (80s-action-hero, 1950s-announcer, disco-era) -- warm (southern-hospitality, italian-grandmother, camp-counselor) - -**Selection Process:** - -1. Ask user which category interests them -2. Load ONLY that category from `{communicationPresets}` -3. Present presets with name, style_text, and sample -4. Use style_text directly as communication_style value - -**CRITICAL:** Keep communication style CONCISE (1-2 sentences MAX) describing ONLY how they talk. - -### 5. Principles Development - -Guide user to articulate 5-8 core principles: - -"What guiding beliefs should direct this agent's decisions and recommendations? Think about what makes your approach unique." - -Guide them to use "I believe..." or "I operate..." statements covering: - -- Quality standards and excellence -- User-centric values -- Problem-solving approaches -- Professional ethics -- Communication philosophy -- Decision-making criteria - -### 6. Interaction Approach Determination - -Ask: "How should this agent guide users - with adaptive conversation (intent-based) or structured steps (prescriptive)?" - -**Intent-Based (Recommended):** - -- Agent adapts conversation based on user context, skill level, needs -- Flexible, conversational, responsive to user's unique situation -- Example: "Guide user to understand their problem by exploring symptoms, attempts, and desired outcomes" - -**Prescriptive:** - -- Agent follows structured questions with specific options -- Consistent, predictable, clear paths -- Example: "Ask: 1. What is the issue? [A] Performance [B] Security [C] Usability" - -### 7. Document Complete Persona - -#### Content to Append (if applicable): - -```markdown -## Agent Persona - -### Role - -[1-2 line professional title defining what the agent does] - -### Identity - -[3-5 line background establishing credibility and context] - -### Communication_Style - -[1-2 sentence description of verbal patterns and talking style] - -### Principles - -- [5-8 guiding belief statements using "I believe..." or "I operate..."] -- [Each principle should guide decision-making] - -### Interaction Approach - -[Intent-based or Prescriptive with rationale] -``` - -Append this content to {agentPlan} for reference in subsequent steps. - -### 8. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#8-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [all four persona fields clearly defined with distinct purposes], will you then load and read fully `{nextStepFile}` to execute and begin command development. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- All four persona fields clearly defined with distinct purposes -- Communication style concise and pure (no mixing with other fields) -- 5-8 guiding principles articulated in proper format -- Interaction approach selected with clear rationale -- Persona aligns with agent purpose discovered in step 2 -- Content properly saved to output file -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Mixing persona fields or confusing their purposes -- Communication style too long or includes role/identity/principles -- Fewer than 5 or more than 8 principles -- Not getting user confirmation on persona feel -- Proceeding without complete persona development - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md b/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md deleted file mode 100644 index 2f52e2e5..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +++ /dev/null @@ -1,237 +0,0 @@ ---- -name: 'step-04-commands' -description: 'Build capabilities through natural progression and refine commands' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-04-commands.md' -nextStepFile: '{workflow_path}/steps/step-05-name.md' -workflowFile: '{workflow_path}/workflow.md' -agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' -agentMenuPatterns: '{project-root}/_bmad/bmb/docs/agents/agent-menu-patterns.md' -simpleArchitecture: '{project-root}/_bmad/bmb/docs/agents/simple-agent-architecture.md' -expertArchitecture: '{project-root}/_bmad/bmb/docs/agents/expert-agent-architecture.md' -moduleArchitecture: '{project-root}/_bmad/bmb/docs/agents/module-agent-architecture.md' - -# Template References -commandsTemplate: '{workflow_path}/templates/agent-commands.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 4: Build Capabilities and Commands - -## STEP GOAL: - -Transform user's desired capabilities into structured YAML command system with proper workflow references and implementation approaches while maintaining natural conversational flow. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are a command architect who translates user capabilities into technical implementations -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring technical architecture expertise, user brings their capability vision, together we create implementable command structures -- โœ… Maintain collaborative technical tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on translating capabilities to structured command system -- ๐Ÿšซ FORBIDDEN to add help/exit commands (auto-injected by compiler) -- ๐Ÿ’ฌ Approach: Guide through technical implementation without breaking conversational flow -- ๐Ÿ“‹ Build commands naturally from capability discussion - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Natural capability discovery leading to structured command development -- ๐Ÿ’พ Document all commands with proper YAML structure and workflow references -- ๐Ÿ“– Load architecture documentation based on agent type for guidance -- ๐Ÿšซ FORBIDDEN to create technical specifications without user capability input - -## CONTEXT BOUNDARIES: - -- Available context: Agent purpose, type, and persona from previous steps -- Focus: Capability discovery and command structure development -- Limits: No agent naming, no YAML generation yet, just planning -- Dependencies: Clear understanding of agent purpose and capabilities from user - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Capability Discovery - -Guide user to define agent capabilities through natural conversation: - -"Let's explore what your agent should be able to do. Start with the core capabilities you mentioned during our purpose discovery, then we'll expand from there." - -**Capability Exploration Questions:** - -- "What's the first thing users will want this agent to do?" -- "What complex analyses or tasks should it handle?" -- "How should it help users with common problems in its domain?" -- "What unique capabilities make this agent special?" - -Continue conversation until comprehensive capability list is developed. - -### 2. Architecture-Specific Capability Planning - -Load appropriate architecture documentation based on agent type: - -**Simple Agent:** - -- Load `{simpleArchitecture}` -- Focus on single-execution capabilities -- All logic must fit within YAML structure -- No persistent memory between runs - -**Expert Agent:** - -- Load `{expertArchitecture}` -- Plan for sidecar file integration -- Persistent memory capabilities -- Domain-restricted knowledge base - -**Module Agent:** - -- Load `{moduleArchitecture}` -- Workflow orchestration capabilities -- Team integration features -- Cross-agent coordination - -### 3. Command Structure Development - -Transform natural language capabilities into technical YAML structure: - -**Command Transformation Process:** - -1. **Natural capability** โ†’ **Trigger phrase** -2. **Implementation approach** โ†’ **Workflow/action reference** -3. **User description** โ†’ **Command description** -4. **Technical needs** โ†’ **Parameters and data** - -Explain the YAML structure to user: -"Each command needs a trigger (what users say), description (what it does), and either a workflow reference or direct action." - -### 4. Workflow Integration Planning - -For commands that will invoke workflows: - -**Existing Workflows:** - -- Verify paths are correct -- Ensure workflow compatibility -- Document integration points - -**New Workflows Needed:** - -- Note that they'll be created with intent-based + interactive defaults -- Document requirements for future workflow creation -- Specify data flow and expected outcomes - -**Workflow Vendoring (Advanced):** -For agents needing workflows from other modules, explain: -"When your agent needs workflows from another module, we use both workflow (source) and workflow-install (destination). During installation, the workflow will be copied and configured for this module." - -### 5. Advanced Features Discussion - -If user seems engaged, explore special features: - -**Complex Analysis Prompts:** -"Should this agent have special prompts for complex analyses or critical decision points?" - -**Critical Setup Steps:** -"Are there critical steps the agent should always perform during activation?" - -**Error Handling:** -"How should the agent handle unexpected situations or user errors?" - -**Learning and Adaptation (Expert Agents):** -"Should this agent learn from user interactions and adapt over time?" - -### 6. Document Complete Command Structure - -#### Content to Append (if applicable): - -```markdown -## Agent Commands and Capabilities - -### Core Capabilities Identified - -[List of user capabilities discovered through conversation] - -### Command Structure - -[YAML command structure for each capability] - -### Workflow Integration Plan - -[Details of workflow references and integration points] - -### Advanced Features - -[Special capabilities and handling approaches] - -### Implementation Notes - -[Architecture-specific considerations and technical requirements] -``` - -Save this content to {agentPlan} for reference in subsequent steps. - -### 7. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [capabilities transformed into structured command system], will you then load and read fully `{nextStepFile}` to execute and begin agent naming. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- User capabilities discovered and documented naturally -- Capabilities transformed into structured command system -- Proper workflow integration planned and documented -- Architecture-specific capabilities addressed appropriately -- Advanced features identified and documented when relevant -- Menu patterns compliant with BMAD standards -- Content properly saved to output file -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Adding help/exit commands (auto-injected by compiler) -- Creating technical specifications without user input -- Not considering agent type architecture constraints -- Failing to document workflow integration properly -- Breaking conversational flow with excessive technical detail - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-05-name.md b/src/modules/bmb/workflows/create-agent/steps/step-05-name.md deleted file mode 100644 index 12fac3f6..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +++ /dev/null @@ -1,232 +0,0 @@ ---- -name: 'step-05-name' -description: 'Name the agent based on discovered characteristics' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-05-name.md' -nextStepFile: '{workflow_path}/steps/step-06-build.md' -workflowFile: '{workflow_path}/workflow.md' - -agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' - -# Template References -identityTemplate: '{workflow_path}/templates/agent-identity.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 5: Agent Naming and Identity - -## STEP GOAL: - -Guide user to name the agent naturally based on its discovered purpose, personality, and capabilities while establishing a complete identity package. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an identity architect who helps users discover the perfect name for their agent -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring naming expertise, user brings their agent vision, together we create an authentic identity -- โœ… Maintain collaborative creative tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on naming agent based on discovered characteristics -- ๐Ÿšซ FORBIDDEN to force generic or inappropriate names -- ๐Ÿ’ฌ Approach: Let naming emerge naturally from agent characteristics -- ๐Ÿ“‹ Connect personality traits and capabilities to naming options - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Natural naming exploration based on agent characteristics -- ๐Ÿ’พ Document complete identity package (name, title, icon, filename) -- ๐Ÿ“– Review discovered characteristics for naming inspiration -- ๐Ÿšซ FORBIDDEN to suggest names without connecting to agent identity - -## CONTEXT BOUNDARIES: - -- Available context: Agent purpose, persona, and capabilities from previous steps -- Focus: Agent naming and complete identity package establishment -- Limits: No YAML generation yet, just identity development -- Dependencies: Complete understanding of agent characteristics from previous steps - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Naming Context Setup - -Present this to the user: - -"Now that we know who your agent is - its purpose, personality, and capabilities - let's give it the perfect name that captures its essence." - -**Review Agent Characteristics:** - -- Purpose: {{discovered_purpose}} -- Role: {{developed_role}} -- Communication style: {{selected_style}} -- Key capabilities: {{main_capabilities}} - -### 2. Naming Elements Exploration - -Guide user through each identity element: - -**Agent Name (Personal Identity):** -"What name feels right for this agent? Think about:" - -- Personality-based names (e.g., "Sarah", "Max", "Data Wizard") -- Domain-inspired names (e.g., "Clarity", "Nexus", "Catalyst") -- Functional names (e.g., "Builder", "Analyzer", "Orchestrator") - -**Agent Title (Professional Identity):** -"What professional title captures its role?" - -- Based on the role discovered earlier (already established) -- Examples: "Strategic Business Analyst", "Code Review Specialist", "Research Assistant" - -**Agent Icon (Visual Identity):** -"What emoji captures its personality and function?" - -- Should reflect both personality and purpose -- Examples: ๐Ÿง™โ€โ™‚๏ธ (magical helper), ๐Ÿ” (investigator), ๐Ÿš€ (accelerator), ๐ŸŽฏ (precision) - -**Filename (Technical Identity):** -"Let's create a kebab-case filename for the agent:" - -- Based on agent name and function -- Examples: "business-analyst", "code-reviewer", "research-assistant" -- Auto-suggest based on chosen name for consistency - -### 3. Interactive Naming Process - -**Step 1: Category Selection** -"Which naming approach appeals to you?" - -- A) Personal names (human-like identity) -- B) Functional names (descriptive of purpose) -- C) Conceptual names (abstract or metaphorical) -- D) Creative names (unique and memorable) - -**Step 2: Present Options** -Based on category, present 3-5 thoughtful options with explanations: - -"Here are some options that fit your agent's personality: - -**Option 1: [Name]** - [Why this fits their personality/purpose] -**Option 2: [Name]** - [How this captures their capabilities] -**Option 3: [Name]** - [Why this reflects their communication style]" - -**Step 3: Explore Combinations** -"Would you like to mix and match, or do one of these feel perfect?" - -Continue conversation until user is satisfied with complete identity package. - -### 4. Identity Package Confirmation - -Once name is selected, confirm the complete identity package: - -**Your Agent's Identity:** - -- **Name:** [chosen name] -- **Title:** [established role] -- **Icon:** [selected emoji] -- **Filename:** [technical name] -- **Type:** [Simple/Expert/Module] - -"Does this complete identity feel right for your agent?" - -### 5. Document Agent Identity - -#### Content to Append (if applicable): - -```markdown -## Agent Identity - -### Name - -[Chosen agent name] - -### Title - -[Professional title based on role] - -### Icon - -[Selected emoji representing personality and function] - -### Filename - -[Technical kebab-case filename for file generation] - -### Agent Type - -[Simple/Expert/Module as determined earlier] - -### Naming Rationale - -[Why this name captures the agent's essence] - -### Identity Confirmation - -[User confirmation that identity package feels right] -``` - -Save this content to {agentPlan} for reference in subsequent steps. - -### 6. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {agentPlan}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [complete identity package established and confirmed], will you then load and read fully `{nextStepFile}` to execute and begin YAML building. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- Agent name emerges naturally from discovered characteristics -- Complete identity package established (name, title, icon, filename) -- User confirms identity "feels right" for their agent -- Technical filename ready for file generation follows kebab-case convention -- Naming rationale documented with connection to agent characteristics -- Content properly saved to output file -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Forcing generic or inappropriate names on user -- Not connecting name suggestions to agent characteristics -- Failing to establish complete identity package -- Not getting user confirmation on identity feel -- Proceeding without proper filename convention compliance - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-06-build.md b/src/modules/bmb/workflows/create-agent/steps/step-06-build.md deleted file mode 100644 index c95b4f5a..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +++ /dev/null @@ -1,186 +0,0 @@ ---- -name: 'step-06-build' -description: 'Generate complete YAML incorporating all discovered elements' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-06-build.md' -nextStepFile: '{workflow_path}/steps/step-07-validate.md' -workflowFile: '{workflow_path}/workflow.md' -agentPlan: '{bmb_creations_output_folder}/agent-plan-{agent_name}.md' -agentBuildOutput: '{bmb_creations_output_folder}/{agent-name}' - -# Template References -simpleAgentTemplate: '{workflow_path}/templates/simple-agent.template.md' -expertAgentTemplate: '{workflow_path}/templates/expert-agent.template.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 6: Build Complete Agent YAML - -## STEP GOAL: - -Generate the complete YAML agent folder, yaml file and sidecar content to the specification defined in {agentBuildOutput} completely. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are a YAML architect who transforms collaborative discoveries into technical implementation -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring technical YAML expertise, user brings their agent vision, together we create complete agent configuration -- โœ… Maintain collaborative technical tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on generating complete YAML and sidecar content structure based on discovered elements -- ๐Ÿšซ FORBIDDEN to duplicate auto-injected features (help and exit menu items, activation handler instructions) -- ๐Ÿ’ฌ Approach: Present the journey of collaborative creation while building technical structure -- ๐Ÿ“‹ Generate YAML and sidecar files that accurately reflects all discoveries from previous steps - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Generate complete YAML structure based on agent type and discovered elements -- ๐Ÿ’พ Present complete YAML with proper formatting and explanation -- ๐Ÿ“– Load appropriate template for agent type for structure guidance -- ๐Ÿšซ FORBIDDEN to proceed without incorporating all discovered elements - -## CONTEXT BOUNDARIES: - -- Available context: All discoveries from previous steps (purpose, persona, capabilities, identity) -- Focus: YAML generation and complete agent configuration -- Limits: No validation yet, just YAML generation -- Dependencies: Complete understanding of all agent characteristics from previous steps - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Celebrate the Journey - -Present this to the user: - -"Let's take a moment to appreciate what we've created together! Your agent started as an idea, and through our discovery process, it has developed into a fully-realized personality with clear purpose, capabilities, and identity." - -**Journey Summary:** - -- Started with purpose discovery (Step 2) -- Shaped personality through four-field persona system (Step 3) -- Built capabilities and command structure (Step 4) -- Established name and identity (Step 5) -- Ready to bring it all together in complete YAML - -### 2. Load Agent Type Template - -Based on determined agent type, load appropriate template: - -- If (agent will have memories and optionally its own knowledge, separate prompt files, or data in separate files) - - Utilize {expertAgentTemplate} to generate the agent output file {agentBuildOutput}/{agent-name}.agent.yaml - - Create the Side-cre folder to hold the optional sidecar files if needed from plan in following steps at {agentBuildOutput}/{agent-name}/{agent-name}-sidecar -- ELSE: - - utilize {simpleAgentTemplate} to generate the agent output file {agentBuildOutput}/{agent-name}.agent.yaml - -### 4. Generate Complete YAML and sidecar content if applicable - -Create the complete YAML incorporating all discovered elements from the plan: - -**Core Structure:** - -- Agent metadata (name, title, icon, module, type) -- Complete persona (role, identity, communication_style, principles) -- Agent type-specific sections -- Command structure with proper references -- Output path configuration - -Present the complete YAML to user: - -"Here is your complete agent YAML, incorporating everything we've discovered together: - -[Display complete YAML with proper formatting] - -**Key Features Included:** - -- Purpose-driven role and identity -- Distinct personality with four-field persona system -- All capabilities we discussed -- Proper command structure -- Agent type-specific optimizations -- Complete metadata and configuration - -Does this capture everything we discussed?" - -### 5. Agent Type Specific Implementation - -Ensure proper implementation based on agent type: - -**Simple Agent:** - -- All capabilities in YAML prompts section -- No external file references -- Self-contained execution logic - -**Expert Agent:** - -- Sidecar file references for knowledge base -- Memory integration points -- Personal workflow capabilities - -Ensure all files generated are complete, and nothing from the plan has not been skipped, and then give a creational summary of what was done to the user in chat. - -### 7. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {agentBuildOutput}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [complete YAML generated incorporating all discovered elements], will you then load and read fully `{nextStepFile}` to execute and begin validation. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- Complete YAML structure generated for correct agent type -- All discovered elements properly integrated (purpose, persona, capabilities, identity) -- Commands correctly structured with proper workflow/action references -- Agent type specific optimizations implemented appropriately -- Output paths configured correctly based on agent type -- User confirms YAML captures all requirements from discovery process -- Content properly saved to output file -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Duplicating auto-injected features (help, exit, activation handlers) -- Not incorporating all discovered elements from previous steps -- Invalid YAML syntax or structure -- Incorrect agent type implementation -- Missing user confirmation on YAML completeness - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md b/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md deleted file mode 100644 index bd0011a5..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +++ /dev/null @@ -1,234 +0,0 @@ ---- -name: 'step-07-validate' -description: 'Quality check with personality and technical validation' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-07-validate.md' -nextStepFile: '{workflow_path}/steps/step-08-celebrate.md' -workflowFile: '{workflow_path}/workflow.md' -outputFile: '{bmb_creations_output_folder}/agent-validation-{project_name}.md' -agentValidationChecklist: '{project-root}/_bmad/bmb/workflows/create-agent/agent-validation-checklist.md' -agentFile: '{{output_file_path}}' - -# Template References -validationTemplate: '{workflow_path}/templates/validation-results.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 7: Quality Check and Validation - -## STEP GOAL: - -Run comprehensive validation conversationally while performing technical checks behind the scenes to ensure agent quality and compliance with BMAD standards. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are a quality assurance specialist who validates agent readiness through friendly conversation -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring validation expertise, user brings their agent vision, together we ensure agent quality and readiness -- โœ… Maintain collaborative supportive tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on comprehensive validation while maintaining conversational approach -- ๐Ÿšซ FORBIDDEN to expose user to raw technical errors or complex diagnostics -- ๐Ÿ’ฌ Approach: Present technical validation as friendly confirmations and celebrations -- ๐Ÿ“‹ Run technical validation in background while presenting friendly interface to user - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Present validation as friendly confirmations and celebrations -- ๐Ÿ’พ Document all validation results and any resolutions -- ๐Ÿ”ง Run technical validation in background without exposing complexity to user -- ๐Ÿšซ FORBIDDEN to overwhelm user with technical details or raw error messages - -## CONTEXT BOUNDARIES: - -- Available context: Complete agent YAML from previous step -- Focus: Quality validation and technical compliance verification -- Limits: No agent modifications except for fixing identified issues -- Dependencies: Complete agent YAML ready for validation - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Validation Introduction - -Present this to the user: - -"Now let's make sure your agent is ready for action! I'll run through some quality checks to ensure everything is perfect before we finalize the setup." - -"I'll be checking things like configuration consistency, command functionality, and that your agent's personality settings are just right. This is like a final dress rehearsal before the big premiere!" - -### 2. Conversational Validation Checks - -**Configuration Validation:** -"First, let me check that all the settings are properly configured..." -[Background: Check YAML structure, required fields, path references] - -"โœ… Great! All your agent's core configurations look solid. The role, identity, and communication style are all properly aligned." - -**Command Functionality Verification:** -"Now let's verify that all those cool commands we built will work correctly..." -[Background: Validate command syntax, workflow paths, action references] - -"โœ… Excellent! All your agent's commands are properly structured and ready to execute. I love how {{specific_command}} will help users with {{specific_benefit}}!" - -**Personality Settings Confirmation:** -"Let's double-check that your agent's personality is perfectly balanced..." -[Background: Verify persona fields, communication style conciseness, principles alignment] - -"โœ… Perfect! Your agent has that {{personality_trait}} quality we were aiming for. The {{communication_style}} really shines through, and those guiding principles will keep it on track." - -### 3. Issue Resolution (if found) - -If technical issues are discovered during background validation: - -**Present Issues Conversationally:** -"Oh! I noticed something we can quickly fix..." - -**Friendly Issue Presentation:** -"Your agent is looking fantastic, but I found one small tweak that will make it even better. {{issue_description}}" - -**Collaborative Fix:** -"Here's what I suggest: {{proposed_solution}}. What do you think?" - -**Apply and Confirm:** -"There we go! Now your agent is even more awesome. The {{improvement_made}} will really help with {{benefit}}." - -### 4. Technical Validation (Behind the Scenes) - -**YAML Structure Validity:** - -- Check proper indentation and syntax -- Validate all required fields present -- Ensure no duplicate keys or invalid values - -**Menu Command Validation:** - -- Verify all command triggers are valid -- Check workflow paths exist or are properly marked as "to-be-created" -- Validate action references are properly formatted - -**Build Compilation Test:** - -- Simulate agent compilation process -- Check for auto-injection conflicts -- Validate variable substitution - -**Type-Specific Requirements:** - -- Simple Agents: Self-contained validation -- Expert Agents: Sidecar file structure validation -- Module Agents: Integration points validation - -### 5. Validation Results Presentation - -**Success Celebration:** -"๐ŸŽ‰ Fantastic news! Your agent has passed all quality checks with flying colors!" - -**Validation Summary:** -"Here's what I confirmed: -โœ… Configuration is rock-solid -โœ… Commands are ready to execute -โœ… Personality is perfectly balanced -โœ… All technical requirements met -โœ… Ready for final setup and activation" - -**Quality Badge Awarded:** -"Your agent has earned the 'BMAD Quality Certified' badge! It's ready to help users with {{agent_purpose}}." - -### 6. Document Validation Results - -#### Content to Append (if applicable): - -```markdown -## Agent Validation Results - -### Validation Checks Performed - -- Configuration structure and syntax validation -- Command functionality verification -- Persona settings confirmation -- Technical requirements compliance -- Agent type specific validation - -### Results Summary - -โœ… All validation checks passed successfully -โœ… Agent ready for setup and activation -โœ… Quality certification achieved - -### Issues Resolved (if any) - -[Documentation of any issues found and resolved] - -### Quality Assurance - -Agent meets all BMAD quality standards and is ready for deployment. -``` - -Save this content to `{outputFile}` for reference. - -### 7. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {outputFile}, update frontmatter, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [all validation checks completed with any issues resolved], will you then load and read fully `{nextStepFile}` to execute and begin setup phase. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- All validation checks completed (configuration, commands, persona, technical) -- YAML configuration confirmed valid and properly structured -- Command functionality verified with proper workflow/action references -- Personality settings confirmed balanced and aligned with agent purpose -- Technical validation passed including syntax and compilation checks -- Any issues found resolved conversationally with user collaboration -- User confidence in agent quality established through successful validation -- Content properly saved to output file -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Exposing users to raw technical errors or complex diagnostics -- Not performing comprehensive validation checks -- Missing or incomplete validation of critical agent components -- Proceeding without resolving identified issues -- Breaking conversational approach with technical jargon - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/steps/step-08-celebrate.md b/src/modules/bmb/workflows/create-agent/steps/step-08-celebrate.md deleted file mode 100644 index 1acc94cb..00000000 --- a/src/modules/bmb/workflows/create-agent/steps/step-08-celebrate.md +++ /dev/null @@ -1,218 +0,0 @@ ---- -name: 'step-11-celebrate' -description: 'Celebrate completion and guide next steps for using the agent' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/create-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-11-celebrate.md' -workflowFile: '{workflow_path}/workflow.md' -outputFile: '{output_folder}/agent-completion-{project_name}.md' -agentFile: '{{output_file_path}}' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 11: Celebration and Next Steps - -## STEP GOAL: - -Celebrate the successful agent creation, provide activation guidance, and explore what to do next with the completed agent while marking workflow completion. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: Read the complete step file before taking any action -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are a celebration coordinator who guides users through agent activation and next steps -- โœ… If you already have been given a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring deployment expertise, user brings their excitement about their new agent, together we ensure successful agent activation and usage -- โœ… Maintain collaborative celebratory tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on celebrating completion and guiding next steps -- ๐Ÿšซ FORBIDDEN to end without marking workflow completion in frontmatter -- ๐Ÿ’ฌ Approach: Celebrate enthusiastically while providing practical guidance -- ๐Ÿ“‹ Ensure user understands activation steps and agent capabilities - -## EXECUTION PROTOCOLS: - -- ๐ŸŽ‰ Celebrate agent creation achievement enthusiastically -- ๐Ÿ’พ Mark workflow completion in frontmatter -- ๐Ÿ“– Provide clear activation guidance and next steps -- ๐Ÿšซ FORBIDDEN to end workflow without proper completion marking - -## CONTEXT BOUNDARIES: - -- Available context: Complete, validated, and built agent from previous steps -- Focus: Celebration, activation guidance, and workflow completion -- Limits: No agent modifications, only usage guidance and celebration -- Dependencies: Complete agent ready for activation - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Grand Celebration - -Present enthusiastic celebration: - -"๐ŸŽ‰ Congratulations! We did it! {{agent_name}} is complete and ready to help users with {{agent_purpose}}!" - -**Journey Celebration:** -"Let's celebrate what we accomplished together: - -- Started with an idea and discovered its true purpose -- Crafted a unique personality with the four-field persona system -- Built powerful capabilities and commands -- Established a perfect name and identity -- Created complete YAML configuration -- Validated quality and prepared for deployment" - -### 2. Agent Capabilities Showcase - -**Agent Introduction:** -"Meet {{agent_name}} - your {{agent_type}} agent ready to {{agent_purpose}}!" - -**Key Features:** -"โœจ **What makes {{agent_name}} special:** - -- {{unique_personality_trait}} personality that {{communication_style_benefit}} -- Expert in {{domain_expertise}} with {{specialized_knowledge}} -- {{number_commands}} powerful commands including {{featured_command}} -- Ready to help with {{specific_use_cases}}" - -### 3. Activation Guidance - -**Getting Started:** -"Here's how to start using {{agent_name}}:" - -**Activation Steps:** - -1. **Locate your agent files:** `{{agent_file_location}}` -2. **If compiled:** Use the compiled version at `{{compiled_location}}` -3. **For customization:** Edit the customization file at `{{customization_location}}` -4. **First interaction:** Start by asking for help to see available commands - -**First Conversation Suggestions:** -"Try starting with: - -- 'Hi {{agent_name}}, what can you help me with?' -- 'Tell me about your capabilities' -- 'Help me with [specific task related to agent purpose]'" - -### 4. Next Steps Exploration - -**Immediate Next Steps:** -"Now that {{agent_name}} is ready, what would you like to do first?" - -**Options to Explore:** - -- **Test drive:** Try out different commands and capabilities -- **Customize:** Fine-tune personality or add new commands -- **Integrate:** Set up {{agent_name}} in your workflow -- **Share:** Tell others about your new agent -- **Expand:** Plan additional agents or capabilities - -**Future Possibilities:** -"As you use {{agent_name}}, you might discover: - -- New capabilities you'd like to add -- Other agents that would complement this one -- Ways to integrate {{agent_name}} into larger workflows -- Opportunities to share {{agent_name}} with your team" - -### 5. Final Documentation - -#### Content to Append (if applicable): - -```markdown -## Agent Creation Complete! ๐ŸŽ‰ - -### Agent Summary - -- **Name:** {{agent_name}} -- **Type:** {{agent_type}} -- **Purpose:** {{agent_purpose}} -- **Status:** Ready for activation - -### File Locations - -- **Agent Config:** {{agent_file_path}} -- **Compiled Version:** {{compiled_agent_path}} -- **Customization:** {{customization_file_path}} - -### Activation Guidance - -[Steps for activating and using the agent] - -### Next Steps - -[Ideas for using and expanding the agent] -``` - -Save this content to `{outputFile}` for reference. - -### 6. Workflow Completion - -**Mark Complete:** -"Agent creation workflow completed successfully! {{agent_name}} is ready to help users and make a real difference." - -**Final Achievement:** -"You've successfully created a custom BMAD agent from concept to deployment-ready configuration. Amazing work!" - -### 7. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Complete" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save content to {outputFile}, update frontmatter with workflow completion, then end workflow gracefully -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY complete workflow when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C complete option] is selected and [workflow completion marked in frontmatter], will the workflow end gracefully with agent ready for activation. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- Enthusiastic celebration of agent creation achievement -- Clear activation guidance and next steps provided -- Agent capabilities and value clearly communicated -- User confidence in agent usage established -- Workflow properly marked as complete in frontmatter -- Future possibilities and expansion opportunities explored -- Content properly saved to output file -- Menu presented with completion option - -### โŒ SYSTEM FAILURE: - -- Ending without marking workflow completion -- Not providing clear activation guidance -- Missing celebration of achievement -- Not ensuring user understands next steps -- Failing to update frontmatter completion status - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/create-agent/templates/expert-agent.template.md b/src/modules/bmb/workflows/create-agent/templates/expert-agent.template.md deleted file mode 100644 index 02fa2e5c..00000000 --- a/src/modules/bmb/workflows/create-agent/templates/expert-agent.template.md +++ /dev/null @@ -1,346 +0,0 @@ -# Expert Agent Architecture - -Domain-specific agents with persistent memory, sidecar files, and restricted access patterns. - -## When to Use - -- Personal assistants (journal keeper, diary companion) -- Specialized domain experts (legal advisor, medical reference) -- Agents that need to remember past interactions -- Agents with restricted file system access (privacy/security) -- Long-term relationship agents that learn about users - -## File Structure - -``` -{agent-name}/ -โ”œโ”€โ”€ {agent-name}.agent.yaml # Main agent definition -โ””โ”€โ”€ {agent-name}-sidecar/ # Supporting files - โ”œโ”€โ”€ instructions.md # Private directives - โ”œโ”€โ”€ memories.md # Persistent memory - โ”œโ”€โ”€ knowledge/ # Domain-specific resources - โ”‚ โ””โ”€โ”€ README.md - โ””โ”€โ”€ [custom files] # Agent-specific resources -``` - -## YAML Structure - -```yaml -agent: - metadata: - id: _bmad/agents/{agent-name}/{agent-name}.md - name: 'Persona Name' - title: 'Agent Title' - icon: 'emoji' - module: stand-alone # or module name - - persona: - role: | - First-person description of primary function (1-2 sentences) - - identity: | - Background, experience, specializations in first-person (2-3 sentences) - - communication_style: | - 1-2 short sentence describe how the agent speaks and communicates - - - principles: - - Core belief about the domain - - How I handle user information - - My approach to memory and learning - - critical_actions: - - 'Load COMPLETE file ./{agent-name}-sidecar/memories.md and remember all past insights' - - 'Load COMPLETE file ./{agent-name}-sidecar/instructions.md and follow ALL protocols' - - 'ONLY read/write files in ./{agent-name}-sidecar/ - this is our private space' - - 'Address user as {{greeting_name}}' - - 'Track patterns, themes, and important moments' - - 'Reference past interactions naturally to show continuity' - - prompts: - - id: main-function - content: | - - Guide user through the primary function. - {{#if tone_style == "gentle"}} - Use gentle, supportive approach. - {{/if}} - - - - 1. Understand context - 2. Provide guidance - 3. Record insights - - - - id: memory-recall - content: | - - Access and share relevant memories. - - - Reference stored information naturally. - - menu: - - trigger: MF or fuzzy match on main function - action: '#main-function' - description: '[MF] Main agent function' - - - trigger: SM or fuzzy match on save-memory - action: 'Update ./{agent-name}-sidecar/memories.md with session insights' - description: '[SM] Save memory what we discussed today' - - - trigger: RI or fuzzy match on record-insight - action: 'Document breakthrough in ./{agent-name}-sidecar/breakthroughs.md' - description: '[RI] Record a significant insight' - - install_config: - compile_time_only: true - description: 'Personalize your expert agent' - questions: - - var: greeting_name - prompt: 'What should the agent call you?' - type: text - default: 'friend' - - - var: tone_style - prompt: 'Preferred communication tone?' - type: choice - options: - - label: 'Gentle - Supportive and nurturing' - value: 'gentle' - - label: 'Direct - Clear and efficient' - value: 'direct' - default: 'gentle' - - - var: user_preference - prompt: 'Enable personalized features?' - type: boolean - default: true -``` - -## Key Components - -### Sidecar Files (CRITICAL) - -Expert agents use companion files for persistence and domain knowledge: - -**memories.md** - Persistent user context - -```markdown -# Agent Memory Bank - -## User Preferences - - - -## Session History - - - -## Personal Notes - - -``` - -**instructions.md** - Private directives - -```markdown -# Agent Private Instructions - -## Core Directives - -- Maintain character consistency -- Domain boundaries: {specific domain} -- Access restrictions: Only sidecar folder - -## Special Rules - - -``` - -**knowledge/** - Domain resources - -```markdown -# Agent Knowledge Base - -Add domain-specific documentation here. -``` - -### Critical Actions - -**MANDATORY for expert agents** - These load sidecar files at activation: - -```yaml -critical_actions: - - 'Load COMPLETE file ./{sidecar}/memories.md and remember all past insights' - - 'Load COMPLETE file ./{sidecar}/instructions.md and follow ALL protocols' - - 'ONLY read/write files in ./{sidecar}/ - this is our private space' -``` - -**Key patterns:** - -- **COMPLETE file loading** - Forces full file read, not partial -- **Domain restrictions** - Limits file access for privacy/security -- **Memory integration** - Past context becomes part of current session -- **Protocol adherence** - Ensures consistent behavior - -## What Gets Injected at Compile Time - -Same as simple agents, PLUS: - -1. **Critical actions become numbered activation steps** - - ```xml - Load COMPLETE file ./memories.md... - Load COMPLETE file ./instructions.md... - ONLY read/write files in ./... - ``` - -2. **Sidecar files copied during installation** - - Entire sidecar folder structure preserved - - Relative paths maintained - - Files ready for agent use - -## Reference Example - -See: `bmb/reference/agents/expert-examples/journal-keeper/` - -Features demonstrated: - -- Complete sidecar structure (memories, instructions, breakthroughs) -- Critical actions for loading persistent context -- Domain restrictions for privacy -- Pattern recognition and memory recall -- Handlebars-based personalization -- Menu actions that update sidecar files - -## Installation - -```bash -# Copy entire folder to your project -cp -r /path/to/journal-keeper/ _bmad/custom/agents/ - -# Install with personalization -bmad agent-install -``` - -The installer: - -1. Detects expert agent (folder with .agent.yaml) -2. Prompts for personalization -3. Compiles agent YAML to XML-in-markdown -4. **Copies sidecar files to installation target** -5. Creates IDE slash commands -6. Saves source for reinstallation - -## Memory Patterns - -### Accumulative Memory - -```yaml -menu: - - trigger: save - action: "Update ./sidecar/memories.md with today's session insights" - description: 'Save session to memory' -``` - -### Reference Memory - -```yaml -prompts: - - id: recall - content: | - - Reference memories.md naturally: - "Last week you mentioned..." or "I notice a pattern..." - -``` - -### Structured Insights - -```yaml -menu: - - trigger: insight - action: 'Document in ./sidecar/breakthroughs.md with date, context, significance' - description: 'Record meaningful insight' -``` - -## Domain Restriction Patterns - -### Single Folder Access - -```yaml -critical_actions: - - 'ONLY read/write files in ./sidecar/ - NO OTHER FOLDERS' -``` - -### User Space Access - -```yaml -critical_actions: - - 'ONLY access files in {user-folder}/journals/ - private space' -``` - -### Read-Only Access - -```yaml -critical_actions: - - 'Load knowledge from ./knowledge/ but NEVER modify' - - 'Write ONLY to ./sessions/' -``` - -## Best Practices - -1. **Load sidecar files in critical_actions** - Must be explicit and MANDATORY -2. **Enforce domain restrictions** - Clear boundaries prevent scope creep -3. **Use _bmad/_memory/[agentname]-sidcar/ paths** - For reference to any sidecar content -4. **Design for memory growth** - Structure sidecar files for accumulation -5. **Reference past naturally** - Don't dump memory, weave it into conversation -6. **Separate concerns** - Memories, instructions, knowledge in distinct files -7. **Include privacy features** - Users trust expert agents with personal data - -## Common Patterns - -### Session Continuity - -```yaml -communication_style: | - I reference past conversations naturally: - "Last time we discussed..." or "I've noticed over the weeks..." -``` - -### Pattern Recognition - -```yaml -critical_actions: - - 'Track mood patterns, recurring themes, and breakthrough moments' - - 'Cross-reference current session with historical patterns' -``` - -### Adaptive Responses - -```yaml -identity: | - I learn your preferences and adapt my approach over time. - {{#if track_preferences}} - I maintain notes about what works best for you. - {{/if}} -``` - -## Validation Checklist - -- [ ] Valid YAML syntax -- [ ] Metadata includes `type: "expert"` -- [ ] critical_actions loads sidecar files explicitly -- [ ] critical_actions enforces domain restrictions -- [ ] Sidecar folder structure created and populated -- [ ] memories.md has clear section structure -- [ ] instructions.md contains core directives -- [ ] Menu actions reference _bmad/_memory/[agentname]-sidcar/ correctly if needing sidecar content reference -- [ ] File paths use _bmad/_memory/[agentname]-sidcar/ to reference where the file will be after sidecar content is installed -- [ ] Install config personalizes sidecar references -- [ ] Agent folder named consistently: `{agent-name}/` -- [ ] YAML file named: `{agent-name}.agent.yaml` -- [ ] Sidecar folder named: `{agent-name}-sidecar/` diff --git a/src/modules/bmb/workflows/create-agent/templates/simple-agent.template.md b/src/modules/bmb/workflows/create-agent/templates/simple-agent.template.md deleted file mode 100644 index 0a7108a4..00000000 --- a/src/modules/bmb/workflows/create-agent/templates/simple-agent.template.md +++ /dev/null @@ -1,241 +0,0 @@ -# Simple Agent Architecture - -Self-contained agents with prompts, menus, and optional install-time customization. - -## When to Use - -- Single-purpose utilities (commit message generator, code formatter) -- Self-contained logic with no external dependencies -- Agents that benefit from user customization (style, tone, preferences) -- Quick-to-build standalone helpers - -## YAML Structure - -```yaml -agent: - metadata: - id: _bmad/agents/{agent-name}/{agent-name}.md - name: 'Persona Name' - title: 'Agent Title' - icon: 'emoji' - module: stand-alone # or module name - - persona: - role: | - First-person description of primary function (1-2 sentences) - - identity: | - Background, experience, specializations in first-person (2-5 sentences) - - communication_style: | - 1-2 short sentence describe how the agent speaks and communicates - - principles: - - Core belief or methodology - - Another guiding principle - - Values that shape decisions - - prompts: - - id: main-action - content: | - - What this prompt does - - - - 1. Step one - {{#if detailed_mode}} - 2. Additional detailed step - {{/if}} - 3. Final step - - - - id: foo-bar - content: | - Another reusable prompt template - - menu: - - trigger: FB or fuzzy match on foo-bar - action: '#foo-bar' - description: '[FB] Foo Bar inline action' - - - trigger: IA or fuzzy match on main-action - action: '#main-action' - description: '[IA] Execute inline action' - - install_config: - compile_time_only: true - description: 'Personalize your agent' - questions: - - var: style_choice - prompt: 'Preferred communication style?' - type: choice - options: - - label: 'Professional' - value: 'professional' - - label: 'Casual' - value: 'casual' - default: 'professional' - - - var: detailed_mode - prompt: 'Enable detailed explanations?' - type: boolean - default: true - - - var: custom_variable - prompt: 'Your custom text' - type: text - default: '' -``` - -## Key Components - -### Metadata - -- **id**: Final compiled path (`_bmad/agents/{name}/{name}.md` for standalone) -- **name**: Agent's persona name displayed to users -- **title**: Professional role/function -- **icon**: Single emoji for visual identification -- **type**: `simple` - identifies agent category - -### Persona (First-Person Voice) - -- **role**: Primary expertise in 1-2 sentences -- **identity**: Background and specializations (2-5 sentences) -- **communication_style**: HOW the agent interacts, including conditional variations -- **principles**: Array of core beliefs (start with action verbs) - -### Prompts with IDs - -Reusable prompt templates referenced by `#id`: - -```yaml -prompts: - - id: analyze-code - content: | - - Analyze the provided code for patterns - -``` - -Menu items reference these: - -```yaml -menu: - - trigger: analyze - action: '#analyze-code' - description: 'Analyze code patterns' -``` - -### Menu Actions - -Two forms of action handlers: - -1. **Prompt Reference**: `action: "#prompt-id"` - Executes prompt content -2. **Inline Instruction**: `action: "Direct text instruction"` - Executes text directly - -### Install Config (Compile-Time Customization) - -Questions asked during `bmad agent-install`: - -**Question Types:** - -- `choice` - Multiple choice selection -- `boolean` - Yes/no toggle -- `text` - Free-form text input - -**Variables become available in Handlebars:** - -```yaml -{{#if variable_name}} -Content when true -{{/if}} - -{{#if variable_name == "value"}} -Content when equals value -{{/if}} - -{{#unless variable_name}} -Content when false -{{/unless}} -``` - -## What Gets Injected at Compile Time - -The `tools/cli/lib/agent/compiler.js` automatically adds: - -1. **YAML Frontmatter** - - ```yaml - --- - name: 'agent name' - description: 'Agent Title' - --- - ``` - -2. **Activation Block** - - Load persona step - - Load core config for {user_name}, {communication_language} - - Agent-specific critical_actions as numbered steps - - Menu display and input handling - - Menu handlers (action/workflow/exec/tmpl) based on usage - - Rules section - -3. **Auto-Injected Menu Items** - - `*help` always first - - `*exit` always last - -4. **Trigger Prefixing** - - Triggers without `*` get it added automatically - -## Reference Example - -See: `../../reference/agents/simple-examples/commit-poet.agent.yaml` - -Features demonstrated: - -- Handlebars conditionals for style variations -- Multiple prompt templates with semantic XML tags -- Install config with choice, boolean, and text questions -- Menu items using both `#id` references and inline actions - -## Installation - -```bash -# Copy to your project -cp /path/to/commit-poet.agent.yaml _bmad/custom/agents/ - -# Create custom.yaml and install -echo "code: my-agent -name: My Agent -default_selected: true" > custom.yaml - -npx bmad-method install -# or: bmad install -``` - -The installer: - -1. Prompts for personalization (name, preferences) -2. Processes Handlebars templates with your answers -3. Compiles YAML to XML-in-markdown -4. Creates IDE slash commands -5. Saves source for reinstallation - -## Best Practices - -1. **Use first-person voice** in all persona elements -2. **Keep prompts focused** - one clear purpose per prompt -3. **Leverage Handlebars** for user customization without code changes -4. **Provide sensible defaults** in install_config -5. **Use semantic XML tags** in prompt content for clarity -6. **Test all conditional paths** before distribution - -## Validation Checklist - -- [ ] Valid YAML syntax -- [ ] All metadata fields present (id, name, title, icon, type) -- [ ] Persona complete (role, identity, communication_style, principles) -- [ ] Prompts have unique IDs -- [ ] Install config questions have defaults -- [ ] File named `{agent-name}.agent.yaml` diff --git a/src/modules/bmb/workflows/create-agent/workflow.md b/src/modules/bmb/workflows/create-agent/workflow.md deleted file mode 100644 index 71ce6a75..00000000 --- a/src/modules/bmb/workflows/create-agent/workflow.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -name: create-agent -description: Interactive workflow to build BMAD Core compliant agents with optional brainstorming, persona development, and command structure -web_bundle: true ---- - -# Create Agent Workflow - -**Goal:** Collaboratively build BMAD Core compliant agents through guided discovery, preserving all functionality from the legacy workflow while enabling step-specific loading. - -**Your Role:** In addition to your name, communication_style, and persona, you are also an expert agent architect and builder specializing in BMAD Core agent creation. You guide users through discovering their agent's purpose, shaping its personality, building its capabilities, and generating complete YAML configuration with all necessary supporting files. - ---- - -## WORKFLOW ARCHITECTURE - -This uses **step-file architecture** for disciplined execution: - -### Core Principles - -- **Micro-file Design**: Each step is a self contained instruction file -- **Just-In-Time Loading**: Only the current step file is in memory -- **Sequential Enforcement**: Steps completed in order, conditional based on agent type -- **State Tracking**: Document progress in agent output files -- **Agent-Type Optimization**: Load only relevant steps for Simple/Expert/Module agents - -### Step Processing Rules - -1. **READ COMPLETELY**: Always read the entire step file before taking any action -2. **FOLLOW SEQUENCE**: Execute numbered sections in order -3. **WAIT FOR INPUT**: Halt at menus and wait for user selection -4. **CHECK CONTINUATION**: Only proceed when user selects 'C' (Continue) -5. **SAVE STATE**: Update progress before loading next step -6. **LOAD NEXT**: When directed, load and execute the next step file - -### Critical Rules - -- ๐Ÿ›‘ **NEVER** load multiple step files simultaneously -- ๐Ÿ“– **ALWAYS** read entire step file before execution -- ๐Ÿšซ **NEVER** skip steps unless explicitly optional -- ๐Ÿ’พ **ALWAYS** save progress and outputs -- ๐ŸŽฏ **ALWAYS** follow exact instructions in step files -- โธ๏ธ **ALWAYS** halt at menus and wait for input -- ๐Ÿ“‹ **NEVER** pre-load future steps - ---- - -## INITIALIZATION SEQUENCE - -### 1. Configuration Loading - -Load and read full config from `{project-root}/_bmad/bmb/config.yaml`: - -- `project_name`, `user_name`, `communication_language`, `document_output_language`, `bmb_creations_output_folder` - -### 2. First Step EXECUTION - -Load, read completely, then execute `steps/step-01-brainstorm.md` to begin the workflow. diff --git a/src/modules/bmb/workflows/create-module/steps/step-01-init.md b/src/modules/bmb/workflows/create-module/steps/step-01-init.md index 3c461fd3..8e7d79c3 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-01-init.md +++ b/src/modules/bmb/workflows/create-module/steps/step-01-init.md @@ -2,7 +2,7 @@ nextStepFile: '{installed_path}/steps/step-02-concept.md' continueFile: '{installed_path}/steps/step-01b-continue.md' modulePlanTemplate: '{installed_path}/templates/module-plan.template.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' customModuleLocation: '{bmb_creations_output_folder}' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' @@ -22,6 +22,7 @@ To initialize the create-module workflow by getting the module name from the use - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md b/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md index f626b849..f2b3528f 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md +++ b/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md @@ -12,6 +12,7 @@ modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-02-concept.md b/src/modules/bmb/workflows/create-module/steps/step-02-concept.md index c5c5da13..0d868d25 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-02-concept.md +++ b/src/modules/bmb/workflows/create-module/steps/step-02-concept.md @@ -3,7 +3,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-03-components.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' moduleStructureGuide: '{project-root}/bmb/workflows/create-agent-legacy/create-module/module-structure.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -17,6 +17,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-03-components.md b/src/modules/bmb/workflows/create-module/steps/step-03-components.md index ce87d415..9634b7fd 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-03-components.md +++ b/src/modules/bmb/workflows/create-module/steps/step-03-components.md @@ -3,7 +3,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-04-structure.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' agent_examples_path: '{project-root}/bmb/reference/agents/module-examples' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -17,6 +17,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-04-structure.md b/src/modules/bmb/workflows/create-module/steps/step-04-structure.md index 5d857d67..2b1bfc58 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-04-structure.md +++ b/src/modules/bmb/workflows/create-module/steps/step-04-structure.md @@ -2,7 +2,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-05-config.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -16,6 +16,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-05-config.md b/src/modules/bmb/workflows/create-module/steps/step-05-config.md index bcf96bd6..73172e2a 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-05-config.md +++ b/src/modules/bmb/workflows/create-module/steps/step-05-config.md @@ -2,7 +2,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-06-agents.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -16,6 +16,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-06-agents.md b/src/modules/bmb/workflows/create-module/steps/step-06-agents.md index 467eb86d..60cbbc0d 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-06-agents.md +++ b/src/modules/bmb/workflows/create-module/steps/step-06-agents.md @@ -4,7 +4,7 @@ nextStepFile: '{installed_path}/steps/step-07-workflows.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' agentTemplate: '{installed_path}/templates/agent.template.md' agent_examples_path: '{project-root}/bmb/reference/agents/module-examples' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -18,6 +18,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md b/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md index 81b90f7b..6a7134c4 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md +++ b/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md @@ -3,7 +3,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-08-installer.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' workflowPlanTemplate: '{installed_path}/templates/workflow-plan-template.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -17,6 +17,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-08-installer.md b/src/modules/bmb/workflows/create-module/steps/step-08-installer.md index cc0cd553..44253f12 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-08-installer.md +++ b/src/modules/bmb/workflows/create-module/steps/step-08-installer.md @@ -4,7 +4,7 @@ nextStepFile: '{installed_path}/steps/step-09-documentation.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' installerTemplate: '{installed_path}/templates/installer.template.js' installConfigTemplate: '{installed_path}/templates/install-config.template.yaml' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -18,6 +18,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md b/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md index 3e028cd6..baa42046 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md +++ b/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md @@ -3,7 +3,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-10-roadmap.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' moduleReadmeFile: '{bmb_creations_output_folder}/{module_name}/README.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -17,6 +17,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md b/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md index c80d58bb..69c22b8c 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md +++ b/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md @@ -3,7 +3,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' nextStepFile: '{installed_path}/steps/step-11-validate.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' moduleTodoFile: '{bmb_creations_output_folder}/{module_name}/TODO.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -17,6 +17,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-module/steps/step-11-validate.md b/src/modules/bmb/workflows/create-module/steps/step-11-validate.md index 690c9d17..77ab2a7c 100644 --- a/src/modules/bmb/workflows/create-module/steps/step-11-validate.md +++ b/src/modules/bmb/workflows/create-module/steps/step-11-validate.md @@ -2,7 +2,7 @@ workflowFile: '{installed_path}/workflow.md' modulePlanFile: '{bmb_creations_output_folder}/{module_name}/module-plan-{module_name}.md' validationChecklist: '{installed_path}/validation.md' -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -16,6 +16,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: @@ -297,7 +298,7 @@ Display: **Module Creation Complete!** [A] Advanced Elicitation [P] Party Mode [ #### Menu Handling Logic: -- IF A: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml for reflection on process +- IF A: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml for reflection on process - IF P: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md to celebrate completion - IF C: Mark as complete and exit gracefully - IF Any other comments or queries: help user respond then redisplay menu diff --git a/src/modules/bmb/workflows/create-module/workflow.md b/src/modules/bmb/workflows/create-module/workflow.md index 46badff8..9dad9757 100644 --- a/src/modules/bmb/workflows/create-module/workflow.md +++ b/src/modules/bmb/workflows/create-module/workflow.md @@ -49,6 +49,7 @@ installed_path: '{project-root}/_bmad/bmb/workflows/create-module' Load and read full config from {project-root}/_bmad/bmb/config.yaml and resolve: - `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language`, `bmb_creations_output_folder` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/dietary-restrictions.csv similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/dietary-restrictions.csv diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/macro-calculator.csv similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/macro-calculator.csv diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/recipe-database.csv similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/data/recipe-database.csv diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-01-init.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-01-init.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-01b-continue.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-01b-continue.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-02-profile.md similarity index 98% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-02-profile.md index d863adaa..95a3ca86 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +++ b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-02-profile.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-03-assessment.md similarity index 98% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-03-assessment.md index 4b4d71cc..f77fd67e 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +++ b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-03-assessment.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Data References diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-04-strategy.md similarity index 96% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-04-strategy.md index 7c57eadc..08ef67a0 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +++ b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-04-strategy.md @@ -13,7 +13,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Data References @@ -167,7 +167,7 @@ Display: **Select an Option:** [A] Meal Variety Optimization [P] Chef & Dietitia #### Menu Handling Logic: - HALT and AWAIT ANSWER -- IF A: Execute `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- IF A: Execute `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` - IF P: Execute `{project-root}/_bmad/core/workflows/party-mode/workflow.md` - IF C: Save content to nutrition-plan.md, update frontmatter, check cooking frequency: - IF cooking frequency > 2x/week: load, read entire file, then execute `{workflow_path}/step-05-shopping.md` diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-05-shopping.md similarity index 96% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-05-shopping.md index f77dcb54..32900904 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +++ b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-05-shopping.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -157,7 +157,7 @@ Display: **Select an Option:** [A] Budget Optimization Strategies [P] Shopping P #### Menu Handling Logic: - HALT and AWAIT ANSWER -- IF A: Execute `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- IF A: Execute `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` - IF P: Execute `{project-root}/_bmad/core/workflows/party-mode/workflow.md` - IF C: Save content to nutrition-plan.md, update frontmatter, then load, read entire file, then execute `{workflow_path}/step-06-prep-schedule.md` - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options) diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-06-prep-schedule.md similarity index 96% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-06-prep-schedule.md index 1b69c58e..e7adbf52 100644 --- a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +++ b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/steps/step-06-prep-schedule.md @@ -11,7 +11,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/nutrition-plan-{project_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -178,7 +178,7 @@ Display: **Select an Option:** [A] Advanced Prep Techniques [P] Coach Perspectiv #### Menu Handling Logic: - HALT and AWAIT ANSWER -- IF A: Execute `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- IF A: Execute `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` - IF P: Execute `{project-root}/_bmad/core/workflows/party-mode/workflow.md` - IF C: Update frontmatter with all steps completed, mark workflow complete, display final message - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/assessment-section.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/assessment-section.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/nutrition-plan.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/nutrition-plan.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/prep-schedule-section.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/prep-schedule-section.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/profile-section.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/profile-section.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/shopping-section.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/shopping-section.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/strategy-section.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/templates/strategy-section.md diff --git a/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md b/src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/workflow.md similarity index 100% rename from src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md rename to src/modules/bmb/workflows/create-workflow/data/examples/meal-prep-nutrition/workflow.md diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md b/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md index b1114953..a888d215 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md @@ -31,6 +31,7 @@ To initialize the workflow creation process by understanding project context, de - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md b/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md index 4c5874d9..5ef645d7 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md @@ -13,7 +13,7 @@ targetWorkflowPath: '{bmb_creations_output_folder}/workflows/{new_workflow_name} workflowPlanFile: '{targetWorkflowPath}/workflow-plan-{new_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References # No template needed - will append requirements directly to workflow plan @@ -33,6 +33,7 @@ To gather comprehensive requirements through collaborative conversation that wil - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md b/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md index ac47899c..c58d2581 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md @@ -16,7 +16,7 @@ workflowPlanFile: '{targetWorkflowPath}/workflow-plan-{new_workflow_name}.md' commonToolsCsv: '{project-root}/_bmad/bmb/docs/workflows/common-workflow-tools.csv' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References # No template needed - will append tools configuration directly to workflow plan @@ -36,6 +36,7 @@ To comprehensively configure all tools needed for the workflow (core tools, memo - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md b/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md index 2d0d01ff..5a541d73 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md @@ -14,7 +14,7 @@ targetWorkflowPath: '{bmb_creations_output_folder}/workflows/{new_workflow_name} workflowPlanFile: '{targetWorkflowPath}/workflow-plan-{new_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References # No template needed - will append review summary directly to workflow plan @@ -34,6 +34,7 @@ To present the complete workflow plan (requirements and tools configuration) for - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md b/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md index c6f9ff34..7062f2ed 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md @@ -13,7 +13,7 @@ targetWorkflowPath: '{bmb_creations_output_folder}/workflows/{new_workflow_name} workflowPlanFile: '{targetWorkflowPath}/workflow-plan-{new_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -31,6 +31,7 @@ To design and document the output format for workflows that produce documents or - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-06-design.md b/src/modules/bmb/workflows/create-workflow/steps/step-06-design.md index 90ae8b31..f4031cad 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-06-design.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-06-design.md @@ -14,7 +14,7 @@ targetWorkflowPath: '{bmb_creations_output_folder}/workflows/{new_workflow_name} workflowPlanFile: '{targetWorkflowPath}/workflow-plan-{new_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References # No template needed - will append design details directly to workflow plan @@ -34,6 +34,7 @@ To collaboratively design the workflow structure, step sequence, and interaction - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md b/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md index 85a844b8..01a7be8a 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md @@ -36,6 +36,7 @@ To generate all the workflow files (workflow.md, step files, templates, and supp - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-08-review.md b/src/modules/bmb/workflows/create-workflow/steps/step-08-review.md index f1e6535a..a3d7258e 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-08-review.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-08-review.md @@ -14,7 +14,7 @@ targetWorkflowPath: '{bmb_creations_output_folder}/workflows/{new_workflow_name} workflowPlanFile: '{targetWorkflowPath}/workflow-plan-{new_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -39,6 +39,7 @@ To review the generated workflow for completeness, accuracy, and adherence to be - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: Always read the complete step file before taking any action - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md b/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md index 91336320..4a9125b8 100644 --- a/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md +++ b/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md @@ -27,6 +27,7 @@ To complete the workflow creation process with a final summary, confirmation, an - ๐Ÿ›‘ NEVER generate content without user input - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/create-workflow/workflow.md b/src/modules/bmb/workflows/create-workflow/workflow.md index 22dd4484..568edc88 100644 --- a/src/modules/bmb/workflows/create-workflow/workflow.md +++ b/src/modules/bmb/workflows/create-workflow/workflow.md @@ -42,6 +42,7 @@ This uses **step-file architecture** for disciplined execution: - ๐ŸŽฏ **ALWAYS** follow the exact instructions in the step file - โธ๏ธ **ALWAYS** halt at menus and wait for user input - ๐Ÿ“‹ **NEVER** create mental todo lists from future steps +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` --- diff --git a/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md b/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md deleted file mode 100644 index 2ecc356f..00000000 --- a/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +++ /dev/null @@ -1,134 +0,0 @@ ---- -name: 'step-01-discover-intent' -description: 'Get agent path and user editing goals' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/edit-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-01-discover-intent.md' -nextStepFile: '{workflow_path}/steps/step-02-analyze-agent.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 1: Discover Edit Intent - -## STEP GOAL: - -Get the agent path to edit and understand what the user wants to accomplish before proceeding to targeted analysis. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an agent editor who helps users improve their BMAD agents -- โœ… If you already have a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring agent architecture expertise, user brings their agent and goals, together we improve the agent -- โœ… Maintain collaborative guiding tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on getting agent path and understanding user goals -- ๐Ÿšซ FORBIDDEN to load any documentation or analyze the agent yet -- ๐Ÿ’ฌ Approach: Direct questions to understand what needs fixing -- ๐Ÿšซ FORBIDDEN to make suggestions or propose solutions - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Ask clear questions to get agent path and user goals -- ๐Ÿ’พ Store path and goals for next step -- ๐Ÿ“– Do NOT load any references in this step -- ๐Ÿšซ FORBIDDEN to analyze agent content yet - -## CONTEXT BOUNDARIES: - -- Available context: User wants to edit an existing agent -- Focus: Get path and understand goals ONLY -- Limits: No analysis, no documentation loading, no suggestions -- Dependencies: User must provide agent path - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Get Agent Path - -Ask the user: -"What agent do you want to edit? Please provide the path to: - -- A .agent.yaml file (Simple agent) -- A folder containing .agent.yaml (Expert agent with sidecar files)" - -Wait for user response with the path. - -### 2. Understand Editing Goals - -Ask clear questions to understand what they want to accomplish: -"What do you want to change about this agent?" - -Listen for specific goals such as: - -- Fix broken functionality -- Update personality/communication style -- Add or remove commands -- Fix references or paths -- Reorganize sidecar files (Expert agents) -- Update for new standards - -Continue asking clarifying questions until goals are clear. - -### 3. Confirm Understanding - -Summarize back to user: -"So you want to edit the agent at {{agent_path}} to {{user_goals}}. Is that correct?" - -### 4. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then redisplay menu options - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [agent path and goals obtained], will you then load and read fully `{nextStepFile}` to execute and begin agent analysis. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- Agent path clearly obtained and validated -- User editing goals understood completely -- User confirms understanding is correct -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Proceeding without agent path -- Making suggestions or analyzing agent -- Loading documentation in this step -- Not confirming user goals clearly - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md b/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md deleted file mode 100644 index b35c1dbb..00000000 --- a/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -name: 'step-02-analyze-agent' -description: 'Load agent and relevant documentation for analysis' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/edit-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-02-analyze-agent.md' -nextStepFile: '{workflow_path}/steps/step-03-propose-changes.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - -# Documentation References (load JIT based on user goals) -understanding_agent_types: '{project-root}/_bmad/bmb/docs/agents/understanding-agent-types.md' -agent_compilation: '{project-root}/_bmad/bmb/docs/agents/agent-compilation.md' -simple_architecture: '{project-root}/_bmad/bmb/docs/agents/simple-agent-architecture.md' -expert_architecture: '{project-root}/_bmad/bmb/docs/agents/expert-agent-architecture.md' -module_architecture: '{project-root}/_bmad/bmb/docs/agents/module-agent-architecture.md' -menu_patterns: '{project-root}/_bmad/bmb/docs/agents/agent-menu-patterns.md' -communication_presets: '{project-root}/_bmad/bmb/workflows/create-agent/data/communication-presets.csv' -reference_simple_agent: '{project-root}/_bmad/bmb/reference/agents/simple-examples/commit-poet.agent.yaml' -reference_expert_agent: '{project-root}/_bmad/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml' -validation: '{project-root}/_bmad/bmb/workflows/create-agent/data/agent-validation-checklist.md' ---- - -# Step 2: Analyze Agent - -## STEP GOAL: - -Load the agent and relevant documentation, then analyze with focus on the user's stated goals to identify specific issues that need fixing. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an agent editor with deep knowledge of BMAD agent architecture -- โœ… If you already have a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring agent architecture expertise, user brings their agent and goals, together we identify specific improvements -- โœ… Maintain analytical yet supportive tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus analysis ONLY on user's stated goals from step 1 -- ๐Ÿšซ FORBIDDEN to load documentation not relevant to user goals -- ๐Ÿ’ฌ Approach: Load documentation JIT when needed for specific analysis -- ๐Ÿšซ FORBIDDEN to propose solutions yet (analysis only) - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Load agent file from path provided in step 1 -- ๐Ÿ’พ Load documentation JIT based on user goals -- ๐Ÿ“– Always "Load and read fully" when accessing documentation -- ๐Ÿšซ FORBIDDEN to make changes in this step (analysis only) - -## CONTEXT BOUNDARIES: - -- Available context: Agent path and user goals from step 1 -- Focus: Analyze agent in context of user goals -- Limits: Only load documentation relevant to stated goals -- Dependencies: Must have agent path and clear user goals - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Load Agent File - -Load the agent file from the path provided in step 1: - -**If path is to a .agent.yaml file (Simple Agent):** - -- Load and read the entire YAML file -- Note: Simple agent, all content in one file - -**If path is to a folder (Expert Agent with sidecar files):** - -- Load and read the .agent.yaml file from inside the folder -- Inventory all sidecar files in the folder: - - Templates (`_.md`, `_.txt`) - - Documentation files - - Knowledge base files (`_.csv`, `_.json`, `*.yaml`) - - Any other resources referenced by the agent -- Note: Expert agent with sidecar structure - -Present what was loaded: - -- "Loaded [agent-name].agent.yaml" -- If Expert: "Plus X sidecar files: [list them]" - -### 2. Load Relevant Documentation Based on User Goals - -**CRITICAL: Load documentation JIT based ONLY on user's stated goals:** - -**If user mentioned persona/communication issues:** - -- Load and read fully: `{agent_compilation}` - understand how LLM interprets persona fields -- Load and read fully: `{communication_presets}` - reference for pure communication styles - -**If user mentioned functional/broken reference issues:** - -- Load and read fully: `{menu_patterns}` - proper menu structure -- Load and read fully: `{agent_compilation}` - compilation requirements - -**If user mentioned sidecar/structure issues (Expert agents):** - -- Load and read fully: `{expert_architecture}` - sidecar best practices - -**If user mentioned agent type confusion:** - -- Load and read fully: `{understanding_agent_types}` -- Load and read fully appropriate architecture guide based on agent type - -### 3. Focused Analysis Based on User Goals - -Analyze only what's relevant to user goals: - -**For persona/communication issues:** - -- Check communication_style field for mixed behaviors/identity/principles -- Look for red flag words that indicate improper mixing: - - "ensures", "makes sure", "always", "never" โ†’ Behaviors (belongs in principles) - - "experienced", "expert who", "senior", "seasoned" โ†’ Identity descriptors (belongs in role/identity) - - "believes in", "focused on", "committed to" โ†’ Philosophy (belongs in principles) -- Compare current communication_style against examples in `{communication_presets}` - -**For functional issues:** - -- Verify all workflow references exist and are valid -- Check menu handler patterns against `{menu_patterns}` -- Validate YAML syntax and structure - -**For sidecar issues:** - -- Map each menu item reference to actual sidecar files -- Identify orphaned files (not referenced in YAML) -- Check if all referenced files actually exist - -### 4. Report Findings - -Present focused analysis findings: -"Based on your goal to {{user_goal}}, I found the following issues:" - -For each issue found: - -- Describe the specific problem -- Show the relevant section of the agent -- Reference the loaded documentation that explains the standard -- Explain why this is an issue - -### 5. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then redisplay menu options - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [analysis complete with specific issues identified], will you then load and read fully `{nextStepFile}` to execute and begin proposing specific changes. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- Agent file loaded completely with proper type detection -- Relevant documentation loaded JIT based on user goals -- Analysis focused only on user's stated issues -- Specific problems identified with documentation references -- User understands what needs fixing and why -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Loading documentation not relevant to user goals -- Proposing solutions instead of analyzing -- Missing critical issues related to user goals -- Not following "load and read fully" instruction -- Making changes to agent files - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md b/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md deleted file mode 100644 index 815c1891..00000000 --- a/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +++ /dev/null @@ -1,157 +0,0 @@ ---- -name: 'step-03-propose-changes' -description: 'Propose specific changes and get approval' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/edit-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-03-propose-changes.md' -nextStepFile: '{workflow_path}/steps/step-04-apply-changes.md' -agentFile: '{{agent_path}}' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - -# Documentation References (load JIT if needed) -communication_presets: '{project-root}/_bmad/bmb/workflows/create-agent/data/communication-presets.csv' -agent_compilation: '{project-root}/_bmad/bmb/docs/agents/agent-compilation.md' ---- - -# Step 3: Propose Changes - -## STEP GOAL: - -Propose specific, targeted changes based on analysis and get user approval before applying them to the agent. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an agent editor who helps users improve their BMAD agents through targeted changes -- โœ… If you already have a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring agent architecture expertise, user brings their agent and goals, together we improve the agent -- โœ… Maintain collaborative guiding tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on proposing changes based on analysis from step 2 -- ๐Ÿšซ FORBIDDEN to apply changes without explicit user approval -- ๐Ÿ’ฌ Approach: Present one change at a time with clear before/after comparison -- ๐Ÿ“‹ Load references JIT when explaining rationale or providing examples - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Propose one change at a time with clear before/after comparison -- ๐Ÿ’พ Track approved changes for application in next step -- ๐Ÿ“– Load references JIT if needed for examples or best practices -- ๐Ÿšซ FORBIDDEN to apply changes without explicit user approval - -## CONTEXT BOUNDARIES: - -- Available context: Analysis results from step 2, agent path, and user goals from step 1 -- Focus: Propose specific changes based on analysis, not apply them -- Limits: Only propose changes, do not modify any files yet -- Dependencies: Must have completed step 2 analysis results - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Present First Change - -Based on analysis from step 2, propose the most important change first: - -"I recommend fixing {{issue}} because {{reason}}. - -**Current:** - -```yaml -{ { current_code } } -``` - -**Proposed:** - -```yaml -{ { proposed_code } } -``` - -This will help with {{benefit}}." - -### 2. Explain Rationale - -- Why this change matters for the agent's functionality -- How it aligns with BMAD agent best practices -- Reference loaded documentation if helpful for explaining - -### 3. Load References if Needed - -**Load references JIT when explaining:** - -- If proposing persona changes: Load and read `{communication_presets}` for examples -- If proposing structural changes: Load and read `{agent_compilation}` for requirements - -### 4. Get User Approval - -"Does this change look good? Should I apply it?" -Wait for explicit user approval before proceeding. - -### 5. Repeat for Each Issue - -Go through each identified issue from step 2 analysis one by one: - -- Present change with before/after -- Explain rationale with loaded references if needed -- Get explicit user approval for each change -- Track which changes are approved vs rejected - -### 6. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save approved changes list to context, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [all proposed changes reviewed and user approvals obtained], will you then load and read fully `{nextStepFile}` to execute and begin applying approved changes. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- All proposed changes clearly presented with before/after comparison -- Rationale explained with references to best practices -- User approval obtained for each proposed change -- Approved changes tracked for application in next step -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Applying changes without explicit user approval -- Not presenting clear before/after comparisons -- Skipping explanation of rationale or references -- Proceeding without tracking which changes were approved -- Loading references when not needed for current proposal - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md b/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md deleted file mode 100644 index 64856388..00000000 --- a/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +++ /dev/null @@ -1,150 +0,0 @@ ---- -name: 'step-04-apply-changes' -description: 'Apply approved changes to the agent' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/edit-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-04-apply-changes.md' -agentFile: '{{agent_path}}' -nextStepFile: '{workflow_path}/steps/step-05-validate.md' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ---- - -# Step 4: Apply Changes - -## STEP GOAL: - -Apply all user-approved changes to the agent files directly using the Edit tool. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an agent editor who helps users improve their BMAD agents through precise modifications -- โœ… If you already have a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring agent architecture expertise, user brings their agent and goals, together we improve the agent -- โœ… Maintain collaborative guiding tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on applying changes that were explicitly approved in step 3 -- ๐Ÿšซ FORBIDDEN to make any changes that were not approved by the user -- ๐Ÿ’ฌ Approach: Apply changes one by one with confirmation after each -- ๐Ÿ“‹ Use Edit tool to make precise modifications to agent files - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Apply only changes that were explicitly approved in step 3 -- ๐Ÿ’พ Show confirmation after each change is applied -- ๐Ÿ“– Edit files directly using Edit tool with precise modifications -- ๐Ÿšซ FORBIDDEN to make unapproved changes or extra modifications - -## CONTEXT BOUNDARIES: - -- Available context: Approved changes list from step 3, agent path from step 1 -- Focus: Apply ONLY the approved changes, nothing more -- Limits: Do not make any modifications beyond what was explicitly approved -- Dependencies: Must have approved changes list from step 3 - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Load Agent File - -Read the complete agent file to understand current state before making changes. - -### 2. Apply First Approved Change - -For each change approved in step 3, apply it systematically: - -**For YAML changes in main agent file:** - -- Use Edit tool to modify the agent YAML file at `{agentFile}` -- Make the exact approved modification -- Confirm the change was applied correctly - -**For sidecar file changes (Expert agents):** - -- Use Edit tool to modify the specific sidecar file -- Make the exact approved modification -- Confirm the change was applied correctly - -### 3. Confirm Each Change Applied - -After each change is applied: -"Applied change: {{description}} - -- Updated section matches approved change โœ“ -- File saved successfully โœ“" - -### 4. Continue Until All Changes Applied - -Repeat step 2-3 for each approved change until complete: - -- Apply change using Edit tool -- Confirm it matches what was approved -- Move to next approved change - -### 5. Verify All Changes Complete - -"Summary of changes applied: - -- {{number}} changes applied successfully -- All modifications match user approvals from step 3 -- Agent files updated and saved" - -### 6. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue" - -#### Menu Handling Logic: - -- IF A: Execute {advancedElicitationTask} -- IF P: Execute {partyModeWorkflow} -- IF C: Save completion status to context, then only then load, read entire file, then execute {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [all approved changes from step 3 have been applied to agent files], will you then load and read fully `{nextStepFile}` to execute and begin validation of applied changes. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- All approved changes from step 3 applied using Edit tool -- Each modification matches exactly what was approved by user -- Agent files updated and saved correctly -- Confirmation provided for each applied change -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Making changes that were not approved in step 3 -- Using tools other than Edit tool for file modifications -- Not confirming each change was applied correctly -- Making extra modifications beyond approved changes -- Skipping confirmation steps or verification - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md b/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md deleted file mode 100644 index 20ef1fdc..00000000 --- a/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +++ /dev/null @@ -1,150 +0,0 @@ ---- -name: 'step-05-validate' -description: 'Validate that changes work correctly' - -# Path Definitions -workflow_path: '{project-root}/bmb/workflows/create-agent/edit-agent' - -# File References -thisStepFile: '{workflow_path}/steps/step-05-validate.md' -agentFile: '{{agent_path}}' - -# Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - -# Documentation References (load JIT) -validation: '{project-root}/_bmad/bmb/workflows/create-agent/data/agent-validation-checklist.md' -agent_compilation: '{project-root}/_bmad/bmb/docs/agents/agent-compilation.md' ---- - -# Step 5: Validate Changes - -## STEP GOAL: - -Validate that the applied changes work correctly and the edited agent follows BMAD best practices and standards. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- ๐Ÿ›‘ NEVER generate content without user input -- ๐Ÿ“– CRITICAL: Read the complete step file before taking any action -- ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read -- ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - -### Role Reinforcement: - -- โœ… You are an agent editor who helps users ensure their edited BMAD agents meet quality standards -- โœ… If you already have a name, communication_style and identity, continue to use those while playing this new role -- โœ… We engage in collaborative dialogue, not command-response -- โœ… You bring agent architecture expertise, user brings their agent and goals, together we ensure quality -- โœ… Maintain collaborative guiding tone throughout - -### Step-Specific Rules: - -- ๐ŸŽฏ Focus only on validating changes that were applied in step 4 -- ๐Ÿšซ FORBIDDEN to make additional changes during validation -- ๐Ÿ’ฌ Approach: Systematic validation using standard checklist -- ๐Ÿ“‹ Load validation references JIT when needed for specific checks - -## EXECUTION PROTOCOLS: - -- ๐ŸŽฏ Validate only the changes that were applied in step 4 -- ๐Ÿ’พ Report validation results clearly and systematically -- ๐Ÿ“– Load validation checklist and standards JIT as needed -- ๐Ÿšซ FORBIDDEN to make additional modifications during validation - -## CONTEXT BOUNDARIES: - -- Available context: Applied changes from step 4, agent path from step 1, original goals from step 1 -- Focus: Validate that applied changes work and meet standards -- Limits: Do not modify anything, only validate and report -- Dependencies: Must have completed step 4 with applied changes - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Load and Read Validation Standards - -Load and read fully: `{validation}` - -### 2. Load Updated Agent File - -Read the updated agent file to see all applied changes in context. - -### 3. Check Each Applied Change - -Verify each change that was applied in step 4: - -- "Checking {{change}}... โœ“ Works correctly" -- "Validating {{modification}}... โœ“ Follows best practices" - -### 4. Run Standard Validation Checklist - -Check key items from validation checklist: - -- YAML syntax is valid and properly formatted -- Persona fields are properly separated (if persona was changed) -- All references and paths resolve correctly (if references were fixed) -- Menu structure follows BMAD patterns (if menu was modified) -- Agent compilation requirements are met (if structure changed) - -### 5. Load Agent Compilation if Needed - -If persona or agent structure was changed: - -- Load and read fully: `{agent_compilation}` -- Verify persona fields follow compilation requirements -- Check that agent structure meets BMAD standards - -### 6. Report Validation Results - -"Validation results: -โœ“ All {{number}} changes applied correctly -โœ“ Agent meets BMAD standards and best practices -โœ“ No issues found in modified sections -โœ“ Ready for use" - -### 7. Present MENU OPTIONS - -Display: "**Select an Option:** [A] Edit Another Agent [P] Party Mode [C] Complete" - -#### Menu Handling Logic: - -- IF A: Start fresh workflow with new agent path -- IF P: Execute {partyModeWorkflow} to celebrate successful agent editing -- IF C: Complete workflow and provide final success message -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options) - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed when user selects 'A', 'P', or 'C' -- After party mode execution, return to this menu -- User can chat or ask questions - always respond and then end with display again of the menu options - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C complete option] is selected and [all changes from step 4 have been validated successfully], will you then provide a final workflow completion message. The agent editing workflow is complete. - ---- - -## ๐Ÿšจ SYSTEM SUCCESS/FAILURE METRICS - -### โœ… SUCCESS: - -- All applied changes from step 4 validated successfully -- Agent meets BMAD standards and best practices -- Validation checklist completed with no critical issues -- Clear validation report provided to user -- Menu presented and user input handled correctly - -### โŒ SYSTEM FAILURE: - -- Not validating all applied changes from step 4 -- Making modifications during validation step -- Skipping validation checklist or standards checks -- Not reporting validation results clearly -- Not loading references when needed for specific validation - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/modules/bmb/workflows/edit-agent/workflow.md b/src/modules/bmb/workflows/edit-agent/workflow.md deleted file mode 100644 index e26cc99b..00000000 --- a/src/modules/bmb/workflows/edit-agent/workflow.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -name: edit-agent -description: Edit existing BMAD agents while following all best practices and conventions -web_bundle: false ---- - -# Edit Agent Workflow - -**Goal:** Edit existing BMAD agents following best practices with targeted analysis and direct updates. - -**Your Role:** In addition to your name, communication_style, and persona, you are also an agent editor collaborating with a BMAD agent owner. This is a partnership, not a client-vendor relationship. You bring agent architecture expertise and editing skills, while the user brings their agent and specific improvement goals. Work together as equals. - ---- - -## WORKFLOW ARCHITECTURE - -This uses **step-file architecture** for disciplined execution: - -### Core Principles - -- **Micro-file Design**: Each step is a self contained instruction file that is a part of an overall workflow that must be followed exactly -- **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until told to do so -- **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed -- **State Tracking**: Document progress in context for editing workflows (no output file frontmatter needed) -- **Append-Only Building**: Build documents by appending content as directed to the output file - -### Step Processing Rules - -1. **READ COMPLETELY**: Always read the entire step file before taking any action -2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate -3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection -4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue) -5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step -6. **LOAD NEXT**: When directed, load, read entire file, then execute the next step file - -### Critical Rules (NO EXCEPTIONS) - -- ๐Ÿ›‘ **NEVER** load multiple step files simultaneously -- ๐Ÿ“– **ALWAYS** read entire step file before execution -- ๐Ÿšซ **NEVER** skip steps or optimize the sequence -- ๐Ÿ’พ **ALWAYS** update frontmatter of output files when writing the final output for a specific step -- ๐ŸŽฏ **ALWAYS** follow the exact instructions in the step file -- โธ๏ธ **ALWAYS** halt at menus and wait for user input -- ๐Ÿ“‹ **NEVER** create mental todo lists from future steps - ---- - -## INITIALIZATION SEQUENCE - -### 1. Configuration Loading - -Load and read full config from {project-root}/_bmad/bmb/config.yaml and resolve: - -- `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language` - -### 2. First Step EXECUTION - -Load, read the full file and then execute `{workflow_path}/steps/step-01-discover-intent.md` to begin the workflow. diff --git a/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md b/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md index 2dda91d6..69742729 100644 --- a/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +++ b/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md @@ -29,6 +29,7 @@ To load and deeply understand the target workflow, including its structure, purp - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md b/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md index e3185c8b..bf9fbca0 100644 --- a/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md +++ b/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/workflow-edit-{target_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -33,6 +33,7 @@ To collaboratively discover what the user wants to improve and why, before divin - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md b/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md index 35280213..ea9b5139 100644 --- a/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +++ b/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/workflow-edit-{target_workflow_name}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -33,6 +33,7 @@ To facilitate collaborative improvements to the workflow, working iteratively on - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md b/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md index a2f804e4..ae98a2b3 100644 --- a/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +++ b/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md @@ -12,7 +12,7 @@ outputFile: '{output_folder}/workflow-edit-{target_workflow_name}.md' nextStepFile: '{workflow_path}/steps/step-05-compliance-check.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -34,6 +34,7 @@ To validate all improvements and prepare a completion summary of the workflow ed - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: Always read the complete step file before taking any action - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md b/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md index 37e7fb90..d53c3aff 100644 --- a/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +++ b/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md @@ -29,6 +29,7 @@ Run comprehensive compliance validation on the edited workflow using the workflo - ๐Ÿ›‘ NEVER generate content without user input - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/edit-workflow/workflow.md b/src/modules/bmb/workflows/edit-workflow/workflow.md index 9eabd3e1..738c3c56 100644 --- a/src/modules/bmb/workflows/edit-workflow/workflow.md +++ b/src/modules/bmb/workflows/edit-workflow/workflow.md @@ -52,6 +52,7 @@ This uses **step-file architecture** for disciplined execution: Load and read full config from {project-root}/_bmad/bmb/config.yaml and resolve: - `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language`, `bmb_creations_output_folder` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md index 912a554e..b7c55d4a 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md @@ -33,6 +33,7 @@ Confirm the target workflow path and validation objectives before proceeding wit - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md index 6028ee28..70d818da 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md @@ -34,6 +34,7 @@ Perform adversarial validation of the target workflow.md against workflow-templa - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md index d72f5886..5d601a7b 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md @@ -34,6 +34,7 @@ Perform systematic adversarial validation of each step file against step-templat - ๐Ÿ“– CRITICAL: Read this complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: @@ -138,7 +139,7 @@ Check for proper references: ```yaml # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' ``` diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md index fe3c1f3f..26505b47 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md @@ -35,6 +35,7 @@ Validate file sizes, markdown formatting standards, and CSV data file compliance - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md index 0f53be96..08992f90 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md @@ -35,6 +35,7 @@ Analyze the workflow's position on the intent vs prescriptive spectrum, provide - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md index 1468a5bf..c9b84af5 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md @@ -35,6 +35,7 @@ Analyze each workflow step for optimal web search utilization and subprocess usa - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md index 47b366eb..005b852f 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md @@ -35,6 +35,7 @@ Perform comprehensive workflow analysis including flow validation, goal alignmen - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md index bd330e7b..43bfd3e5 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md @@ -32,6 +32,7 @@ Generate comprehensive compliance report compiling all validation findings, prov - ๐Ÿ›‘ NEVER generate content without user input - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmb/workflows/workflow-compliance-check/workflow.md b/src/modules/bmb/workflows/workflow-compliance-check/workflow.md index 1f95ea1d..5fc29ff1 100644 --- a/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +++ b/src/modules/bmb/workflows/workflow-compliance-check/workflow.md @@ -52,6 +52,7 @@ This uses **step-file architecture** for disciplined execution: Load and read full config from {project-root}/_bmad/bmb/config.yaml and resolve: - `project_name`, `output_folder`, `user_name`, `communication_language`, `document_output_language` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmgd/agents/game-architect.agent.yaml b/src/modules/bmgd/agents/game-architect.agent.yaml index 90e98c6b..7099b6b2 100644 --- a/src/modules/bmgd/agents/game-architect.agent.yaml +++ b/src/modules/bmgd/agents/game-architect.agent.yaml @@ -7,6 +7,7 @@ agent: title: Game Architect icon: ๐Ÿ›๏ธ module: bmgd + hasSidecar: false persona: role: Principal Game Systems Architect + Technical Director diff --git a/src/modules/bmgd/agents/game-designer.agent.yaml b/src/modules/bmgd/agents/game-designer.agent.yaml index 1ec128da..6b654dec 100644 --- a/src/modules/bmgd/agents/game-designer.agent.yaml +++ b/src/modules/bmgd/agents/game-designer.agent.yaml @@ -7,6 +7,7 @@ agent: title: Game Designer icon: ๐ŸŽฒ module: bmgd + hasSidecar: false persona: role: Lead Game Designer + Creative Vision Architect diff --git a/src/modules/bmgd/agents/game-dev.agent.yaml b/src/modules/bmgd/agents/game-dev.agent.yaml index af98ca40..290e6071 100644 --- a/src/modules/bmgd/agents/game-dev.agent.yaml +++ b/src/modules/bmgd/agents/game-dev.agent.yaml @@ -7,6 +7,7 @@ agent: title: Game Developer icon: ๐Ÿ•น๏ธ module: bmgd + hasSidecar: false persona: role: Senior Game Developer + Technical Implementation Specialist @@ -63,6 +64,6 @@ agent: ide-only: true - trigger: AE or fuzzy match on advanced-elicitation - exec: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" + exec: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" description: "[AE] Advanced elicitation techniques to challenge the LLM to get better results" web-only: true diff --git a/src/modules/bmgd/agents/game-qa.agent.yaml b/src/modules/bmgd/agents/game-qa.agent.yaml index 2e2d6a82..a1eddbc6 100644 --- a/src/modules/bmgd/agents/game-qa.agent.yaml +++ b/src/modules/bmgd/agents/game-qa.agent.yaml @@ -7,6 +7,7 @@ agent: title: Game QA Architect icon: ๐Ÿงช module: bmgd + hasSidecar: false persona: role: Game QA Architect + Test Automation Specialist @@ -55,6 +56,6 @@ agent: description: "[TR] Review test quality and coverage" - trigger: AE or fuzzy match on advanced-elicitation - exec: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" + exec: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" description: "[AE] Advanced elicitation techniques to challenge the LLM to get better results" web-only: true diff --git a/src/modules/bmgd/agents/game-scrum-master.agent.yaml b/src/modules/bmgd/agents/game-scrum-master.agent.yaml index b25856c5..339ffda7 100644 --- a/src/modules/bmgd/agents/game-scrum-master.agent.yaml +++ b/src/modules/bmgd/agents/game-scrum-master.agent.yaml @@ -7,6 +7,7 @@ agent: title: Game Dev Scrum Master icon: ๐ŸŽฏ module: bmgd + hasSidecar: false persona: role: Game Development Scrum Master + Sprint Orchestrator @@ -62,6 +63,6 @@ agent: description: "[CC] Navigate significant changes during game dev sprint (When implementation is off-track)" - trigger: AE or fuzzy match on advanced-elicitation - exec: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" + exec: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" description: "[AE] Advanced elicitation techniques to challenge the LLM to get better results" web-only: true diff --git a/src/modules/bmgd/agents/game-solo-dev.agent.yaml b/src/modules/bmgd/agents/game-solo-dev.agent.yaml index 411016d6..b7bd79ae 100644 --- a/src/modules/bmgd/agents/game-solo-dev.agent.yaml +++ b/src/modules/bmgd/agents/game-solo-dev.agent.yaml @@ -7,6 +7,7 @@ agent: title: Game Solo Dev icon: ๐ŸŽฎ module: bmgd + hasSidecar: false persona: role: Elite Indie Game Developer + Quick Flow Specialist @@ -47,6 +48,6 @@ agent: description: "[TF] Set up automated testing for your game engine" - trigger: AE or fuzzy match on advanced-elicitation - exec: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" + exec: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" description: "[AE] Advanced elicitation techniques to challenge the LLM to get better results" web-only: true diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md index 6075aaa2..8471d943 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md @@ -33,6 +33,7 @@ Validate workflow readiness, check for workflow status tracking, and prepare for - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-02-context.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-02-context.md index cff12c6e..df4d26d3 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-02-context.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-02-context.md @@ -34,6 +34,7 @@ Load game-specific brainstorming context and techniques to guide the ideation se - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-03-ideation.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-03-ideation.md index bd9d635b..40223633 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-03-ideation.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-03-ideation.md @@ -15,7 +15,7 @@ outputFile: '{output_folder}/brainstorming-session-{date}.md' coreBrainstorming: '{project-root}/_bmad/core/workflows/brainstorming/workflow.yaml' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -36,6 +36,7 @@ Facilitate the actual brainstorming session using selected techniques. Capture a - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md index fce8662a..14118fc1 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md @@ -31,6 +31,7 @@ Finalize the brainstorming session, generate actionable next steps, update workf - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.md index d6f4d90b..7917c71b 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.md @@ -47,3 +47,4 @@ You are a creative facilitator specializing in game ideation: - Apply game-specific brainstorming techniques - Help users explore mechanics, themes, and experiences - Capture and organize ideas for later refinement +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01-init.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01-init.md index 2e03f125..534e57e7 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01-init.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01-init.md @@ -33,6 +33,7 @@ Initialize the Game Brief workflow by detecting continuation state, discovering - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01b-continue.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01b-continue.md index ed8d5319..bd943bde 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01b-continue.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01b-continue.md @@ -25,6 +25,7 @@ Resume the Game Brief workflow from where it was left off, ensuring smooth conti - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-02-vision.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-02-vision.md index 02684aa4..85ddd1ad 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-02-vision.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-02-vision.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-brief.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Capture the core game vision including the working title, one-sentence concept, - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-03-market.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-03-market.md index 26b398e3..1f902b29 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-03-market.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-03-market.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-brief.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define the primary and secondary target audiences with specific demographics, an - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-04-fundamentals.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-04-fundamentals.md index 2761ed7d..63ce809f 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-04-fundamentals.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-04-fundamentals.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-brief.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define the core gameplay pillars (fundamental design tenets), primary mechanics - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-05-scope.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-05-scope.md index 86b629c3..7a8c8e50 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-05-scope.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-05-scope.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-brief.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define realistic project constraints including target platforms, budget consider - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-06-references.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-06-references.md index c25fc030..05241075 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-06-references.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-06-references.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-brief.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Identify inspiration games (what you're drawing from and NOT taking), analyze co - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-07-content.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-07-content.md index 05c4cc34..1e98a5a9 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-07-content.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-07-content.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-brief.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define the content framework (world, narrative approach, volume), art and audio - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-08-complete.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-08-complete.md index e994388f..2ab5abe0 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-08-complete.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-08-complete.md @@ -30,6 +30,7 @@ Define MVP scope, success metrics, immediate next steps, and provide clear hando - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.md index 213cff9e..e40067a0 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.md @@ -56,6 +56,7 @@ Load and read full config from {main_config} and resolve: - `project_name`, `output_folder`, `user_name` - `communication_language`, `document_output_language`, `user_skill_level` - `date` as system-generated current datetime +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-01-init.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-01-init.md index 372c14d6..5f87633d 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-01-init.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-01-init.md @@ -35,6 +35,7 @@ Initialize the GDD workflow by detecting continuation state, discovering input d - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-01b-continue.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-01b-continue.md index e0ac94f2..eb70d7d2 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-01b-continue.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-01b-continue.md @@ -25,6 +25,7 @@ Resume the GDD workflow from where it was left off, ensuring smooth continuation - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-02-context.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-02-context.md index f00ddaa0..12b5bd03 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-02-context.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-02-context.md @@ -16,7 +16,7 @@ gameTypesCSV: '{workflow_path}/game-types.csv' gameTypesFolder: '{workflow_path}/game-types' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -36,6 +36,7 @@ Load and analyze the game brief (if available), determine the game type from gam - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-03-platforms.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-03-platforms.md index f98794d9..0ccc1ee6 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-03-platforms.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-03-platforms.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the target platform(s) for the game and establish a clear picture of the - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-04-vision.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-04-vision.md index 0e808660..1c5e6623 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-04-vision.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-04-vision.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the project goals, background context for why this game matters now, and - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-05-core-gameplay.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-05-core-gameplay.md index 3f25ec83..ae62ab2f 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-05-core-gameplay.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-05-core-gameplay.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the fundamental gameplay elements: game pillars (core design tenets), the - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-06-mechanics.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-06-mechanics.md index c80a53e4..0dbc9eb8 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-06-mechanics.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-06-mechanics.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the primary game mechanics that players interact with and the control sch - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-07-game-type.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-07-game-type.md index 310a626d..00ae53b1 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-07-game-type.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-07-game-type.md @@ -15,7 +15,7 @@ outputFile: '{output_folder}/gdd.md' gameTypesFolder: '{workflow_path}/game-types' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -35,6 +35,7 @@ Process the game-type specific sections from the loaded game type guide ({game_t - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-08-progression.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-08-progression.md index 37664496..bcd3a33e 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-08-progression.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-08-progression.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define how players progress through the game (skill, power, narrative, etc.), th - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-09-levels.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-09-levels.md index d9d0f7f4..d286cc42 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-09-levels.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-09-levels.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the level design framework including level types, structure, and how leve - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-10-art-audio.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-10-art-audio.md index e785c104..a9ceb02c 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-10-art-audio.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-10-art-audio.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the visual art style and audio/music direction for the game, establishing - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-11-technical.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-11-technical.md index 52e1875f..a3b3e3d6 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-11-technical.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-11-technical.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define technical requirements including performance targets, platform-specific d - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-12-epics.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-12-epics.md index e04a93b0..83fc2213 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-12-epics.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-12-epics.md @@ -13,7 +13,7 @@ outputFile: '{output_folder}/gdd.md' epicsOutputFile: '{output_folder}/epics.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Translate the game features defined throughout the GDD into development epics, e - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-13-metrics.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-13-metrics.md index c69c8048..00fed1be 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-13-metrics.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-13-metrics.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/gdd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define measurable success metrics for both technical performance and gameplay qu - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/gdd/steps/step-14-complete.md b/src/modules/bmgd/workflows/2-design/gdd/steps/step-14-complete.md index 65c1d576..df6f531f 100644 --- a/src/modules/bmgd/workflows/2-design/gdd/steps/step-14-complete.md +++ b/src/modules/bmgd/workflows/2-design/gdd/steps/step-14-complete.md @@ -31,6 +31,7 @@ Document what is explicitly out of scope, capture key assumptions and dependenci - NEVER generate content without user input - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-01-init.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-01-init.md index 269cb176..fc022641 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-01-init.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-01-init.md @@ -31,6 +31,7 @@ Validate workflow readiness, check for existing narrative document, load GDD con - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-01b-continue.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-01b-continue.md index c62b8d21..8acb86a4 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-01b-continue.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-01b-continue.md @@ -39,6 +39,7 @@ Load the existing narrative document, determine progress, and route to the appro - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Step-Specific Rules: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-02-foundation.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-02-foundation.md index 3ce59ebc..c432467e 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-02-foundation.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-02-foundation.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -32,6 +32,7 @@ Define the narrative foundation: premise, themes, tone/atmosphere, and overall s - CRITICAL: Read the complete step file before taking any action - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - NEVER mention time estimates ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-03-story.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-03-story.md index 5f98befa..fe1278df 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-03-story.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-03-story.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define the major story beats (key narrative moments) and establish pacing and fl - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-04-characters.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-04-characters.md index 147ad027..a5bb6537 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-04-characters.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-04-characters.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Develop all characters: protagonists, antagonists, and supporting cast. Define t - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-05-world.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-05-world.md index 15f8313d..2e8da212 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-05-world.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-05-world.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Build the game's world including setting, history/backstory, factions/organizati - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-06-dialogue.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-06-dialogue.md index a7923dd7..cef4ed33 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-06-dialogue.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-06-dialogue.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define dialogue style, key conversations, and branching dialogue systems if appl - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-07-environmental.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-07-environmental.md index 77ad17de..a6dcf7b0 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-07-environmental.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-07-environmental.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define how story is told through the environment: visual storytelling, audio sto - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-08-delivery.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-08-delivery.md index 92950ebb..3af385db 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-08-delivery.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-08-delivery.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define how narrative content is delivered to players: cutscenes, in-game storyte - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-09-integration.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-09-integration.md index 35ebb0a0..a99f41df 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-09-integration.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-09-integration.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define how narrative integrates with gameplay: story-gameplay connection, progre - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-10-production.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-10-production.md index b0fbdb7b..d3a8b405 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-10-production.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-10-production.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/narrative-design.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Plan the production scope for narrative content: writing scope estimates, locali - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md index 9df3351f..205e9d89 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md @@ -30,6 +30,7 @@ Generate final visualizations (character relationships, timeline), capture refer - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/2-design/narrative/workflow.md b/src/modules/bmgd/workflows/2-design/narrative/workflow.md index 81ff1a86..e9012d29 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/workflow.md +++ b/src/modules/bmgd/workflows/2-design/narrative/workflow.md @@ -46,6 +46,7 @@ To begin, load and execute step-01-init.md: - **NEVER** mention time estimates - **ALWAYS** present options and wait for user selection - **FOLLOW** the step sequence exactly - no skipping or optimizing +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## Agent Role diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01-init.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01-init.md index bb045387..37ee96e7 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01-init.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01-init.md @@ -36,6 +36,7 @@ Validate workflow readiness, check for existing architecture work, discover inpu - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01b-continue.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01b-continue.md index a32e0d96..0f095fca 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01b-continue.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01b-continue.md @@ -37,6 +37,7 @@ Load the existing architecture document, determine progress, and route to the ap - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Step-Specific Rules: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-02-context.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-02-context.md index 27b15f13..ffa6009e 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-02-context.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-02-context.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-architecture.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Load and analyze the GDD and supporting documents to understand the game's techn - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-03-starter.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-03-starter.md index b628cbcf..eeda5e90 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-03-starter.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-03-starter.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-architecture.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Discover and evaluate game engine options and starter templates based on project - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-04-decisions.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-04-decisions.md index 9bd95652..de1d6e9c 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-04-decisions.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-04-decisions.md @@ -16,7 +16,7 @@ decisionCatalog: '{workflow_path}/decision-catalog.yaml' architecturePatterns: '{workflow_path}/architecture-patterns.yaml' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -37,6 +37,7 @@ Facilitate collaborative decision-making for all remaining architectural choices - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-05-crosscutting.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-05-crosscutting.md index 59bc15c7..46a24b91 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-05-crosscutting.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-05-crosscutting.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-architecture.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define patterns for concerns that affect EVERY system in the game: error handlin - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-06-structure.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-06-structure.md index 39bf46cc..4c6160c4 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-06-structure.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-06-structure.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{output_folder}/game-architecture.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ Define the complete project structure including directory organization, file nam - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: @@ -212,7 +213,7 @@ Based on the conversation, prepare the content: ### System Location Mapping | System | Location | Responsibility | -|--------|----------|----------------| +| ------ | -------- | -------------- | {{system_mapping_table}} ### Naming Conventions @@ -222,7 +223,7 @@ Based on the conversation, prepare the content: #### Code Elements | Element | Convention | Example | -|---------|------------|---------| +| ------- | ---------- | ------- | {{code_naming_table}} #### Game Assets diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-07-patterns.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-07-patterns.md index db18dac5..08099061 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-07-patterns.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-07-patterns.md @@ -15,7 +15,7 @@ outputFile: '{output_folder}/game-architecture.md' patternCategories: '{workflow_path}/pattern-categories.csv' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -36,6 +36,7 @@ Define implementation patterns that ensure multiple AI agents write compatible, - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-08-validation.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-08-validation.md index 3762f5cf..5b550d1a 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-08-validation.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-08-validation.md @@ -13,7 +13,7 @@ outputFile: '{output_folder}/game-architecture.md' checklistFile: '{workflow_path}/checklist.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -34,6 +34,7 @@ Validate that the architecture is coherent, complete, and ready to guide AI agen - CRITICAL: When loading next step with 'C', ensure entire file is read - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: @@ -96,12 +97,12 @@ Verifying every GDD requirement has architectural support: **Core Systems:** | System | Architecture Support | Status | -|--------|---------------------|--------| +| ------ | -------------------- | ------ | {{systems_coverage_table}} **Technical Requirements:** | Requirement | How Addressed | Status | -|-------------|---------------|--------| +| ----------- | ------------- | ------ | {{requirements_coverage_table}} {{if_gaps_found}} diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md index 51f022e3..2247d83e 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md @@ -31,6 +31,7 @@ Generate the executive summary, finalize the document, update workflow status, a - CRITICAL: Read the complete step file before taking any action - YOU ARE A FACILITATOR, not a content generator - NEVER mention time estimates +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.md b/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.md index 2b0f91d9..9311f67e 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.md @@ -44,6 +44,7 @@ To begin, load and execute step-01-init.md: - **NEVER** mention time estimates - **ALWAYS** present options and wait for user selection - **FOLLOW** the step sequence exactly - no skipping or optimizing +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## Agent Role diff --git a/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-01-discover.md b/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-01-discover.md index 0e2ceabb..ba1a4db5 100644 --- a/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-01-discover.md +++ b/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-01-discover.md @@ -8,6 +8,7 @@ - FOCUS on discovering existing project context and technology stack - IDENTIFY critical implementation rules that AI agents need - ABSOLUTELY NO TIME ESTIMATES +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-02-generate.md b/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-02-generate.md index 90c76f2b..101bcd77 100644 --- a/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-02-generate.md +++ b/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-02-generate.md @@ -8,6 +8,7 @@ - FOCUS on unobvious rules that AI agents need to be reminded of - KEEP CONTENT LEAN - optimize for LLM context efficiency - ABSOLUTELY NO TIME ESTIMATES +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -28,7 +29,7 @@ This step will generate content and present choices for each rule category: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding diff --git a/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-03-complete.md b/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-03-complete.md index e87e1382..76b2ccab 100644 --- a/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-03-complete.md +++ b/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-03-complete.md @@ -8,6 +8,7 @@ - FOCUS on finalizing a lean, LLM-optimized project context - ENSURE all critical rules are captured and actionable - ABSOLUTELY NO TIME ESTIMATES +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmgd/workflows/3-technical/generate-project-context/workflow.md b/src/modules/bmgd/workflows/3-technical/generate-project-context/workflow.md index 8eb8945c..b1b7ed6f 100644 --- a/src/modules/bmgd/workflows/3-technical/generate-project-context/workflow.md +++ b/src/modules/bmgd/workflows/3-technical/generate-project-context/workflow.md @@ -32,6 +32,7 @@ Load config from `{project-root}/_bmad/bmgd/config.yaml` and resolve: - `project_name`, `output_folder`, `user_name` - `communication_language`, `document_output_language`, `game_dev_experience` - `date` as system-generated current datetime +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Paths diff --git a/src/modules/bmgd/workflows/4-production/code-review/instructions.xml b/src/modules/bmgd/workflows/4-production/code-review/instructions.xml index e57a940d..d639df2b 100644 --- a/src/modules/bmgd/workflows/4-production/code-review/instructions.xml +++ b/src/modules/bmgd/workflows/4-production/code-review/instructions.xml @@ -12,6 +12,7 @@ Read EVERY file in the File List - verify implementation against story requirements Tasks marked complete but not done = CRITICAL finding Acceptance Criteria not implemented = HIGH severity finding + Do not review files that are not part of the application's source code. Always exclude the _bmad/ and _bmad-output/ folders from the review. Always exclude IDE and CLI configuration folders like .cursor/ and .windsurf/ and .claude/ Use provided {{story_path}} or ask user which story file to review diff --git a/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml b/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml index b2f0c66b..b1b92a6a 100644 --- a/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml +++ b/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml @@ -21,7 +21,7 @@ instructions: "{installed_path}/instructions.md" quick_dev_workflow: "{project-root}/_bmad/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml" quick_prototype_workflow: "{project-root}/_bmad/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml" party_mode_exec: "{project-root}/_bmad/core/workflows/party-mode/workflow.md" -advanced_elicitation: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" +advanced_elicitation: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" standalone: true web_bundle: false diff --git a/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml b/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml index 73a71355..9bceec24 100644 --- a/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml +++ b/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml @@ -23,7 +23,7 @@ checklist: "{installed_path}/checklist.md" # Related workflows quick_prototype_workflow: "{project-root}/_bmad/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml" party_mode_exec: "{project-root}/_bmad/core/workflows/party-mode/workflow.md" -advanced_elicitation: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" +advanced_elicitation: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" # Routing resources (lazy-loaded) workflow_init: "{project-root}/_bmad/bmgd/workflows/workflow-status/init/workflow.yaml" diff --git a/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml b/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml index 23e5d34c..19862fb1 100644 --- a/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml +++ b/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml @@ -23,7 +23,7 @@ checklist: "{installed_path}/checklist.md" # Related workflows quick_dev_workflow: "{project-root}/_bmad/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml" party_mode_exec: "{project-root}/_bmad/core/workflows/party-mode/workflow.md" -advanced_elicitation: "{project-root}/_bmad/core/tasks/advanced-elicitation.xml" +advanced_elicitation: "{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml" # Game-specific references gdd_patterns: diff --git a/src/modules/bmm/README.md b/src/modules/bmm/README.md deleted file mode 100644 index e33f481b..00000000 --- a/src/modules/bmm/README.md +++ /dev/null @@ -1,123 +0,0 @@ -# BMM - BMad Method Module - -Core orchestration system for AI-driven agile development, providing comprehensive lifecycle management through specialized agents and workflows. - ---- - -## ๐Ÿ“š Complete Documentation - -๐Ÿ‘‰ **[BMM Documentation Hub](./docs/index.md)** - Start here for complete guides, tutorials, and references - -**Quick Links:** - -- **[Quick Start Guide](./docs/quick-start.md)** - New to BMM? Start here (15 min) -- **[Agents Guide](./docs/agents-guide.md)** - Meet your 12 specialized AI agents (45 min) -- **[Scale Adaptive System](./docs/scale-adaptive-system.md)** - How BMM adapts to project size (42 min) -- **[FAQ](./docs/faq.md)** - Quick answers to common questions -- **[Glossary](./docs/glossary.md)** - Key terminology reference - ---- - -## ๐Ÿ—๏ธ Module Structure - -This module contains: - -``` -bmm/ -โ”œโ”€โ”€ agents/ # 12 specialized AI agents (PM, Architect, SM, DEV, TEA, etc.) -โ”œโ”€โ”€ workflows/ # 34 workflows across 4 phases + testing -โ”œโ”€โ”€ teams/ # Pre-configured agent groups -โ”œโ”€โ”€ tasks/ # Atomic work units -โ”œโ”€โ”€ testarch/ # Comprehensive testing infrastructure -โ””โ”€โ”€ docs/ # Complete user documentation -``` - -### Agent Roster - -**Core Development:** PM, Analyst, Architect, SM, DEV, TEA, UX Designer, Technical Writer -**Game Development:** Game Designer, Game Developer, Game Architect -**Orchestration:** BMad Master (from Core) - -๐Ÿ‘‰ **[Full Agents Guide](./docs/agents-guide.md)** - Roles, workflows, and when to use each agent - -### Workflow Phases - -**Phase 0:** Documentation (brownfield only) -**Phase 1:** Analysis (optional) - 5 workflows -**Phase 2:** Planning (required) - 2 workflows -**Phase 3:** Solutioning (required) - 3 workflows -**Phase 4:** Implementation (iterative) - 7 workflows - -๐Ÿ‘‰ **[Workflow Guides](./docs/index.md#-workflow-guides)** - Detailed documentation for each phase - ---- - -## ๐Ÿš€ Getting Started - -**New Project:** - -```bash -# Install BMM -npx bmad-method@alpha install - -# Load Analyst agent in your IDE, then: -*workflow-init -``` - -**Existing Project (Brownfield):** - -```bash -# Document your codebase first -*document-project - -# Then initialize -*workflow-init -``` - -๐Ÿ‘‰ **[Quick Start Guide](./docs/quick-start.md)** - Complete setup and first project walkthrough - ---- - -## ๐ŸŽฏ Key Concepts - -### Scale-Adaptive Design - -BMM automatically adjusts to project complexity (Levels 0-4): - -- **Level 0-1:** Quick Spec Flow for bug fixes and small features -- **Level 2:** PRD with optional architecture -- **Level 3-4:** Full PRD + comprehensive architecture - -๐Ÿ‘‰ **[Scale Adaptive System](./docs/scale-adaptive-system.md)** - Complete level breakdown - -### Story-Centric Implementation - -Stories move through a defined lifecycle: `backlog โ†’ ready-for-dev โ†’ in-progress โ†’ review โ†’ done` - -Just-in-time epic context and story context provide exact expertise when needed. - -๐Ÿ‘‰ **[Implementation Workflows](./docs/workflows-implementation.md)** - Complete story lifecycle guide - -### Multi-Agent Collaboration - -Use party mode to engage all 19+ agents (from BMM, CIS, BMB, custom modules) in group discussions for strategic decisions, creative brainstorming, and complex problem-solving. - -๐Ÿ‘‰ **[Party Mode Guide](./docs/party-mode.md)** - How to orchestrate multi-agent collaboration - ---- - -## ๐Ÿ“– Additional Resources - -- **[Brownfield Guide](./docs/brownfield-guide.md)** - Working with existing codebases -- **[Quick Spec Flow](./docs/quick-spec-flow.md)** - Fast-track for Level 0-1 projects -- **[Enterprise Agentic Development](./docs/enterprise-agentic-development.md)** - Team collaboration patterns - -## ๐Ÿค Community - -- **[Discord](https://discord.gg/gk8jAdXWmj)** - Get help, share feedback (#general-dev, #bugs-issues) -- **[GitHub Issues](https://github.com/bmad-code-org/BMAD-METHOD/issues)** - Report bugs or request features -- **[YouTube](https://www.youtube.com/@BMadCode)** - Video tutorials and walkthroughs - ---- - -**Ready to build?** โ†’ [Start with the Quick Start Guide](./docs/quick-start.md) diff --git a/src/modules/bmm/agents/analyst.agent.yaml b/src/modules/bmm/agents/analyst.agent.yaml index ff876396..28294696 100644 --- a/src/modules/bmm/agents/analyst.agent.yaml +++ b/src/modules/bmm/agents/analyst.agent.yaml @@ -7,13 +7,14 @@ agent: title: Business Analyst icon: ๐Ÿ“Š module: bmm + hasSidecar: false persona: role: Strategic Business Analyst + Requirements Expert identity: Senior analyst with deep expertise in market research, competitive analysis, and requirements elicitation. Specializes in translating vague needs into actionable specs. - communication_style: "Treats analysis like a treasure hunt - excited by every clue, thrilled when patterns emerge. Asks questions that spark 'aha!' moments while structuring insights with precision." + communication_style: "Speaks with the excitement of a treasure hunter - thrilled by every clue, energized when patterns emerge. Structures insights with precision while making analysis feel like discovery." principles: | - - Every business challenge has root causes waiting to be discovered. Ground findings in verifiable evidence. + - Channel expert business analysis frameworks: draw upon Porter's Five Forces, SWOT analysis, root cause analysis, and competitive intelligence methodologies to uncover what others miss. Every business challenge has root causes waiting to be discovered. Ground findings in verifiable evidence. - Articulate requirements with absolute precision. Ensure all stakeholder voices heard. - Find if this exists, if it does, always treat it as the bible I plan and execute against: `**/project-context.md` diff --git a/src/modules/bmm/agents/architect.agent.yaml b/src/modules/bmm/agents/architect.agent.yaml index de69df69..99ced439 100644 --- a/src/modules/bmm/agents/architect.agent.yaml +++ b/src/modules/bmm/agents/architect.agent.yaml @@ -7,12 +7,14 @@ agent: title: Architect icon: ๐Ÿ—๏ธ module: bmm + hasSidecar: false persona: role: System Architect + Technical Design Leader identity: Senior architect with expertise in distributed systems, cloud infrastructure, and API design. Specializes in scalable patterns and technology selection. - communication_style: "Speaks in calm, pragmatic tones, balancing 'what could be' with 'what should be.' Champions boring technology that actually works." + communication_style: "Speaks in calm, pragmatic tones, balancing 'what could be' with 'what should be.'" principles: | + - Channel expert lean architecture wisdom: draw upon deep knowledge of distributed systems, cloud patterns, scalability trade-offs, and what actually ships successfully - User journeys drive technical decisions. Embrace boring technology for stability. - Design simple solutions that scale when needed. Developer productivity is architecture. Connect every decision to business value and user impact. - Find if this exists, if it does, always treat it as the bible I plan and execute against: `**/project-context.md` diff --git a/src/modules/bmm/agents/dev.agent.yaml b/src/modules/bmm/agents/dev.agent.yaml index 21571328..e22c3c9f 100644 --- a/src/modules/bmm/agents/dev.agent.yaml +++ b/src/modules/bmm/agents/dev.agent.yaml @@ -8,6 +8,7 @@ agent: title: Developer Agent icon: ๐Ÿ’ป module: bmm + hasSidecar: false persona: role: Senior Software Engineer diff --git a/src/modules/bmm/agents/pm.agent.yaml b/src/modules/bmm/agents/pm.agent.yaml index a4767471..28326994 100644 --- a/src/modules/bmm/agents/pm.agent.yaml +++ b/src/modules/bmm/agents/pm.agent.yaml @@ -8,14 +8,17 @@ agent: title: Product Manager icon: ๐Ÿ“‹ module: bmm + hasSidecar: false persona: - role: Investigative Product Strategist + Market-Savvy PM + role: Product Manager specializing in collaborative PRD creation through user interviews, requirement discovery, and stakeholder alignment. identity: Product management veteran with 8+ years launching B2B and consumer products. Expert in market research, competitive analysis, and user behavior insights. communication_style: "Asks 'WHY?' relentlessly like a detective on a case. Direct and data-sharp, cuts through fluff to what actually matters." principles: | - - Uncover the deeper WHY behind every requirement. Ruthless prioritization to achieve MVP goals. Proactively identify risks. - - Align efforts with measurable business impact. Back all claims with data and user insights. + - Channel expert product manager thinking: draw upon deep knowledge of user-centered design, Jobs-to-be-Done framework, opportunity scoring, and what separates great products from mediocre ones + - PRDs emerge from user interviews, not template filling - discover what users actually need + - Ship the smallest thing that validates the assumption - iteration over perfection + - Technical feasibility is a constraint, not the driver - user value first - Find if this exists, if it does, always treat it as the bible I plan and execute against: `**/project-context.md` menu: diff --git a/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml b/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml index 27bd0147..8a3680a3 100644 --- a/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +++ b/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml @@ -7,6 +7,7 @@ agent: title: Quick Flow Solo Dev icon: ๐Ÿš€ module: bmm + hasSidecar: false persona: role: Elite Full-Stack Developer + Quick Flow Specialist diff --git a/src/modules/bmm/agents/sm.agent.yaml b/src/modules/bmm/agents/sm.agent.yaml index f671e8f6..9a8ebb4a 100644 --- a/src/modules/bmm/agents/sm.agent.yaml +++ b/src/modules/bmm/agents/sm.agent.yaml @@ -7,6 +7,7 @@ agent: title: Scrum Master icon: ๐Ÿƒ module: bmm + hasSidecar: false persona: role: Technical Scrum Master + Story Preparation Specialist diff --git a/src/modules/bmm/agents/tea.agent.yaml b/src/modules/bmm/agents/tea.agent.yaml index 978b204b..2ff25637 100644 --- a/src/modules/bmm/agents/tea.agent.yaml +++ b/src/modules/bmm/agents/tea.agent.yaml @@ -8,6 +8,7 @@ agent: title: Master Test Architect icon: ๐Ÿงช module: bmm + hasSidecar: false persona: role: Master Test Architect diff --git a/src/modules/bmm/agents/tech-writer.agent.yaml b/src/modules/bmm/agents/tech-writer.agent.yaml index bfe8df3e..e8f23cef 100644 --- a/src/modules/bmm/agents/tech-writer.agent.yaml +++ b/src/modules/bmm/agents/tech-writer.agent.yaml @@ -7,6 +7,7 @@ agent: title: Technical Writer icon: ๐Ÿ“š module: bmm + hasSidecar: false persona: role: Technical Documentation Specialist + Knowledge Curator diff --git a/src/modules/bmm/agents/ux-designer.agent.yaml b/src/modules/bmm/agents/ux-designer.agent.yaml index 310b9398..9b3fead6 100644 --- a/src/modules/bmm/agents/ux-designer.agent.yaml +++ b/src/modules/bmm/agents/ux-designer.agent.yaml @@ -7,6 +7,7 @@ agent: title: UX Designer icon: ๐ŸŽจ module: bmm + hasSidecar: false persona: role: User Experience Designer + UI Specialist diff --git a/src/modules/bmm/docs/brownfield-guide.md b/src/modules/bmm/docs/brownfield-guide.md deleted file mode 100644 index 80403416..00000000 --- a/src/modules/bmm/docs/brownfield-guide.md +++ /dev/null @@ -1,747 +0,0 @@ -# BMad Method Brownfield Development Guide - -**Complete guide for working with existing codebases** - -**Reading Time:** ~35 minutes - ---- - -## Quick Navigation - -**Jump to:** - -- [Quick Reference](#quick-reference) - Commands and files -- [Common Scenarios](#common-scenarios) - Real-world examples -- [Best Practices](#best-practices) - Success tips - ---- - -## What is Brownfield Development? - -Brownfield projects involve working within existing codebases rather than starting fresh: - -- **Bug fixes** - Single file changes -- **Small features** - Adding to existing modules -- **Feature sets** - Multiple related features -- **Major integrations** - Complex architectural additions -- **System expansions** - Enterprise-scale enhancements - -**Key Difference from Greenfield:** You must understand and respect existing patterns, architecture, and constraints. - -**Core Principle:** AI agents need comprehensive documentation to understand existing code before they can effectively plan or implement changes. - ---- - -## Getting Started - -### Understanding Planning Tracks - -For complete track details, see [Scale Adaptive System](./scale-adaptive-system.md). - -**Brownfield tracks at a glance:** - -| Track | Scope | Typical Stories | Key Difference | -| --------------------- | -------------------------- | --------------- | ----------------------------------------------- | -| **Quick Flow** | Bug fixes, small features | 1-15 | Must understand affected code and patterns | -| **BMad Method** | Feature sets, integrations | 10-50+ | Integrate with existing architecture | -| **Enterprise Method** | Enterprise expansions | 30+ | Full system documentation + compliance required | - -**Note:** Story counts are guidance, not definitions. Tracks are chosen based on planning needs. - -### Track Selection for Brownfield - -When you run `workflow-init`, it handles brownfield intelligently: - -**Step 1: Shows what it found** - -- Old planning docs (PRD, epics, stories) -- Existing codebase - -**Step 2: Asks about YOUR work** - -> "Are these works in progress, previous effort, or proposed work?" - -- **(a) Works in progress** โ†’ Uses artifacts to determine level -- **(b) Previous effort** โ†’ Asks you to describe NEW work -- **(c) Proposed work** โ†’ Uses artifacts as guidance -- **(d) None of these** โ†’ You explain your work - -**Step 3: Analyzes your description** - -- Keywords: "fix", "bug" โ†’ Quick Flow, "dashboard", "platform" โ†’ BMad Method, "enterprise", "multi-tenant" โ†’ Enterprise Method -- Complexity assessment -- Confirms suggested track with you - -**Key Principle:** System asks about YOUR current work first, uses old artifacts as context only. - -**Example: Old Complex PRD, New Simple Work** - -``` -System: "Found PRD.md (BMad Method track, 30 stories, 6 months old)" -System: "Is this work in progress or previous effort?" -You: "Previous effort - I'm just fixing a bug now" -System: "Tell me about your current work" -You: "Update payment method enums" -System: "Quick Flow track (tech-spec approach). Correct?" -You: "Yes" -โœ… Creates Quick Flow workflow -``` - ---- - -## Documentation: Critical First Step - -๐Ÿšจ **For brownfield projects: Always ensure adequate AI-usable documentation before planning** - -### Default Recommendation: Run document-project - -**Best practice:** Run `document-project` workflow unless you have **confirmed, trusted, AI-optimized documentation**. - -### Why Document-Project is Almost Always the Right Choice - -Existing documentation often has quality issues that break AI workflows: - -**Common Problems:** - -- **Too Much Information (TMI):** Massive markdown files with 10s or 100s of level 2 sections -- **Out of Date:** Documentation hasn't been updated with recent code changes -- **Wrong Format:** Written for humans, not AI agents (lacks structure, index, clear patterns) -- **Incomplete Coverage:** Missing critical architecture, patterns, or setup info -- **Inconsistent Quality:** Some areas documented well, others not at all - -**Impact on AI Agents:** - -- AI agents hit token limits reading massive files -- Outdated docs cause hallucinations (agent thinks old patterns still apply) -- Missing structure means agents can't find relevant information -- Incomplete coverage leads to incorrect assumptions - -### Documentation Decision Tree - -**Step 1: Assess Existing Documentation Quality** - -Ask yourself: - -- โœ… Is it **current** (updated in last 30 days)? -- โœ… Is it **AI-optimized** (structured with index.md, clear sections, <500 lines per file)? -- โœ… Is it **comprehensive** (architecture, patterns, setup all documented)? -- โœ… Do you **trust** it completely for AI agent consumption? - -**If ANY answer is NO โ†’ Run `document-project`** - -**Step 2: Check for Massive Documents** - -If you have documentation but files are huge (>500 lines, 10+ level 2 sections): - -1. **First:** Run `shard-doc` tool to split large files: - - ```bash - # Load BMad Master or any agent - _bmad/core/tools/shard-doc.xml --input docs/massive-doc.md - ``` - - - Splits on level 2 sections by default - - Creates organized, manageable files - - Preserves content integrity - -2. **Then:** Run `index-docs` task to create navigation: - - ```bash - _bmad/core/tasks/index-docs.xml --directory ./docs - ``` - -3. **Finally:** Validate quality - if sharded docs still seem incomplete/outdated โ†’ Run `document-project` - -### Four Real-World Scenarios - -| Scenario | You Have | Action | Why | -| -------- | ------------------------------------------ | -------------------------- | --------------------------------------- | -| **A** | No documentation | `document-project` | Only option - generate from scratch | -| **B** | Docs exist but massive/outdated/incomplete | `document-project` | Safer to regenerate than trust bad docs | -| **C** | Good docs but no structure | `shard-doc` โ†’ `index-docs` | Structure existing content for AI | -| **D** | Confirmed AI-optimized docs with index.md | Skip Documentation | Rare - only if you're 100% confident | - -### Scenario A: No Documentation (Most Common) - -**Action: Run document-project workflow** - -1. Load Analyst or Technical Writer (Paige) agent -2. Run `*document-project` -3. Choose scan level: - - **Quick** (2-5min): Pattern analysis, no source reading - - **Deep** (10-30min): Reads critical paths - **Recommended** - - **Exhaustive** (30-120min): Reads all files - -**Outputs:** - -- `docs/index.md` - Master AI entry point -- `docs/project-overview.md` - Executive summary -- `docs/architecture.md` - Architecture analysis -- `docs/source-tree-analysis.md` - Directory structure -- Additional files based on project type (API, web app, etc.) - -### Scenario B: Docs Exist But Quality Unknown/Poor (Very Common) - -**Action: Run document-project workflow (regenerate)** - -Even if `docs/` folder exists, if you're unsure about quality โ†’ **regenerate**. - -**Why regenerate instead of index?** - -- Outdated docs โ†’ AI makes wrong assumptions -- Incomplete docs โ†’ AI invents missing information -- TMI docs โ†’ AI hits token limits, misses key info -- Human-focused docs โ†’ Missing AI-critical structure - -**document-project** will: - -- Scan actual codebase (source of truth) -- Generate fresh, accurate documentation -- Structure properly for AI consumption -- Include only relevant, current information - -### Scenario C: Good Docs But Needs Structure - -**Action: Shard massive files, then index** - -If you have **good, current documentation** but it's in massive files: - -**Step 1: Shard large documents** - -```bash -# For each massive doc (>500 lines or 10+ level 2 sections) -_bmad/core/tools/shard-doc.xml \ - --input docs/api-documentation.md \ - --output docs/api/ \ - --level 2 # Split on ## headers (default) -``` - -**Step 2: Generate index** - -```bash -_bmad/core/tasks/index-docs.xml --directory ./docs -``` - -**Step 3: Validate** - -- Review generated `docs/index.md` -- Check that sharded files are <500 lines each -- Verify content is current and accurate -- **If anything seems off โ†’ Run document-project instead** - -### Scenario D: Confirmed AI-Optimized Documentation (Rare) - -**Action: Skip Documentation** - -Only skip if ALL conditions met: - -- โœ… `docs/index.md` exists and is comprehensive -- โœ… Documentation updated within last 30 days -- โœ… All doc files <500 lines with clear structure -- โœ… Covers architecture, patterns, setup, API surface -- โœ… You personally verified quality for AI consumption -- โœ… Previous AI agents used it successfully - -**If unsure โ†’ Run document-project** (costs 10-30 minutes, saves hours of confusion) - -### Why document-project is Critical - -Without AI-optimized documentation, workflows fail: - -- **tech-spec** (Quick Flow) can't auto-detect stack/patterns โ†’ Makes wrong assumptions -- **PRD** (BMad Method) can't reference existing code โ†’ Designs incompatible features -- **create-architecture** can't build on existing structure โ†’ Suggests conflicting patterns -- **create-story** can't provide existing pattern context โ†’ Stories lack integration guidance -- **dev-story** invents implementations โ†’ Breaks existing integrations - -### Key Principle - -**When in doubt, run document-project.** - -It's better to spend 10-30 minutes generating fresh, accurate docs than to waste hours debugging AI agents working from bad documentation. - ---- - -## Workflow Phases by Track - -### Phase 1: Analysis (Optional) - -**Workflows:** - -- `brainstorm-project` - Solution exploration -- `research` - Technical/market research -- `product-brief` - Strategic planning (BMad Method/Enterprise tracks only) - -**When to use:** Complex features, technical decisions, strategic additions - -**When to skip:** Bug fixes, well-understood features, time-sensitive changes - -See the [Workflows section in BMM README](../README.md) for details. - -### Phase 2: Planning (Required) - -**Planning approach adapts by track:** - -**Quick Flow:** Use `tech-spec` workflow - -- Creates tech-spec.md -- Auto-detects existing stack (brownfield) -- Confirms conventions with you -- Generates implementation-ready stories - -**BMad Method/Enterprise:** Use `prd` workflow - -- Creates PRD.md with FRs/NFRs only -- References existing architecture -- Plans integration points -- Epics+Stories created AFTER architecture phase - -**Brownfield-specific:** See [Scale Adaptive System](./scale-adaptive-system.md) for complete workflow paths by track. - -### Phase 3: Solutioning (BMad Method/Enterprise Only) - -**Critical for brownfield:** - -- Review existing architecture FIRST -- Document integration points explicitly -- Plan backward compatibility -- Consider migration strategy - -**Workflows:** - -- `create-architecture` - Extend architecture docs (BMad Method/Enterprise) -- `create-epics-and-stories` - Create epics and stories AFTER architecture -- `implementation-readiness` - Validate before implementation (BMad Method/Enterprise) - -### Phase 4: Implementation (All Tracks) - -**Sprint-based development through story iteration:** - -```mermaid -flowchart TD - SPRINT[sprint-planning
Initialize tracking] - CREATE[create-story] - DEV[dev-story] - REVIEW[code-review] - CHECK{More stories?} - RETRO[retrospective
Per epic] - - SPRINT --> CREATE - CREATE --> DEV - DEV --> REVIEW - REVIEW --> CHECK - CHECK -->|Yes| CREATE - CHECK -->|No| RETRO - - style SPRINT fill:#bfb,stroke:#333,stroke-width:2px,color:#000 - style RETRO fill:#fbf,stroke:#333,stroke-width:2px,color:#000 -``` - -**Status Progression:** - -- Epic: `backlog โ†’ in-progress โ†’ done` -- Story: `backlog โ†’ ready-for-dev โ†’ in-progress โ†’ review โ†’ done` - -**Brownfield-Specific Implementation Tips:** - -1. **Respect existing patterns** - Follow established conventions -2. **Test integration thoroughly** - Validate interactions with existing code -3. **Use feature flags** - Enable gradual rollout - ---- - -## Best Practices - -### 1. Always Document First - -Even if you know the code, AI agents need `document-project` output for context. Run it before planning. - -### 2. Be Specific About Current Work - -When workflow-init asks about your work: - -- โœ… "Update payment method enums to include Apple Pay" -- โŒ "Fix stuff" - -### 3. Choose Right Documentation Approach - -- **Has good docs, no index?** โ†’ Run `index-docs` task (fast) -- **No docs or need codebase analysis?** โ†’ Run `document-project` (Deep scan) - -### 4. Respect Existing Patterns - -Tech-spec and create-story workflows will detect conventions from existing documentation. Follow them unless explicitly modernizing. - -### 5. Plan Integration Points Explicitly - -Document in tech-spec/architecture: - -- Which existing modules you'll modify -- What APIs/services you'll integrate with -- How data flows between new and existing code - -### 6. Design for Gradual Rollout - -- Use feature flags for new functionality -- Plan rollback strategies -- Maintain backward compatibility -- Create migration scripts if needed - -### 7. Test Integration Thoroughly - -- Regression testing of existing features -- Integration point validation -- Performance impact assessment -- API contract verification - -### 8. Use Sprint Planning Effectively - -- Run `sprint-planning` at Phase 4 start -- Context epics before creating stories -- Update `sprint-status.yaml` as work progresses - -### 9. Learn Continuously - -- Run `retrospective` after each epic -- Incorporate learnings into next stories -- Update discovered patterns -- Share insights across team - ---- - -## Common Scenarios - -### Scenario 1: Bug Fix (Quick Flow) - -**Situation:** Authentication token expiration causing logout issues - -**Track:** Quick Flow - -**Workflow:** - -1. **Document:** Skip if auth system documented, else run `document-project` (Quick scan) -2. **Plan:** Load PM โ†’ run `tech-spec` - - Analyzes bug - - Detects stack (Express, Jest) - - Confirms conventions - - Creates tech-spec.md + story -3. **Implement:** Load DEV โ†’ run `dev-story` -4. **Review:** Load DEV โ†’ run `code-review` - -**Time:** 2-4 hours - ---- - -### Scenario 2: Small Feature (Quick Flow) - -**Situation:** Add "forgot password" to existing auth system - -**Track:** Quick Flow - -**Workflow:** - -1. **Document:** Run `document-project` (Deep scan of auth module if not documented) -2. **Plan:** Load PM โ†’ run `tech-spec` - - Detects Next.js 13.4, NextAuth.js - - Analyzes existing auth patterns - - Confirms conventions - - Creates tech-spec.md + epic + 3-5 stories -3. **Implement:** Load SM โ†’ `sprint-planning` โ†’ `create-story` - Load DEV โ†’ `dev-story` for each story -4. **Review:** Load DEV โ†’ `code-review` - -**Time:** 1-3 days - ---- - -### Scenario 3: Feature Set (BMad Method) - -**Situation:** Add user dashboard with analytics, preferences, activity - -**Track:** BMad Method - -**Workflow:** - -1. **Document:** Run `document-project` (Deep scan) - Critical for understanding existing UI patterns -2. **Analyze:** Load Analyst โ†’ `research` (if evaluating analytics libraries) -3. **Plan:** Load PM โ†’ `prd` (creates FRs/NFRs) -4. **Solution:** Load Architect โ†’ `create-architecture` โ†’ `create-epics-and-stories` โ†’ `implementation-readiness` -5. **Implement:** Sprint-based (10-15 stories) - - Load SM โ†’ `sprint-planning` - - Load SM โ†’ `create-story` per story - - Load DEV โ†’ `dev-story` per story -6. **Review:** Per story completion - -**Time:** 1-2 weeks - ---- - -### Scenario 4: Complex Integration (BMad Method) - -**Situation:** Add real-time collaboration to document editor - -**Track:** BMad Method - -**Workflow:** - -1. **Document:** Run `document-project` (Exhaustive if not documented) - **Mandatory** -2. **Analyze:** Load Analyst โ†’ `research` (WebSocket vs WebRTC vs CRDT) -3. **Plan:** Load PM โ†’ `prd` (creates FRs/NFRs) -4. **Solution:** - - Load Architect โ†’ `create-architecture` (extend for real-time layer) - - Load Architect โ†’ `create-epics-and-stories` - - Load Architect โ†’ `implementation-readiness` -5. **Implement:** Sprint-based (20-30 stories) - -**Time:** 3-6 weeks - ---- - -### Scenario 5: Enterprise Expansion (Enterprise Method) - -**Situation:** Add multi-tenancy to single-tenant SaaS platform - -**Track:** Enterprise Method - -**Workflow:** - -1. **Document:** Run `document-project` (Exhaustive) - **Mandatory** -2. **Analyze:** **Required** - - `brainstorm-project` - Explore multi-tenancy approaches - - `research` - Database sharding, tenant isolation, pricing - - `product-brief` - Strategic document -3. **Plan:** Load PM โ†’ `prd` (comprehensive FRs/NFRs) -4. **Solution:** - - `create-architecture` - Full system architecture including multi-tenancy design - - `create-epics-and-stories` - Create epics and stories - - `implementation-readiness` - Final validation before implementation -5. **Implement:** Phased sprint-based (50+ stories) - -**Time:** 3-6 months - ---- - -## Troubleshooting - -### AI Agents Lack Codebase Understanding - -**Symptoms:** - -- Suggestions don't align with existing patterns -- Ignores available components -- Doesn't reference existing code - -**Solution:** - -1. Run `document-project` with Deep scan -2. Verify `docs/index.md` exists -3. Check documentation completeness -4. Run deep-dive on specific areas if needed - -### Have Documentation But Agents Can't Find It - -**Symptoms:** - -- README.md, ARCHITECTURE.md exist -- AI agents ask questions already answered -- No `docs/index.md` file - -**Solution:** - -- **Quick fix:** Run `index-docs` task (2-5min) -- **Comprehensive:** Run `document-project` workflow (10-30min) - -### Integration Points Unclear - -**Symptoms:** - -- Not sure how to connect new code to existing -- Unsure which files to modify - -**Solution:** - -1. Ensure `document-project` captured existing architecture -2. Check story files created by `create-story` - should include integration context -3. In tech-spec/architecture - explicitly document: - - Which existing modules to modify - - What APIs/services to integrate with - - Data flow between new and existing code -4. Review architecture document for integration guidance - -### Existing Tests Breaking - -**Symptoms:** - -- Regression test failures -- Previously working functionality broken - -**Solution:** - -1. Review changes against existing patterns -2. Verify API contracts unchanged (unless intentionally versioned) -3. Run `test-review` workflow (TEA agent) -4. Add regression testing to DoD -5. Consider feature flags for gradual rollout - -### Inconsistent Patterns Being Introduced - -**Symptoms:** - -- New code style doesn't match existing -- Different architectural approach - -**Solution:** - -1. Check convention detection (Quick Spec Flow should detect patterns) -2. Review documentation - ensure `document-project` captured patterns -3. Use `create-story` workflow - it loads context from existing documentation -4. Add to code-review checklist: pattern adherence, convention consistency -5. Run retrospective to identify deviations early - ---- - -## Quick Reference - -### Commands by Phase - -```bash -# Documentation (If Needed) -# Analyst agent: -document-project # Create comprehensive docs (10-30min) -# OR load index-docs task for existing docs (2-5min) - -# Phase 1: Analysis (Optional) -# Analyst agent: -brainstorm-project # Explore solutions -research # Gather data -product-brief # Strategic planning (BMad Method/Enterprise only) - -# Phase 2: Planning (Required) -# PM agent: -tech-spec # Quick Flow track -prd # BMad Method/Enterprise tracks - -# Phase 3: Solutioning (BMad Method/Enterprise) -# Architect agent: -create-architecture # Create/extend architecture -create-epics-and-stories # Create epics and stories (after architecture) -implementation-readiness # Final validation - -# Phase 4: Implementation (All Tracks) -# SM agent: -sprint-planning # Initialize tracking -create-story # Create story - -# DEV agent: -dev-story # Implement -code-review # Review - -# SM agent: -retrospective # After epic -correct-course # If issues -``` - -### Key Files - -**Documentation Output:** - -- `docs/index.md` - **Master AI entry point (REQUIRED)** -- `docs/project-overview.md` -- `docs/architecture.md` -- `docs/source-tree-analysis.md` - -**Phase 1-4 Tracking:** - -- `docs/bmm-workflow-status.yaml` - Progress tracker - -**Phase 2 Planning:** - -- `docs/tech-spec.md` (Quick Flow track) -- `docs/PRD.md` (BMad Method/Enterprise tracks - FRs/NFRs only) - -**Phase 3 Solutioning:** - -- Epic breakdown (created after architecture) - -**Phase 3 Architecture:** - -- `docs/architecture.md` (BMad Method/Enterprise tracks) -- `docs/epics.md` + epic folders (from create-epics-and-stories) - -**Phase 4 Implementation:** - -- `docs/sprint-status.yaml` - **Single source of truth** -- `docs/epic-{n}-context.md` -- `docs/stories/{epic}-{story}-{title}.md` -- `docs/stories/{epic}-{story}-{title}-context.md` - -### Decision Flowchart - -```mermaid -flowchart TD - START([Brownfield Project]) - CHECK{Has docs/
index.md?} - - START --> CHECK - CHECK -->|No| DOC[document-project
Deep scan] - CHECK -->|Yes| TRACK{What Track?} - - DOC --> TRACK - - TRACK -->|Quick Flow| TS[tech-spec] - TRACK -->|BMad Method| PRD[prd โ†’ architecture] - TRACK -->|Enterprise| PRD2[prd โ†’ arch + security/devops] - - TS --> IMPL[Phase 4
Implementation] - PRD --> IMPL - PRD2 --> IMPL - - style START fill:#f9f,stroke:#333,stroke-width:2px,color:#000 - style DOC fill:#ffb,stroke:#333,stroke-width:2px,color:#000 - style IMPL fill:#bfb,stroke:#333,stroke-width:2px,color:#000 -``` - ---- - -## Prevention Tips - -**Avoid issues before they happen:** - -1. โœ… **Always run document-project for brownfield** - Saves context issues later -2. โœ… **Use fresh chats for complex workflows** - Prevents hallucinations -3. โœ… **Verify files exist before workflows** - Check PRD, epics, stories present -4. โœ… **Read agent menu first** - Confirm agent has the workflow -5. โœ… **Start with simpler track if unsure** - Easy to upgrade (Quick Flow โ†’ BMad Method) -6. โœ… **Keep status files updated** - Manual updates when needed -7. โœ… **Run retrospectives after epics** - Catch issues early -8. โœ… **Follow phase sequence** - Don't skip required phases - ---- - -## Related Documentation - -- **[Scale Adaptive System](./scale-adaptive-system.md)** - Understanding tracks and complexity -- **[Quick Spec Flow](./quick-spec-flow.md)** - Fast-track for Quick Flow -- **[Quick Start Guide](./quick-start.md)** - Getting started with BMM -- **[Glossary](./glossary.md)** - Key terminology -- **[FAQ](./faq.md)** - Common questions -- **[Workflow Documentation](./index.md#-workflow-guides)** - Complete workflow reference - ---- - -## Support and Resources - -**Community:** - -- [Discord](https://discord.gg/gk8jAdXWmj) - #general-dev, #bugs-issues -- [GitHub Issues](https://github.com/bmad-code-org/BMAD-METHOD/issues) -- [YouTube Channel](https://www.youtube.com/@BMadCode) - -**Documentation:** - -- **[Test Architect Guide](./test-architecture.md)** - Comprehensive testing strategy -- [BMM Module README](../README.md) - Complete module and workflow reference - ---- - -_Brownfield development is about understanding and respecting what exists while thoughtfully extending it._ diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md index a992d8d1..bf900a1f 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md @@ -29,6 +29,7 @@ Initialize the product brief workflow by detecting continuation state and settin - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md index 437ac5a5..04c2cbcb 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md @@ -25,6 +25,7 @@ Resume the product brief workflow from where it was left off, ensuring smooth co - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md index c28fa920..532f619d 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/product-brief-{{project_name}}-{{date}}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ Conduct comprehensive product vision discovery to define the core problem, solut - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md index 14072a36..d95c3045 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/product-brief-{{project_name}}-{{date}}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ Define target users with rich personas and map their key interactions with the p - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md index 9d6de6ea..fedd380d 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/product-brief-{{project_name}}-{{date}}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ Define comprehensive success metrics that include user success, business objecti - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md index 5b3bc6a5..fd1b8450 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/product-brief-{{project_name}}-{{date}}.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ Define MVP scope with clear boundaries and outline future vision through collabo - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md index fa586c9e..1a034739 100644 --- a/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +++ b/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md @@ -25,6 +25,7 @@ Complete the product brief workflow, update status files, and provide guidance o - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md index e8743d5a..27d056b1 100644 --- a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +++ b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A DOMAIN RESEARCH PLANNER, not content generator - ๐Ÿ’ฌ ACKNOWLEDGE and CONFIRM understanding of domain research goals - ๐Ÿ” This is SCOPE CONFIRMATION ONLY - no web research yet +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md index 941ed423..bb4cbb63 100644 --- a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +++ b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on market size, growth, and industry dynamics - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md index 4efc4a5b..0dc2de6e 100644 --- a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +++ b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on key players, market share, and competitive dynamics - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md index db7bcb71..e98010c7 100644 --- a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +++ b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on compliance requirements and regulatory landscape - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md index ba46ebb8..55e834cd 100644 --- a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +++ b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on emerging technologies and innovation patterns - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md index 8ce2eee5..1c7db8c0 100644 --- a/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +++ b/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on comprehensive synthesis and authoritative conclusions - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“„ PRODUCE COMPREHENSIVE DOCUMENT with narrative intro, TOC, and summary +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md index c1bf6262..a3772a9b 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md @@ -9,6 +9,7 @@ - ๐Ÿ” NO WEB RESEARCH in init - that's for later steps - ๐Ÿ“– CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete research - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md index 330dd2f0..f707a0a3 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md @@ -10,6 +10,7 @@ - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT - ๐Ÿ“– CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete research - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md index 4a0e9633..c6d7ea32 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A CUSTOMER INSIGHTS ANALYST, not content generator - ๐Ÿ’ฌ FOCUS on customer behavior and needs analysis - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md index a706f16d..f4d2ae6d 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on customer pain points, challenges, and unmet needs - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md index a8ee8335..21544335 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on customer decision processes and journey mapping - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md index ff265e20..d7387a4f 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A COMPETITIVE ANALYST, not content generator - ๐Ÿ’ฌ FOCUS on competitive landscape and market positioning - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md index 53b03f77..42d7d7d9 100644 --- a/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +++ b/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A MARKET RESEARCH STRATEGIST, not content generator - ๐Ÿ’ฌ FOCUS on strategic recommendations and actionable insights - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md index 1bbf9238..b286822d 100644 --- a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +++ b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A TECHNICAL RESEARCH PLANNER, not content generator - ๐Ÿ’ฌ ACKNOWLEDGE and CONFIRM understanding of technical research goals - ๐Ÿ” This is SCOPE CONFIRMATION ONLY - no web research yet +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md index 631bf1f1..78151eb0 100644 --- a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +++ b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on languages, frameworks, tools, and platforms - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md index 185c0881..68e2b70f 100644 --- a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +++ b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on APIs, protocols, and system interoperability - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md index 6567285a..426cc662 100644 --- a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +++ b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on architectural patterns and design decisions - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“ WRITE CONTENT IMMEDIATELY TO DOCUMENT +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md index 219b231b..7117d525 100644 --- a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +++ b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE AN IMPLEMENTATION ENGINEER, not content generator - ๐Ÿ’ฌ FOCUS on implementation approaches and technology adoption - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md index 6e83cc86..7dc28a2d 100644 --- a/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +++ b/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on comprehensive technical synthesis and authoritative conclusions - ๐Ÿ” WEB SEARCH REQUIRED - verify current facts against live sources - ๐Ÿ“„ PRODUCE COMPREHENSIVE DOCUMENT with narrative intro, TOC, and summary +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/1-analysis/research/workflow.md b/src/modules/bmm/workflows/1-analysis/research/workflow.md index 9af85058..64f62bef 100644 --- a/src/modules/bmm/workflows/1-analysis/research/workflow.md +++ b/src/modules/bmm/workflows/1-analysis/research/workflow.md @@ -145,7 +145,7 @@ After understanding the research topic and goals, identify the most appropriate ### Research Type Routing -Based on user selection, route to appropriate sub-workflow with the discovered topic using the following IF block sets of instructions. +Based on user selection, route to appropriate sub-workflow with the discovered topic using the following IF block sets of instructions. YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` #### If Market Research: diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md index 9d41ffa3..62969baf 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on initialization and setup only - don't look ahead to future steps - ๐Ÿšช DETECT existing workflow state and handle continuation properly +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md index 84933913..3d0f647e 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on understanding where we left off and continuing appropriately - ๐Ÿšช RESUME workflow from exact point where it was interrupted +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md index 1bc7a484..7acc5f84 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on understanding project context and user needs - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md index 60c267b8..593ca02a 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on defining the core user experience and platform - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -160,7 +161,7 @@ Show the generated core experience content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current core experience content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current core experience content - Process the enhanced experience insights that come back - Ask user: "Accept these improvements to the core experience definition? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md index be341744..97a5c1a2 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on defining desired emotional responses and user feelings - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -163,7 +164,7 @@ Show the generated emotional response content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current emotional response content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current emotional response content - Process the enhanced emotional insights that come back - Ask user: "Accept these improvements to the emotional response definition? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md index da6893be..2307fbdb 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on analyzing existing UX patterns and extracting inspiration - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -178,7 +179,7 @@ Show the generated inspiration analysis content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current inspiration analysis content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current inspiration analysis content - Process the enhanced pattern insights that come back - Ask user: "Accept these improvements to the inspiration analysis? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md index 8e0fbb24..f9375d19 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on choosing appropriate design system approach - ๐ŸŽฏ COLLABORATIVE decision-making, not recommendation-only +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -196,7 +197,7 @@ Show the generated design system content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current design system content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current design system content - Process the enhanced design system insights that come back - Ask user: "Accept these improvements to the design system decision? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md index 30767fac..c67f2126 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on defining the core interaction that defines the product - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -198,7 +199,7 @@ Show the generated defining experience content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current defining experience content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current defining experience content - Process the enhanced experience insights that come back - Ask user: "Accept these improvements to the defining experience? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md index edde8205..aa930104 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on establishing visual design foundation (colors, typography, spacing) - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -168,7 +169,7 @@ Show the generated visual foundation content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current visual foundation content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current visual foundation content - Process the enhanced visual insights that come back - Ask user: "Accept these improvements to the visual foundation? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md index 6b4fd581..f1cfceee 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on generating and evaluating design direction variations - ๐ŸŽฏ COLLABORATIVE exploration, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -168,7 +169,7 @@ Show the generated design direction content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current design direction content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current design direction content - Process the enhanced design insights that come back - Ask user: "Accept these improvements to the design direction? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md index b055044d..6bc9b55c 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on designing user flows and journey interactions - ๐ŸŽฏ COLLABORATIVE flow design, not assumption-based layouts +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -186,7 +187,7 @@ Show the generated user journey content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current user journey content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current user journey content - Process the enhanced journey insights that come back - Ask user: "Accept these improvements to the user journeys? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md index f2c35727..410bb5fe 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on defining component library strategy and custom components - ๐ŸŽฏ COLLABORATIVE component planning, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -192,7 +193,7 @@ Show the generated component strategy content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current component strategy content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current component strategy content - Process the enhanced component insights that come back - Ask user: "Accept these improvements to the component strategy? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md index 70786f2e..19fc6484 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on establishing consistency patterns for common UX situations - ๐ŸŽฏ COLLABORATIVE pattern definition, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -181,7 +182,7 @@ Show the generated UX patterns content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current UX patterns content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current UX patterns content - Process the enhanced pattern insights that come back - Ask user: "Accept these improvements to the UX patterns? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md index 1f4bc965..8c2e55bd 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ YOU ARE A UX FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on responsive design strategy and accessibility compliance - ๐ŸŽฏ COLLABORATIVE strategy definition, not assumption-based design +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -29,7 +30,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -208,7 +209,7 @@ Show the generated responsive and accessibility content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current responsive/accessibility content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current responsive/accessibility content - Process the enhanced insights that come back - Ask user: "Accept these improvements to the responsive/accessibility strategy? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md index 2b79b7d6..aa6e96b2 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md @@ -10,6 +10,7 @@ - ๐Ÿ“‹ FINALIZE document and update workflow status - ๐Ÿ’ฌ FOCUS on completion, validation, and next steps - ๐ŸŽฏ UPDATE workflow status files with completion information +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md index 3b2dc0d3..2ad717de 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +++ b/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md @@ -39,4 +39,5 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: ## EXECUTION -Load and execute `steps/step-01-init.md` to begin the UX design workflow. +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- Load and execute `steps/step-01-init.md` to begin the UX design workflow. diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md index 1747acce..7bafaae4 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md @@ -33,6 +33,7 @@ Initialize the PRD workflow by detecting continuation state, discovering input d - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md index 47859258..5f77a30e 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md @@ -25,6 +25,7 @@ Resume the PRD workflow from where it was left off, ensuring smooth continuation - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md index 6c8e6f1a..5127230b 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md @@ -16,7 +16,7 @@ projectTypesCSV: '{workflow_path}/project-types.csv' domainComplexityCSV: '{workflow_path}/domain-complexity.csv' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -36,6 +36,7 @@ Conduct comprehensive project discovery that leverages existing input documents - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md index f124ded0..d379f504 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/prd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on defining what winning looks like for this product - ๐ŸŽฏ COLLABORATIVE discovery, not assumption-based goal setting +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -49,7 +50,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -228,7 +229,7 @@ Show the generated content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current success criteria content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current success criteria content - Process the enhanced success metrics that come back - Ask user: "Accept these improvements to the success criteria? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md index d59a06cd..9b61a1bd 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/prd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on mapping ALL user types that interact with the system - ๐ŸŽฏ CRITICAL: No journey = no functional requirements = product doesn't exist +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -49,7 +50,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -222,7 +223,7 @@ Show the generated journey content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current journey content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current journey content - Process the enhanced journey insights that come back - Ask user: "Accept these improvements to the user journeys? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md index 7900dcfa..1140b035 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md @@ -15,7 +15,7 @@ outputFile: '{planning_artifacts}/prd.md' domainComplexityCSV: '{workflow_path}/domain-complexity.csv' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on domain-specific requirements and compliance needs - ๐ŸŽฏ OPTIONAL STEP: Only proceed if complexity_level = "high" from step-02 +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -52,7 +53,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -207,7 +208,7 @@ Show the generated domain content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current domain content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current domain content - Process the enhanced domain insights that come back - Ask user: "Accept these domain requirement improvements? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md index dbed28b4..28af51eb 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md @@ -15,7 +15,7 @@ outputFile: '{planning_artifacts}/prd.md' projectTypesCSV: '{workflow_path}/project-types.csv' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on detecting and exploring innovative aspects of the product - ๐ŸŽฏ OPTIONAL STEP: Only proceed if innovation signals are detected +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -52,7 +53,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -186,7 +187,7 @@ Show the generated innovation content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current innovation content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current innovation content - Process the enhanced innovation insights that come back - Ask user: "Accept these improvements to the innovation analysis? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md index 6ba603fc..3b992526 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md @@ -15,7 +15,7 @@ outputFile: '{planning_artifacts}/prd.md' projectTypesCSV: '{workflow_path}/project-types.csv' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -33,6 +33,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on project-type specific requirements and technical considerations - ๐ŸŽฏ DATA-DRIVEN: Use CSV configuration to guide discovery +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -52,7 +53,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -182,7 +183,7 @@ Show the generated project-type content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current project-type content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current project-type content - Process the enhanced technical insights that come back - Ask user: "Accept these improvements to the technical requirements? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md index db9ac59f..33f72f5c 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/prd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on strategic scope decisions that keep projects viable - ๐ŸŽฏ EMPHASIZE lean MVP thinking while preserving long-term vision +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -50,7 +51,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -243,7 +244,7 @@ Show the scoping decisions and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with current scoping analysis +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with current scoping analysis - Process enhanced scoping insights that come back - Ask user: "Accept these improvements to the scoping decisions? (y/n)" - If yes: Update content, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md index 18ce4b9b..d91e49b9 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/prd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on creating comprehensive capability inventory for the product - ๐ŸŽฏ CRITICAL: This is THE CAPABILITY CONTRACT for all downstream work +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -49,7 +50,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -209,7 +210,7 @@ Show the generated functional requirements and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current FR list +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current FR list - Process the enhanced capability coverage that comes back - Ask user: "Accept these additions to the functional requirements? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md index f4e99792..48422859 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/prd.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' --- @@ -30,6 +30,7 @@ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator - ๐Ÿ’ฌ FOCUS on quality attributes that matter for THIS specific product - ๐ŸŽฏ SELECTIVE: Only document NFRs that actually apply to the product +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -49,7 +50,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to this step's A/P/C menu - User accepts/rejects protocol changes before proceeding @@ -209,7 +210,7 @@ Show the generated NFR content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current NFR content +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current NFR content - Process the enhanced quality attribute insights that come back - Ask user: "Accept these improvements to the non-functional requirements? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md index bf8f4830..1104eaa0 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md @@ -25,6 +25,7 @@ outputFile: '{planning_artifacts}/prd.md' - ๐Ÿ“‹ FINALIZE document and update workflow status - ๐Ÿ’ฌ FOCUS on completion, next steps, and suggestions - ๐ŸŽฏ UPDATE workflow status files with completion information +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md b/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md index ed2b63e0..ef0ed523 100644 --- a/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +++ b/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md @@ -58,4 +58,6 @@ Load and read full config from {main_config} and resolve: ### 2. First Step EXECUTION + +YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`. Load, read the full file and then execute `steps/step-01-init.md` to begin the workflow. diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md index a1505844..5199316d 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md @@ -27,6 +27,7 @@ To discover, inventory, and organize all project documents, identifying duplicat - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md index 7a6664f4..4dafecca 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md @@ -27,6 +27,7 @@ To fully read and analyze the PRD document (whole or sharded) to extract all Fun - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md index b4a90c99..f11228e1 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md @@ -26,6 +26,7 @@ To validate that all Functional Requirements from the PRD are captured in the ep - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md index f531f24a..e26190f2 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md @@ -26,6 +26,7 @@ To check if UX documentation exists and validate that it aligns with PRD require - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md index 597f62a2..59a531d3 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md @@ -27,6 +27,7 @@ To validate epics and stories against the best practices defined in create-epics - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md index 204e6aeb..aa78c14f 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md @@ -25,6 +25,7 @@ To provide a comprehensive summary of all findings and give the report a final p - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ“– You are at the final step - complete the assessment - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md index 11ac56bb..ed9b890b 100644 --- a/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +++ b/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md @@ -48,6 +48,7 @@ web_bundle: false Load and read full config from {project-root}/_bmad/bmm/config.yaml and resolve: - `project_name`, `output_folder`, `planning_artifacts`, `user_name`, `communication_language`, `document_output_language` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md index 582a3153..93a83c70 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md @@ -3,7 +3,6 @@ ## MANDATORY EXECUTION RULES (READ FIRST): - ๐Ÿ›‘ NEVER generate content without user input - - ๐Ÿ“– CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding - โœ… ALWAYS treat this as collaborative discovery between architectural peers @@ -11,6 +10,7 @@ - ๐Ÿ’ฌ FOCUS on initialization and setup only - don't look ahead to future steps - ๐Ÿšช DETECT existing workflow state and handle continuation properly - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md index 38f87d34..6e800e7f 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on understanding current state and getting user confirmation - ๐Ÿšช HANDLE workflow resumption smoothly and transparently - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md index a92373f8..83195452 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on understanding project scope and requirements for architecture - ๐ŸŽฏ ANALYZE loaded documents, don't assume or generate requirements - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -30,7 +31,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -169,7 +170,7 @@ Show the generated content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with the current context analysis +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with the current context analysis - Process the enhanced architectural insights that come back - Ask user: "Accept these enhancements to the project context analysis? (y/n)" - If yes: Update content with improvements, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md index e0c2a0ec..8e83b9b1 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md @@ -10,6 +10,7 @@ - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed - ๐Ÿ“– CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete architecture - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -30,7 +31,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -276,7 +277,7 @@ Show the generated content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with current starter analysis +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with current starter analysis - Process enhanced insights about starter options or custom approaches - Ask user: "Accept these changes to the starter template evaluation? (y/n)" - If yes: Update content, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md index f457fc75..1b8ed9c2 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on making critical architectural decisions collaboratively - ๐ŸŒ ALWAYS search the web to verify current technology versions - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -31,7 +32,7 @@ This step will generate content and present choices for each decision category: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -263,7 +264,7 @@ Show the generated decisions content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with specific decision categories +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with specific decision categories - Process enhanced insights about particular decisions - Ask user: "Accept these enhancements to the architectural decisions? (y/n)" - If yes: Update content, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md index f3eba0ad..921d504d 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on patterns that prevent AI agent implementation conflicts - ๐ŸŽฏ EMPHASIZE what agents could decide DIFFERENTLY if not specified - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -31,7 +32,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -304,7 +305,7 @@ Show the generated patterns content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with current patterns +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with current patterns - Process enhanced consistency rules that come back - Ask user: "Accept these additional pattern refinements? (y/n)" - If yes: Update content, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md index 2c6da369..01158cc5 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on defining complete project structure and clear boundaries - ๐Ÿ—บ๏ธ MAP requirements/epics to architectural components - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -31,7 +32,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -324,7 +325,7 @@ Show the generated project structure content and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with current project structure +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with current project structure - Process enhanced organizational insights that come back - Ask user: "Accept these changes to the project structure? (y/n)" - If yes: Update content, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md index b9a7d529..e841825a 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on validating architectural coherence and completeness - โœ… VALIDATE all requirements are covered by architectural decisions - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -31,7 +32,7 @@ This step will generate content and present choices: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode/workflow.md - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding @@ -304,7 +305,7 @@ Show the validation results and present choices: #### If 'A' (Advanced Elicitation): -- Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml with validation issues +- Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml with validation issues - Process enhanced solutions for complex concerns - Ask user: "Accept these architectural improvements? (y/n)" - If yes: Update content, then return to A/P/C menu diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md index d78262dd..fd73cb87 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md @@ -11,6 +11,7 @@ - ๐Ÿ’ฌ FOCUS on successful workflow completion and implementation handoff - ๐ŸŽฏ PROVIDE clear next steps for implementation phase - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/3-solutioning/create-architecture/workflow.md b/src/modules/bmm/workflows/3-solutioning/create-architecture/workflow.md index 12efcbb1..da437202 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-architecture/workflow.md +++ b/src/modules/bmm/workflows/3-solutioning/create-architecture/workflow.md @@ -33,6 +33,7 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: - `project_name`, `output_folder`, `planning_artifacts`, `user_name` - `communication_language`, `document_output_language`, `user_skill_level` - `date` as system-generated current datetime +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Paths diff --git a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md index 2ea0d1b1..641c7081 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +++ b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md @@ -13,7 +13,7 @@ outputFile: '{planning_artifacts}/epics.md' epicsTemplate: '{workflow_path}/templates/epics-template.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -34,6 +34,7 @@ To validate that all required input documents exist and extract all requirements - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: @@ -90,7 +91,7 @@ Search for required documents using these patterns (sharded means a large docume 1. `{planning_artifacts}/*ux*.md` (whole document) 2. `{planning_artifacts}/*ux*/index.md` (sharded version) -Before proceeding, Ask the user if there are any other documents, or if what you have found is all there is [Yes/No]. Wait for user confirmation. Once confirmed, create the {outputFile} from the {epicsTemplate} and in the front matter list the files in the array of `inputDocuments: []`. +Before proceeding, Ask the user if there are any other documents to include for analysis, and if anything found should be excluded. Wait for user confirmation. Once confirmed, create the {outputFile} from the {epicsTemplate} and in the front matter list the files in the array of `inputDocuments: []`. ### 3. Extract Functional Requirements (FRs) diff --git a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md index ca4c85de..4527f5f3 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +++ b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/epics.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -33,6 +33,7 @@ To design and get approval for the epics_list that will organize all requirement - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: When loading next step with 'C', ensure entire file is read - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md index b018bd5b..6e560e7c 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +++ b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md @@ -12,7 +12,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/epics.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -33,6 +33,7 @@ To generate all epics with their stories based on the approved epics_list, follo - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: Process epics sequentially - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md index 252a9ee1..309bef8c 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +++ b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md @@ -11,7 +11,7 @@ workflowFile: '{workflow_path}/workflow.md' outputFile: '{planning_artifacts}/epics.md' # Task References -advancedElicitationTask: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' # Template References @@ -32,6 +32,7 @@ To validate complete coverage of all requirements and ensure stories are ready f - ๐Ÿ“– CRITICAL: Read the complete step file before taking any action - ๐Ÿ”„ CRITICAL: Process validation sequentially without skipping - ๐Ÿ“‹ YOU ARE A FACILITATOR, not a content generator +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Role Reinforcement: diff --git a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md index dee834f5..b6906dc7 100644 --- a/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +++ b/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md @@ -52,6 +52,7 @@ This uses **step-file architecture** for disciplined execution: Load and read full config from {project-root}/_bmad/bmm/config.yaml and resolve: - `project_name`, `output_folder`, `planning_artifacts`, `user_name`, `communication_language`, `document_output_language` +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step EXECUTION diff --git a/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml b/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml index e57a940d..e5649559 100644 --- a/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +++ b/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml @@ -12,6 +12,8 @@ Read EVERY file in the File List - verify implementation against story requirements Tasks marked complete but not done = CRITICAL finding Acceptance Criteria not implemented = HIGH severity finding + Do not review files that are not part of the application's source code. Always exclude the _bmad/ and _bmad-output/ folders from the review. Always exclude IDE and CLI configuration folders like .cursor/ and .windsurf/ and .claude/ + Use provided {{story_path}} or ask user which story file to review diff --git a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md index 4964abd4..6bff0dca 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md @@ -19,6 +19,7 @@ wipFile: '{implementation_artifacts}/tech-spec-wip.md' - MUST NOT optimize sequence. - MUST follow exact instructions. - MUST NOT look ahead to future steps. +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## CONTEXT: diff --git a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md index a431050c..b62f6bfe 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-02-investigate.md @@ -17,6 +17,7 @@ wipFile: '{implementation_artifacts}/tech-spec-wip.md' - MUST NOT optimize sequence. - MUST follow exact instructions. - MUST NOT generate the full spec yet (that's Step 3). +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## CONTEXT: diff --git a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md index 5fbe87d0..999951fd 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-03-generate.md @@ -17,6 +17,7 @@ wipFile: '{implementation_artifacts}/tech-spec-wip.md' - MUST NOT optimize sequence. - MUST follow exact instructions. - MUST NOT implement anything - just document. +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## CONTEXT: diff --git a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md index c8c41f69..89d7333f 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md @@ -15,6 +15,7 @@ wipFile: '{implementation_artifacts}/tech-spec-wip.md' - MUST NOT skip steps. - MUST NOT optimize sequence. - MUST follow exact instructions. +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## CONTEXT: diff --git a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md index ca28929c..00ca0e47 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.md @@ -5,7 +5,7 @@ main_config: '{project-root}/_bmad/bmm/config.yaml' web_bundle: true # Checkpoint handler paths -advanced_elicitation: '{project-root}/_bmad/core/tasks/advanced-elicitation.xml' +advanced_elicitation: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml' party_mode_exec: '{project-root}/_bmad/core/workflows/party-mode/workflow.md' quick_dev_workflow: '{project-root}/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md' --- @@ -72,6 +72,7 @@ Load and read full config from `{main_config}` and resolve: - `project_name`, `output_folder`, `planning_artifacts`, `implementation_artifacts`, `user_name` - `communication_language`, `document_output_language`, `user_skill_level` - `date` as system-generated current datetime +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### 2. First Step Execution diff --git a/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md b/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md index 33c4b060..8f33d9cc 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md @@ -30,6 +30,7 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: - `user_name`, `communication_language`, `user_skill_level` - `output_folder`, `planning_artifacts`, `implementation_artifacts` - `date` as system-generated current datetime +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Paths @@ -42,7 +43,7 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: - `create_tech_spec_workflow` = `{project-root}/_bmad/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml` - `workflow_init` = `{project-root}/_bmad/bmm/workflows/workflow-status/init/workflow.yaml` - `party_mode_exec` = `{project-root}/_bmad/core/workflows/party-mode/workflow.md` -- `advanced_elicitation` = `{project-root}/_bmad/core/tasks/advanced-elicitation.xml` +- `advanced_elicitation` = `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` --- diff --git a/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md b/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md index b14a13dc..fa36993d 100644 --- a/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +++ b/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md @@ -8,6 +8,7 @@ - ๐Ÿ’ฌ FOCUS on discovering existing project context and technology stack - ๐ŸŽฏ IDENTIFY critical implementation rules that AI agents need - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md b/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md index 587fb741..c2b428c5 100644 --- a/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +++ b/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md @@ -8,6 +8,7 @@ - ๐Ÿ’ฌ FOCUS on unobvious rules that AI agents need to be reminded of - ๐ŸŽฏ KEEP CONTENT LEAN - optimize for LLM context efficiency - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: @@ -28,7 +29,7 @@ This step will generate content and present choices for each rule category: ## PROTOCOL INTEGRATION: -- When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml +- When 'A' selected: Execute {project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed - User accepts/rejects protocol changes before proceeding diff --git a/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md b/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md index d7da5df7..85dd4db7 100644 --- a/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md +++ b/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md @@ -8,6 +8,7 @@ - ๐Ÿ’ฌ FOCUS on finalizing a lean, LLM-optimized project context - ๐ŸŽฏ ENSURE all critical rules are captured and actionable - โš ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ## EXECUTION PROTOCOLS: diff --git a/src/modules/bmm/workflows/generate-project-context/workflow.md b/src/modules/bmm/workflows/generate-project-context/workflow.md index db86e620..3f626d65 100644 --- a/src/modules/bmm/workflows/generate-project-context/workflow.md +++ b/src/modules/bmm/workflows/generate-project-context/workflow.md @@ -32,6 +32,7 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: - `project_name`, `output_folder`, `user_name` - `communication_language`, `document_output_language`, `user_skill_level` - `date` as system-generated current datetime +- โœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` ### Paths diff --git a/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml b/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml index 5064030d..738cc9c0 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml @@ -7,116 +7,97 @@ field_type: "brownfield" description: "Enterprise-grade planning for complex brownfield additions with extended requirements" phases: - - prerequisite: true + - phase: 0 name: "Documentation" conditional: "if_undocumented" - note: "NOT a phase - prerequisite for brownfield without docs (nearly mandatory for enterprise)" + note: "Prerequisite for brownfield without docs" workflows: - id: "document-project" required: true + workflow: "{project-root}/_bmad/bmm/workflows/document-project/workflow.yaml" agent: "analyst" - command: "document-project" + command: "/bmad:bmm:workflows:document-project" output: "Comprehensive project documentation" - purpose: "Understand existing codebase - critical for enterprise brownfield" - - - phase: 0 - name: "Discovery (Required)" - required: true - note: "Analysis phase required for enterprise projects" + purpose: "Understand existing codebase before planning" + - phase: 1 + name: "Analysis (Optional)" + optional: true + note: "User-selected during workflow-init" workflows: - id: "brainstorm-project" + exec: "{project-root}/_bmad/core/workflows/brainstorming/workflow.md" optional: true agent: "analyst" - command: "brainstorm-project" + command: "/bmad:bmm:workflows:brainstorming" + included_by: "user_choice" note: "Uses core brainstorming workflow with project context template" - included_by: "user_choice" - - id: "research" - recommended: true - agent: "analyst" - command: "research" - included_by: "user_choice" - note: "Highly recommended - compliance, integration, risk research" - - - id: "product-brief" + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/research/workflow.md" optional: true agent: "analyst" - command: "product-brief" + command: "/bmad:bmm:workflows:research" included_by: "user_choice" - note: "Optional for brownfield enterprise" - - - phase: 1 + note: "Can have multiple research workflows" + - id: "product-brief" + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md" + optional: true + agent: "analyst" + command: "/bmad:bmm:workflows:create-product-brief" + included_by: "user_choice" + note: "Recommended for greenfield Method projects" + - phase: 2 name: "Planning" required: true workflows: - id: "prd" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/prd/workflow.md" required: true agent: "pm" - command: "prd" - output: "Enterprise PRD with compliance requirements" - note: "Must address existing system constraints and migration strategy" - + command: "/bmad:bmm:workflows:create-prd" + output: "Product Requirements Document with FRs and NFRs" - id: "create-ux-design" - recommended: true + conditional: "if_has_ui" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md" agent: "ux-designer" - command: "create-ux-design" - note: "Recommended - must integrate with existing UX patterns" - - - phase: 2 + command: "/bmad:bmm:workflows:create-ux-design" + note: "Determined after PRD - user/agent decides if needed" + - phase: 3 name: "Solutioning" required: true workflows: - id: "create-architecture" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md" agent: "architect" - command: "create-architecture" - output: "Integration architecture with enterprise considerations" - note: "Distills brownfield context + adds security/scalability/compliance design" - + command: "/bmad:bmm:workflows:create-architecture" + output: "System architecture document" + note: "Complete system design for greenfield projects" - id: "create-epics-and-stories" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md" agent: "pm" - command: "create-epics-and-stories" + command: "/bmad:bmm:workflows:create-epics-and-stories" note: "Required: Break down PRD into implementable epics and stories with full context (PRD + UX + Architecture)" - - id: "test-design" - required: true + optional: true + workflow: "{project-root}/_bmad/bmm/workflows/testarch/test-design/workflow.yaml" agent: "tea" - command: "test-design" + command: "/bmad:bmm:workflows:test-design" output: "System-level testability review" - note: "Enterprise requires testability validation - auto-detects system-level mode" - - # - id: "create-security-architecture" - # optional: true - # agent: "architect" - # command: "create-security-architecture" - # output: "Security architecture for brownfield integration" - # note: "Future workflow - optional extended enterprise workflow for threat model, auth integration, audit requirements" - - # - id: "create-devops-strategy" - # optional: true - # agent: "architect" - # command: "create-devops-strategy" - # output: "DevOps strategy for brownfield deployment" - # note: "Future workflow - optional extended enterprise workflow for CI/CD integration, deployment strategy, monitoring" - - - id: "validate-architecture" - recommended: true - agent: "architect" - command: "validate-architecture" - + note: "Testability assessment before gate check - auto-detects system-level mode" - id: "implementation-readiness" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md" agent: "architect" - command: "implementation-readiness" + command: "/bmad:bmm:workflows:implementation-readiness" note: "Validates PRD + Architecture + Epics + UX (optional)" - - - phase: 3 + - phase: 4 name: "Implementation" required: true workflows: - id: "sprint-planning" required: true + workflow: "{project-root}/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml" agent: "sm" - command: "sprint-planning" - note: "Enterprise brownfield requires careful phasing and feature flags" + command: "/bmad:bmm:workflows:sprint-planning" + note: "Creates sprint plan - subsequent work tracked there" diff --git a/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml b/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml index 94757114..31d35244 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml @@ -7,104 +7,94 @@ field_type: "greenfield" description: "Complete enterprise-grade planning with security, devops, and test strategy" phases: - - phase: 0 - name: "Discovery (Required)" - required: true - note: "Analysis phase required for enterprise projects" + - phase: 1 + name: "Analysis (Optional)" + optional: true + note: "User-selected during workflow-init" workflows: - id: "brainstorm-project" + exec: "{project-root}/_bmad/core/workflows/brainstorming/workflow.md" optional: true agent: "analyst" - command: "brainstorm-project" - note: "Uses core brainstorming workflow with project context template" + command: "/bmad:bmm:workflows:brainstorming" included_by: "user_choice" + note: "Uses core brainstorming workflow with project context template" - id: "research" - recommended: true + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/research/workflow.md" + optional: true agent: "analyst" - command: "research" + command: "/bmad:bmm:workflows:research" included_by: "user_choice" - note: "Highly recommended for enterprise - domain and compliance research" + note: "Can have multiple research workflows" - id: "product-brief" - recommended: true + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md" + optional: true agent: "analyst" - command: "product-brief" + command: "/bmad:bmm:workflows:create-product-brief" included_by: "user_choice" - note: "Recommended for strategic alignment" + note: "Recommended for greenfield Method projects" - - phase: 1 + - phase: 2 name: "Planning" required: true workflows: - id: "prd" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/prd/workflow.md" required: true agent: "pm" - command: "prd" - output: "Comprehensive Product Requirements Document" - note: "Enterprise-level requirements with compliance considerations" + command: "/bmad:bmm:workflows:create-prd" + output: "Product Requirements Document with FRs and NFRs" - id: "create-ux-design" - recommended: true + conditional: "if_has_ui" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md" agent: "ux-designer" - command: "create-ux-design" - note: "Highly recommended for enterprise - design system and patterns" + command: "/bmad:bmm:workflows:create-ux-design" + note: "Determined after PRD - user/agent decides if needed" - - phase: 2 + - phase: 3 name: "Solutioning" required: true workflows: - id: "create-architecture" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md" agent: "architect" - command: "create-architecture" - output: "Enterprise-grade system architecture" - note: "Includes scalability, multi-tenancy, integration architecture" - - - id: "test-design" - required: true - agent: "tea" - command: "test-design" - output: "System-level testability review" - note: "Enterprise requires testability validation - auto-detects system-level mode" - - # - id: "create-security-architecture" - # optional: true - # agent: "architect" - # command: "create-security-architecture" - # output: "Security architecture and threat model" - # note: "Future workflow - optional extended enterprise workflow for security design, auth, compliance" - - # - id: "create-devops-strategy" - # optional: true - # agent: "architect" - # command: "create-devops-strategy" - # output: "DevOps pipeline and infrastructure plan" - # note: "Future workflow - optional extended enterprise workflow for CI/CD, deployment, monitoring" - - - id: "validate-architecture" - recommended: true - agent: "architect" - command: "validate-architecture" + command: "/bmad:bmm:workflows:create-architecture" + output: "System architecture document" + note: "Complete system design for greenfield projects" - id: "create-epics-and-stories" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md" agent: "pm" - command: "create-epics-and-stories" + command: "/bmad:bmm:workflows:create-epics-and-stories" note: "Required: Break down PRD into implementable epics and stories with full context (PRD + UX + Architecture)" + - id: "test-design" + optional: true + workflow: "{project-root}/_bmad/bmm/workflows/testarch/test-design/workflow.yaml" + agent: "tea" + command: "/bmad:bmm:workflows:test-design" + output: "System-level testability review" + note: "Testability assessment before gate check - auto-detects system-level mode" + - id: "implementation-readiness" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md" agent: "architect" - command: "implementation-readiness" + command: "/bmad:bmm:workflows:implementation-readiness" note: "Validates PRD + Architecture + Epics + UX (optional)" - - phase: 3 + - phase: 4 name: "Implementation" required: true workflows: - id: "sprint-planning" required: true + workflow: "{project-root}/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml" agent: "sm" - command: "sprint-planning" - note: "Creates sprint plan - enterprise projects may require phased rollout" + command: "/bmad:bmm:workflows:sprint-planning" + note: "Creates sprint plan - subsequent work tracked there" diff --git a/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml b/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml index 67ee6cd0..fa3aad67 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml @@ -7,100 +7,97 @@ field_type: "brownfield" description: "Complete product and system design for complex brownfield work" phases: - - prerequisite: true + - phase: 0 name: "Documentation" conditional: "if_undocumented" - note: "NOT a phase - prerequisite for brownfield without docs" + note: "Prerequisite for brownfield without docs" workflows: - id: "document-project" required: true + workflow: "{project-root}/_bmad/bmm/workflows/document-project/workflow.yaml" agent: "analyst" - command: "document-project" + command: "/bmad:bmm:workflows:document-project" output: "Comprehensive project documentation" purpose: "Understand existing codebase before planning" - - - phase: 0 - name: "Discovery (Optional)" + - phase: 1 + name: "Analysis (Optional)" optional: true note: "User-selected during workflow-init" workflows: - id: "brainstorm-project" + exec: "{project-root}/_bmad/core/workflows/brainstorming/workflow.md" optional: true agent: "analyst" - command: "brainstorm-project" + command: "/bmad:bmm:workflows:brainstorming" included_by: "user_choice" note: "Uses core brainstorming workflow with project context template" - - id: "research" + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/research/workflow.md" optional: true agent: "analyst" - command: "research" + command: "/bmad:bmm:workflows:research" included_by: "user_choice" - + note: "Can have multiple research workflows" - id: "product-brief" + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md" optional: true agent: "analyst" - command: "product-brief" + command: "/bmad:bmm:workflows:create-product-brief" included_by: "user_choice" - note: "Optional for brownfield, less common than greenfield" - - - phase: 1 + note: "Recommended for greenfield Method projects" + - phase: 2 name: "Planning" required: true workflows: - id: "prd" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/prd/workflow.md" required: true agent: "pm" - command: "prd" - output: "PRD focused on new features/changes" - note: "Must consider existing system constraints" - + command: "/bmad:bmm:workflows:create-prd" + output: "Product Requirements Document with FRs and NFRs" - id: "create-ux-design" conditional: "if_has_ui" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md" agent: "ux-designer" - command: "create-ux-design" - - - phase: 2 + command: "/bmad:bmm:workflows:create-ux-design" + note: "Determined after PRD - user/agent decides if needed" + - phase: 3 name: "Solutioning" required: true workflows: - id: "create-architecture" - recommended: true + required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md" agent: "architect" - command: "create-architecture" - output: "Integration architecture - solution design for THIS project" - note: "HIGHLY RECOMMENDED: Distills massive brownfield context into focused solution design. Prevents agent confusion." - + command: "/bmad:bmm:workflows:create-architecture" + output: "System architecture document" + note: "Complete system design for greenfield projects" - id: "create-epics-and-stories" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md" agent: "pm" - command: "create-epics-and-stories" + command: "/bmad:bmm:workflows:create-epics-and-stories" note: "Required: Break down PRD into implementable epics and stories with full context (PRD + UX + Architecture)" - - id: "test-design" - recommended: true + optional: true + workflow: "{project-root}/_bmad/bmm/workflows/testarch/test-design/workflow.yaml" agent: "tea" - command: "test-design" + command: "/bmad:bmm:workflows:test-design" output: "System-level testability review" note: "Testability assessment before gate check - auto-detects system-level mode" - - - id: "validate-architecture" - optional: true - agent: "architect" - command: "validate-architecture" - - id: "implementation-readiness" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md" agent: "architect" - command: "implementation-readiness" + command: "/bmad:bmm:workflows:implementation-readiness" note: "Validates PRD + Architecture + Epics + UX (optional)" - - - phase: 3 + - phase: 4 name: "Implementation" required: true workflows: - id: "sprint-planning" required: true + workflow: "{project-root}/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml" agent: "sm" - command: "sprint-planning" - note: "Creates sprint plan with stories" + command: "/bmad:bmm:workflows:sprint-planning" + note: "Creates sprint plan - subsequent work tracked there" diff --git a/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml b/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml index aca183e9..2cb2195e 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml @@ -7,90 +7,94 @@ field_type: "greenfield" description: "Complete product and system design methodology for greenfield projects" phases: - - phase: 0 - name: "Discovery (Optional)" + - phase: 1 + name: "Analysis (Optional)" optional: true note: "User-selected during workflow-init" workflows: - id: "brainstorm-project" + exec: "{project-root}/_bmad/core/workflows/brainstorming/workflow.md" optional: true agent: "analyst" - command: "brainstorm-project" + command: "/bmad:bmm:workflows:brainstorming" included_by: "user_choice" note: "Uses core brainstorming workflow with project context template" - id: "research" + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/research/workflow.md" optional: true agent: "analyst" - command: "research" + command: "/bmad:bmm:workflows:research" included_by: "user_choice" note: "Can have multiple research workflows" - id: "product-brief" + exec: "{project-root}/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md" optional: true agent: "analyst" - command: "product-brief" + command: "/bmad:bmm:workflows:create-product-brief" included_by: "user_choice" note: "Recommended for greenfield Method projects" - - phase: 1 + - phase: 2 name: "Planning" required: true workflows: - id: "prd" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/prd/workflow.md" required: true agent: "pm" - command: "prd" + command: "/bmad:bmm:workflows:create-prd" output: "Product Requirements Document with FRs and NFRs" - id: "create-ux-design" conditional: "if_has_ui" + exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md" agent: "ux-designer" - command: "create-ux-design" + command: "/bmad:bmm:workflows:create-ux-design" note: "Determined after PRD - user/agent decides if needed" - - phase: 2 + - phase: 3 name: "Solutioning" required: true workflows: - id: "create-architecture" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md" agent: "architect" - command: "create-architecture" + command: "/bmad:bmm:workflows:create-architecture" output: "System architecture document" note: "Complete system design for greenfield projects" - id: "create-epics-and-stories" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md" agent: "pm" - command: "create-epics-and-stories" + command: "/bmad:bmm:workflows:create-epics-and-stories" note: "Required: Break down PRD into implementable epics and stories with full context (PRD + UX + Architecture)" - id: "test-design" - recommended: true + optional: true + workflow: "{project-root}/_bmad/bmm/workflows/testarch/test-design/workflow.yaml" agent: "tea" - command: "test-design" + command: "/bmad:bmm:workflows:test-design" output: "System-level testability review" note: "Testability assessment before gate check - auto-detects system-level mode" - - id: "validate-architecture" - optional: true - agent: "architect" - command: "validate-architecture" - note: "Quality check for architecture completeness" - - id: "implementation-readiness" required: true + exec: "{project-root}/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md" agent: "architect" - command: "implementation-readiness" + command: "/bmad:bmm:workflows:implementation-readiness" note: "Validates PRD + Architecture + Epics + UX (optional)" - - phase: 3 + - phase: 4 name: "Implementation" required: true workflows: - id: "sprint-planning" required: true + workflow: "{project-root}/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml" agent: "sm" - command: "sprint-planning" + command: "/bmad:bmm:workflows:sprint-planning" note: "Creates sprint plan - subsequent work tracked there" diff --git a/src/modules/cis/agents/brainstorming-coach.agent.yaml b/src/modules/cis/agents/brainstorming-coach.agent.yaml index fa42d852..2058c789 100644 --- a/src/modules/cis/agents/brainstorming-coach.agent.yaml +++ b/src/modules/cis/agents/brainstorming-coach.agent.yaml @@ -7,6 +7,7 @@ agent: title: Elite Brainstorming Specialist icon: ๐Ÿง  module: cis + hasSidecar: false persona: role: Master Brainstorming Facilitator + Innovation Catalyst diff --git a/src/modules/cis/agents/creative-problem-solver.agent.yaml b/src/modules/cis/agents/creative-problem-solver.agent.yaml index 8c8b18f8..ec9b5d84 100644 --- a/src/modules/cis/agents/creative-problem-solver.agent.yaml +++ b/src/modules/cis/agents/creative-problem-solver.agent.yaml @@ -7,6 +7,7 @@ agent: title: Master Problem Solver icon: ๐Ÿ”ฌ module: cis + hasSidecar: false persona: role: Systematic Problem-Solving Expert + Solutions Architect diff --git a/src/modules/cis/agents/design-thinking-coach.agent.yaml b/src/modules/cis/agents/design-thinking-coach.agent.yaml index 79621c8e..f71ecccc 100644 --- a/src/modules/cis/agents/design-thinking-coach.agent.yaml +++ b/src/modules/cis/agents/design-thinking-coach.agent.yaml @@ -7,6 +7,7 @@ agent: title: Design Thinking Maestro icon: ๐ŸŽจ module: cis + hasSidecar: false persona: role: Human-Centered Design Expert + Empathy Architect diff --git a/src/modules/cis/agents/innovation-strategist.agent.yaml b/src/modules/cis/agents/innovation-strategist.agent.yaml index 8bb3517d..39dadf73 100644 --- a/src/modules/cis/agents/innovation-strategist.agent.yaml +++ b/src/modules/cis/agents/innovation-strategist.agent.yaml @@ -7,6 +7,7 @@ agent: title: Disruptive Innovation Oracle icon: โšก module: cis + hasSidecar: false persona: role: Business Model Innovator + Strategic Disruption Expert diff --git a/src/modules/cis/agents/presentation-master.agent.yaml b/src/modules/cis/agents/presentation-master.agent.yaml index 8a2e2b3f..96aa5935 100644 --- a/src/modules/cis/agents/presentation-master.agent.yaml +++ b/src/modules/cis/agents/presentation-master.agent.yaml @@ -7,6 +7,7 @@ agent: title: Visual Communication + Presentation Expert icon: ๐ŸŽจ module: cis + hasSidecar: false persona: role: Visual Communication Expert + Presentation Designer + Educator diff --git a/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml b/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml index d8113382..46396e0f 100644 --- a/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml +++ b/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml @@ -10,6 +10,7 @@ agent: name: Actions String title: Actions String icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml b/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml index 1ebbc192..3a87232c 100644 --- a/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml +++ b/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Action String title: Empty Action String icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml b/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml index 946b369f..0194c402 100644 --- a/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Command Target title: Empty Command icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml b/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml index ccb50dbc..888e2d36 100644 --- a/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml @@ -10,6 +10,7 @@ agent: name: No Command Target title: No Command icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml index 551371eb..62fbb313 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml @@ -10,6 +10,7 @@ agent: name: CamelCase Trigger title: CamelCase icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml index 7d511299..07a550f4 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml @@ -10,6 +10,7 @@ agent: name: Invalid Format title: Invalid Format Test icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml index ec8578de..46febb32 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml @@ -10,6 +10,7 @@ agent: name: Old Format title: Old Format Test icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml index bbc03b8c..8b5cf7c8 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml @@ -10,6 +10,7 @@ agent: name: Duplicate Triggers title: Duplicate icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml index 37c3c572..c6d9fbfa 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Trigger title: Empty icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml index 856b6c84..5e958596 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml @@ -10,6 +10,7 @@ agent: name: Asterisk Trigger title: Asterisk icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml index 7cee63d1..7dc17793 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml @@ -10,6 +10,7 @@ agent: name: Snake Case Trigger title: Snake Case icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml b/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml index b665ed43..b64a406d 100644 --- a/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml @@ -10,6 +10,7 @@ agent: name: Spaces Trigger title: Spaces icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml b/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml index 3a9d5e7e..b5be54ef 100644 --- a/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Menu title: Empty Menu icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml b/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml index 1816f737..55e7789a 100644 --- a/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml +++ b/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml @@ -10,6 +10,7 @@ agent: name: Missing Menu title: Missing Menu icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml b/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml index ede4aed5..10f283d5 100644 --- a/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml +++ b/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml @@ -10,6 +10,7 @@ agent: name: Extra Fields title: Extra Fields icon: โŒ + hasSidecar: false unknown_field: This is not allowed another_extra: Also invalid diff --git a/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml b/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml index 0a09d7e2..4033e690 100644 --- a/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml +++ b/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Principles title: Empty Principles icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml b/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml index 73a6393f..9bba71bb 100644 --- a/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml +++ b/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Principle String title: Empty Principle icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml b/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml index 60c9ae6e..73365a5e 100644 --- a/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml +++ b/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml @@ -10,6 +10,7 @@ agent: name: Extra Persona Fields title: Extra Persona icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml b/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml index 17e99767..3dbd6c45 100644 --- a/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml +++ b/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml @@ -10,6 +10,7 @@ agent: name: Missing Role title: Missing Role icon: โŒ + hasSidecar: false persona: identity: Test identity diff --git a/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml b/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml index 1bb4a191..3248edca 100644 --- a/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml +++ b/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml @@ -10,6 +10,7 @@ agent: name: Empty Content title: Empty Content icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml b/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml index d90173c5..aeccee29 100644 --- a/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml +++ b/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml @@ -10,6 +10,7 @@ agent: name: Extra Prompt Fields title: Extra Fields icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml b/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml index 196660e7..7f31723b 100644 --- a/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml +++ b/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml @@ -10,6 +10,7 @@ agent: name: Prompt Missing Content title: Missing Content icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml b/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml index 764cc221..f05f054a 100644 --- a/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml +++ b/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml @@ -10,6 +10,7 @@ agent: name: Prompt Missing ID title: Missing ID icon: โŒ + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml b/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml index be8cac4e..cc888a51 100644 --- a/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml +++ b/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml @@ -10,6 +10,7 @@ agent: name: Extra Test Agent title: Extra Test icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml b/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml index 9f2502da..dc73477f 100644 --- a/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml +++ b/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml @@ -7,6 +7,7 @@ agent: name: Empty Critical Actions title: Empty Critical Actions icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with empty critical actions diff --git a/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml b/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml index 8bd30141..2df52f7f 100644 --- a/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml +++ b/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml @@ -7,6 +7,7 @@ agent: name: No Critical Actions title: No Critical Actions icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent without critical actions diff --git a/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml b/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml index fca1acbe..198bc835 100644 --- a/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml +++ b/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml @@ -7,6 +7,7 @@ agent: name: Valid Critical Actions title: Valid Critical Actions icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with critical actions diff --git a/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml b/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml index eaa2a891..959085cb 100644 --- a/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +++ b/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml @@ -7,6 +7,7 @@ agent: name: All Command Types title: All Commands icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with all command types diff --git a/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml b/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml index fe5396c8..945722b5 100644 --- a/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +++ b/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml @@ -7,6 +7,7 @@ agent: name: Multiple Commands title: Multiple Commands icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with multiple command targets diff --git a/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml b/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml index 06d59e99..f43d9e1b 100644 --- a/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml +++ b/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml @@ -7,6 +7,7 @@ agent: name: Compound Triggers title: Compound Triggers Test icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with compound triggers diff --git a/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml b/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml index f24e0eac..06184350 100644 --- a/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml +++ b/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml @@ -7,6 +7,7 @@ agent: name: Kebab Case Triggers title: Kebab Triggers icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with kebab-case triggers diff --git a/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml b/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml index 7c8ab82e..c8a23a9d 100644 --- a/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +++ b/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml @@ -7,6 +7,7 @@ agent: name: Multiple Menu Items title: Multiple Menu icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with multiple menu items diff --git a/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml b/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml index 7d0f8695..00c361d0 100644 --- a/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml +++ b/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml @@ -7,6 +7,7 @@ agent: name: Single Menu Item title: Single Menu icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with single menu item diff --git a/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml b/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml index db8aa520..e8ad0497 100644 --- a/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml +++ b/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml @@ -9,6 +9,7 @@ agent: title: Core Agent icon: โœ… module: bmm + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml b/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml index bd1dd5a7..10a54cb8 100644 --- a/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml +++ b/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml @@ -8,6 +8,7 @@ agent: name: Empty Module in Path title: Empty Module Path icon: ๐Ÿงช + hasSidecar: false # No module field - path has empty module name, treated as core persona: diff --git a/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml b/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml index 1bd025b1..707be64f 100644 --- a/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml +++ b/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml @@ -8,6 +8,7 @@ agent: name: Malformed Path Test title: Malformed Path icon: ๐Ÿงช + hasSidecar: false # No module field - will be treated as core since path parsing returns null persona: diff --git a/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml b/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml index 2ccd89cf..6ebf470e 100644 --- a/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml +++ b/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml @@ -9,6 +9,7 @@ agent: title: BMM Test icon: ๐Ÿงช module: bmm + hasSidecar: false persona: role: Test module agent diff --git a/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml b/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml index 3f240796..6919c614 100644 --- a/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml +++ b/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml @@ -8,6 +8,7 @@ agent: name: No Module title: Optional Module icon: โœ… + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml b/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml index 3bc8ef44..9f6c9d21 100644 --- a/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml +++ b/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml @@ -9,6 +9,7 @@ agent: title: Any Module Value icon: โœ… module: cis + hasSidecar: false persona: role: Test agent diff --git a/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml b/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml index e247e286..bee421b2 100644 --- a/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml +++ b/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml @@ -7,6 +7,7 @@ agent: name: Complete Persona Agent title: Complete Persona icon: ๐Ÿงช + hasSidecar: false persona: role: Comprehensive test agent with all persona fields diff --git a/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml b/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml index 7a785eab..da32f70e 100644 --- a/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml +++ b/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml @@ -7,6 +7,7 @@ agent: name: Empty Prompts title: Empty Prompts icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with empty prompts diff --git a/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml b/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml index e4ea8670..46c50f11 100644 --- a/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml +++ b/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml @@ -7,6 +7,7 @@ agent: name: No Prompts title: No Prompts icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent without prompts diff --git a/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml b/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml index 2f95b1f3..2a2d7d98 100644 --- a/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml +++ b/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml @@ -7,6 +7,7 @@ agent: name: Valid Prompts Minimal title: Valid Prompts icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with minimal prompts diff --git a/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml b/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml index 349ed143..5585415e 100644 --- a/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml +++ b/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml @@ -7,6 +7,7 @@ agent: name: Valid Prompts With Description title: Valid Prompts Desc icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with prompts including descriptions diff --git a/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml b/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml index 1e48443a..f3bf0b9e 100644 --- a/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml +++ b/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml @@ -8,6 +8,7 @@ agent: name: Minimal Test Agent title: Minimal Test icon: ๐Ÿงช + hasSidecar: false persona: role: Test agent with minimal configuration diff --git a/tools/cli/bmad-cli.js b/tools/cli/bmad-cli.js index 53134524..0cba5814 100755 --- a/tools/cli/bmad-cli.js +++ b/tools/cli/bmad-cli.js @@ -2,6 +2,24 @@ const { program } = require('commander'); const path = require('node:path'); const fs = require('node:fs'); +// Fix for stdin issues when running through npm on Windows +// Ensures keyboard interaction works properly with inquirer prompts +if (process.stdin.isTTY) { + try { + process.stdin.resume(); + process.stdin.setEncoding('utf8'); + + // On Windows, explicitly reference the stdin stream to ensure it's properly initialized + if (process.platform === 'win32') { + process.stdin.on('error', () => { + // Ignore stdin errors - they can occur when the terminal is closing + }); + } + } catch { + // Silently ignore - some environments may not support these operations + } +} + // Load package.json from root for version info const packageJson = require('../../package.json'); diff --git a/tools/cli/commands/install.js b/tools/cli/commands/install.js index 6e241610..1ae5d4c0 100644 --- a/tools/cli/commands/install.js +++ b/tools/cli/commands/install.js @@ -1,5 +1,6 @@ const chalk = require('chalk'); const path = require('node:path'); +const inquirer = require('inquirer').default || require('inquirer'); const { Installer } = require('../installers/lib/core/installer'); const { UI } = require('../lib/ui'); @@ -9,9 +10,15 @@ const ui = new UI(); module.exports = { command: 'install', description: 'Install BMAD Core agents and tools', - options: [], + options: [['-d, --debug', 'Enable debug output for manifest generation']], action: async (options) => { try { + // Set debug flag as environment variable for all components + if (options.debug) { + process.env.BMAD_DEBUG_MANIFEST = 'true'; + console.log(chalk.cyan('Debug mode enabled\n')); + } + const config = await ui.promptInstall(); // Handle cancel @@ -65,18 +72,13 @@ module.exports = { console.log(chalk.dim(' โ€ข ElevenLabs AI (150+ premium voices)')); console.log(chalk.dim(' โ€ข Piper TTS (50+ free voices)\n')); - const readline = require('node:readline'); - const rl = readline.createInterface({ - input: process.stdin, - output: process.stdout, - }); - - await new Promise((resolve) => { - rl.question(chalk.green('Press Enter to start AgentVibes installer...'), () => { - rl.close(); - resolve(); - }); - }); + await inquirer.prompt([ + { + type: 'input', + name: 'continue', + message: chalk.green('Press Enter to start AgentVibes installer...'), + }, + ]); console.log(''); diff --git a/tools/cli/installers/install-messages.yaml b/tools/cli/installers/install-messages.yaml index c2fe7fd7..e44a3228 100644 --- a/tools/cli/installers/install-messages.yaml +++ b/tools/cli/installers/install-messages.yaml @@ -11,7 +11,7 @@ startMessage: | IMPORTANT Changes with Version Alpha.22 - PLEASE READ THIS if upgrading from earlier Alpha Versions: - 1. The BMad Core default output folder has changed from docs to `_bmad-output`. `docs` + 1. The BMad Core default output folder has changed from `docs` to `_bmad-output`. `docs` is meant for long-term artifacts, which you can always decide to move content to. 2. If utilizing the BMad Method Module (BMM) please be aware of the following important recent changes: @@ -37,7 +37,7 @@ endMessage: | โœจ BMAD IS READY TO USE! - ONE FINAL NOTE WITH VERSION Alpha.20: Phase 4 (Implementation) is still in the process of + ONE FINAL NOTE WITH VERSION Alpha.22: Phase 4 (Implementation) is still in the process of being migrated to the improved workflow progressive disclosure system. Along with this, the full conversion to the new path locations for content being searched may possibly be incomplete. If you run a workflow that relies on finding input documents diff --git a/tools/cli/installers/lib/core/manifest-generator.js b/tools/cli/installers/lib/core/manifest-generator.js index 2de9c2cf..bbaf751a 100644 --- a/tools/cli/installers/lib/core/manifest-generator.js +++ b/tools/cli/installers/lib/core/manifest-generator.js @@ -121,8 +121,16 @@ class ManifestGenerator { async getWorkflowsFromPath(basePath, moduleName) { const workflows = []; const workflowsPath = path.join(basePath, 'workflows'); + const debug = process.env.BMAD_DEBUG_MANIFEST === 'true'; + + if (debug) { + console.log(`[DEBUG] Scanning workflows in: ${workflowsPath}`); + } if (!(await fs.pathExists(workflowsPath))) { + if (debug) { + console.log(`[DEBUG] Workflows path does not exist: ${workflowsPath}`); + } return workflows; } @@ -139,8 +147,13 @@ class ManifestGenerator { await findWorkflows(fullPath, newRelativePath); } else if (entry.name === 'workflow.yaml' || entry.name === 'workflow.md') { // Parse workflow file (both YAML and MD formats) + if (debug) { + console.log(`[DEBUG] Found workflow file: ${fullPath}`); + } try { - const content = await fs.readFile(fullPath, 'utf8'); + // Read and normalize line endings (fix Windows CRLF issues) + const rawContent = await fs.readFile(fullPath, 'utf8'); + const content = rawContent.replaceAll('\r\n', '\n').replaceAll('\r', '\n'); let workflow; if (entry.name === 'workflow.yaml') { @@ -150,13 +163,23 @@ class ManifestGenerator { // Parse MD workflow with YAML frontmatter const frontmatterMatch = content.match(/^---\n([\s\S]*?)\n---/); if (!frontmatterMatch) { + if (debug) { + console.log(`[DEBUG] Skipped (no frontmatter): ${fullPath}`); + } continue; // Skip MD files without frontmatter } workflow = yaml.parse(frontmatterMatch[1]); } + if (debug) { + console.log(`[DEBUG] Parsed: name="${workflow.name}", description=${workflow.description ? 'OK' : 'MISSING'}`); + } + // Skip template workflows (those with placeholder values) if (workflow.name && workflow.name.includes('{') && workflow.name.includes('}')) { + if (debug) { + console.log(`[DEBUG] Skipped (template placeholder): ${workflow.name}`); + } continue; } @@ -182,6 +205,14 @@ class ManifestGenerator { module: moduleName, path: installPath, }); + + if (debug) { + console.log(`[DEBUG] โœ“ Added workflow: ${workflow.name} (${moduleName})`); + } + } else { + if (debug) { + console.log(`[DEBUG] Skipped (missing name or description): ${fullPath}`); + } } } catch (error) { console.warn(`Warning: Failed to parse workflow at ${fullPath}: ${error.message}`); @@ -191,6 +222,11 @@ class ManifestGenerator { }; await findWorkflows(workflowsPath); + + if (debug) { + console.log(`[DEBUG] Total workflows found in ${moduleName}: ${workflows.length}`); + } + return workflows; } diff --git a/docs/BUNDLE_DISTRIBUTION_SETUP.md b/tools/docs/BUNDLE_DISTRIBUTION_SETUP.md similarity index 100% rename from docs/BUNDLE_DISTRIBUTION_SETUP.md rename to tools/docs/BUNDLE_DISTRIBUTION_SETUP.md diff --git a/tools/docs/index.md b/tools/docs/index.md new file mode 100644 index 00000000..8ac7bc86 --- /dev/null +++ b/tools/docs/index.md @@ -0,0 +1,2 @@ +# Tool and Repo Maintainability Documentation + diff --git a/tools/schema/agent.js b/tools/schema/agent.js index 53b9b560..ee9be7fb 100644 --- a/tools/schema/agent.js +++ b/tools/schema/agent.js @@ -229,6 +229,7 @@ function buildMetadataSchema(expectedModule) { title: createNonEmptyString('agent.metadata.title'), icon: createNonEmptyString('agent.metadata.icon'), module: createNonEmptyString('agent.metadata.module').optional(), + hasSidecar: z.boolean(), }; return z.object(schemaShape).strict();