From handoff
Manages context transfer between AI coding sessions. Activates when HANDOFF.md exists, when user mentions handoff/resume, or when ending significant work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/handoff:handoffThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check the working directory for `HANDOFF.md`. If it's there:
Check the working directory for HANDOFF.md. If it's there:
/handoff:resume flowAlso check for HANDOFF-auto.md. If found and no HANDOFF.md exists, tell the user: "Found an auto-saved handoff from before context compaction: [title]. Resume from here?"
When Claude Code is about to compact context (PreCompact event), automatically save state without waiting for the user to invoke /handoff:create.
Steps when PreCompact fires:
git log --oneline -5, git status, and git diff --stat HEAD to capture current repo stateHANDOFF-auto.md in the repo root using the standard /handoff:create template
HANDOFF.md — do not overwrite a deliberate handoffHANDOFF-auto.md already exists, overwrite it (it is always the latest auto-save)> ⚡ Auto-saved before context compaction — [current date/time]
> Resume with `/handoff:resume auto` to continue from this point.
✓ Context saved to HANDOFF-auto.md before compaction.
Edge cases:
HANDOFF.md exists → leave it untouched, write only to HANDOFF-auto.mdActivate when the user says any of these:
Suggest a handoff when:
| Condition | When to suggest |
|---|---|
| "I need to go" / "let's stop here" | User is wrapping up the session |
| Milestone reached | A significant feature or fix has just been completed |
| Long session with heavy context | Risk of context loss is growing |
Ask: "Want me to create a handoff so you (or another agent) can continue later?"
| Command | Use When | Intent |
|---|---|---|
/handoff:create | Full handoff with all context | User is wrapping up or handing off to another agent |
/handoff:quick | Simple handoff with just the basics | Task is small and minimal context is needed |
/handoff:resume | Continue from existing handoff | User is starting a new session from a saved handoff |
Route: wrap-up → create · simple task → quick · new session → resume
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub donalmoloney/handoff-claude --plugin handoff