handoff
Skill6 starsChanged 3 months agoMITView on GitHub
Compress project context into HANDOFF.md with workflow state, analysis checkpoint, next gate, verification, current hypothesis, freshness anchors, optional gotcha references, and a resume packet for the next agent session.
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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-miniSkill
- bug-captureSkill
- build-oneSkill
- ceremony-budgetSkill
- checklist-miniSkill
- constitution-liteSkill
- context-checkSkill
- diagnose-loopSkill
- eco-modeSkill
- falsify-specSkill
- grill-with-docs-liteSkill
- lean-modeSkill
- mini-specSkill
- operator-profileSkill
- scope-freezeSkill
- ship-miniSkill
- teach-backSkill
- test-miniSkill
- thin-planSkill
- tool-noise-guardSkill
- verify-contractSkill
- workspace-checkpointSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 10 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use at the end of a session, before switching agents, or before pausing work.
- Distinctive: line 18
When resuming from an existing handoff, run the fresh-session trust gate before using its status, next task, verification claims, …
- Distinctive: line 29
When relevant, carry loop state forward: iterations attempted, best known artifact, rejected attempts, current feedback signal, remaining …
- Very specific: line 54
If the helper cannot be executed, compare the recorded commit, dirty state, changed files, and live Git status manually.
- Very specific: line 74
every path named in Required resume files still exists.
- Very specific: line 98
Do not run analyze-mini merely because a handoff is being written.
- Very specific: line 104
Keep one-off continuation traps in HANDOFF.md.
- Very specific: line 112
Do not turn GOTCHAS.md into a generic bug log, TODO list, or folklore file.
- Distinctive: line 117
Read current artifacts first.
- Very specific: line 118
If an existing HANDOFF.md will be used for resume, run resume_trust.py check before trusting it.
- Distinctive: line 120
Create or update HANDOFF.md starting with a Resume Packet block.
- Very specific: line 128
If an active gotcha affects the next task, reference its ID and make GOTCHAS.md part of the read-first set.
- Distinctive: line 130
After the final non-handoff project edit, stamp the freshness anchors with the bundled helper.
- Very specific: line 131
Run resume_trust.py check after stamping.
- Distinctive: line 132
Keep under 120 lines unless complexity requires more.
- Distinctive: line 164
All critical context (modes, risks, decisions, next gate) is in durable files.
- Distinctive: line 174
No important context lives only in memory.
- Distinctive: line 189
No explicit next gate or verification.
“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
Purpose
Compress context into a launchpad for the next session. A handoff is not a transcript — it is durable state that lets a fresh agent continue safely without the full chat history.
A handoff is also not authoritative merely because the file exists. A fresh session must establish both snapshot freshness and internal resume trust before treating an existing HANDOFF.md as current state.
When to use
Use at the end of a session, before switching agents, or before pausing work.
When resuming from an existing handoff, run the fresh-session trust gate before using its status, next task, verification claims, referenced files, unresolved items, or analysis checkpoint as current state.
Inputs
- SPEC.md, PLAN.md, TODO.md, VERIFY.md
- Optional
GOTCHAS.mdwhen recurring project sharp edges have been recorded - Active modes, current phase, next gate
- Analysis checkpoint when one exists:
FRESH | NOT_NEEDED | STALE | REQUIRED - Compatibility seams, invalid-if constraints, verify gate status, review-required items, next gate command when relevant
- Context risk level
- Active debugging hypothesis (if any)
- When relevant, carry loop state forward: iterations attempted, best known artifact, rejected attempts, current feedback signal, remaining budget, stop condition, and human review trigger.
- Branch, commit, dirty state
- Changed files, working/failing commands, unverified files
- Important decisions, open decisions, traps
- Freshness anchors when Git state is available: snapshot commit + workspace fingerprint
- Required resume files that must still exist before the next task can start
- Exact recorded verify-gate status and review-required state expected at resume
Freshness rule
The bundled scripts/handoff_freshness.py helper lives inside this skill directory.
Resolve the active handoff skill directory, then use the helper to stamp and check
HANDOFF.md.
Status semantics:
PASS— non-handoff repository state still matches the stamped snapshot.STALE— repository state changed after the handoff snapshot. Treat the handoff as advisory only, re-read live project state, and regenerate it before resuming.REVIEW_REQUIRED— freshness could not be established. Do not silently trust the handoff as current state.
The helper intentionally excludes HANDOFF.md itself from the workspace fingerprint so
editing or committing only the handoff does not invalidate its own snapshot.
If the helper cannot be executed, compare the recorded commit, dirty state, changed files,
and live Git status manually. Any mismatch or unresolved uncertainty is
REVIEW_REQUIRED, not an implicit pass.
A stale or unresolved handoff also invalidates trust in its recorded analysis checkpoint. Reconcile live state first, then re-evaluate whether analysis is FRESH, NOT_NEEDED, STALE, or REQUIRED for the one next task.
Fresh-session trust rule
The bundled scripts/resume_trust.py helper composes the freshness check with
content reconciliation. Run it before a fresh session acts on a handoff:
python <handoff-skill-dir>/scripts/resume_trust.py check \
--handoff HANDOFF.md \
--verify VERIFY.mdA resume-trust PASS requires all of the following:
- the underlying handoff freshness check is
PASS; - every path named in
Required resume filesstill exists; - the handoff's
Verify gate statusmatches the live recorded status inVERIFY.md(or explicitly saysNOT_PRESENT); Review-required itemsis coherent with the live verification state;- exactly one next recommended task is present;
- a next verification command is present.
A freshness PASS by itself is not enough. The workspace can be unchanged while
the handoff still contains an incomplete or self-contradictory resume packet.
REVIEW_REQUIRED means reconcile the packet with live artifacts before acting.
STALE means live repository state changed after the snapshot and the handoff
must be regenerated before resume.
Analysis checkpoint rule
A handoff should tell the next session whether analyze-mini is actually needed; it should not run analysis as a completion ritual.
Reuse the artifacts already being read for the handoff and classify the one next task:
FRESH— a full analysis exists and its task-defining inputs still match current state.NOT_NEEDED— no current analysis trigger exists.STALE— a prior analysis exists but task-defining inputs changed.REQUIRED— a current trigger exists and full analysis should run beforebuild-one.
Do not run analyze-mini merely because a handoff is being written.
Missing prior analysis is not itself a reason to mark REQUIRED. Use the triggers defined by analyze-mini: changed task-defining inputs, unresolved implementation-shaping choices, broken criterion-to-task-to-proof mapping, changed strategy after failure, or live-state changes discovered during resume reconciliation.
Gotcha promotion rule
Keep one-off continuation traps in HANDOFF.md. Promote a trap to optional GOTCHAS.md
only when it is non-obvious, has a meaningful consequence, is likely to recur across
sessions or nearby tasks, and can be grounded in evidence.
A promoted gotcha should record a stable ID, trigger, consequence, safe path, evidence, last verification, and active/resolved status. When it affects the next task, reference the gotcha ID from the handoff instead of copying the whole entry.
Do not turn GOTCHAS.md into a generic bug log, TODO list, or folklore file. BUGS.md
owns active defects; GOTCHAS.md owns recurring sharp edges.
Workflow
- Read current artifacts first.
- If an existing
HANDOFF.mdwill be used for resume, runresume_trust.py checkbefore trusting it. Do not use freshness alone as the final trust decision. - For the exactly one next task, perform the cheap analysis eligibility check using already-loaded artifacts. Record
FRESH,NOT_NEEDED,STALE, orREQUIRED; do not invoke full analysis solely to improve the handoff. - Create or update HANDOFF.md starting with a Resume Packet block.
- Record Workflow State (active modes, phase, loop, next gate, analysis checkpoint, context risk, hypothesis).
- Record continuation guardrails when relevant: compatibility seams preserved, invalid-if constraints, exact verify gate status, review-required items, next gate command, and
Required resume filesthat must exist for the next task. - State the current goal in 1-2 sentences.
- List completed slices + verification results.
- List changed files with one-line purpose (flag unverified).
- Record working commands, known failing commands, important decisions, open decisions, and traps.
- Promote recurring evidence-backed traps to
GOTCHAS.md; keep one-off session traps in the handoff. - If an active gotcha affects the next task, reference its ID and make
GOTCHAS.mdpart of the read-first set. When generating a context packet for that continuation, prefer--require-file GOTCHAS.mdso the dependency is explicit. - Name exactly one next recommended task + its verification command.
- After the final non-handoff project edit, stamp the freshness anchors with the bundled helper.
- Run
resume_trust.py checkafter stamping. OnlyHANDOFF RESUME TRUST: PASSshould be treated as safe to resume when the helper is available. - Keep under 120 lines unless complexity requires more.
Resume Packet example (place near top):
RESUME PACKET
* Goal: ...
* Workflow State: lean-mode active, next gate=build-one, risk=low
* Analysis: NOT_NEEDED — direct criterion -> task -> proof; no unresolved implementation choice
* Branch: main, Commit: abc123, Dirty: no
* Freshness: PASS, Snapshot: abc123, Workspace: sha256:...
* Required resume files: SPEC.md, VERIFY.md, src/export.py
* Gotchas: G1, G3 | none
* Next task: ...
* Verification: `python test_mini.py --slice=foo`
* Read first: HANDOFF.md, GOTCHAS.md (if present/referenced), SPEC.md, PLAN.md, VERIFY.md (if present), ANALYZE.md only when referenced, then changed files belowOutputs
- HANDOFF.md with Resume Packet + Workflow State
- Analysis checkpoint for the exactly one next task
- Freshness anchors when Git state is available
- Required resume files and reconciled live verification state
- Optional references to active
GOTCHAS.mdentries that affect continuation - Clear next task and verification path
- Continuation guardrails when relevant
Success looks like
- A new agent can pick up the project from HANDOFF.md + core artifacts without rereading chat.
- All critical context (modes, risks, decisions, next gate) is in durable files.
- Exactly one next task is named.
- The next session knows whether analysis is
FRESH,NOT_NEEDED,STALE, orREQUIREDwithout paying for a full analysis by default. - A stale handoff cannot silently outrank live repository state.
- A fresh-but-incoherent handoff cannot nominate work until resume trust passes.
- A recurring sharp edge that matters to future work is not buried only in a one-session handoff.
Stop conditions
- Next session can continue without full chat history.
- No important context lives only in memory.
- Next task and verification command are explicit.
- Analysis need for the next task is classified without ritual invocation.
- Fresh-session resume trust is
PASSwhen the bundled helper is available; otherwise unresolved trust is surfaced asREVIEW_REQUIRED. - Relevant promoted gotchas are referenced without duplicating their full contents.
Anti-patterns
- Writing a chat transcript summary instead of state.
- Running
analyze-minisolely to make the handoff look complete. - Marking analysis
FRESHafter task-defining inputs changed. - Marking analysis
REQUIREDonly because no previous analysis exists. - Vague status ("mostly done").
- Omitting active modes, failing commands, or dirty state.
- Carrying multiple debug hypotheses forward.
- No explicit next gate or verification.
- Treating
HANDOFF.mdas current merely because it exists. - Continuing from a
STALEorREVIEW_REQUIREDhandoff without reconciling live state. - Treating freshness
PASSas sufficient when required files, verification status, or unresolved items contradict live artifacts. - Burying a recurring evidence-backed sharp edge only in
HANDOFF.md. - Creating
GOTCHAS.mdfor ordinary bugs, temporary failures, or generic reminders.
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.

