/aria-knowledge:handoff [auto|brief|snap|resume]from aria-knowledge
Generates a passoff package for session handoff — next-session opener with PROGRESS/CLAUDE/memory updates, commit, and extract, or a brief coworker summary. Use when context is high or handing off to another person.
Ships in aria-knowledge. 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.
None: SKILL.md is the whole skill.
Generate a passoff package so the next reader can pick up cleanly. Two audiences:
auto) — For future-you in a new session (typically when context is high and you need to restart). Synthesizes the session, applies PROGRESS.md / CLAUDE.md / memory updates, commits, runs /extract, and emits a paste-ready next-session opener as the headline artifact.brief) — For another person. Produces a copy/paste prose block (Slack/email-ready) summarizing the session. Does NOT update PROGRESS/CLAUDE/memory, does NOT commit, does NOT run /extract. Output-only — paste it and you're done.For "I'm done, close it out cleanly" with no passoff intent, use /wrapup instead.
Four modes:
/handoff) — Generate ALL drafts (session summary, PROGRESS entry, CLAUDE.md edits, memory updates, commit message, next-session prompt) into one scroll, ask once for combined-go, then apply atomically. Per-item edits allowed.auto (/handoff auto) — Implicit-yes on all gates. Run silently. Apply all drafts without confirmation. Emit final report only. Use when the session is short and unambiguous.brief (/handoff brief) — Generate a coworker-facing prose brief (80-150 words, copy/paste-ready). Skips PROGRESS/CLAUDE/memory/commit/extract entirely. Emits the brief as the only artifact.snap (/handoff snap) — Like auto (silent, apply all drafts, emit the next-session opener), but archives the raw transcript via /snapshot for later extraction instead of running /extract now. Use when context is high: you still get the full handoff package + opener + commit, but defer the expensive, compaction-risky knowledge synthesis to a later session (or the next /audit knowledge digest pass, which reads the snapshot automatically).The next-session opener is the headline artifact in default + auto + snap modes — always produced, even when no other surface changed. That is what distinguishes /handoff from /wrapup. Brief mode is a different shape — handoff to a person, not to a session.
snap is auto plus one swap. snap follows auto's behavior exactly (silent, implicit-yes, apply all drafts, emit the opener) — wherever a step below applies to auto, it applies identically to snap. The single difference is the capture step (Step 6): snap runs /snapshot (archive the transcript for later) while auto runs /extract (synthesize now). Nothing else differs. (snap is NOT brief — it produces the full next-session package, not a coworker prose block.)
Canonical resolution: This is the Claude Code variant. When both plugin-claude-code and plugin-claude-cowork are loaded in the same session (most common in Claude Desktop), bare /handoff resolves to this skill — aria-knowledge (Code) is the canonical owner of all 24 dual-port skills per ADR-094 §Part 1. The Cowork variant is namespaced-only: /aria-cowork:handoff.
Before Step 0 — runtime self-correction. Check whether the Bash tool is available in this session. If Bash is NOT available (you are running in Claude Cowork or another non-Code runtime), this invocation reached the wrong variant for the runtime. Do not ask — redirect. Announce it in one line, then use the Skill tool to invoke aria-cowork:handoff with the same arguments the user provided, and do not run this skill's steps:
↪️ Redirecting to
/aria-cowork:handoff— you invoked the aria-knowledge (Code) variant, but you are running in Claude Cowork or another non-Code runtime.This variant runs
git status/git commitvia Bash, which isn't available here. The runtime-appropriate variant is/aria-cowork:handoff, which emits a copy-paste commit message instead.
⛔ The redirect is unconditional — every mode including auto, and no opt-out. Reaching this variant under that condition is always a mis-invocation, so there is nothing for the user to decide. Design record: docs/superpowers/specs/2026-08-28-runtime-gate-auto-redirect-design.md (D2 auto-redirect, D3 no escape hatch, D6 announce-don't-swap-silently).
If Bash is available, proceed to Step 0.
Read ~/.claude/aria-knowledge.local.md and extract knowledge_folder. If missing, stop: "aria-knowledge is not configured. Run /setup to get started."
Parse the argument:
mode = combined-go (default)auto (case-insensitive) → mode = autobrief (case-insensitive) → mode = briefsnap (case-insensitive) → mode = snapresume (case-insensitive) → mode = resumeUse {knowledge_folder} as the base path for all file operations.
resume mode — pick up a stored prompt (runs INSTEAD of Steps 1-8)⛔ If mode = resume, run this section and STOP. It is a READ flow: it writes nothing except the
consumed mark on the entry you actually pick. None of the handoff write steps run.
1 — build the candidate set. Source scripts/lib-session-state.sh and call
kt_ss_ledger_candidates "{project_root}". It emits <sid>|<at>|<status>|<source>, one per line,
covering the active ## Next session prompt and every unconsumed entry under
## Pending handoffs or the legacy ## Prior sessions — one candidate set, which is what makes
a pending entry visible when there is no active prompt beside it. ⛔ Do NOT re-implement this parse
inline: it absorbs four format axes (two headings, a terminator that may be absent, two prompt
serializations, several status forms) and a hand-rolled version silently drops candidates. ⛔
Archived sections are deliberately excluded.
2 — zero candidates. Say so plainly and stop. ⚠ This is not an error — a clean project with nothing pending is the normal state.
3 — one candidate. State its focus and its age, confirm, then resume it.
4 — two or more. Render a numbered list, newest first — ONE LINE PER CANDIDATE:
1. · 1d DEV-1089 PHASE 2 is deployed, verified and closed (served f92839b, LOG-142); /preflight…
2. · 2d DEV-1130 T4 + T7 SHIPPED, PUSHED and DEPLOYED to staging (backend a217670, frontend ma…
3. S 7d Currency arc. DEV-1659 SHIPPED + DEPLOYED + VERIFIED LIVE. DEV-1662 specced, gated twi…
<n>. <freshness: · fresh / S stale> <age> <focus, clipped to ~88 chars with an ellipsis>.
⛔ next: is NOT in the list. Show it only for the candidate the operator SELECTS, at confirm
time. That is where it is decision-detail; in the list it doubles every row's height to carry
information about 43 candidates you are not picking.
⛔ Build every field from the STORED values — no synthesis. kt_ss_ledger_add stores them at
full fidelity precisely so this list needs no LLM summarisation, and a summarised row is a row that
can be wrong. ⚑ Clipping is not synthesis — it is deterministic truncation with a visible
ellipsis, so the reader knows there is more and nothing was invented.
⭐ THE ROW IS THE LEVER, NOT A CAP — measured 2026-09-16, by rendering both against a live ledger
of 44 candidates. The first draft of this clause rendered focus AND next per row and capped at
5. Rendered: 5 rows cost 15 lines and hid 39 candidates, all of them FRESH — the cap was hiding
live work, not dead work, because an archiving pass had already removed the dead. The same 44
candidates as one-line rows cost 44 lines: one scroll, every ticket id readable, choosable by eye.
⚠ A cap survives only as a SAFETY VALVE, not a display limit. Above 40 candidates, render the
40 most recent and then one line: … and N more (M stale) — say "all" to list them. ⛔ It is a
RENDERING limit only: selection still accepts any candidate by id, and the hidden count is always
shown. A cap that silently narrowed the choice would be the same defect as never offering the
entries at all.
⚑ Do not "improve" this by reintroducing a small cap. The arithmetic that produced 5 predicted five rows would cost ~40 lines; rendering them cost 15. Render it before changing the number.
5 — staleness gates the pick, it does not evict. Every row shows its verdict. If the chosen row
is stale, confirm before proceeding, offering [resume / keep]. ⛔ archive is not offered here:
no kt_ss_ledger_archive exists, and inventing one would be new write machinery in a read flow.
⛔ Time never evicts. An aged entry is surfaced with its age and left alone unless a human says
otherwise.
⚠ Entries stored since 2.58.0 escape structural lines: a stored line that begins with \ before ## ,
### or ```, or that is \ followed by exactly <!-- aria:entry-end -->, is escaped — read it without that one backslash, and never copy
the backslash into a command.
6 — combining. Offer a combine only when two candidates share a project root and their
next: fields name disjoint work. Present it as one extra numbered option, never auto-selected;
its absence is not an error. ⚠ The real corpus argues for restraint: a hand-written prompt already in
the wild asks the reader to "pick one … the stronger candidate", with two pending next: fields
that overlap heavily. Recommending a combine there would be wrong.
7 — on selection. Execute the chosen prompt, then mark exactly that entry consumed:
kt_ss_ledger_mark_consumed "{project_root}" "<sid>" "<now>" "<your sid>" "<at>".
⭐ Pass the fifth argument. Without it the match is by sid alone, and a sid can appear under two
different timestamps — one live ledger carries exactly that today, so a sid-only mark would close
both entries. You hold the exact at here because the candidate line gave it to you.
⚠ If the chosen candidate's source is active rather than pending it has no ### entry to mark;
say so rather than reporting a consume that did not happen.
Same logic as /wrapup Step 1 — detect:
project_*.md files in ~/.claude/projects/ matching the current pathgit status in each git repository within the project to detect uncommitted changesAdditionally, determine the project marker for the next-session opener (Step 9):
cs, ss, df, kn, ar, jp if those conventions exist).[no-project] — the opener will still work, just without auto-routing.If no PROGRESS.md or CLAUDE.md is found, note this — proceed with the steps that apply.
Build the session synthesis internally — do NOT print it yet:
This synthesis feeds every subsequent step.
Mode branch: If mode = brief, jump to Step 2B (Brief Output) and stop there. Skip Steps 3-8 entirely. Otherwise continue to Step 3.
Skip this step entirely if mode != brief.
Brief mode produces a single copy/paste artifact — a coworker-facing prose brief. No PROGRESS update, no CLAUDE.md edit, no memory write, no commit, no /extract call. Just the prose, formatted for paste into Slack / email / chat.
Compose an 80-150 word prose block following this template (cap at 200 words). Fill placeholders from the Step 2 synthesis; if a section has no relevant content for this session, omit the section line entirely (don't leave empty bullets).
Hey [coworker] —
Quick brief on {topic from synthesis} from {YYYY-MM-DD}:
**What happened:** {2-3 sentence summary drawn from synthesis "Current state" + "Files changed"}
**Key decisions:**
- {decision 1 from synthesis "Key decisions"}
- {decision 2}
- {decision 3 if relevant — cap at 4 bullets}
**What's next:** {1-2 sentences from synthesis "Next steps" + "Open threads"}
**Where to pick up:** {file path, PR link, ticket ref, or doc link — omit this whole line if N/A}
Let me know if you want me to walk through any of this.
Notes for filling the template:
[coworker] as a literal placeholder — user fills the name at paste time. Don't prompt for a name.Emit the brief inside a code fence so it copies cleanly. Format:
## Coworker Brief — {YYYY-MM-DD}
Paste this directly into Slack / email / chat:
{full brief from 2B.1}
That's it — no further handoff steps run in brief mode. If you also want to update PROGRESS.md, memory, or run /extract, invoke `/handoff` (default) or `/handoff auto` separately.
Exit after emission. Do not run any subsequent steps.
In parallel, draft every artifact this handoff might write. Do NOT apply anything yet.
If PROGRESS.md exists: draft a new session entry matching the existing format (heading style, date format, structure). If today's entry already exists, draft an append-to-existing delta instead of a duplicate entry.
If CLAUDE.md exists: check if anything from this session contradicts, outdates, or is missing from it. If updates are needed, draft the specific edits (show old → new diffs). If nothing needs updating, mark as current — do NOT force updates for the sake of updating.
Check ~/.claude/projects/.../memory/project_*.md files matching the current project path. Compare against the session synthesis. If memory is stale, draft an update (specific old → new lines). If no update needed, mark as current.
For each git repository with uncommitted changes: draft a conventional-commit message based on the session synthesis. List specific files to stage (NOT git add -A). Skip repos with no changes.
Build a fenced block intended for paste into the next session. Format:
⛔ The FIRST line inside the fence is the provenance token — aria-handoff: {project}/{sessionId}@{at}, carrying the same sessionId and at this handoff writes to the front matter. It is data, never an instruction, and it is VISIBLE by design (ruling 2026-09-15): the one person able to notice it is wrong is the one pasting it.
⭐ Why inside the fence, and first. The 3e opener is authored once and reused verbatim in BOTH the pasteable artifact and the SESSION.md prompt block, so a token here lands in both — which is what makes it self-locating: a receiving session finds the prompt by searching for the token itself, not by parsing headings or trusting a header. FIRST, so a head-truncated paste still carries it; INSIDE the fence for the same reason the Read on resume: line must be — anything after the closing fence is silently dropped on paste.
⚠ It is the only durable attribution channel. Before v2.57.5, post-edit-check.sh rewrote the front-matter sessionId on the next session's first edit while kt_ss_mark_inprogress passed the BODY through untouched, so the front matter recorded who TOUCHED the file last while the token records who WROTE the prompt. Since v2.57.5 the hook leaves a file holding a live prompt alone, but files stamped before then, and installs older than v2.57.5, still disagree — so the token stays the authority.
aria-handoff: {project}/{sessionId}@{at}
{project-marker}
Resume {project-name} from {YYYY-MM-DD} handoff.
Suggested next session: {model · effort}
({one-line rationale grounded in the first action})
Read first:
- {PROGRESS.md path} (latest entry)
- {primary CLAUDE.md path}
- {any relevant memory file paths}
Where we left off:
- {1-3 bullets summarizing current state}
Open threads:
- {bulleted list from synthesis "Open threads"}
First action:
- {derived from synthesis "Next steps", phrased as an imperative}
The opener is always produced, even when the session was short or no other artifacts changed — it's the headline deliverable.
Suggested next session: valueThe recommendation is the current session's judgment about what the next session's hardest first action needs. Pick the rubric row matching that first action (from the Step 2 synthesis: Next steps + Open threads + Current state). Both axes descend together as one difficulty gradient, so the matched row doubles as the rationale skeleton.
| Next session's character | Recommend |
|---|---|
| Novel architecture · deeply ambiguous · high asymmetric failure cost · gnarly debugging | Opus · xhigh (max only if truly hard — session-only, may overthink) |
| Design + hard multi-step implementation, real ambiguity | Opus · high |
| Standard implementation with a clear-ish plan, moderate complexity | Opus · medium |
| Planning is the hard part, execution mechanical | opusplan |
| Well-specified implementation, moderate mechanical work | Sonnet · high |
| Routine mechanical execution (sweeps, renames, doc edits, plan already written) | Sonnet · medium |
| Trivial lookups / status checks | Haiku |
Rules for the line:
Fable / Opus / Sonnet / Haiku) — a bare family name means the latest version of that family. Never write a version number.low · medium · high · xhigh · max (Fable, Opus, and Sonnet support effort; Haiku does not — emit Haiku with no · effort suffix). opusplan (Opus plans → Sonnet executes) is its own token, no effort suffix.Opus · high, rationale "general session, no strong signal."Fable is the tier above Opus (displayed "Fable 5"). Recommend Fable · xhigh in place of the top row's Opus · xhigh only when the hardest first action is at the extreme end of difficulty — novel architecture, gnarly cross-system debugging, high-asymmetric-failure-cost reasoning — where a wrong/shallow answer is costly enough to justify ~2× Opus's price. Context size is not the trigger: Fable and Opus share the same 1M window, so a large-but-tractable task (big /codemap, multi-doc synthesis) stays on Opus. The Opus rows otherwise stand and the uncertainty fallback stays Opus · high.This line is advisory — it does not set the model. The user selects via /model and /effort; a running next-session model uses the effort cue + a mismatch self-check.
Skip if session_state is not true in ~/.claude/aria-knowledge.local.md (read in Step 0). When enabled, draft {project_root}/SESSION.md as a handoff-state snapshot per aria-atlas/docs/TEMPLATE_SESSION.md (full rewrite; create if absent — the one create-exception to the skip-gracefully rule):
lastEvent: handoff; at: current UTC (date -u +%Y-%m-%dT%H:%M:%SZ); currentFocus: one line; nextAction: the imperative first action from 3e; branch:/headCommit: from git -C {project_root} rev-parse --abbrev-ref HEAD / ... rev-parse --short HEAD (omit if not a git repo); by: author_tag (omit if unset); sessionId: REQUIRED — the next handoff's demote decision keys on it, and an absent value makes that guard unevaluable (which historically read as "the ledger doesn't apply", and the handoff got skipped). Read it from the existing front-matter or the session context; if it genuinely cannot be resolved, write sessionId: unknown rather than omitting the line.## Where we left off + ## Next session pickup (2-4 sentences each); ## Next session prompt = the 3e opener verbatim inside the fenced block (it may contain nested ``` fences — preserve them).The 3e opener is authored once and reused here — single source, no divergence between the closing report's opener and the SESSION.md prompt block.
NEVER SKIP THIS STEP TO AVOID CLOBBERING SOMEONE ELSE'S STATE. A SESSION.md may legitimately hold several still-valid next-session prompts, and the ledger below exists precisely so you never have to choose between overwriting a handoff and abandoning yours. Skipping is the worst outcome: your opener is lost entirely, which is the one thing this design is built to prevent. If a prior handoff is present, demote it and write yours — both survive.
⛔ FIRST — the ordering check. An OLDER session must never regress a NEWER one's state. Before demoting anything and before the rewrite, read your own at and call kt_ss_active_is_newer "{project_root}" "<your at>" (from scripts/lib-session-state.sh):
## Pending handoffs: with your file-write tool, write a new, uniquely named file in your scratchpad (else the system temp dir — never an existing file) holding the line focus: <one line>, the line next: <one line>, the line prompt:, then your prompt verbatim; then run kt_ss_ledger_add_file "{project_root}" "<your sid>" "<your at>" '<entry file path>' (exit 0 = stored and verified; 1 = refused, nothing written; 3 = did not land). Leave the active slot untouched, and say so in the closing report — naming the owning session and both timestamps. ⛔ Never pass focus, next or prompt text as a shell argument — a prompt's backticks and $ run inside a double-quoted argument; the file is the only channel for them.⚑ This is NOT the demote described below, and the difference is the whole point. That demote preserves the incumbent's prompt; the full rewrite still replaces its lastEvent, at, currentFocus and nextAction wholesale. Prompt-shaped protection against state-shaped damage. Measured 2026-09-15: lib-session-state.sh carried zero comparisons of the incumbent's at, so nothing ordered concurrent writers at all.
⚠ The fork this closes is a FALSE binary. Facing a newer incumbent, sessions have been choosing between clobbering it and skipping their own write entirely — and reporting the skip as the careful choice. Self-demote loses neither side. ⛔ So "the incumbent is newer" is never a reason to write nothing.
⚠ Bound, stated rather than hidden: before v2.57.5, kt_ss_mark_inprogress rewrote the front matter on a session's first edit even over a waiting handoff, so in a file stamped then (or under an older install) at tracks last touch, not last meaningful state, and a session that edited one file outranks one holding a real handoff. Since v2.57.5 the hook stamps only a file whose active slot is empty. That is benign under self-demote specifically — the handoff still lands in Pending rather than being dropped.
Multi-session ledger (several valid prompts can coexist — nothing is ever lost): if the existing SESSION.md carries a non-empty prompt block — whatever its lastEvent, and whatever its sessionId — DEMOTE it before overwriting the active slot. ⛔⛔ The gate does NOT test sessionId, deliberately: it can name whoever last TOUCHED the file, not whoever wrote the body. Before v2.57.5, post-edit-check.sh stamped the current session's id onto the front-matter while kt_ss_mark_inprogress passed the body through, so files stamped then, and installs older than v2.57.5, carry your own id over another session's prompt; and by:, which IS preserved, is person-granular and cannot separate two sessions of one author. Full reasoning and the measured falsifier: /wrapup Step 6.5 item 1 and docs/superpowers/specs/2026-09-11-demote-gate-sessionid-conjunct-design.md §2.2. Source scripts/lib-session-state.sh and call:
⛔ WHERE THOSE VALUES COME FROM: THE TOKEN WINS OVER THE FRONT MATTER. If the prompt block being demoted carries an aria-handoff: <project>/<sid>@<at> line, kt_ss_ledger_demote_active stores it under the token's sid and at — not the front matter's, even when the two disagree. Especially when they disagree: that disagreement is the signal, not noise.
⚑ Measured, 2026-09-14. A session replaced the active prompt body without rewriting the front matter. Fourteen minutes later another session ran /handoff correctly, read the prior file's values exactly as this clause instructs, and stamped one session's handoff with a different session's identity — permanently. The file lied to it, and nothing in the file could have told it so. The token is what makes that detectable: it travels in the body, which no rewrite path touches.
⚠ A prompt with no token (every prompt written before this change) behaves exactly as before — front matter is the only source, and the existing hook-artifact annotation below still applies to it.
kt_ss_ledger_demote_active "{project_root}" "<your sid>" — moves the prior active entry into ## Pending handoffs (newest-first) as unconsumed, reading the prompt, currentFocus and nextAction from the file itself, so no free text passes through a shell argument (a stored prompt's backticks and $ would run inside a double-quoted one). Exit 0 = demoted and verified on disk, printing <sid>@<at>; 1 = nothing live to demote — write as normal; 3 = the demote did not land — ⛔ stop and report, do not rewrite, or the prompt is lost. It does not clear the active slot: your rewrite replaces it. The prompt is stored at FULL fidelity — never collapsed to one line: an unconsumed prompt is still-valid work, and collapsing it degrades a mandate nobody has used yet. ⚠ The demoted sid may be a HOOK ARTIFACT — the helper annotates it. When the prompt carries no token and the front matter's sessionId equals the <your sid> you pass, that id was stamped by post-edit-check.sh and the true author is not recoverable from the file; the helper prefixes the stored focus with ⚠ sid is a post-edit-check.sh HOOK ARTIFACT, not attribution — so the entry does not read as yours. A prompt you wrote yourself carries a token (3e writes one), so it is never annotated. ⛔ It goes in focus, never in the sid — the sid is what kt_ss_ledger_mark_consumed (^### .*<sid>) and is_entry_header key on, and a ledger checker captures everything before the first · as the id. (A human reached for this exact shape unprompted, twice, before it was specified.) ⛔ The helper and kt_ss_ledger_consume_active pass the FENCED prompt block — the -delimited body sitting under `## Next session prompt`, *without* that heading — and never the prior session's whole body. ⚠ **Since 2.58.0 a stored prompt is framed safely for EVERY reader.** `kt_ss_ledger_add` stores with ONE leading backslash each prompt line that begins at column 0 with `## `, `### ` or ```` ````, and each line that is exactly <!-- aria:entry-end -->, so no stored line can read as a heading, an entry header, a fence or a terminator — to the shell helpers or to a heading-scoped reader. ⚠ Entries written BEFORE 2.58.0 are not rewritten, and for them the terminator still declares the boundary for the SHELL HELPERS ONLY. kt_ss_ledger_* boundary on <!-- aria:entry-end -->, so an unfenced column-0 ## inside such a prompt is harmless to them — but the SESSION STATE directive and any ledger checker are heading-scoped, and to those readers such a line ENDS the ledger section and orphans every entry after it. Measured on proj-a/SESSION.md 2026-09-09: one demoted entry carried all three of ## Where we left off, ## Next session pickup and ## Next session prompt — the signature of a caller who passed the whole body — and 75 downstream entries fell outside the ledger. Before 2.58.0 a fenced body was safe for both readers; since 2.58.0 every column-0 fence line inside it is stored escaped too.kt_ss_ledger_prune "{project_root}" — drops any entry a resume already marked consumed. Unconsumed entries always survive, at full fidelity.Skip the demote only for a FRESH in-progress marker whose body is just (session in progress) — that is the one state in which the stored entry would be empty. kt_ss_ledger_demote_active applies this rule itself: for that marker, an empty slot or an empty fence it exits 1 and writes nothing. ⛔ A lastEvent: in-progress marker that carries a real prompt MUST be demoted. Before v2.57.5, kt_ss_mark_inprogress rewrote the front-matter keys and passed the body through with a bare { print }, so such a marker could still hold the previous session's entire ## Next session prompt — post-edit-check.sh created that state whenever a second session edited in a project holding a handoff. Since v2.57.5 the hook leaves such a file alone, but files stamped before then, and older installs, still produce it. The rationale this replaces asserted the opposite and its effect was to overwrite live pickups; do not restore it, and do not restate it in order to explain it — a test asserts its exact wording is absent from this section.
THEN write the new active header + ## Next session prompt (the full rewrite below). ## Pending handoffs is managed by these helpers — the rewrite replaces only the front-matter + active body, never the pending section. (Files written before this rename carry ## Prior sessions; the helpers keep using it for those, so nothing is orphaned.)
Before writing, check what this session left behind (two cheap reads, both report-only):
sh "${CLAUDE_PLUGIN_ROOT}/scripts/aria-state.sh" path "aria-r22-bypass-<session_id>" if it exists (an aria-state: reason instead means the private state directory is unavailable: say so, and that the bypass record could not be read) — each line is a file mutation made through Bash, which routed around the Edit/Write gate and so landed with no scope assessment recorded. Report the count and the idioms in the close-out, and if you modified a tracked file through Bash this session say whether it carried a [Rule 22] assessment. ⚠ The writer, scripts/pre-bash-write-check.sh, is RECORD-ONLY by design — it warns and never denies, so an ignored warning leaves no other trace and this ledger is the only record. ⛔ Do not restore the claim that this ledger has no writer. A prior version of this step said "there is no ledger to read any more … retired as its only writer" and it was FALSE: the writer was replaced, not retired — the retired guard decided from the command STRING, the replacement resolves the mutation TARGET and is wired. That sentence also carried its own removal trigger, "until a replacement exists", and the trigger fired unnoticed: measured 2026-09-11, 19 live ledger files were present while four skills asserted there were none.## Pending handoffs (or a legacy ## Prior sessions) holds entries still marked unconsumed, state how many and name their sessions in the closing summary. A prompt that is stored but never surfaced is lost in practice — this is the second of three checkpoints (the others are /wrapup and resume).Tracked or ignored — read session_state_tracked (default false):
false (default) — ignore it, never commit it. SESSION.md is ephemeral per-session state (atlas reads from disk; PROGRESS.md is the durable log). If {project_root} is a git repo and SESSION.md is not already tracked, ensure .gitignore ignores it. Never stage SESSION.md — exclude it from the Step 5 / 3d commit.true — it is a tracked artifact. Do NOT add an ignore line, and DO stage it with the Step 5 / 3d commit. If an ignore line already exists, remove it: leaving one makes the config assert something git is not doing. Choose this when SESSION.md carries a decision trail you need versioned — most often in a repo with no PROGRESS.md, where SESSION.md is the durable log and the default's rationale does not hold.⛔ Test tracking with git -C {project_root} ls-files --error-unmatch SESSION.md, never "is the pattern already in .gitignore?" An ignore rule is a no-op on an already-tracked path, so a pattern check can never become true for a tracked file and the clause appends on every run — one observed .gitignore had accumulated four identical SESSION.md lines. ⚠ git check-ignore cannot serve as the test either: it consults the index, so it reports a tracked file as not ignored.
Skip this step entirely if mode = auto or mode = snap. (Both run silently with implicit-yes — no review gate.)
In default mode, present all drafts together in one scroll under clear section headers, then ask once:
## Handoff Review — combined-go
[3a: PROGRESS.md entry draft]
[3b: CLAUDE.md updates draft, or "no changes needed"]
[3c: Memory updates draft, or "no changes needed"]
[3d: Commit messages + staged file lists per repo, or "no uncommitted changes"]
[3e: Next-session opener]
[3f: SESSION.md (handoff state) draft, or "skipped — session_state off"]
---
**Apply all of the above?**
- `yes` — apply all drafts, run /extract, emit final report
- `edit {section}` — let user revise a specific section before applying (3a, 3b, 3c, 3d, 3e, or 3f)
- `skip {section}` — apply everything except the named section
- `abort` — apply nothing, exit cleanly
Wait for explicit response. Allow multiple edit / skip directives in sequence (re-show the scroll after each revision). The final action is yes or abort.
Apply approved drafts in order. For auto and snap modes, this runs immediately after Step 3 with no review gate.
git add -A)lastEvent, and whatever its sessionId), run kt_ss_ledger_demote_active "{project_root}" "<your sid>" (it reads the prompt from the file at full fidelity — never collapsed; exit 3 = stop, do not rewrite) + kt_ss_ledger_prune FIRST (demote + prune), THEN write {project_root}/SESSION.md (handoff state — full rewrite of front-matter + active body + ## Next session prompt, create if absent; ## Pending handoffs is managed by the helpers, not the rewrite). Skip the demote only for a fresh in-progress marker whose body is just (session in progress) — one carrying a real prompt MUST be demoted — and never skip 3f to avoid clobbering — demote instead, so both survive. Skip only if session_state is off or the user skip-ped 3f.If any step fails (e.g., commit hook rejects), surface the failure inline and stop — do not silently continue.
If mode = snap: Do NOT run /extract. Instead invoke the /snapshot skill to archive the raw transcript to intake/pre-compact-captures/ for later extraction. This is snap mode's defining difference: capture is deferred, not synthesized now. Like auto's "extract always runs" invariant, the snapshot ALWAYS runs — there is no skip path. The snapshot is the deferred-extraction handoff: a later /extract, or the next /audit knowledge digest pass (which reads intake/pre-compact-captures/ automatically), synthesizes knowledge from it when context isn't a constraint. Capture /snapshot's output (the snapshot path) for inclusion in Step 8. Use snap when context is high and running /extract now would risk compaction mid-synthesis. (/snapshot requires Bash, which the Step-0 runtime gate already guaranteed.)
Otherwise (default + auto modes): ALWAYS invoke /extract programmatically. This applies to default mode (after the user has approved the combined-go review in Step 4) AND auto mode unconditionally. No judgment-skip allowed — even if the session feels short, conversational, or seems to have nothing new to extract, run /extract anyway. The handoff skill must not pre-judge whether extraction is worthwhile; /extract has its own dedup logic (per its Rules section: "Never ask for confirmation — scan and dump") that correctly handles the "nothing to add" case by reporting No uncaptured knowledge found. Auto mode's "implicit-yes on all gates" rule converts to "extract always runs" here — there is no skip path. Capture /extract's summary report for inclusion in Step 8.
(Brief mode never reaches Step 6 — it exits at Step 2B before any handoff side-effects, per the Rules section.)
Run the same checklist /wrapup Step 7 uses:
## Handoff Checklist
- PROGRESS.md — [updated / already current / not found / skipped]
- CLAUDE.md — [current / updated / not found / skipped]
- Memory — [updated / already current / not found / skipped]
- Git — [committed N file(s) / no changes / uncommitted (skipped)]
- /extract — [N items captured / nothing new / deferred: transcript snapshotted to intake/pre-compact-captures/ for later extraction (snap mode)]
- SESSION.md — [written: handoff (prompt embedded) / skipped (session_state off)]
- Tracked artifacts — [all fresh / N stale (consider /codemap update or /stitch verify for {tags}) / not checked]
- Next-session opener — [emitted below]
Tracked artifacts check (added v2.16.1): if active project detected (from Step 1's identification), stat {project_root}/CODEMAP.md and {project_root}/STITCH.md against codemap_staleness_threshold_days / stitch_staleness_threshold_days from config (defaults 14 / 30). Report status. Don't block on staleness — surface for visibility so next session starts with awareness.
Flag any gaps but don't block — the user may have skipped sections intentionally.
Emit the closing report. The next-session opener is the headline artifact — surface it prominently and inside a code fence so it copies cleanly.
## Handoff Complete — {default | auto | snap} mode
[Handoff Checklist from Step 7]
[/extract summary, 1-2 lines]
---
### Next-session opener — paste this to resume
{full opener from Step 3e}
Read on resume: {primary CLAUDE.md path} for current state.
The Read on resume: line MUST sit INSIDE the opener fence (the last line of the pasteable block), never after the closing ```. It is part of the artifact the user pastes into the next session — if it lands outside the fence it is silently dropped on paste. (Step 3e's opener already carries a Read first: pointer inside the fence; this Read on resume: line is the Step-8 report's echo of it and must stay equally inside.)
Suggested next session: line (default + auto + snap modes; not brief). De-versioned model family (Fable/Opus/Sonnet/Haiku, never a version number) + effort level + a one-line rationale grounded in the first action. It is advisory, not model-setting. Brief mode does not carry it. See Step 3e's rubric for the row mapping.auto mode applies everything without confirmation. The user explicitly opted into that risk by typing auto. Do not introduce confirmation gates in auto mode — that defeats the purpose.brief mode produces output only — no side effects. No PROGRESS update, no CLAUDE.md edit, no memory write, no commit, no /extract. The brief is a copy/paste artifact for a person, not durable state. Users who want both a brief AND state updates run /handoff brief then /handoff (or /handoff auto) separately — two passes, two artifacts.[coworker] as a literal placeholder. Don't prompt the user for a recipient name. They'll fill it at paste time. This avoids friction and supports "send to multiple people" use cases.edit / skip keeps the per-item escape hatch.git add -A. Avoid capturing sensitive files (.env, credentials) that happen to be untracked.snap defers, never drops, capture. In snap mode Step 6 runs /snapshot instead of /extract — the snapshot ALWAYS runs (no skip path, same as auto's "extract always runs" invariant). The raw transcript is preserved so a later /extract or /audit knowledge digest can synthesize it; snap never means "skip knowledge capture," only "capture cheaply now, synthesize later." snap is otherwise byte-for-byte auto behavior: silent, implicit-yes, emit the next-session opener, local commit only, never push. snap is NOT brief — it produces the full next-session package, not a coworker prose block, and unlike brief it DOES update PROGRESS/CLAUDE/memory and commit./handoff brief runs are fine (each produces a fresh brief reflecting current state).What SKILL.md sets; muted values are Claude Code's defaults
40 skills in this plugin
/aria-assistMorning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review / daily PM digest / "what should I do today across my products", or when the launchd job fires it headless. Two modes - `generate` (headless: read facts, deep-review ACTIVE projects, apply logged light writes, write the dated digest + per-project PM-REVIEW.md) and `review` (interactive: load today's digest, walk proposals, execute approved ones). Roster comes from projects_list; settings from pm_* keys in aria-knowledge.local.md. (Claude Code variant — full scheduler path. Other ports run manual-only generate/review.)/ask/ask — Query-Driven Knowledge CreationResearch a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate category. Use when user says '/ask', 'ask about', 'research and save', 'I want to learn about', 'what is the pattern for'. Skips backlogs — the user reviews the answer in real-time before saving. (Code port — ADR-094.)/audit/audit — Audit Family DispatcherUmbrella for the audit family — the canonical way to run every sub-audit: '/audit knowledge' (scan memory and plans for extractable knowledge, backlog-to-promotion review), '/audit config' (CLAUDE.md/settings/docs drift and staleness), '/audit style' (mine session-log history for revealed working-style rules), '/audit usage' (value/ROI report over your own corpus), '/audit rules' (mine your distilled corrections for promotable standing rules), or '/audit share' (batch-review personal knowledge for promotion to the team-shared tier). Trigger: '/audit', 'run an audit', 'knowledge audit', 'config audit', 'audit my style', 'audit my rules', 'usage report', 'share knowledge', 'promote to team'.npx claudepluginhub mikeprasad/aria-knowledge --plugin aria-knowledgeOther plugins' skills for the same job