context-handoff
Skill17 starsChanged 9 months agoMITView on GitHub
Generate a context handoff document at the end of a session so the next session can pick up where this one left off. Auto-invoked when ending significant work, or manually via /handoff.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- asta-nguyen/kamehadbtheir own version, first seen Oct 4, 2026
- Gaurav890/everything-agentic-engineeringtheir own version, first seen Sep 13, 2026
- asta-nguyen/agent-devkittheir own version, first seen Sep 1, 2026
- SuperMate-Ai/SuperMate-Harness-Systemtheir own version, first seen Aug 30, 2026
- knowingrohan/aitheir own version, first seen Jun 29, 2026
- joabgonzalez/ai-agents-skillstheir own version, first seen Jun 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- asta-nguyen/kamehadb★ 15same name
- joabgonzalez/ai-agents-skills★ 9same name
- asta-nguyen/agent-devkit★ 4same name
- Gaurav890/everything-agentic-engineering★ 1same name
- newyounghe-design/context-handoff-skill★ 1same name
- SuperMate-Ai/SuperMate-Harness-System★ 1same name
- aimasteracc/harness-kit★ 0same name
- knowingrohan/ai★ 0same name
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 repository5 other files it gives its agents.
- claude-code/CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- agent-routingSkill
- discussSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Before switching between machines
- Distinctive: line 14
When context window is getting large and a fresh session is needed
- Distinctive: line 25
Write the handoff using this exact structure:
- Distinctive: line 55
Always run
git statusandgit log -1 --oneline: before writing the handoff to capture accurate state.
“Common” is measured: kept by at least 6 in 10 of the 6 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
Context Handoff
Generate a structured handoff document that preserves session context for the next Claude Code agent.
When to Invoke
- End of any session that made meaningful changes
- Before switching between machines
- When context window is getting large and a fresh session is needed
- User says
/handoff, "wrap up", "hand off", or "create a handoff"
Output Location
Write to: .claude/context-handoff.md
This file is checked by every new session via the MEMORY.md auto-load instruction.
Handoff Template
Write the handoff using this exact structure:
# Context Handoff
> Generated: YYYY-MM-DD HH:MM | Machine: [identifier] | Session: [brief label]
## What Was Done This Session
[Bullet list of completed work. File paths, not summaries.]
## Current State
- **Git**: [branch, clean/dirty, last commit hash + message]
- **Uncommitted changes**: [list or "none"]
- **Blocked on**: [anything that couldn't be completed and why]
## Next Steps
[Ordered list of what the next session should pick up. Include file paths and specific instructions.]
## Key Decisions Made
[Any architectural or approach decisions the next agent needs to know about to avoid re-litigating.]
## Files to Read First
[Top 3-5 files the next session should read to get oriented, in priority order.]Rules
- Be specific -- file paths, commit hashes, line numbers. Vague handoffs are useless.
- Don't summarize the whole repo -- only include what changed THIS session.
- Include blockers -- if something failed or was skipped, say why.
- Keep it under 100 lines -- this is a handoff, not a novel.
- Always run
git statusandgit log -1 --onelinebefore writing the handoff to capture accurate state.
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.

