From flow
Captures corrections and learnings to a persistent FLOW state file as reusable patterns. Activates automatically when the user corrects a mistake or disagrees.
How this skill is triggered — by the user, by Claude, or both
Slash command
/flow:flow-noteThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Capture a correction or learning to the state file immediately.
Capture a correction or learning to the state file immediately. This skill must be fast — capture and continue, no interruption.
This flow is one of potentially many running simultaneously — on this
machine (multiple worktrees) and across machines (multiple engineers).
Your state file (.flow-states/<branch>/state.json) is yours alone. Never
read or write another branch's state. All local artifacts (logs, plan
files, temp files) are scoped by branch name.
Invoke this skill BEFORE replying whenever the user:
Do not wait to be asked. Capture first, then respond.
Compose the note text as a reusable pattern, not a specific complaint:
Bad: "User said I was wrong about branches"
Good: "Never assume branch-behind is unlikely in a multi-session workflow — multiple active sessions means branches regularly fall behind main"
Bad: "I suggested rebase, user rejected"
Good: "Always merge, never rebase — rebasing is forbidden in this workflow"
The note should read as something useful to a future session, not a log of what happened.
${CLAUDE_PLUGIN_ROOT}/bin/flow append-note --note "<note_text>"
The script derives the state file path and current phase internally.
The script outputs JSON:
{"status": "no_state"} — no state file exists. Skip silently — do not
interrupt the session. Continue with your response.{"status": "ok", "note_count": N} — note captured. Proceed to Step 2.{"status": "error", "message": "..."} — show the error message and stop.Print one line only:
[note captured]
Then continue with the response immediately.
When the user types /flow:flow-note <message>:
state["notes"] with current phase and timestamp[note captured] and stopnpx claudepluginhub benkruger/flow --plugin flowDetects user corrections, reworks, mistakes, or note requests; runs human-confirmation loops, archives to project/global mistakebook/notebook, refreshes memory caches, escalates to Ascended Mode on repeats.
Extracts learnings from the current conversation and appends them to the project's CLAUDE.md as generalized rules. Captures non-obvious solutions and workarounds.
Records project-specific learnings on gotchas, bugs, and unexpected behaviors into LEARNINGS.md via ctx CLI. Prompts for context, lesson, and application; checks for novelty before adding.