handoff
Skill46 starsChanged 15 days agoMITView on GitHub
Write a handoff so a fresh session with no memory can resume the work: constraints first, then state and next steps. Use when ending a session, when an agent reaches the rotation threshold, or when transferring work to another agent.
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 repository8 other files it gives its agents.
- bubble-reviewSkill
- cleanupSkill
- doc-updaterSkill
- gateSkill
- hubSkill
- overnightSkill
- review-planSkill
- startSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run hh-resolve rules and read the file it prints first if you are inside a hivehouse team (the project's or the user's own …
- Very specific: line 53
Write it for a cold reader: no "as discussed above", no reliance on the conversation.
- Very specific: line 58
After a clear, the orchestrator sends this (hh-spawn and hh-rotate send it for you):
- Very specific: line 71
When the owner uses the i-have-adhd output style (hh-adhd finds it), the line adds Read <its SKILL.md> and follow it for every message to …
- Very specific: line 76
When the orchestrator (or your own check) says the context is at ${user_config.rotate_at_percent}% or above:
- Distinctive: line 79
Update the START HERE block, and add a dated log line for anything that happened since the last one.
- Distinctive: line 89
After a rotation, the agent re-reads any file before editing it.
- Distinctive: line 93
Use this structure for a standalone handoff.
“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
Session handoff
Claude Code fills a ${user_config.X} below only when a value of X was saved; only when one still reads literally, as ${user_config.X}, run hh-settings option X and use what it prints (the value saved in Claude Code's settings, else the plugin's default); a filled value is used as it is.
Run hh-resolve rules and read the file it prints first if you are inside a hivehouse team (the project's or the user's own
custom/rules/RULES.md when there is one, else the plugin's).
Produce a handoff that lets a fresh agent with zero prior context resume work immediately.
Core principle: the next agent repeats every mistake you made unless you tell it not to. Transfer constraints and lessons, not just progress.
Announce at start: "I'm using the handoff skill to write the handoff."
What makes a good handoff
Most handoffs say what was done but not why decisions were made or what went wrong. The next agent needs an operating manual, not a changelog. Priority order:
- Constraints and hard-won rules: things that caused rework when violated.
- Current state: where things stand right now.
- Next steps: what to do next, detailed enough to start immediately.
- What was done: a summary, for context only.
Inside a hivehouse team
Each agent, the orchestrator included, keeps one file: the file its pickup line names (by default .hivehouse/handoffs/<agent>.md). Its newest START HERE
block is at the top and is the agent's whole prompt after a /clear; older blocks and dated log lines sit beneath.
The START HERE block
## START HERE — <machine/context>, written <weekday date time> (from `date`) by <project>-<agent> (supersedes every block below)
I am <project>-<agent>. Report ONLY to <orchestrator>.
Rules: <the 4-6 rules that matter most now, one line each; the rest are in .hivehouse/team/<agent>/RULES.md>.
STATE: <idle | mid-task: which>. Branch <b>, worktree <path>, tip <hash>. Pushed / not pushed. Gated / not gated.
DONE: <what is finished, one line each, with hashes>.
NOW: <the task in flight, and exactly where it stands>.
NEXT: <numbered, specific steps a cold reader can start on; name the files to read first>.
OPEN: <decisions waiting on the owner or the orchestrator; questions unanswered>.
LIVE STATE: <worktrees, processes, servers, temp files, drafts, anything that must be cleaned or left alone>.Write it for a cold reader: no "as discussed above", no reliance on the conversation. Take the date from date, never
from memory. Verify every hash, path and count against the source before writing it.
The pickup line
After a clear, the orchestrator sends this (hh-spawn and hh-rotate send it for you):
You are <project>-<agent>. Read <handoff> from the top: its START HERE block is your prompt, and <root>/.hivehouse/team/<agent>/ holds your role and the rules. Report to <orchestrator>. Wait for its first message before any work.
<handoff> is the file hh-spawn --handoff recorded for the agent, else <root>/.hivehouse/handoffs/<agent>.md.
<orchestrator> is the orchestrator session's own name, read when the line is sent (so a rename is followed), or
<project>-orchestrator when it cannot be read.
The orchestrator's own line, after hh-self-rotate, is shorter: it reports to nobody and waits for nobody.
You are <orchestrator>. Read <handoff> from the top: its START HERE block is your prompt.
When the owner uses the i-have-adhd output style (hh-adhd finds it), the line adds Read <its SKILL.md> and follow it
for every message to the owner.
At the rotation threshold
When the orchestrator (or your own check) says the context is at ${user_config.rotate_at_percent}% or above:
- Finish or safely park the task in hand. Do not start new work.
- Update the START HERE block, and add a dated log line for anything that happened since the last one.
- Say "done" to the orchestrator and stop. Do nothing further: the orchestrator clears you next.
How the orchestrator rotates
- For an agent: read every session's level with
hh-context --all; at the threshold ask for the update; on "done" runhh-rotate <agent>. It waits until the pane is idle, sends/clear, checks it landed, sends the pickup line, and logs the levels before and after in.hivehouse/rotate.log. - For itself: update its own block, then
hh-self-rotate <orchestrator agent name>as the last act of the turn. It detaches, waits until the orchestrator is idle, and does the same. - After a rotation, the agent re-reads any file before editing it; a remembered file may be stale.
Outside a hivehouse team
Use this structure for a standalone handoff. Every section is mandatory; write "None" for an empty one.
# Session Handoff
> **Date:** YYYY-MM-DD
> **Branch:** <current git branch>
> **Next task:** <one-line summary of what comes next>
---
## 1. Project Context
<2-3 sentences: what the project is, its stack, the goal.>
## 2. Spec / Source of Truth
<Path to the spec or planning document. If none exists, say so. If the spec holds the rules, say "Read this file fully
before doing anything" and give the path.>
## 3. Constraints and Rules
**These caused rework when violated. Follow them strictly.**
<One clear sentence per rule, with the why if it is not obvious. Group by category if there are more than five.>
### Hard-Won Lessons
<What went wrong and the fix: "Problem → Fix", or "Don't do X because Y happened".>
## 4. Current State
<Completed, in progress, untouched. A table if the project tracks sections or tasks.>
### Uncommitted Work
<Any uncommitted changes. "None" if clean.>
### Known Issues
<Existing bugs, broken tests, things to watch.>
## 5. File Structure
<Only the paths the next agent needs, one line each. Not a full tree.>
## 6. Next Steps
<Specific and actionable, not "continue working on X": which file to read, which step first, what to wait for.>
## 7. Workflow Reminders
<Any workflow the next agent must follow, for example "never implement before the owner approves".>Location: docs/HANDOFF.md if docs/ exists, else HANDOFF.md at the project root. A handoff is a snapshot; overwrite
an earlier one. Then tell the owner what to say to the next agent:
In your next session, start with:
Read <path-to-handoff> and <path-to-spec-if-exists> before starting any work.Common mistakes
| Mistake | Fix |
| Listing what was done without constraints | Constraints are the most valuable part; they prevent rework |
| Vague next steps ("continue the work") | Numbered, specific instructions the agent can follow |
| Omitting lessons learned | If something caused rework, the next agent will repeat it |
| Conversation-specific details | Write for a cold reader |
| Dumping raw file trees | Only paths the next agent needs |
| Forgetting uncommitted work | Always check git status and mention it |
| Not naming the spec | The spec is the first thing the next agent should read |
| A date or hash from memory | Read the date with date; read hashes from git |
Red flags
Your handoff is bad if it reads like a git log, mentions no constraints, ends with "continue working on...", assumes the reader saw this session, or does not say which file to read first.
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.

