Skip to content
Skills Library
Programming · Writing

handoff

/handoff

Write a session-continuation handoff file at .handoff/handoff-<DD-mon-YYYY>-<HHMM>.md before context compact, session close, or end-of-work. The SessionStart hook auto-loads the newest one so the next session resumes without re-reading the whole transcript. Auto-triggers on slash commands /handoff, /clear, /pack, /save, or natural phrases like 'pack up', 'wrap up', 'save state', 'compact protocol', 'save credits', 'going to sleep', 'before /compact'.

Licence
MIT
Last repository change
11.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Write a session-continuation handoff file at .handoff/handoff-<DD-mon-YYYY>-<HHMM>.md before context compact, session close, or end-of-work. The SessionStart hook auto-loads the newest one so the next session resumes without re-reading the whole transcript. Auto-triggers on slash commands /handoff, /clear, /pack, /save, or natural phrases like 'pack up', 'wrap up', 'save state', 'compact protocol', 'save credits', 'going to sleep', 'before /compact'.

Triggers from the description

pack upwrap upsave statecompact protocolsave creditsgoing to sleepbefore /compact
Original author description

Write a session-continuation handoff file at .handoff/handoff-<DD-mon-YYYY>-<HHMM>.md before context compact, session close, or end-of-work. The SessionStart hook auto-loads the newest one so the next session resumes without re-reading the whole transcript. Auto-triggers on slash commands /handoff, /clear, /pack, /save, or natural phrases like 'pack up', 'wrap up', 'save state', 'compact protocol', 'save credits', 'going to sleep', 'before /compact'.

How it works

  1. How to write one
  2. When to refuse / negotiate
  3. Things to NOT put in a handoff
  4. Verification before saying done
  5. Why this exists
Original SKILL.md headings · 93 lines, 573 words
SKILL.md preview
---
name: handoff
description: "Write a session-continuation handoff file at .handoff/handoff-<DD-mon-YYYY>-<HHMM>.md before context compact, session close, or end-of-work. The SessionStart hook auto-loads the newest one so the next session resumes without re-reading the whole transcript. Auto-triggers on slash commands /handoff, /clear, /pack, /save, or natural phrases like 'pack up', 'wrap up', 'save state', 'compact protocol', 'save credits', 'going to sleep', 'before /compact'."
verified: 2026-08
layer: utility
category: workflow
triggers: ["/handoff", "/clear", "/pack", "/pack-up", "/save", "/save-state", "/wrap", "/wrap-up", "/sleep", "pack up", "pack this up", "wrap up", "wrap this up", "save state", "save the state", "handoff", "make a handoff", "compact protocol", "before compact", "before /compact", "before quitting", "save credits", "save tokens", "going to sleep", "imma sleep", "i'm going to sleep", "end of session", "session end", "close session"]
---

# Handoff — write a session-continuation file

When the user signals end-of-session (any trigger above) OR you notice the
conversation is about to compact (long context, near a known compact point),
write `.handoff/handoff-<DD-mon-YYYY>-<HHMM>.md` at the repo root **before**
anything else happens.

This file is auto-loaded by `.claude/hooks/handoff-load.sh` on the next session
start, so the next agent (Claude or codex) resumes from your **Next step**
without re-reading the whole transcript.

## How to write one

1. **Get the timestamp**: run `date "+%-d-%b-%Y-%H%M" | tr '[:upper:]' '[:lower:]'`
   → use that as the filename suffix. Example: `handoff-14-may-2026-2308.md`.

2. **Make sure the dir exists**: `mkdir -p .handoff` (it's gitignored — purely
   local working state, never committed).

