handoff
Skill426 starsChanged 6 months agoMITView on GitHub
Analyze the current session and write a self-contained handoff document so a fresh agent can resume the work with full context — outputs a single "Read XXX.md and do YYY." sentence
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
- 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
- anombyte93/prd-taskmastertheir 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 repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/setup/templates/AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/setup/templates/CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- brainstorming-extensionSkill
- create-issueSkill
- design-review-gateSkill
- external-toolsSkill
- handling-pr-commentsSkill
- migrateSkill
- orchestrated-executionSkill
- plan-review-gateSkill
- pr-shepherdSkill
- setupSkill
- startSkill
- statusSkill
- visual-reviewSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
2
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 47
If this project uses metaswarm's context persistence, read and fold in whatever exists — do not duplicate it blindly, summarize and link:
- Distinctive: line 57
If an active plan exists, the handoff must point to it explicitly and state which work unit/phase is in progress.
- Very specific: line 90
Prefer precise pointers (src/foo.ts:120-145) over whole-file references.
- Very specific: line 102
Create docs/handoffs/handoff-<YYYY-MM-DD-HHmm>.md using the template below.
- Distinctive: line 106
After writing the file, verify it (Step 8), then output the single sentence — exactly one line, the literal file path, and the concrete …
- Very specific: line 204
Run /self-reflect separately to capture durable *learnings* into the knowledge base.
“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 Skill
Capture everything a fresh agent with zero prior context needs to resume the current work, write it to a single self-contained markdown document, and hand it off with one unambiguous sentence:
Read
docs/handoffs/<file>.mdand do<the next concrete action>.
Use this when a session is ending, when context is about to be compacted, when you are switching machines or sessions, or when the user explicitly asks for a handoff. The goal is zero context loss: the receiving agent should be able to act correctly after reading exactly one file.
Output Contract
This skill produces exactly two things:
- A handoff document at
docs/handoffs/handoff-<YYYY-MM-DD-HHmm>.md(created if the directory does not exist). It is comprehensive, self-contained, and links to — or quotes — every artifact the next agent must read. A single closing sentence, and nothing else after the document is written, of the exact form:
Read docs/handoffs/handoff-2026-06-17-1432.md and do <YYY>.Where
<YYY>is one concrete, actionable next step (an imperative, not a vague theme). Good: "implement theparseConfigvalidation insrc/config.ts:84and maketests/config.test.tspass". Bad: "continue the work" / "look into the config stuff".
The sentence is the deliverable the user hands to the next agent. The document is what makes that sentence safe to follow.
Method
Step 1 — Reconstruct what we are working on
Review the session to date and answer, concretely:
- Objective: What is the user actually trying to accomplish? State it in one or two sentences.
- Definition of Done: What does "finished" look like? Enumerate verifiable acceptance criteria if any exist.
- Why: The motivation/problem behind the task, so the next agent does not re-litigate settled decisions.
Pull from: the user's original request, any GitHub Issue (gh issue view <n>), the design/plan docs, and the arc of the conversation.
Step 2 — Load any persisted metaswarm state
If this project uses metaswarm's context persistence, read and fold in whatever exists — do not duplicate it blindly, summarize and link:
ls .beads/plans/active-plan.md # the approved plan (if mid-execution)
ls .beads/context/project-context.md # completed work units, patterns, tooling
ls .beads/context/execution-state.md # current work unit, phase, VALIDATE attempts, review roundRecovery order for the next agent: if bd is installed, bd prime (bd context); then read .beads/plans/active-plan.md and .beads/context/*.md; then /prime for knowledge.
If an active plan exists, the handoff must point to it explicitly and state which work unit/phase is in progress.
Step 3 — Establish current status
Be honest and specific about state. Distinguish clearly between:
- Done & verified — with evidence (tests passing, build green, commit SHAs).
- Done but unverified — written but not yet tested/run.
- In progress — the exact thing being worked on right now, and where it stopped.
- Not started — remaining work.
Capture the working tree reality so the next agent is not surprised:
git branch --show-current
git status --short
git log --oneline -10
git diff --statNote uncommitted changes, stashes, and whether the branch is pushed.
Step 4 — Identify required reading
List every artifact the next agent must read before acting, and for each one say why and what to look for. Categories to sweep:
- Specs / Issues — the requirements source of truth (GitHub Issue, spec section, DoD).
- Design docs —
docs/plans/*-design.md,docs/superpowers/specs/*-design.md, and any approved design. - Plans —
.beads/plans/active-plan.md,docs/plans/*-plan.md. - Code — the specific files and
file:lineanchors that are the focus of the work, plus any pattern files to imitate. - Tests — the tests that define correctness (failing tests are the spec under TDD).
- Config / gates —
.coverage-thresholds.json, CLAUDE.md rules, CI config that the change must satisfy.
Prefer precise pointers (src/foo.ts:120-145) over whole-file references. If something is short and load-bearing, quote it directly into the handoff so the next agent does not have to hunt.
Step 5 — Decide the single next action (YYY)
Pick the one most important, concrete next step. It must be:
- Actionable — an imperative the agent can start immediately.
- Specific — names files, functions, or DoD items.
- Bounded — the immediate next move, not the entire remaining roadmap (the rest goes in the document's "Remaining work" section).
Step 6 — Write the document
Create docs/handoffs/handoff-<YYYY-MM-DD-HHmm>.md using the template below. Fill every section; write "None" where a section genuinely does not apply rather than deleting it.
Step 7 — Emit the handoff sentence
After writing the file, verify it (Step 8), then output the single sentence — exactly one line, the literal file path, and the concrete action. Do not add commentary after it.
Step 8 — Self-check before handing off
Confirm, as if you were the receiving agent who knows nothing:
- Could I start work from this document alone, without the prior conversation?
- Are all referenced files/paths/issues real and correct (spot-check with
ls/git)? - Is the next action unambiguous and immediately startable?
- Are decisions and their rationale captured so I won't undo them?
- Are the quality gates (tests, coverage, lint, build commands) stated?
- Does the closing sentence name the exact file and a concrete action?
Handoff Document Template
# Handoff: <short title of the work>
**Date**: <YYYY-MM-DD HH:mm> · **Branch**: `<branch>` · **Author session**: <model/agent>
## 1. Objective
<1–2 sentences: what we are trying to accomplish and why.>
## 2. Definition of Done
- [ ] <verifiable acceptance criterion>
- [ ] <…>
## 3. Current Status
**Done & verified:**
- <item> (evidence: <tests/commit>)
**Done, not yet verified:**
- <item>
**In progress (stopped here):**
- <the exact thing being worked on, and where/why it paused>
**Not started:**
- <remaining item>
### Working tree
- Branch `<branch>`, <pushed/not pushed>
- Uncommitted changes: <git status --short summary, or "clean">
- Recent commits:
- `<sha>` <subject>
## 4. Required Reading (read these before acting)
| # | Path / reference | Why it matters | What to look for |
|---|---|---|---|
| 1 | `<path-or-issue>` | <reason> | <specific thing> |
| 2 | `<path:line>` | <reason> | <specific thing> |
## 5. Key Decisions & Rationale
- **<decision>** — <why; what alternatives were rejected and why>. Do not undo without reason.
## 6. Code Map
- `<file:line>` — <what lives here / its role in this task>
- Pattern to imitate: `<file>` — <why>
## 7. How to Verify
```bash
<test command> # e.g., npm test
<coverage command> # reads .coverage-thresholds.json
<lint/build command>
```
Expected: <what green looks like>.
## 8. Open Questions / Blockers
- <question needing the user, or external dependency> — or "None"
## 9. Next Action
<The single concrete next step — the YYY — expanded with any detail the one-liner can't hold.>
## 10. Remaining Work (after the next action)
1. <subsequent step>
2. <…>Anti-Patterns
- Vague next action — "continue where we left off" is useless. Name the file and the change.
- Assuming shared memory — the next agent has none. If it matters and isn't in the doc, it's lost.
- Dumping the transcript — synthesize. A 40-line oriented summary beats a 4,000-line paste.
- Stale pointers — verify paths and line numbers exist before citing them; code may have moved.
- Hiding uncommitted state — always disclose dirty working tree, stashes, and unpushed commits.
- Multiple "final" sentences — emit exactly one
Read <file> and do <action>.line. - Silent decision loss — if a choice was made and settled, record it with rationale so it isn't reopened.
Relationship to Other Metaswarm Pieces
- Complements
/prime(which loads knowledge into a session) by serializing context out of a session for the next one. - For mid-execution work, this skill should reference
.beads/plans/active-plan.mdand.beads/context/execution-state.mdrather than restating them, so the next agent can follow the recovery order (if bd is installed,bd primefor bd context; then read those files; then/primefor knowledge) and then read the handoff for the human-readable narrative. - Run
/self-reflectseparately to capture durable learnings into the knowledge base;/handoffcaptures this task's transient state to resume it.
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.

