---
description: Sync backlog with task files
agent: build
---

# Sync Backlog ↔ Tasks

1. **Get tasks:** `backlog_task_list()`
2. **Check each:** Does `@backlog/tasks/[id]/` have prd.md, spec.md, review.md?
3. **Report:**
   - Tasks missing files → create with `/task-with-spec`
   - Orphaned task dirs → create backlog entry
   - Status mismatches → fix

**Auto-fix:** Create missing files from backlog task details.
