/handoff:handoff What will the next session focus on? (optional)from handoff
Compacts the current conversation into a handoff document so a fresh agent can resume in-flight work without context loss. Useful for long sessions, teammate handoffs, or parking work for later.
Ships in handoff. 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.
Write a handoff document that captures the live, transient state of the current conversation so a fresh agent can resume without re-deriving it. Save it under the output location below.
$TMPDIR/claude-handoffs/<UTC-timestamp>-<short-topic-slug>.md
Falls back to /tmp/claude-handoffs/ if $TMPDIR is unset. Create the directory if missing. Use a colon-free UTC timestamp such as 2026-05-21T14-30Z; names sort newest-last.
Frontmatter:
---
created: <ISO-8601 UTC>
source-cwd: <pwd>
source-branch: <git branch --show-current, if in a git repo>
next-focus: <user's argument, or "(unspecified)">
---
Then sections, IN THIS ORDER:
What is the next agent picking up? Single sentence. If the user passed an argument, this MUST reflect their intent for the next session, not a recap of the current one.
Three buckets, each with bullet points (omit empty buckets):
For each in-flight item, name the next concrete action. ("Run gh pr merge 25" beats "Merge PR #25 when ready".)
This is the section that justifies the handoff existing at all. Include:
Bash run_in_background jobs you started, CronCreate schedules, Monitor streams, ScheduleWakeup timers. List the task ID, what it's waiting for, and where its output goes.For each artifact the next agent should read:
gh pr view <N> shows description + statebd show <id> for in-progress / blocked workgit log <range> for the recent history~/.claude/projects/<project-id>/memory/<file>.md for cross-session context~/.claude/plugins/cache/<...>/SKILL.mdQuote a line only if the next agent needs that exact wording to make a decision.
Skills the next agent will likely want to invoke. Be specific to what's actually installed and relevant:
pr-review-loopbeads:beads, beads:readySingle line the user can paste into the next session as the opening message, e.g.:
Read the handoff at /tmp/claude-handoffs/2026-05-21T14-30Z-handoff-rebase-cto-review.md and continue from "In flight".
If the information already lives in git, beads, or memory, link to it; do not paraphrase. The handoff is a bridge to those sources, not a replacement for them. A 50-line handoff that points at the right artifacts beats a 500-line one that retells the artifacts' contents.
Before saving, scan the doc for:
sk-, gho_, ghp_, github_pat_, xoxb-, xoxp-, AKIA, ASIA, AIza, Bearer , etc.)<redacted>If anything sensitive can't be redacted without breaking continuity, NOTE it explicitly: <redacted: contact user for value>.
When constructing <short-topic-slug> for the filename, replace any character that isn't alphanumeric or hyphen — especially /, ., .., leading dots, and whitespace — with -. This keeps the handoff document inside its intended directory and avoids path-traversal surprises if the slug is ever derived from untrusted input (PR titles, issue text, etc.).
If the user passed /handoff <focus>, that's the driver for the doc. The "One-line summary" must match it; "State of play" should highlight what's relevant to that focus; "Suggested skills" should be picked for it. Don't dump the entire session if the user only wants to hand off one slice.
If the user passed no argument, write a general-purpose handoff covering whatever's in-flight.
The receiving agent will read this cold. Use clear headers, short paragraphs, and concrete action verbs ("Run X", "Read Y", "Decide whether to Z"). Avoid narrative-style retrospectives ("I was in the middle of...") in favor of structured bullets.
Output to the user:
Do NOT output the full handoff content in your message — the user can read the file. Keep your final message short.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub devonjones/devon-claude-skills --plugin handoffOther plugins' skills for the same job