handoff
/handoff
Use when the user signals a handoff or asks to resume one. Write-side triggers (produce the handoff file): handoff, save progress, wrap up, switching to a new window, context is running out, write it down so I can take this with me. Resume-side triggers (continue earlier work): pick up where we left off, continue from last session, resume from the handoff, follow the handoff, read HANDOFF, read the handoff file, restore progress, what was I doing last time. Also use when a new session must pick up unfinished work from an earlier one. 中文触发词——写侧:交接、交接一下、换窗口、保存进度、上下文快满了、整理一份我带走、先记下来;读侧:接着上次做、接着做、
- Author
- TheSKY-3 ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 07.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 07.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user signals a handoff or asks to resume one. Write-side triggers (produce the handoff file): handoff, save progress, wrap up, switching to a new window, context is running out, write it down so I can take this with me. Resume-side triggers (continue earlier work): pick up where we left off, continue from last session, resume from the handoff, follow the handoff, read HANDOFF, read the handoff file, restore progress, what was I doing last time. Also use when a new session must pick up unfinished work from an earlier one. 中文触发词——写侧:交接、交接一下、换窗口、保存进度、上下文快满了、整理一份我带走、先记下来;读侧:接着上次做、接着做、
Original author description
Use when the user signals a handoff or asks to resume one. Write-side triggers (produce the handoff file): handoff, save progress, wrap up, switching to a new window, context is running out, write it down so I can take this with me. Resume-side triggers (continue earlier work): pick up where we left off, continue from last session, resume from the handoff, follow the handoff, read HANDOFF, read the handoff file, restore progress, what was I doing last time. Also use when a new session must pick up unfinished work from an earlier one. 中文触发词——写侧:交接、交接一下、换窗口、保存进度、上下文快满了、整理一份我带走、先记下来;读侧:接着上次做、接着做、
How it works
- The user owns the trigger (hard rule)
- The quality bar
- Where things live
- WRITE: seven steps
- Handoff generations (mandatory reading from the second one on)
- Length budget
- Template
- RESUME: four steps
- Self-check: six questions
- Anti-patterns
SKILL.md preview
---
name: handoff
description: "Use when the user signals a handoff or asks to resume one. Write-side triggers (produce the handoff file): handoff, save progress, wrap up, switching to a new window, context is running out, write it down so I can take this with me. Resume-side triggers (continue earlier work): pick up where we left off, continue from last session, resume from the handoff, follow the handoff, read HANDOFF, read the handoff file, restore progress, what was I doing last time. Also use when a new session must pick up unfinished work from an earlier one. 中文触发词——写侧:交接、交接一下、换窗口、保存进度、上下文快满了、整理一份我带走、先记下来;读侧:接着上次做、接着做、继续之前那个、跟着交接继续、按交接来、从交接继续、读 HANDOFF、读交接、恢复进度、上次那个。"
license: MIT
metadata:
author: TheSKY-3
repository: https://github.com/TheSKY-3/agent-skills
---
# Session Handoff (HANDOFF)
## The user owns the trigger (hard rule)
**No handoff unless the user asks for one.**
- Don't write the file unprompted. Don't offer "shall I write a handoff?". Don't dump a file into the project because "a phase is done" or "context is getting full".
- Context nearly full and the user hasn't mentioned it? Keep working on the task at hand. Only if the user asks, state the usage fact in one sentence — no advice attached.
- Write-side triggers: handoff, save progress, wrap up, switching windows, context is running out, write it down so I can take this with me.
- Resume-side triggers: pick up where we left off, continue from last session, read HANDOFF and resume.
- If you can't tell what the user means, ask once. Never guess.
## The quality bar
Could someone who reads **only** `HANDOFF.md` do the next step correctly — without touching the old session, without asking the original author — and know exactly what "done" means?
## Where things live
- Main file: **`HANDOFF.md` in the project root**, overwritten in place. A new window needs to remember exactly one path.
- History: before overwriting, copy the old version to `.handoff/HANDOFF-<YYYY-MM-DD-HHmm>.md`. Append-only; never delete. Create the directory if it doesn't exist.
- Not inside a project (say, casual use in a knowledge base)? Write `HANDOFF.md` at the workspace root — don't scatter files.
- Git: by default do **not** commit `HANDOFF.md` or `.handoff/` (gitignore them). Commit them only when the user says this handoff is meant for another human (team handoff).
- Secrets: never write a secret's value. Write where it lives ("deploy token in `.env`, key `DEPLOY_TOKEN`"), never the token itself.
- Language: write the handoff document — and the closing line below — in the language the user is currently using. This skill's body being English changes nothing about that.
## WRITE: seven steps
0. **Stop first.** With context nearly full, the most expensive mistake is to keep working. Persist to disk first.
1. **Goal + done criteria.** The goal in one or two sentences, keeping the user's own keywords; the done criteria is a checklist where every item is verifiable on its own. **This section may never be empty** — if it can't be defined, write "undefined, needs user confirmation".
2. **Current status, four categories, never mixed**: done & verified (with evidence) / changed but unverified / in progress (stopped where, why) / not started. Hard rule: `written` ≠ `done`.
3. **Key decisions**: only what has already been decided. Format: `decision — because X; rejected Y (because Z)`.
4. **Must-read list**: a table with three levels of information — `path | why read it | what to look at`. Reference code as `file:line`; if the filesystem can't be checked, write "line numbers unconfirmed" plus a locating command. **Never invent line numbers.**
5. **How to verify**: not "run the tests" — the command + expected output + observable metrics (failure count, row count, column diff, missing rate, schema). If it can't be verified, say "unverified" in so many words.
6. **Environment**: workspace absolute path, branch, uncommitted files, background job ids and their outputs, temporary authorizations. Mark "unconfirmed" when unavailable.
7. **Write, self-check, close out.** Fill the template → answer the six self-check questions → snapshot the old version → overwrite `HANDOFF.md` → output exactly one line and nothing else (in the user's language):
```
Handoff complete: read <absolute-path>/HANDOFF.md, do step 1 of "Next step".
```
## Handoff generations (mandatory reading from the second one on)
The failure mode of generations 2–3 is not "can't write it" — it's **unbounded growth**: each round appends a section, and by generation 5 the successor wades through two thousand lines to learn where things stand.
- **Overwrite, never append.** Always rewrite the same `HANDOFF.md`; archive the old version per the snapshot rule above.
- **Record the generation + a back-pointer.** The header reads `Generation N | previous: .handoff/HANDOFF-<timestamp>.md`, forming a chain; history never enters the body. Old file has no generation marker? Count it as generation 1; the new one is generation 2.
- **Subtract from generation 2 on.** Compress completed items to one line + a pointer to the snapshot; migrate stable knowledge (red lines, authoritative sources, environment gotchas, long-term decisions) to `AGENTS.md` (or your runtime's equivalent) and leave only a pointer here.
- **Look back one generation, no further.** When resuming, read the latest file; go upstream at most one step. Need three generations to understand the situation? The current one was written badly.
- Same-day window hopping is one work session: overwrite the same file, don't mint five.
Fitness test: a new generation should be the same length as the previous one, or shorter. **Two consecutive generations getting longer** means knowledge isn't settling — consolidate into `AGENTS.md`, or split the project.
## Length budget
- Normal range **60–120 lines**; past 150, cut — or move detail into companion files under `.handoff/`.
- No writing-process narration ("this file isn't saved yet", "I lack permission" — that belongs in the conversation), no pasted chat logs, no restating the manual — give the path, not the content.
- An overlong handoff just moves the old window's context burden into the new one.
## Template
````markdown
# HANDOFF · <project name> (for the next window)
> Generation <N> | previous: `.handoff/HANDOFF-<YYYY-MM-DD-HHmm>.md` (first handoff: "first generation")
> Read this and keep working. Authoritative sources: <path1>, <path2>; this file is the entry point and snapshot — when it conflicts with the code or the actual state, the actual state wins.
> Handoff at <YYYY-MM-DD HH:mm> | workspace <absolute path> | branch <branch>
## 0. Status in one sentence
<Three lines max; the single most important fact>
## 1. Goal and done criteria
**Goal**: <the user's own keywords>
- [ ] <verifiable acceptance condition>
## 2. Current status
**Done & verified**: <item> (evidence: <…>) — or "none"
**Changed, unverified**: <item> — pending verification: <…>
**In progress**: <stopped where, why>
**Not started**: <item>
## 3. Key decisions
- **<decision>** — because <reason>; rejected <alternative> (because <reason>).
## 4. Must-read list
| Path | Why read it | What to look at |
|---|---|---|
| `docs/x.md` | Sole authority for column names and units | column table, units, missing-value definitions |
## 5. How to verify
```bash
<command>
```
Expected: <what the output looks like> | Metrics: <failure count / row count / column diff>
## 6. Environment & uncommitted state
- Workspace <path>, branch `<x>`, uncommitted: <files / none>
- Background jobs: <id + outputs / none>
- Temporary authorizations: <… / none>
## 7. Red lines (violating any = incident)
1. <what must not be done>
## 8. Known pitfalls
- <pitfall> — <how to route around it>
## 9. Next step (the single action)
<with file:line>
Done when: <observable>
## 10. Then, in order
1. <…>
## 11. Retrieval fingerprints (optional)
`<project name>`, `<distinctive function/variable>`, `<verbatim error text>`
````
## RESUME: four steps
1. Read `HANDOFF.md`. Note the generation counter in the header; follow the previous-file pointer at most one generation upstream.
2. **Verify before acting**: do the referenced files/line numbers exist; is this the same workspace; did anything change after the handoff; are leftover issues already resolved; are background jobs still alive.
3. Optional: if your runtime offers session/history search, use the retrieval fingerprints to pull up the old session. Can't find it? The document is authoritative.
4. Announce in one line: `Resuming from "Next step" step 1: <specific action>` — then start.
If something doesn't match, say so first. Don't assume the document is right, and don't silently fix discrepancies.
## Self-check: six questions
- Can work start from this file alone?
- Are the done criteria written, and verifiable?
- Do the referenced paths/line numbers exist (or are marked unconfirmed)?
- Is the next step a concrete action with a completion flag?
- Are uncommitted changes / background jobs / temporary authorizations accounted for?
- Are the generation number and the previous-snapshot pointer written?
## Anti-patterns
| Anti-pattern | Consequence |
|---|---|
| Next step says "continue the previous work" | The new window hasn't actually picked anything up |
| Done criteria left empty | Nobody knows what "finished" means |
| "Run the tests" with no metrics | Nobody knows what green looks like |
| Invented line numbers / paths | The new window trips on its first step |
| Pasted chat logs | The new window starts out flooded |
| Logging "written" as "done" | Duplicate work or missed verification |
| Narrating the writing process | Wasted lines, zero information |
| Appending on generation N | The document grows one way; handoff cost snowballs |
## Runtime notes
- If your runtime offers session/history search, use it for RESUME step 3; otherwise skip it — the document wins.
- Don't let a handoff stall on a broken shell: check file state with read/glob tools instead; if git info is unavailable, mark it "unconfirmed".
- Install paths for every runtime live in the repository README — not here, because an agent already running this skill doesn't need them.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · TheSKY-3/agent-skills | 100 | MIT |
| lumpen-mya/claude-handoff | 100 | MIT |
| generous-corp/pulp | 100 | MIT |
| Ovid/paad | 100 | MIT |
| Ovid/paad | 100 | MIT |
| Ovid/paad | 100 | MIT |
| webdevnerdstuff/claude-marketplace | 100 | MIT |
| terencebristol/terencebristol-toolkit | 100 | MIT |
| verkyyi/claude-fleet | 100 | MIT |
Database snapshot: 13.11.2026 · package version c534483b3850 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90resume
Pick up where the last session left off by reading the newest handoff note for this project. Use when the user says resume, continue, pick up, or what was I doing. - 100continue
Resume work from a prior session by reading phase progress files in .claude/memory/ and active plans. Use this when starting a new session on in-progress work, or when the user says "continue", "pick up where I left off", "resume", or "what was I working on". - 100resume
Read the handoff note that a previous session left with handoff:save (a page in the Cairn board's Handoff collection, or .handoff/HANDOFF.md), check it against the current state of the repository, confirm the next piece of work with the user, and then resume the paused work.… - 82handoff-resume
Reload the latest session handoff (knowledge/handoffs/CURRENT.md), or an archived one, and get ready to continue the work it describes. Use when the user says "resume", "where did we leave off", "continue from last time" or "load the handoff". - 100write-handoff
Write or update a HANDOFF.md for a multi-session or multi-agent project so the next agent (or human) can resume work with zero prior context. Use when the user asks to "write a handoff doc", "update the handoff", "leave notes for the next session", "document where we left off",… - 100sdlc-handoff
Session handoff and takeover that works with any coding agent. 会话交接与会话接手:旧会话上下文将满、或任务要换会话/换机器/换 agent 继续时,把当前任务压缩成一张自足的交接卡(write);新会话读取交接卡并直接继续(resume),覆盖开发、排查、梳理、调研、文档等任意任务。Use when 交接、接手、继续上次的工作、上下文满了、换个会话做、上次做到哪了、pick up where I left off, handoff, resume previous work,…