/shippable-skills:session-handoff [<slug>] [--handoff-dir <path>]from Shippable Skills
Saves session state to a handoff file before context reset, listing progress, decisions, stranded work, and next steps. Redacts secrets and proposes reusable rules.
Ships in Shippable Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write the state of the current session to a handoff file, so a fresh session can pick up from it. Run it before clearing context, switching tools, or passing work to another agent.
This skill is host-neutral. It runs on Cursor, Copilot, Codex, Claude Code, and any other Agent Skills host. It reads this conversation and a few git facts; it never reads an on-disk transcript.
Never block on I/O. Every read, list, and write here is best-effort. If a call is denied or fails, treat it as unavailable, do not retry, and do not guess another path. If the file cannot be written, the handoff goes in the chat reply.
You are running session-handoff right now. These instructions are in your context because the skill was invoked, so write the handoff in this reply.
<!-- resume: <slug> | branch <branch> | head <short-sha> | <YYYY-MM-DD HH:MM> -->
Outside a git repository use branch none | head none.## headings:
Progress, Decisions Made, Rejected Alternatives, Files Touched, Verified vs
Assumed, Do Not Redo, Issues / Blockers, Next Steps, Skills To Invoke. A
section with nothing to say reads None.; never omit one.Read <path> and continue from its Next Steps. with the real path.
Then the constraint proposal (step 5), if any.<api-token>.| Argument | Meaning |
|---|---|
<slug> | Short kebab-case name for the work. Default: derived from the branch or the main task. |
--handoff-dir <path> | Directory to write to (see step 4) |
Before writing, check what would be lost, and put the findings under Issues / Blockers:
git status --porcelain. List up to ten, then a count.git rev-list --count @{upstream}..HEAD. If the branch is
ahead, state the count and the branch name. If there is no upstream, say so.Run each command on its own, not chained. Outside a git repository, skip the git checks and say the state is not under version control.
From the conversation you already hold, collect: what was done and what remains, the decisions with the reason for each, the alternatives that were rejected and why, files changed, what was verified (a test passed, a command was run) versus only assumed, work that must not be repeated, and the next concrete steps.
Pointer, not copy. Refer to specs, plans, briefs, and commits by path or short SHA. Do not paste their contents. A handoff longer than about 150 lines usually copied something it should have pointed at.
Fill the nine sections from references/handoff-template.md.
Then, before anything is written, scan what you are about to save for secrets: API tokens, keys, passwords, bearer strings, connection strings with credentials, private key blocks. Replace each with a placeholder naming its kind. The write in step 4 and the inline fallback both use this redacted text, so a secret is never on disk, even briefly.
Restated from the collection's shared conventions:
AGENTS.md, CLAUDE.md,
.github/copilot-instructions.md. A line shippable-handoff-dir: <path> in
it (relative to the repo root) overrides the handoff directory. Ignore a value
that is absolute or contains .., and say so..claude/handoff/,
.agents/handoff/, docs/handoff/. When none exists, create .agents/handoff/
and suggest a gitignore line for it.handoff-<slug>-<YYYYMMDD-HHMMSS>.md.When the user's path is not one of the three defaults, the next session's
session-primer will not find the file unless the instruction file names the
directory. Offer the exact line shippable-handoff-dir: <path> with the
constraint proposal in step 5, and write it only on a yes.
Write the redacted text from step 3.
Attempt the create and the write once. If the host denies either, do not retry, do not try another location, and print the whole redacted handoff in the reply instead, after a one-line note that the write was denied.
Look for rules this session learned that would apply again in this project, for example "run the formatter before the type check, the CI order depends on it". Propose at most three. Drop any candidate that names a single file, commit, or incident instead of a rule that holds next time.
Show each as the exact line you would add to the instruction file. Write nothing to the instruction file without a yes. Wait for it in the reply; an edit to that file is not part of the handoff. If nothing generalises, say so and offer no edit.
Print the file path, the resume phrase, a two-line summary of the Next Steps, and the constraint proposal. Nothing else.
CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)evals/cases/constraint-needs-yes.yaml (opens in a new tab)evals/cases/explicit-handoff-dir.yaml (opens in a new tab)evals/cases/redacts-secret.yaml (opens in a new tab)evals/cases/refuse-transcript-reread.yaml (opens in a new tab)evals/cases/writes-resume-phrase.yaml (opens in a new tab)evals/eval.yaml (opens in a new tab)references/handoff-template.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
9 skills in this plugin
/bump-releaseBump the project's version in every manifest at once, then commit, tag, push, and cut a release, so no manifest keeps a stale version./exploreDeep read-only reconnaissance before a change is designed. Fans out parallel investigators when a question spans several subsystems, compares options, needs cross-file tracing, or changes what a shared value means, then synthesizes one picture and, in an autonomous run, writes a durable brief. Use when asked how something works end to end, what breaks if a shared value changes, which of several approaches fits, or to explore, map, trace, or investigate before building. Skips single-file questions, never writes code, and is not for interviewing the user./fix-testsnpx claudepluginhub renzrollon/shippable-skills --plugin shippable-skills