Loading...
Loading...
Simplified state file management with consolidated FLOW.md (project) and ITEM-XXX.md (per-item) files
npx skill4agent add doubleslashse/claude-marketplace state-managementFLOW.mdITEM-XXX.md.flow/
├── FLOW.md # Project state + backlog (single file)
└── items/
├── ITEM-001.md # All state for work item 001
├── ITEM-002.md # All state for work item 002
└── ...| File | Purpose | Contains |
|---|---|---|
| Project-level state | Vision, backlog, active item, capabilities cache |
| Per-item state | Phase, decisions, requirements, tasks, checkpoint |
templates.mdtemplates.md| Phase | Description | Next Phase |
|---|---|---|
| Defined but not started | DISCUSS |
| Gathering requirements | PLAN |
| Creating task plan | EXECUTE |
| Implementing tasks | VERIFY |
| Validating implementation | DONE |
| Completed | (terminal) |
| Paused intentionally | Previous |
| Waiting on dependency | Previous |
1. Create .flow/ directory if not exists
2. Create .flow/items/ directory
3. Scan for installed plugins
4. Detect project type from file patterns
5. Create FLOW.md with empty backlog + capabilities/flow-workflow:start1. Read FLOW.md to get next item number
2. Generate ITEM-XXX ID
3. Create .flow/items/ITEM-XXX.md with DISCUSS phase
4. Update FLOW.md backlog table
5. Set as active item in FLOW.md1. Update checkpoint in current item's file
2. Update FLOW.md active item pointer
3. Load new item's context1. Verify completion criteria for current phase
2. Update phase in ITEM-XXX.md
3. Create checkpoint snapshot
4. Initialize next phase section1. Record current phase and task progress
2. Capture context budget percentage
3. List next recommended action
4. Add timestamp1. Read FLOW.md to get active item
2. Read ITEM-XXX.md checkpoint section
3. Restore context from checkpoint
4. Identify next action
5. Continue workflow## Context Monitor
- Current session: [X]% (limit: 50% before fresh agent)
- Last auto-spawn: [TIMESTAMP]
- Fresh agents this session: [N].flow/.flow/legacy//flow-workflow:gotemplates.md