handoff
Skill17 starsChanged 9 months agoMITView on GitHub
Session wrap-up and handoff to next agent. Verifies work, updates docs, creates handoff message, runs pre-mortem.
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 repository20 other files it gives its agents.
- adversarial-verifierSkill
- candidate-screeningSkill
- coachSkill
- contract-reviewSkill
- create-briefingSkill
- credits-inventorySkill
- hiring-helperSkill
- inbox-commanderSkill
- interviewSkill
- investor-auditsSkill
- monthly-financialsSkill
- personalize-skillsSkill
- prompt-improverSkill
- ralph-loop-creatorSkill
- reality-checkSkill
- sensitive-content-scannerSkill
- show-and-tellSkill
- skill-customizerSkill
- technical-orientationSkill
- writeupSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 14 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when wrapping up a work session to ensure continuity for the next session/agent.
- Distinctive: line 13
Before context gets too long
- Distinctive: line 14
When switching to a different task/project
- Very specific: line 32
If there are uncommitted changes and verification passed, use the /commit skill:
- Very specific: line 45
Update .claude/project-diary.md (create if missing).
- Distinctive: line 49
Decisions: - Add rows to the Decisions Log table:
- Distinctive: line 56
Learnings: - Add entries for insights worth preserving:
- Distinctive: line 67
Open Questions: - Update the checklist with new/resolved items
- Distinctive: line 74
Every minor decision (only significant choices between alternatives)
- Very specific: line 80
Update .claude/build-status.md (if exists):
- Distinctive: line 89
Create a message using prompting best practices that the user can copy to start a new conversation.
- Distinctive: line 124
Keep it short - the next agent has access to all the docs
- Very specific: line 130
If you used /commit in Step 1.5, learnings were already captured during that skill's reflection phase.
- Distinctive: line 132
Repo-specific learnings: should have been routed to project docs (AGENT.md, CLAUDE.md, etc.)
- Very specific: line 133
Cross-cutting learnings: should have been appended to AGENT-LEARNINGS.md at the repo root
- Very specific: line 135
If you did NOT use /commit (e.g., no code changes this session), briefly self-reflect:
- Very specific: line 140
If yes, append to AGENT-LEARNINGS.md using the format defined there.
- Distinctive: line 155
Consider if any of these should be updated:
- Distinctive: line 167
If the session involved:
- Distinctive: line 204
Keep this section short. Skip entirely if nothing notable.
- Distinctive: line 208
Put the handoff message in a code block at the very end.
“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 Skill
Use this skill when wrapping up a work session to ensure continuity for the next session/agent.
When to Use
- End of a significant work session
- Before context gets too long
- When switching to a different task/project
- User says "let's wrap up" or "create a handoff"
Handoff Protocol
Execute these steps in order:
1. Verify Work
- Run tests: `pnpm test` (if tests exist)
- Run build: `pnpm build`
- Run lint: `pnpm lint` (if configured)
- Note any failures for handoff1.5. Commit Changes
If there are uncommitted changes and verification passed, use the /commit skill:
- Run `/commit` — this handles staging, conventional commit format, AND post-commit reflection
- The commit skill will also surface any learnings from the session
- Note the commit SHA for diary entries
- Do NOT push unless user explicitly requestsThis ensures work is preserved and learnings are captured before handoff.
2. Update Project Diary
Update .claude/project-diary.md (create if missing). The diary captures what git cannot.
DO add:
Decisions - Add rows to the Decisions Log table:
| Timestamp | Decision | Choice | Rationale | Revisit If | Commit | | 2024-12-25 14:30 | [title] | [choice] | [why] | [trigger] | abc1234 |Learnings - Add entries for insights worth preserving:
### 2024-12-25 14:30 - [Title] [What happened and the insight. 1-3 sentences.] Optional: Suggested action, relevant commits, links. ---- Open Questions - Update the checklist with new/resolved items
DO NOT add:
- Lists of files created/modified (git has this)
- Quality gate checklists (put in commit message)
- Session play-by-play (git log has this)
- Every minor decision (only significant choices between alternatives)
Include timestamps (date + HH:MM) on all entries for correlation with git history.
3. Update Build Status
Update .claude/build-status.md (if exists):
- Mark completed tasks
- Update phase status
- Adjust "Next Actions"
- Update "Recent Completions"
4. Generate Handoff Message
Create a message using prompting best practices that the user can copy to start a new conversation. The handoff message should treat the receiving agent as a capable leader, not just a task executor.
Prompting Best Practices to Apply:
- Define the agent's role and identity - Give them a clear persona (e.g., "project lead", "orchestrator", "senior engineer")
- Set behavioral expectations - What does good leadership look like in this context?
- Establish non-negotiables - What protocols MUST be followed? (TDD, quality gates, etc.)
- Provide clear structure - Numbered priorities, ordered reading list, explicit first actions
- Include mindset/philosophy - Why does this work matter? What's the human context?
- Define success criteria - What does "done" look like?
- Use imperative, direct language - "Start now", "Do this first", not "You might want to..."
Handoff Message Template (streamlined):
You are [ROLE] for [PROJECT] at [PATH].
CONTEXT:
- Current state: [phase, what's working, what's not]
- Recent work: [1-2 sentence summary]
- Key files: [list 2-3 files to read first]
NEXT ACTIONS:
1. [First thing to do]
2. [Second thing]
3. [Third thing]
WATCH OUT FOR:
- [Gotcha or risk from pre-mortem]
Start by reading [specific file].Key Principles:
- Keep it short - the next agent has access to all the docs
- Frontload what's different or non-obvious
- End with a clear first action
5. Surface Team Learnings
If you used /commit in Step 1.5, learnings were already captured during that skill's reflection phase. Review what was produced:
- Repo-specific learnings should have been routed to project docs (AGENT.md, CLAUDE.md, etc.)
- Cross-cutting learnings should have been appended to
AGENT-LEARNINGS.mdat the repo root
If you did NOT use /commit (e.g., no code changes this session), briefly self-reflect:
- Any non-obvious insights about the codebase, APIs, or tools?
- Any gotchas or dead-ends worth documenting?
If yes, append to AGENT-LEARNINGS.md using the format defined there. If no learnings, skip this step.
6. Pre-Mortem Analysis
Ask yourself:
- What could go wrong when the next agent picks this up?
- What context might they be missing?
- Are there any "landmines" in the code?
- Is any documentation stale or misleading?
Report findings and suggest mitigations.
7. System Improvement Suggestions
Consider if any of these should be updated:
- Project
CLAUDE.md - Global
~/.claude/CLAUDE.md - Skills
- Guides in
~/.claude/guides/ - This handoff skill itself
Propose specific changes if warranted.
8. Consider Documentation for Publication
If the session involved:
- Significant building or learning
- Insights worth sharing externally
- Artifacts that could be shown (code, configs, processes)
- Decisions or approaches others might benefit from
Suggest running /writeup before closing:
"This session had some learnings that might be worth documenting for your audience. Want to run
/writeupbefore closing?"
The /writeup skill will assess the work and recommend an appropriate format (tweet, thread, week notes, or full blog post).
Output Format
Output should be terminal-friendly (minimal markdown, plain text where possible).
Present in this order:
Part 1: Session Summary (brief)
Work done:
- What was accomplished (2-3 bullets max)
Handoff housekeeping:
- Verification results (one line: "Tests: ✓ | Build: ✓ | Lint: N/A")
- Commits made (SHA + one-line summary)
- Docs updated (list file names only)
Part 2: Risks & Improvements (if any)
- Pre-mortem: What could trip up the next agent? (bullets)
- System improvements: Anything worth changing in CLAUDE.md, skills, etc.?
- Writeup suggestion: If session had shareable learnings, mention
/writeup
Keep this section short. Skip entirely if nothing notable.
Part 3: Go-Forward Prompt (last, easy to copy)
Put the handoff message in a code block at the very end. User should be able to scroll up slightly and copy it cleanly.
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.

