Skip to content
🤖 AI-optimized docs: llms-full.txt

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.

Validation catches issues before they cause problems:

BenefitExample
Catch errorsMissing required fields, invalid YAML
Best practicesMenu structure, persona quality
ComplianceBMad Core standards
PerformanceOptimized structure
QualityCohesive workflow design

Use Wendy’s validation workflow:

[VW] or "validate-workflow"
CategoryChecks
FrontmatterName, description, goal, completeness
StructureWorkflow.md, step files, templates present
MenusMenu handling, options, triggers valid
StepsSequential ordering, nextStep references correct
Output formatOutput configuration valid
CohesivenessSteps connect logically
Instruction styleIntent vs prescriptive appropriate
Collaborative experienceFacilitation quality
Validation designProper validation steps if critical

Wendy provides a comprehensive report:

PASS: Frontmatter is complete
PASS: Step sequence is valid
WARN: step-03 has no nextStep defined
FAIL: step-02 references non-existent step

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

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
  • nextStepFile references 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

Use Bond’s validation workflow:

[VA] or "validate-agent"
CategoryChecks
MetadataName, description, module, path correctness
PersonaRole, identity, communication style, principles present
MenuTriggers formatted correctly, commands valid
StructureYAML valid, required fields present
ComplianceBMad Core standards followed

Bond provides a detailed report:

PASS: Agent structure is valid
PASS: Persona is complete
WARN: Principles could be more specific
FAIL: Menu trigger has invalid characters

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

Use Morgan’s validation workflow:

[VM] or "validate-module"
CategoryChecks
module.yamlMetadata, install questions, config valid
module-help.csvProper CSV format and required columns (if present)
StructureAgents, workflows, tools folders present
AgentsAll agent files valid
WorkflowsAll workflow files valid
IssueFix
Incomplete frontmatterAdd all required fields (name, description)
Broken step referencesEnsure nextStep files exist
Missing menusAdd menu where workflow requires user choice
Invalid output formatSpecify correct output format in frontmatter
Unused frontmatter variablesRemove variables not used in step body
Missing handler sectionAdd handler after menu display
No “halt and wait”Add to EXECUTION RULES
A/P in step 1Remove A/P (inappropriate for init)
Step exceeds 250 linesSplit steps or extract to data/
Hardcoded pathsUse {variable} format
IssueFix
Missing persona fieldsAdd role, identity, communication style, principles
Invalid menu triggersUse kebab-case, no spaces, no special chars
Empty principlesAdd at least 2-3 meaningful principles
Missing metadataAdd name, description, module
IssueFix
Invalid module.yamlCheck YAML syntax, required fields
Missing install questionsAdd at least one install question or mark optional
Package.json errorsAdd name, version, description
Folder structureEnsure src/ folder with proper structure

Recommended validation process:

  1. Create your agent/workflow/module
  2. Validate immediately after creation
  3. Fix any issues found
  4. Revalidate to confirm fixes
  5. Test by actually using the agent/workflow
  6. Validate again before publishing

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
TipHow
Follow templatesUse existing agents/workflows as examples
Use the buildersBond, Wendy, Morgan create compliant content
Read error messagesValidation tells you exactly what’s wrong
Fix incrementallyAddress one issue at a time, revalidate
Test thoroughlyValidation checks structure, not behavior

If validation fails and you’re not sure why:

GuideDescription
Edit Agents and WorkflowsFixing validation issues
Create a Custom AgentAgent creation
Create Your First WorkflowWorkflow creation
Workflow SchemaTechnical reference