Initialize docs/workflow/workflow-state.json:
{
"projectName": "[derived from idea]",
"mode": "[auto if --auto flag present, otherwise manual]",
"createdAt": "[now ISO 8601]",
"updatedAt": "[now ISO 8601]",
"initialIdea": "[raw user input]",
"currentPhase": "topic-selection",
"phases": [
{"id": "topic-selection", "name": "Topic Selection", "status": "in_progress", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "market-research", "name": "Market Research", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "product-design", "name": "Product Design", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "prd-writing", "name": "PRD Writing", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "system-design", "name": "System Design", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "ui-ux-design", "name": "UI/UX Design", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "frontend-dev", "name": "Frontend Dev", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "backend-dev", "name": "Backend Dev", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "qa-testing", "name": "QA Testing", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null},
{"id": "delivery", "name": "Delivery", "status": "pending", "output": null, "approvedBy": null, "approvedAt": null, "rejectedAt": null, "rejectionReason": null, "notes": null}
]
}