handoff
Skill108 starsChanged 2 months agoMITView on GitHub
Capture session decisions, conventions, and lessons into plan files, auto-memory, and CLAUDE.md so a fresh session resumes cleanly. Use for "hand off," "wrap up," "update docs for next session," or before /compact.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- obie/auto-handofftheir own version, first seen Oct 4, 2026
Used with
Projects with it also use which-skill, wait-what 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.
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 5 projects that use this
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 51 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 41 projects that use this
loulanyueSkillsetup-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 15 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 20 projects that use this
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
- +5 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- mattpocock/skills★ 335ksame name
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- compozy/compozy★ 2.8ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- stevesolun/ctx★ 588same name
185 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 repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- commitSkill
- learnSkill
- organizeSkill
- q-educatorSkill
- q-infographicsSkill
- q-presentationsSkill
- q-edaSkill
- q-introSkill
- q-litreviewSkill
- q-methodsSkill
- q-multimodalSkill
- q-resultsSkill
- q-tfSkill
- q-scholarSkill
- shipSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
8
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 21
If session-start is unclear, infer from the first commit timestamp after a context reset, or ask the user.
- Distinctive: line 27
Lessons that emerged: when an early draft failed, what symptom triggered the fix, what rule the fix expressed (latent rules > literal …
- Distinctive: line 60
Do not duplicate. If a rule lives in CLAUDE.md, do not also add it to memory.
- Distinctive: line 64
Read every target file before editing.
- Distinctive: line 68
MEMORY.md index: add a pointer line only if a new memory file was created.
- Distinctive: line 70
User CLAUDE.md: only for preferences that generalize beyond the current project.
- Distinctive: line 87
After the wrapped resume prompt, add a 2-line operator note for the user (outside the block):
- Distinctive: line 91
Keep the resume prompt itself under ~250 words.
“Common” is measured: kept by at least 6 in 10 of the 167 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
Captures the load-bearing outcomes of a session and writes them to the right durable location. Goal: a future session can pick up without re-deriving context from the transcript.
Workflow
Step 1 — Survey the session
Identify what changed beyond the literal edits.
git log --oneline <session-start>..HEAD
git diff <session-start>..HEAD --statIf session-start is unclear, infer from the first commit timestamp after a context reset, or ask the user.
For each commit, note:
- Decisions: terminology choices, structural conventions, methodological positions taken
- Conventions reinforced or established: subtitle patterns, voice rules, argument structures, naming schemes
- Controversies resolved: where the user pushed back and a final position landed
- Lessons that emerged: when an early draft failed, what symptom triggered the fix, what rule the fix expressed (latent rules > literal pushbacks)
Skip routine work: typo fixes, formatting-only changes, mechanical refactors. Only capture outcomes a future session would otherwise have to re-derive.
Step 2 — Locate destinations
Discover what already exists; do not create new doc locations without asking.
# Plan files (task tracking, current state, open items)
ls ~/.claude/plans/ 2>/dev/null | grep -i <project-keyword>
# Auto-memory (cross-session learnings keyed to project)
ls ~/.claude/projects/<project-id>/memory/ 2>/dev/null
# Project CLAUDE.md (project conventions, structure, banned terms)
ls <project-root>/CLAUDE.md 2>/dev/null
# User CLAUDE.md (cross-project preferences)
ls ~/CLAUDE.md 2>/dev/nullMatch each session outcome to the right destination:
| Outcome type | Destination |
| Task progress, completed items, residual open items | Plan file |
| Verified-state anchors (specific phrasings that mark current correct state) | Plan file |
| Writing/coding lessons, symptom → rule patterns | Auto-memory *_lessons.md |
| Banned terms, terminology decisions | Auto-memory *_terms.md (or project CLAUDE.md if it already lists them) |
| Project-level conventions (file layout, naming, structure) | Project CLAUDE.md |
| Cross-project user preferences | User CLAUDE.md |
Do not duplicate. If a rule lives in CLAUDE.md, do not also add it to memory; if a lesson lives in memory, do not restate it in the plan.
Step 3 — Apply updates
Read every target file before editing. Match the existing style, depth, and section conventions.
- Plan files: mark resolved items with strikethrough or
RESOLVED YYYY-MM-DDtag; append new open items; refresh "verified state" anchors with the line content as it stands now (not as drafted earlier in the session). - Auto-memory
*_lessons.md: append numbered lessons (L7, L8, ...) with trigger + corrective move + brief rationale. Update the file's frontmatterdescriptionif the scope expanded. - MEMORY.md index: add a pointer line only if a new memory file was created. Update the existing entry's hook only if its underlying content shifted materially. Keep each line under ~150 chars.
- Project CLAUDE.md: insert into the appropriate existing section (style rules, structure, etc.). Do not create a session log section. If a new convention does not fit any section, ask before adding.
- User CLAUDE.md: only for preferences that generalize beyond the current project. Be conservative.
Step 4 — Produce a resume prompt
Output a single message the user can copy-paste verbatim into a fresh session as the opening prompt. The next Claude reads this message and a fresh, cold-started auto-memory load — nothing else from the prior transcript carries over. The resume prompt must be self-contained.
Wrap the resume prompt in a clearly delimited block (e.g., ```text ... ```) so the user can copy it cleanly.
Required sections, in order:
- Context — one sentence on what project this is and what stage the work is at.
- Read first — explicit absolute paths to the files the next Claude should load before acting (plan file, key memory files if not auto-loaded, the canonical source document, the active downstream document). Annotate each with one phrase on why.
- Where we left off — last 2–4 commits relevant to the resumed thread (hash + one-line summary). Do not list every commit; only the load-bearing ones.
- Conventions to honor — only conventions established or reinforced THIS session that have not yet propagated into memory or CLAUDE.md. If everything is durable, write "All conventions are captured in memory and the plan file."
- Next task — the single most actionable next item with a
file:linepointer and a one-sentence statement of the change to make. If multiple, list up to 3 in priority order. - Known gotchas — only if relevant: discrepancies, blockers, or non-obvious traps the next session should be aware of. Omit the section if none.
After the wrapped resume prompt, add a 2-line operator note for the user (outside the block):
- where the new commits and doc updates landed (commit-hash range, files touched)
- whether anything is uncommitted
Keep the resume prompt itself under ~250 words. The user pastes it; the next Claude executes from there.
Anti-patterns
- Don't write session logs into project files. Permanent docs capture conventions, not session narratives.
- Don't update CLAUDE.md with rules already in memory (and vice versa). Each rule has one durable home.
- Don't create new doc locations without asking. Use what exists.
- Don't restate edits as "decisions." A typo fix is not a decision. A terminology choice the user pushed back on twice is.
- Don't bloat memory. Each memory file should have a clear scope. If a new lesson does not fit any existing file, ask before creating a new one.
- Don't extract lessons the user has not validated. A first-draft pattern from one session is a hypothesis, not a rule. Wait for repeated correction or explicit confirmation before persisting.
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.

