flow-reset

Wipe `.flow-states/` on this machine in one pass. PRs, worktrees, and branches are NOT touched — those require per-flow `/flow:flow-abort`.

12 stars

Best use case

flow-reset is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Wipe `.flow-states/` on this machine in one pass. PRs, worktrees, and branches are NOT touched — those require per-flow `/flow:flow-abort`.

Teams using flow-reset should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/flow-reset/SKILL.md --create-dirs "https://raw.githubusercontent.com/benkruger/flow/main/skills/flow-reset/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/flow-reset/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How flow-reset Compares

Feature / Agentflow-resetStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Wipe `.flow-states/` on this machine in one pass. PRs, worktrees, and branches are NOT touched — those require per-flow `/flow:flow-abort`.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# FLOW Reset

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`.

## Step 1 — Confirm

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.

## Step 2 — Execute

```bash
${CLAUDE_PLUGIN_ROOT}/bin/flow reset
```

If the script exits 0, print:

````markdown
```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.

## Rules

- Reset wipes local state only. For each open PR or worktree, run
  `/flow:flow-abort <branch>` separately before reset.
- Never rebase, never force push — reset never touches GitHub state

Related Skills

flow-triage-issue

12
from benkruger/flow

Triage a single open GitHub issue from a PM lens. Applies a 'Triage In-Progress' label during triage; reads code, checks for already-shipped work, returns a verdict in {close, decompose} with confidence and a flip-condition. Renders and stops — no other side effects.

flow-start

12
from benkruger/flow

Phase 1: Start — begin a new feature. Creates a worktree, upgrades dependencies, opens a PR, creates .flow-states/<branch>/state.json, and configures the workspace. Usage: /flow:flow-start <feature name words>

flow-skills

12
from benkruger/flow

Display the FLOW skill catalog grouped by user role. Maintainer and Private buckets render only when invoked inside the FLOW plugin repo.

flow-review

12
from benkruger/flow

Phase 3: Review — six tenants assessed by four cognitively isolated agents (reviewer, pre-mortem, adversarial, documentation) launched in parallel. Parent session gathers context, triages findings, and fixes.

flow-prime

12
from benkruger/flow

One-time project setup — configure and commit workspace permissions, install bin/* stubs, and write the version marker. Run once after installing or upgrading FLOW. Usage: /flow:flow-prime

flow-plan

12
from benkruger/flow

Decompose a problem statement into a pre-planned decomposed issue. Accepts either an issue reference (#N, re-plans in place) or a bare prompt (synthesizes What/Why/AC and files a new issue). Runs a Tech-Lead-default planning conversation, dispatches to PM/Tech Lead/CTO sub-agents on explicit user request, then files or edits the issue ready for /flow:flow-start. Usage: /flow:flow-plan #N or /flow:flow-plan <topic>

flow-orchestrate

12
from benkruger/flow

Process decomposed issues sequentially overnight via flow-start, tracking outcomes and generating a morning report.

flow-note

12
from benkruger/flow

Capture a correction or learning to the FLOW state file. Invoke explicitly with /flow:flow-note. Fast — captures and continues without interrupting flow.

flow-learn

12
from benkruger/flow

Phase 4: Learn — audit rule compliance and identify process gaps. Routes findings to CLAUDE.md, .claude/rules/, and plugin issues.

flow-issues

12
from benkruger/flow

Group open issues by label into four sections (Blocked, Other, Vanilla, Decomposed) with mechanical sort and a copy-pasteable command per row.

flow-hygiene

12
from benkruger/flow

Audit instruction corpus health — CLAUDE.md, rules, and memory for staleness, misplacement, duplication, and contradictions.

flow-explore

12
from benkruger/flow

Open a problem-statement conversation. Stays in discussion mode with PM as default voice; on user signal, files a vanilla What/Why/Acceptance Criteria issue against the current repo. Usage: /flow:flow-explore <topic>