# Workflow Definition Schema Store each workflow at `.ai/workflows/.md`. Required headings: ```text # ## goal ## flow ## execution_graph ## steps ## synchronization_gates ## routing_rules ## output_format ``` The `### : ` heading is the unique step identifier. Each step body declares: ```yaml agent: skill: .ai/skills//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.