Skip to content

Workflow Patterns

Workflow patterns are reusable solutions to common workflow design problems.

PatternUse Case
Information CollectionGather agent capabilities or user preferences at workflow start
Skip PatternAllow users to skip optional steps
Validation LoopVerify results and retry on failure
BranchingDifferent paths for different scenarios
Dynamic FilesTemplate-based file paths for reusability
Step VerificationVerify step completion before proceeding
EscalationHandle failures with user intervention
Subagent ReviewDelegate reviews to independent subagents
WorkspaceOrganize workflow files in a dedicated workspace directory
Static ConfigurationStore curated instructions in initialData for consistency
Anti-PatternsCommon workflow design mistakes to avoid

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