/handoff-state:resumefrom handoff-state
Use when a SKILL_HOT_SWAP_PAYLOAD is present (injected by the SessionStart hook, pasted by the user, or sitting in the handoff store) or the user types /resume — restores prior-session state and continues execution.
Ships in handoff-state. 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.
Boot from a # SKILL_HOT_SWAP_PAYLOAD and continue the prior session's work as if it never
stopped. The payload is the source of truth; do not re-derive decisions it already records.
Most of the time you will not need to invoke this explicitly: the SessionStart hook injects the
payload into context automatically and tells you to follow these steps. Invoke it by name when
the payload was pasted, or when you want to resume a payload the hook did not inject.
Locate the payload, in priority order:
Payload text pasted in the user's message or given as arguments
Payload injected into context by the SessionStart hook
HANDOFF.md in this worktree's store directory:
cat "$(~/.claude/handoff/bin/handoff-path.sh)/HANDOFF.md"
That resolver is republished on every session start. If it is missing, the plugin's hooks are not running — say so rather than guessing at a path.
If no payload exists, say so in one line and stop — do not invent state.
Parse all sections: OBJECTIVE, ARCHITECTURE, LAST_STABLE_STATE, ACTIVE_BLOCKERS, EXECUTION_QUEUE, MEMORY_DUMP. Treat MEMORY_DUMP JSON as session variables: decisions already made are settled — do not re-litigate them.
Verify the world still matches LAST_STABLE_STATE: git status --porcelain +
git log -1 --oneline. If reality diverges (new commits, cleaned tree), trust reality, note
the divergence in one line, and adapt the queue.
Skip all greeting/recap sequences. Print exactly:
🔄 [STATE_REBOOT]: Resuming execution stream from item 1 of the EXECUTION_QUEUE.
Immediately execute EXECUTION_QUEUE item 1 with tool calls, then continue down the queue. If
MEMORY_DUMP.active_code_buffer is non-empty, restore it to its target file before running
anything that depends on it.
A payload generated by the PreCompact/SessionEnd hook is a mechanical snapshot: it says so
on its GENERATED line and its OBJECTIVE and ACTIVE_BLOCKERS read (not captured). Reconstruct
the task from the transcript tail it includes, rather than reporting that the objective is
unknown. A payload written by /handoff is authoritative and needs no such reconstruction.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub smacfiggen/agent-annex --plugin handoff-state