Initialize Flow projects from scratch, migrate existing docs, or update old structures. Use when user says "start flow", "initialize", "migrate to flow", "set up flow project".
Help users initialize new Flow projects, migrate existing documentation to Flow format, or update old Flow structures to current framework patterns. This is the entry point for getting started with Flow.
Activate when the user wants project initialization:
Three Paths to Flow:
Multi-File Architecture: Flow uses:
DASHBOARD.md - Progress tracking (single source of truth)PLAN.md - Static context (overview, architecture, scope)phase-N/task-M.md - Work files with iterationsUser wants to create a brand new Flow project from scratch.
Step 1: Check for content - Reject if empty or whitespace only
Step 2: Detect blueprint mode
Mode A: SUGGEST Structure (AI designs)
Mode B: CREATE Explicit Structure (User designed)
Step 3: Semantic check (Mode A only) - If too vague, ask for clarification
Step 4: Dry-run preview (Mode B only) - Show what will be created, get approval
Mode A: SUGGEST Structure
Mode B: CREATE Explicit Structure
Use these template files for complete structures:
.flow/ doesn't exist (unless user confirms overwrite).flow/ and .flow/phase-1/User has existing documentation (PRD.md, TODO.md, PLAN.md, etc.) and wants to convert to Flow format.
PRD.md, PLAN.md, TODO.md, DEVELOPMENT.md, ROADMAP.md, TASKS.mdDetect structure type:
Extract key information: Project context, completed work, current position, remaining work, architecture, V1/V2 splits, deferred/cancelled items
Create timestamped backup before migration: [original].pre-flow-backup-$(date +%Y-%m-%d-%H%M%S)
See MIGRATION_PATTERNS.md for detailed conversion patterns for each structure type:
Path A: STRUCTURED - Map phasesβphase-N/, tasksβtask-M.md, preserve status markers, extract sections to DASHBOARD/PLAN
Path B: FLAT_LIST - Group into phases (ask if unclear), convert items to tasks, detect status from markers
Path C: UNSTRUCTURED - Show preview, offer options: extract & suggest structure, create basic plan, or start fresh
Report what was created with summary of phases, tasks, current position, and next steps
User has an existing Flow structure that's outdated and needs updating to current framework patterns.
Read current structure: Read DASHBOARD.md, PLAN.md, list phase directories, sample 2-3 task files
Identify what needs updating:
Create timestamped backup in .flow/backup-[timestamp]/ before making changes
DASHBOARD.md updates: Ensure required sections exist, update timestamps and pointers
PLAN.md updates: Ensure Overview/Architecture/Testing sections exist, remove detailed tasks (move to task files)
Task Files updates: Ensure Task Overview and Iterations sections exist, convert standalone tasks to iteration format, fix status markers
Missing Files: Create CHANGELOG.md and/or BACKLOG.md if needed
Show summary of what was updated in each file and guide user to next steps
Before creating: Check .flow/ doesn't exist (unless overwrite confirmed), verify minimum viable content
Before migrating: Verify source docs exist, confirm backup created
After creation/migration/update: Verify DASHBOARD.md and PLAN.md exist with required sections, at least one phase directory exists, current work pointer is valid
User: "Set up Flow for my WebSocket chat app"
AI Process:
1. Detect Mode A (no explicit structure)
2. Ask: "What are the main phases? For example: Backend setup, WebSocket integration, Frontend, Testing"
3. User: "Backend, then frontend"
4. Generate suggested structure with 2 phases
5. Get approval, create files
Files Created:
- .flow/DASHBOARD.md (current: Phase 1, Task 1)
- .flow/PLAN.md (Purpose: WebSocket chat, Architecture: [TBD])
- .flow/phase-1/task-1.md (Backend setup)
- .flow/phase-2/task-1.md (Frontend)
User: "Migrate my TODO.md to Flow"
AI Process:
1. Read TODO.md
2. Detect structure type: FLAT_LIST (12 tasks)
3. Create backup: TODO.md.pre-flow-backup-[timestamp]
4. Group tasks: Phase 1 (Foundation, 4 tasks), Phase 2 (Features, 5 tasks), Phase 3 (Polish, 3 tasks)
5. Ask approval, migrate
Files Created:
- .flow/DASHBOARD.md (shows Phase 2, Task 2 in progress)
- .flow/PLAN.md (Purpose extracted, Architecture [TBD])
- .flow/phase-1/ (3 tasks complete, 1 pending)
- .flow/phase-2/ (2 in progress, 3 pending)
- .flow/phase-3/ (3 pending)
User: "Update my plan structure"
AI Process:
1. Read existing .flow/DASHBOARD.md and PLAN.md
2. Detect outdated patterns: missing sections, wrong task structure
3. Create backup: .flow/backup-[timestamp]/
4. Update DASHBOARD.md: Add "π Current Work" section
5. Update PLAN.md: Add Testing Strategy, move tasks to files
6. Update task files: Convert 2 standalone tasks to iteration format
Report:
β
Updated to current patterns
- DASHBOARD.md: Added Current Work section
- PLAN.md: Added Testing Strategy
- Tasks: Converted 2 to iteration format
After Initialization:
Before: Understand which path, validate input/detect sources, get user approval for structure
During: Create backups (migrate/update), follow multi-file architecture, use correct status markers (β β³ π§), mark [TBD] for unknowns
After: Verify files created, report summary, guide user to next steps