3. **Write the file** using the **Write** tool. The file MUST contain these
   six sections in this order:

   ```markdown
   # Handoff — <YYYY-MM-DD HH:MM Day>

   ## What we're building
   <one paragraph naming the overall target of the work>

   ## Current state
   <one paragraph: what's done / deployed / pushed / running locally>

   ## Files in flight
   <bullet list of uncommitted edits with a short note each — run
    `git status --short` to populate>

   ## What changed this session
   <bullet list of commits made + significant edits, oldest-first.
    Run `git log @{u}..HEAD --oneline` or pick a sensible cutoff>

   ## What failed and why
   <bullet list of things attempted that didn't work, with root cause.
    Stops future-you from repeating the same trap>

   ## Next step
   <ONE concrete action the next session should try first. Not a list.
    The single thing>
   ```

   Optional: a final `## Open questions` section for things the user asked
   that aren't blocking.

4. **Confirm to the user** in one short sentence — e.g. *"Handoff at
   .handoff/handoff-14-may-2026-2308.md — next session auto-resumes from
   the Next step."* Don't print the file contents back; the user wrote
   them with you and reading it on disk if they want is faster.

## When to refuse / negotiate

- **If the user signals a different intent** — e.g. they said "pack up" but
  meant something else — ask before writing. The skill should err toward
  acting, but a 5-second confirmation is fine if it's ambiguous.
- **Don't double-write**: if you wrote a handoff earlier in the same session
  and nothing significant has changed, update the existing file's content
  via Edit rather than creating another timestamp.
- **Don't write trivially small handoffs**: if the session did nothing
  load-bearing, just say so to the user instead of creating noise.

## Things to NOT put in a handoff

- Secrets — `.handoff/` is gitignored but rsync / backup tools may still pull
  it; treat as low-trust storage.
- Raw command output, full file dumps — reference by `path:line` instead.
- The entire conversation transcript — just the load-bearing decisions and
  the things that broke.
- > 200 lines total — that's a session log, not a handoff. Compress.

## Verification before saying done

After Writing:
- `ls -la .handoff/` to confirm the file exists
- Confirm it's gitignored: `git check-ignore .handoff/handoff-*.md`
  should print the path (file is ignored) — if it prints nothing, the
  `.gitignore` entry is broken and you need to fix it.

## Why this exists

Context resets (compact, new session, agent quit) lose state. Re-reading a
1000-message transcript to recover is expensive in tokens AND time. The
handoff is a 100-line summary that costs ~2k tokens to load and replaces
the whole "where were we?" exchange. See `CLAUDE.md` → "Handoff Protocol"
for the full spec.
Files in this package (2)
  • SKILL.md 5 KB
  • agents/openai.yaml 1 KB

Versions

RepositoryScoreLicence
This page · LineLuLan/line-harness100MIT
lumpen-mya/claude-handoff100MIT
generous-corp/pulp100MIT
Ovid/paad100MIT
Ovid/paad100MIT
Ovid/paad100MIT
webdevnerdstuff/claude-marketplace100MIT
terencebristol/terencebristol-toolkit100MIT
verkyyi/claude-fleet100MIT

Database snapshot: 13.11.2026 · package version 9d5d1789debc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90m-handoff
    Save or restore working state in .mstack/handoff.md before compact, model switch or session end. Use for 存档/交接/接着上次/compact.
  • 100m0-handoff
    Use when the user says m0 handoff, before I compact, end of session, save session state, resume where we left off, or continue in Cursor or Claude Code. Writes or reads a compact_checkpoint so a cold start becomes a continuation.
  • 95Qcompact
    Context preservation and session handoff. Use when the user wants to save state, handoff, save context, end session, or continue later.
  • 100session-handoff
    Use when the user says "wrap up", "write a handoff", "session handoff", "update STATUS.md", "record where we are", or "save progress before I clear context", or is about to /clear, compact, or end a long session. Also use proactively at a milestone, a new pending item, or a new…
  • 100context-handoff
    Use when user asks about context handoff, preserving context across compaction, restoring session state, or mentions HANDOFF.md. Also activates automatically after compact/clear when additionalContext contains "CONTEXT RESTORED FROM PRE-COMPACTION HANDOFF". Triggers: "handoff",…
  • 100session-save
    Use when ending, pausing, or running low on context in a working session and you want to resume cleanly later — phrases like "save our spot", "before I close this session", "pick this up tomorrow", "make a follow-up file", "so we can continue", "write a continuation doc", or…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.