handoff
Skill1 starsChanged 6 months agoMITView on GitHub
Capture the entire current chat as a structured handoff document the user can paste into Codex, Cursor, or another IDE-based AI coding agent. Triggers on /handoff, /export-context, /dump, "package this for codex", "send this to cursor", "make a handoff doc", "i wanna take this to another model", or similar phrasing indicating intent to continue work elsewhere. Produces lossless distillation — every meaningful detail survives, with discarded approaches explicitly labeled by reason so the next model does not re-suggest rejected paths.
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 repository13 other files it gives its agents.
- agent-cliSkill
- askSkill
- blueprintSkill
- brainstormSkill
- carveSkill
- dispatchSkill
- improve-claude-mdSkill
- leanSkill
- llm-councilSkill
- orientSkill
- react-auditSkill
- shipSkill
- tddSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 2 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
If the user clearly wants to continue the work in another tool, run the skill — do not ask first.
- Distinctive: line 28
Do not paraphrase technical details.
- Very specific: line 40
Read the conversation start to current turn.
- Very specific: line 48
Follow the section order in output-template.md.
- Very specific: line 56
Write both files with the Write tool.
- Very specific: line 64
One-shot: Never ask clarifying questions.
- Very specific: line 66
No em-dashes in the output files: Use double hyphens (--) or commas.
- Very specific: line 67
No invented details: If a section has no content, write _(none recorded in this session)_.
“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 — Chat-to-Handoff Distillation
Generate a complete, structured handoff document from the current chat session, optimized for consumption by Codex, Cursor, or other IDE-based AI coding agents.
Two output files with identical content in different formats:
handoff-{slug}-{YYYY-MM-DD}.md— markdown with headings, code fences, tableshandoff-{slug}-{YYYY-MM-DD}.txt— flat text with ASCII section dividers
When to Invoke
Any of the following — explicit or loose intent to move the session elsewhere:
/handoff,/export-context,/brief codex,/give to cursor,/dump- "package this for codex", "export this chat", "make a handoff doc", "send this to cursor", "i wanna take this to another model"
If the user clearly wants to continue the work in another tool, run the skill — do not ask first.
Core Principle
This is lossless distillation, not transcription. Every meaningful detail from the chat survives, but reorganized so the next model can act immediately. The biggest single value-add is explicitly labeling discarded approaches with the reason they were rejected, so the next model does not re-suggest them.
Do not paraphrase technical details. File paths, function names, error messages, version numbers, command strings, and config values must appear verbatim. Prose around them can be tightened.
Output
- Save both files to
./handoffs/in the current repo (create the directory if missing — same convention as./plans/). - Project slug: lowercase, hyphenated, inferred from the chat (repo name, app name, or main subject). Fallback:
session. - Multiple handoffs same day: append
-1,-2, etc. to the slug.
Workflow
Step 1 — Walk the chat
Read the conversation start to current turn. Extract the eleven categories listed in extraction-checklist.md. Throwaway details count — port 465 needs secure: true is exactly the kind of thing the next model needs.
Step 2 — Label every code block
Tag every code block with one of [FINAL], [SUPERSEDED], [REJECTED], [DRAFT]. Rejection reasons are mandatory for [SUPERSEDED] and [REJECTED]. Never abbreviate or truncate [FINAL] or [SUPERSEDED] blocks — the receiving model has no FS access. Full rules in code-status-tags.md.
Step 3 — Render the .md
Follow the section order in output-template.md. Omit a section only if it would be empty — but prefer marking empty sections _(none recorded in this session)_ so the receiving model knows nothing was missed.
Step 4 — Render the .txt
Convert the .md content using the substitution rules in txt-format.md. Same content, different chrome.
Step 5 — Write & report
Write both files with the Write tool. Print to chat:
- The absolute paths of both files.
- A one-line summary: code-block counts per status, decision count, error count.
- A recommended first prompt for the receiving model:
"Read this handoff doc, then continue from Next Step 1."
Skill-Specific Rules
- One-shot. Never ask clarifying questions. Infer the project slug; fall back to
sessionif genuinely ambiguous. - Verbatim discipline. Identifiers, paths, error strings, version numbers, command strings appear exactly as in the chat. Only surrounding prose may be tightened.
- No em-dashes in the output files. Use double hyphens (
--) or commas. Many downstream tools render or parse em-dashes inconsistently. (This rule applies to the generated.mdand.txtonly — not to this SKILL.md itself.) - No invented details. If a section has no content, write
_(none recorded in this session)_. Do not fabricate to fill space. - Never abbreviate
[FINAL]or[SUPERSEDED]code blocks. Full bytes only — no[... rest of file ...], no[... truncated ...], no[... see repo ...]. The next model cannot reach your filesystem. - Rejection reason is mandatory on every
[SUPERSEDED]and[REJECTED]block. Without it, the next model re-suggests the same wrong thing — that is the whole point of this skill.
Acceptance Checklist
- Both files written to
./handoffs/with thehandoff-{slug}-{YYYY-MM-DD}naming convention - Every code block from the chat carries a
[FINAL],[SUPERSEDED],[REJECTED], or[DRAFT]tag - Every
[SUPERSEDED]and[REJECTED]block has a rejection reason - No
[FINAL]or[SUPERSEDED]block was abbreviated or truncated - Empty sections marked
_(none recorded in this session)_rather than omitted - No em-dashes in the output files
- Both files reported to the user with absolute paths and the summary line
Session Rules
- This skill runs without confirmation prompts. Do not interrupt the user mid-distillation to clarify.
- The output files are deliverables. Treat them with the same care as PRDs in
./plans/— verbatim quotes from the source chat, no shortcuts.
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.

