Store each workflow at .ai/workflows/<workflow-name>.md.
Required headings:
# <Workflow Name>
## goal
## flow
## execution_graph
## steps
## synchronization_gates
## routing_rules
## output_format
The ### <step-id>: <Step Name> heading is the unique step identifier. Each step body declares:
agent: <existing Agent>
skill: .agents/skills/<existing-skill>/SKILL.md | none
execution: inline | subagent-readonly | subagent-shared | subagent-worktree
depends_on: []
parallel_group: null
requires: []
read_scope: []
write_scope: []
input: []
output: []
verification: []
next: []
Dependencies must be acyclic. Parallel groups contain only dependency-independent steps. Read-only execution has no write scope. Synchronization gates prevent implementation before stable contracts, integration before required results, and completion before verification.