Workflow Patterns
Workflow patterns are reusable solutions to common workflow design problems.
Available Patterns
Section titled “Available Patterns”| Pattern | Use Case |
|---|---|
| Information Collection | Gather agent capabilities or user preferences at workflow start |
| Skip Pattern | Allow users to skip optional steps |
| Validation Loop | Verify results and retry on failure |
| Branching | Different paths for different scenarios |
| Dynamic Files | Template-based file paths for reusability |
| Step Verification | Verify step completion before proceeding |
| Escalation | Handle failures with user intervention |
| Subagent Review | Delegate reviews to independent subagents |
| Workspace | Organize workflow files in a dedicated workspace directory |
| Static Configuration | Store curated instructions in initialData for consistency |
| Anti-Patterns | Common workflow design mistakes to avoid |
Pattern Selection Guide
Section titled “Pattern Selection Guide”Need to collect configuration? → Information Collection
Need optional steps? → Skip Pattern
Need quality control? → Validation Loop
Need different paths? → Branching
Need reusable file references? → Dynamic Files
Need to verify completion? → Step Verification
Need failure handling? → Escalation
Need independent verification? → Subagent Review
Need organized working files? → Workspace
Need consistent agent instructions? → Static Configuration
Need to avoid common mistakes? → Anti-Patterns