From flow
Wipes `.flow-states/` directories on the local machine when abandoned features leave orphaned state that per-flow abort cannot reach. Destructive for local FLOW state only; PRs, worktrees, and branches are unaffected.
How this skill is triggered — by the user, by Claude, or both
Slash command
/flow:flow-resetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Wipe `.flow-states/` on this machine in one pass. Use when abandoned
Wipe .flow-states/ on this machine in one pass. Use when abandoned
features have left orphaned state directories that the per-feature
/flow:flow-abort cannot reach. PRs, worktrees, and branches are
NOT touched — those require per-flow /flow:flow-abort invoked
against each branch separately before reset.
The skill is a thin wrapper around the bin/flow reset subcommand,
which exec's a shell script that resolves the main repo root via
git rev-parse --git-common-dir so it works from any cwd in the
repo tree (including linked worktrees) and removes .flow-states/
via rm -rf.
This is destructive and irreversible — for .flow-states/ only. PRs,
worktrees, and branches stay untouched. Use AskUserQuestion:
"Wipe
.flow-states/? This removes local FLOW state for every flow on this machine. PRs, worktrees, and branches are NOT touched. For per-flow GitHub cleanup, run/flow:flow-abort <branch>separately first."
- Yes, wipe
.flow-states/- No, cancel
If cancelled, stop.
${CLAUDE_PLUGIN_ROOT}/bin/flow reset
If the script exits 0, print:
```text
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ FLOW Reset — Complete
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```
If the script exits non-zero, surface the stderr to the user so they can investigate. The script's only failure modes are filesystem errors (permissions, busy file) and the safety check that refuses to operate at the filesystem root.
/flow:flow-abort <branch> separately before reset.npx claudepluginhub benkruger/flow --plugin flowAborts the current FLOW feature by closing the PR, deleting the remote branch, removing the worktree, and deleting the state file. Available from any phase.
Removes git worktrees and associated branches after PR merges, sub-scope consolidation, or manual cleanup. Lists worktrees if unspecified, handles uncommitted changes and paused states.
Interactively selects and safely removes a specific git worktree for issues, checking if linked issue is closed, branch merged into default, and no uncommitted changes before removal, with optional branch deletion.