Overview
Custom workflows let you define your own task templates beyond the built-in options. Write a Markdown file describing the workflow steps, drop it in.zenflow/workflows/ in your repo, and Zenflow surfaces it alongside the standard workflows when creating a task.
When to Use
- Recurring team processes (release prep, security audits, migrations)
- Compliance-driven workflows requiring specific documentation stages
- Domain-specific flows (ML training pipelines, data processing)
- When built-in workflows don’t match your team’s process
Creating a Custom Workflow
1. Create the workflow file
Add a.md file to .zenflow/workflows/ in your repository root:
2. Write the workflow definition
3. Use the workflow
When creating a new task, your custom workflow appears in the workflow picker alongside Auto, Fix a Bug, and others.Workflow File Structure
Required Elements
Optional Elements
Agent Assignment
Assign different agent presets to different steps using HTML comments:Examples
Release Preparation
Release Preparation
Database Migration
Database Migration
API Design Review
API Design Review
Best Practices
- Scope steps as coherent milestones — each step should produce a clear deliverable
- Use artifact placeholders —
{@artifacts_path}/filename.mdresolves paths automatically per task - Write imperative instructions — tell the agent what to produce, not just what to think about
- Assign agents per step — use reasoning models for planning and fast models for implementation
- Version control workflows — keep
.zenflow/workflows/in your repo so the team shares the same processes
Related
All Workflows
Compare all available workflows
Multi-Agent Orchestration
Agent presets and subagent configuration
Subagents
Spawn isolated sub-processes within workflow steps