/session-flow:reanchorfrom session-flow
Verifies working assumptions in a handoff or plan are still current: checks PRs, issues, branches, base-branch drift, and renamed skills. Use before resuming old work to detect stale premises.
Ships in session-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Long-lived and resumed sessions act on stale premises: main has moved, a referenced PR merged or changed shape, a cited skill was renamed, an installed plugin shipped a new version, a locked plan references work that has since landed. This skill checks each premise the session's inputs depend on against the current state, reports what drifted, and hands back a corrected picture to plan from.
It verifies premises; it does not resume the work. Run it before continuing on
old inputs, then hand off by invoking /session-flow:keep-going via the Skill tool to actually pick the work
back up.
Read a handoff's premises section by section with
python3 -X utf8 "${CLAUDE_PLUGIN_ROOT}/scripts/save_point.py" read <file> --section "<name>":
every section but Prior sessions and Resume prompt can hold one (Decisions in force, Current rules,
Observations, Environment to re-establish and the rest), and a section moved to the archive file is
read from there.
main, and mark the check
unverifiable if the base cannot be resolved. Fetch that resolved base ref
explicitly and count against the just-fetched tip: git fetch <remote> <base-branch>, then measure against FETCH_HEAD
(e.g. git rev-list --count HEAD..FETCH_HEAD). A bare git fetch, or a count
against a local origin/<base> tracking ref, can read falsely clean in a
single-branch or shallow checkout where that ref was never updated.
FETCH_HEAD always holds what this fetch actually retrieved. If the fetch
cannot run, report the check as unverifiable rather than assuming none. Unless the inputs record a base-tip
or merge-base baseline, report the current divergence rather than claiming
it all accrued since the inputs were written, the branch may already have
been behind.Original goal is a premise like any other, a documented claim
about what the work is for, and the cross-link comparison below is the one
test only reanchor performs (the other resume-path checks read a single
document). Confirm it is present; confirm a document that chains from another
carries the prior link's quote unchanged, read from that file rather than
from the current document's own wording; then confirm the planned next
actions still connect to it, stated in one sentence. A quote that was
re-derived instead of copied is reported as drift between the links, the
paraphrase is the drift, and it is invisible at any single hop because each
rewording is individually plausible. List the links with
python3 -X utf8 "${CLAUDE_PLUGIN_ROOT}/scripts/save_point.py" chain <file> --json
(python when python3 is absent, 3.10+): each link's file, shape and status.
For a shape-3 or shape-4 link that comparison is save_point.py validate <link>:
an exit 0 means that link's goal section starts with its predecessor's verbatim,
and a FAIL line naming Original goal is the drift finding, so the links' text
never needs reading. A link chain reports missing or unreadable ends the
comparison there; name it in the report. For a shape-1 or shape-2 link, or when
validate cannot run, read the goal with
save_point.py read <link> --section "Original goal". An absent Original goal is itself a
defect: never infer the goal from the process the document describes, because
that process is the thing that drifted. Ask for it in the user's own words.
Where the next actions cannot be tied to the goal in a sentence, that is the
finding, not a wording problem.Decisions in force
entry tagged [security] or [design] after its id, print its id with its
buys:, surface: and cost: values as the handoff records them. Then apply
the rule: when cost exceeds buys, or surface is none for a
[security] decision, bring the decision back to the owner before building
on it. An inherited decision is a premise like any other; executing it on its
id alone is how a reversed decision wastes a session's work. A tagged entry
missing a field is that validate FAIL; report it as the decision's finding.Original goal they record, the tagged decisions they carry, and any PRs, issues, branches, skills, or plugin
versions they name, reading a handoff's sections with save_point.py read.
When an input chains from a prior handoff, the goal check compares links,
which a single document cannot do: list them with save_point.py chain,
validate each shape-3 or shape-4 link, and read Original goal with
save_point.py read for a shape-1 or shape-2 link or when validate
cannot run (check 5).git fetch the base, query gh, read installed vs repo-source manifests).
When a check cannot reach what it needs (no network, no gh, no fetch),
report that premise as unverifiable rather than assuming it is unchanged;
a silent "no drift" from stale local state is the exact failure this skill
exists to prevent./source-control:worktree status (if enabled)
(it reports no behind-base or
dirty-tree signal); reanchor does its own base-drift check (a git
behind-count on the working branch) and never reimplements that
cross-worktree inventory./source-control:babysit-prs (if enabled);
reanchor never performs them. It only checks whether a
referenced PR is still in its claimed state./session-flow:keep-going carries it on the interrupted
one; this copy serves the deliberate "is this still current" pass over an old
plan, where the other two never run./session-flow:keep-going via the Skill tool,
reanchor never re-derives the next action or amends a recorded goal, which
changes only on an explicit statement from whoever set it./session-flow:keep-going
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/audit-frictionAudit frictionAudit Claude Code sessions for permission and autonomy friction (denials, approval prompts, hook blocks, hand-offs), traced to cause in one decision brief. Use when the agent keeps asking or handing off, auto mode denies, or re-measuring after permission fixes./audit-sessionsAudit sessionsAudit every Claude Code session on this machine or behind a pull request for wasted time and tokens against a baseline, routing findings to fixes, plus score trends over time. Use when: 'audit my sessions', 'which sessions burned the most tokens', 'retro this PR', trends, or repeating corrections. Not for one session: /session-flow:retro./clean-stopClean stopClean stop before the machine goes away: sweep every repo and worktree touched for uncommitted, unpushed or PR-less work, push it, and give a free-and-clear verdict. Use when: 'clean stop', 'safe to shut down', or stopping for the day. Gates destructive cleanup./continue-in-backgroundContinue in backgroundHand the task to a fresh detached background agent (claude --bg or --cloud) that continues it now from a save-point. Use when the user is going AFK and explicitly asks to 'continue in the background'. Launches only on that request, never self-elected./find-handoffFind handoffRecover a lost handoff save-point or resume prompt after /clear, from the handoffs folder then recent transcripts, confirming before resuming. Use when: 'find my handoff', 'I lost the resume prompt'. A session that ended mid-work: /session-flow:keep-going./go-with-recommendationsGo with recommendationsAccept the agent's latest recommendations after re-grounding each in code/sources, surfacing changed or unconfirmable items; supports exceptions.npx claudepluginhub melodic-software/claude-code-plugins --plugin session-flowOther plugins' skills for the same job