/mpocock:handoff What will the next session be used for?from mpocock
Compact the current conversation into a handoff document for another agent to pick up.
Ships in mpocock. 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 a handoff document summarizing the objective plus the next-session focus.
Write handoffs into the directory the user's or project's instructions name for handoffs. If they name none, use .handoffs/ at the project root.
When this handoff is one link in a sequence, capture the whole workstream: overarching goal, full task list with done / current / remaining status, and every decision, convention, or constraint agreed up front that binds all tasks. That is carry-forward context and it must survive the entire chain.
Include a "suggested skills" section in the document, naming which skills the next agent should call the Skill tool for.
Do not duplicate content already captured in other artifacts (specs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
Redact any sensitive information, such as API keys, passwords, or personally identifiable information.
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
After you create or update the handoff file, do these steps in every session, local or cloud. Do not use a different format.
SendUserFile, so the user can download it. If no such tool is available, or sending fails, and the user cannot open the file where it is (for example, the session runs in a remote container), put the entire handoff document in chat as one fenced code block instead, so the user can copy it. Use a backtick fence of at least three backticks, and more than the longest backtick run in the document.@ before the path, with no space, so a paste into the next session refers to the file. Most harnesses show a copy button on a code block. Put nothing after the code block.Example of the end of the message:
Handoff: auth migration. Token refresh is done. Next session moves the session store to Redis. Open item: decide the TTL for remember-me tokens.
```
@/home/user/project/.ai/.handoffs/auth-migration.md
```
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub uraxii/dotai --plugin mpocock