Validate Agents and Workflows
Validate your agents and workflows to ensure they follow best practices and comply with standards. Validation catches issues before they cause problems.
Why Validate
Section titled âWhy ValidateâValidation catches issues before they cause problems:
| Benefit | Example |
|---|---|
| Catch errors | Missing required fields, invalid YAML |
| Best practices | Menu structure, persona quality |
| Compliance | BMad Core standards |
| Performance | Optimized structure |
| Quality | Cohesive workflow design |
Validating Workflows
Section titled âValidating WorkflowsâUse Wendyâs validation workflow:
[VW] or "validate-workflow"What Wendy Checks
Section titled âWhat Wendy Checksâ| Category | Checks |
|---|---|
| Frontmatter | Name, description, goal, completeness |
| Structure | Workflow.md, step files, templates present |
| Menus | Menu handling, options, triggers valid |
| Steps | Sequential ordering, nextStep references correct |
| Output format | Output configuration valid |
| Cohesiveness | Steps connect logically |
| Instruction style | Intent vs prescriptive appropriate |
| Collaborative experience | Facilitation quality |
| Validation design | Proper validation steps if critical |
Validation Output
Section titled âValidation OutputâWendy provides a comprehensive report:
PASS: Frontmatter is completePASS: Step sequence is validWARN: step-03 has no nextStep definedFAIL: step-02 references non-existent stepMax-Parallel Validation
Section titled âMax-Parallel ValidationâFor high-capability LLMs (like Claude) that support extensive parallel processing:
[MV] or "validate-max-parallel-workflow"This hyper-optimized validation uses task agents to validate multiple workflow aspects simultaneously in sub-processes for dramatically faster results.
Additional checks:
- Parallel compatibility
- Sub-process optimization opportunities
- Task agent orchestration
- LLM parallel capability utilization
Validation Categories
Section titled âValidation CategoriesâFrontmatter Validation
- Required fields present
- Name is valid kebab-case
- All frontmatter variables used in step body
- Path variables follow correct format
Step Structure Validation
- Step files exist and numbered sequentially
nextStepFilereferences are valid- Steps under 250 lines
- Step type matches content
Menu Handling Validation
- Display section present
- Handler section follows display
- EXECUTION RULES section present
- âHalt and waitâ instruction included
- A/P options appropriate for step type
- Non-C options redisplay menu
- C option: save â update â load next
Output Format Validation
- Output format specified
- Template type appropriate
- State tracking for continuable workflows
- StepsCompleted tracking correct
Instruction Style Validation
- Intent vs prescriptive appropriate for domain
- âThink before respondingâ language present
- Multi-turn conversation approach
- Progressive questioning
Collaborative Experience Validation
- Facilitation vs generation approach
- User expertise acknowledged
- Partnership language
- Non-command-response pattern
Validation Design Check
- Validation steps exist if critical
- Validation steps load from data/
- Systematic check sequence
- âDO NOT BE LAZYâ language present
- Auto-proceed through checks
Cohesive Review
- Entire workflow reviewed end-to-end
- Quality assessed across dimensions
- Strengths and weaknesses documented
- Thoughtful recommendation provided
Validating Agents
Section titled âValidating AgentsâUse Bondâs validation workflow:
[VA] or "validate-agent"What Bond Checks
Section titled âWhat Bond Checksâ| Category | Checks |
|---|---|
| Metadata | Name, description, module, path correctness |
| Persona | Role, identity, communication style, principles present |
| Menu | Triggers formatted correctly, commands valid |
| Structure | YAML valid, required fields present |
| Compliance | BMad Core standards followed |
Validation Output
Section titled âValidation OutputâBond provides a detailed report:
PASS: Agent structure is validPASS: Persona is completeWARN: Principles could be more specificFAIL: Menu trigger has invalid charactersFixing Issues
Section titled âFixing IssuesâAfter validation, Bond offers to fix issues:
- [A] Apply fixes â Automatically correct what Bond can
- [M] Manual review â See what needs manual fixing
- [R] Revalidate â Run validation again after fixes
Validating Modules
Section titled âValidating ModulesâUse Morganâs validation workflow:
[VM] or "validate-module"What Morgan Checks
Section titled âWhat Morgan Checksâ| Category | Checks |
|---|---|
| module.yaml | Metadata, install questions, config valid |
| module-help.csv | Proper CSV format and required columns (if present) |
| Structure | Agents, workflows, tools folders present |
| Agents | All agent files valid |
| Workflows | All workflow files valid |
Common Validation Issues
Section titled âCommon Validation IssuesâWorkflow Issues
Section titled âWorkflow Issuesâ| Issue | Fix |
|---|---|
| Incomplete frontmatter | Add all required fields (name, description) |
| Broken step references | Ensure nextStep files exist |
| Missing menus | Add menu where workflow requires user choice |
| Invalid output format | Specify correct output format in frontmatter |
| Unused frontmatter variables | Remove variables not used in step body |
| Missing handler section | Add handler after menu display |
| No âhalt and waitâ | Add to EXECUTION RULES |
| A/P in step 1 | Remove A/P (inappropriate for init) |
| Step exceeds 250 lines | Split steps or extract to data/ |
| Hardcoded paths | Use {variable} format |
Agent Issues
Section titled âAgent Issuesâ| Issue | Fix |
|---|---|
| Missing persona fields | Add role, identity, communication style, principles |
| Invalid menu triggers | Use kebab-case, no spaces, no special chars |
| Empty principles | Add at least 2-3 meaningful principles |
| Missing metadata | Add name, description, module |
Module Issues
Section titled âModule Issuesâ| Issue | Fix |
|---|---|
| Invalid module.yaml | Check YAML syntax, required fields |
| Missing install questions | Add at least one install question or mark optional |
| Package.json errors | Add name, version, description |
| Folder structure | Ensure src/ folder with proper structure |
Validation Workflow
Section titled âValidation WorkflowâRecommended validation process:
- Create your agent/workflow/module
- Validate immediately after creation
- Fix any issues found
- Revalidate to confirm fixes
- Test by actually using the agent/workflow
- Validate again before publishing
Sub-process Optimization
Section titled âSub-process OptimizationâFor complex workflows, validation checks for sub-process optimization opportunities:
Pattern 1: Single sub-process for grep/regex
- Use when finding patterns across many files
- Returns only matches/failures
- Context savings: 1000:1 ratio
Pattern 2: Separate sub-process per file for deep analysis
- Use when analyzing prose, logic, quality
- Returns structured findings
- Context savings: 10:1 ratio
Pattern 3: Sub-process for data file operations
- Use when loading reference data, matching
- Returns only relevant rows
- Context savings: 100:1 ratio
Tips for Passing Validation
Section titled âTips for Passing Validationâ| Tip | How |
|---|---|
| Follow templates | Use existing agents/workflows as examples |
| Use the builders | Bond, Wendy, Morgan create compliant content |
| Read error messages | Validation tells you exactly whatâs wrong |
| Fix incrementally | Address one issue at a time, revalidate |
| Test thoroughly | Validation checks structure, not behavior |
Getting Help
Section titled âGetting HelpâIf validation fails and youâre not sure why:
- Discord Community â Ask in #bmad-method-help
- GitHub Issues â Report suspected bugs
- Reference Examples â Study valid examples
Related Guides
Section titled âRelated Guidesâ| Guide | Description |
|---|---|
| Edit Agents and Workflows | Fixing validation issues |
| Create a Custom Agent | Agent creation |
| Create Your First Workflow | Workflow creation |
| Workflow Schema | Technical reference |