Run State Management

Manage FlowRun state at `.flow/runs/<ISO-timestamp-id>/run.yaml` — create runs at command entry, write activity records via `bin/flow-record-activity.sh` at phase boundaries, transition `state.status` (active → completed | blocked | cancelled), and persist resumable next-action hints to `events.jsonl`. Use when a flow command begins (creates the run), when a phase boundary completes (writes an activity), or when SessionEnd needs to mark a resumable next action. This skill MUST be consulted because runs without recorded activities cannot be resumed — `/flow:resume` reads `state.completed_activities[]` to identify the next safe action; an empty array forces the user to start over.

synaptiai 0a2ecc0 5.1 KB Updated

File contents

synaptiai/synapti-marketplace/tree/main/plugins/flow/skills/run-state-management commit 0a2ecc02e1

Frequently asked questions

npx skillmds@latest add synaptiai/run-state-management