Workflows
Create and execute reusable multi-step workflows, similar to Windsurf’s Workflows feature. Define complex task sequences in markdown files and execute them programmatically.Quick Start
Workflow File Format
Workflows are defined in markdown files with YAML frontmatter:Step 2: Build Application
Build the application for production.Step 3: Deploy
Deploy to the production server.Step 4: Notify
Send deployment notification.Conditional Steps
Add conditions to skip steps based on context:Error Handling
Configure how steps handle errors:Step 2: Critical Build
This step must succeed.Best Practices
Keep steps focused
Keep steps focused
Each step should do one thing well. Break complex tasks into multiple steps for better error handling and visibility.
Use descriptive names
Use descriptive names
Step names appear in logs and callbacks. Use clear, descriptive names like “Run Unit Tests” instead of “Step 1”.
Set appropriate error handling
Set appropriate error handling
Use
on_error: continue for optional steps and on_error: stop for critical steps that must succeed.Document with descriptions
Document with descriptions
Add descriptions to workflows and steps. They help users understand what each workflow does.

