handoff
Skill2 starsChanged 3 months agoMITView on GitHub
Snapshot the live session state into a resume doc at the project's plans/backlog location so a fresh session (or another developer) can pick the work up without re-deriving context: what's done, what's next, key decisions, modified files, and how to verify. Complements the deviation report /implement writes. TRIGGER when the user wants to hand off / pause / checkpoint work, save progress for later, or prep a resume note before a context reset ("handoff", "save state", "checkpoint this", "I'll continue tomorrow", "write a resume doc"). DO NOT TRIGGER to execute a plan (use /implement) or to write a feature spec (use /analyst) — this only snapshots state and writes no code.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- xiaoxiaosrm/dsh-mattpocock-skillstheir own version, first seen Nov 8, 2026
- ethosagent/ethostheir own version, first seen Nov 8, 2026
- dsifry/metaswarmtheir own version, first seen Nov 8, 2026
- glebis/claude-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use decision-mapping, setup-ts-deep-modules and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 8 projects that use this
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 42 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 93 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 87 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 51 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 54 projects that use this
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- GreyDGL/PentestGPT★ 16ksame name
- ykdojo/claude-code-tips★ 10ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- analystSkill
- api-designSkill
- arch-healthSkill
- audit-qualitySkill
- audit-securitySkill
- bootstrapSkill
- clean-mvpSkill
- close-epicSkill
- codebase-designSkill
- code-reviewSkill
- decomposeSkill
- deploySkill
- depsSkill
- diagnoseSkill
- discoverSkill
- distillSkill
- domain-modelSkill
- epic-statusSkill
- grillSkill
- grill-with-docsSkill
- ideaSkill
- implementSkill
- incidentSkill
- onboardSkill
- perfSkill
- preflightSkill
- prepareSkill
- prompt-masterSkill
- prototypeSkill
- refactorSkill
- retroSkill
- revisitSkill
- rolloutSkill
- scaffoldSkill
- select-techSkill
- spikeSkill
- sweepSkill
- tddSkill
- teardownSkill
- testSkill
- test-specSkill
- threat-modelSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- update-kitSkill
- which-skillSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Read .claude/PROJECT.md. If it is missing, or profile_status is TEMPLATE (or it still contains <...> placeholders), STOP and tell the user: …
- Distinctive: line 39
Read the repo CLAUDE.md "Context compaction" section if present, to match what it says must be preserved.
- Very specific: line 89
Write a NEW file to the plans/backlog location using the project's naming convention, e.g.
- Very specific: line 143
Keep it factual and short — it is read at the start of the next session, not archived prose.
- Very specific: line 156
If the artifact git policy in PROJECT.md keeps handoff docs committed, offer a copy-paste commit block for this one file — follow the …
- Distinctive: line 163
Do not write code, refactor, or run the full test/lint suite — only snapshot state.
- Distinctive: line 164
Do not overwrite an existing plan or handoff file — always write a new dated file.
- Distinctive: line 165
Do not run git commit or a deploy.
- Distinctive: line 166
Do not invent status: if test/lint was not run this session, say so explicitly.
“Common” is measured: kept by at least 6 in 10 of the 172 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Handoff — snapshot state for resume: $ARGUMENTS
Capture everything a fresh session needs to continue THIS work without re-deriving it.
You do NOT implement, refactor, or run heavy builds — you observe the current state and
write one resume document. This is the explicit, durable counterpart to the
precompact.sh hook (which auto-reinjects a lighter reminder on compaction).
This skill carries ONLY invariant workflow logic. Every project-specific fact (commands,
plans location, naming convention) is read at runtime from .claude/PROJECT.md.
Phase 0 — Load profile
- Read
.claude/PROJECT.md. If it is missing, orprofile_statusisTEMPLATE(or it still contains<...>placeholders), STOP and tell the user: "Profile not configured — run/bootstrapto generate.claude/PROJECT.md, then re-run/handoff." Do not proceed. - Resolve and hold:
- Plans/backlog location and naming convention (PROJECT.md → Plans / backlog). This is where the resume doc is written.
- Commands —
test,test:targeted,lint(PROJECT.md → Commands). These are the "how to verify" the next session will run; do not run them here.
- Read the repo
CLAUDE.md"Context compaction" section if present, to match what it says must be preserved.
Phase 1 — Gather state (no questions, fast, read-only)
Collect from the session and the working tree. Do NOT run the test/lint suite here — a
handoff is a snapshot, not a verification (that is /test or the opt-in verify-stop.sh).
- Source plan/backlog file —
$ARGUMENTSif it names one; else the plan/backlog file this session has been working from; else the most-recently-modified file in the plans/backlog location. Note its path (may be none). - Git state — run, from the repo root:
git branch --show-currentgit rev-parse --short HEAD— the commit this snapshot describes; it goes into the frontmatter asgit_commitand is what the next session diffs against to see what moved since (Phase "How to resume" below). Without it, "what's done" has no anchor in time.git status --short(modified/untracked files)git diff --stat HEAD(size of the change)git log --oneline -5(recent commits, for orientation)
What's done / what's next — never a read-back of a session task list (it may not exist, and a ticked item is a claim, not a diff), so this is derived from evidence, in this order:
- The source plan's step list — the authoritative enumeration of the work. Each step is done, in progress, or untouched.
- What the session wrote down — the plan's
## Implementation Logand Deviation rows if/implementalready appended them, plus any step ledger / deviation scratchpad this session kept (/implement,/sweep,/tddeach keep one in a file —/implement's is<scratchpad>/implement-ledger-<slug>.md, and it holds deviation rows the plan does not yet have). - The working tree — the git state gathered above:
git status --shortandgit diff --stat HEADsay which files actually moved;git log --oneline -5says what already landed.
Cross-check the plan against the tree — do not trust either alone. A step whose files show no diff is not done however confidently the chat reads, and a file modified with no matching step is either an undeclared deviation or out-of-scope work: say which. Any step whose state you cannot establish from the three sources goes into the doc marked unverified, never silently promoted to done — a resume doc that overstates progress costs the next session more than one that admits a gap.
- Test/lint status — the last observed result from this session (e.g. "tests green before the last edit", "lint not run since"). If unknown, say "not run this session" and record the exact commands so the next session can run them.
- Key decisions & open questions — decisions made this session and assumptions or questions still unresolved (mirror the spec/plan's open-questions style).
- Artifact continuity (per
rules/_generic/planning-artifacts.md) — flag any decision made this session that was NOT yet written into the plan, and any sibling plan / epic overview left unswept after a decision rippled. These are the first things the next session must reconcile; a decision left only in this chat is lost on reset.
Phase 2 — Write the resume doc
Write a NEW file to the plans/backlog location using the project's naming convention,
e.g. <plans>/<YYYY-MM-DD>-handoff-<slug>.md (slug from the source plan or the work
focus; prefix a ticket id if the project uses one). Never overwrite an existing plan
or a prior handoff — always a new dated file.
Frontmatter + sections:
---
type: handoff
created: <YYYY-MM-DD>
branch: <current branch>
git_commit: <short SHA of HEAD when this was written>
source_plan: <path or "none">
status: <IN_PROGRESS | BLOCKED | READY_TO_REVIEW>
---
# Handoff — <work focus> (<YYYY-MM-DD>)
## What's done
- <completed step / change, with file refs — plan step ↔ the diff that proves it>
- <step whose state the tree could not confirm> — **unverified**, check `<what to look at>`
## What's next
- <the very next action, then the rest, in order>
## Key decisions
- <decision> — <why>
## Open questions / assumptions
- <unresolved question or assumption to validate>
## Artifact continuity
- Decisions not yet written into the plan: <none | which decisions, into which plan>
- Sibling plans / overview left unswept: <none | which files need reconciling>
## Modified files
- `path` — <what changed / still in progress>
## How to verify
- Branch: `<branch>`; uncommitted: <one-line summary>.
- Run: `<test / test:targeted command from PROJECT.md>`, `<lint command>`.
- Last observed: <e.g. "tests green before final edit; lint not yet run">.
## How to resume
- Re-read this file + the source plan (`<path>`) + `.claude/PROJECT.md`.
- **Re-verify before trusting.** `git log --oneline <git_commit>..HEAD` and `git status --short`
first: anything there happened after this snapshot. Then take each "What's done" line and
check it against the live tree — `[from handoff] → [checked now] → present | missing | modified`
— before building on it. Re-read, then re-check; a line that no longer holds is corrected here,
not carried forward.
- Continue from "What's next"; for execution use `/implement <source plan>`.Keep it factual and short — it is read at the start of the next session, not archived
prose. Do not duplicate the full plan; link to it via source_plan.
Phase 3 — Hand off
- Print the resume doc path.
- Summarize in 2–3 lines: where things stand and the single next action.
- Remind the user the next session can pick up with
/implement <source plan>(or just by reading the resume doc), and thatprecompact.shwill reinject a lighter reminder automatically if this session compacts before then.
Commit (only if handoff docs are shared)
If the artifact git policy in PROJECT.md keeps handoff docs committed, offer a
copy-paste commit block for this one file — follow the Commit Message pattern in
/implement: explicit paths only (never -A / . / a directory), output text the user
pastes (never run it). If handoff docs are local (gitignored), skip this.
DO NOT
- Do not write code, refactor, or run the full test/lint suite — only snapshot state.
- Do not overwrite an existing plan or handoff file — always write a new dated file.
- Do not run
git commitor a deploy. - Do not invent status: if test/lint was not run this session, say so explicitly.
See also
/implement— resume execution from the source plan; writes the deviation report this snapshot complements./analyst— write a feature spec (not a state snapshot)./test— actually run/verify the suite (handoff only records the last observed status).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

