handoff-handon
Skill0 starsChanged 4 months agoMITView on GitHub
Create and restore repo-local coding handoffs for Codex, GPT, Claude, or other agentic development sessions. Use when the user says `/handoff`, `handoff`, "prepare a handoff", "ready to leave work", `/handon`, `handon`, "continue from last time", "restore context", or asks to preserve or resume project state across machines, sessions, or chat history loss.
- Reads credentials
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 6 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use repo-local markdown files to preserve only the information needed to continue work in a fresh session.
- Very specific: line 25
If the user asks for /handoff or is ending a work session, run the Handoff workflow.
- Very specific: line 26
If the user asks for /handon or wants to continue from a previous handoff, run the Handon workflow.
- Very specific: line 27
If the repo does not yet contain the handoff files and the user asks to set up the workflow, create the structure using …
- Very specific: line 28
If the request is ambiguous, infer from intent: leaving/saving state means handoff.
- Very specific: line 32
When creating or updating a handoff:
- Distinctive: line 43
Read existing context when present:
- Very specific: line 54
Create docs/HANDOFF/ if missing.
- Very specific: line 55
Update docs/HANDOFF/CURRENT.md using the Current Handoff template in references/templates.md.
- Very specific: line 56
Update docs/HANDOFF/TODO.md or docs/HANDOFF/DECISIONS.md only when the user request or discovered project state clearly requires it.
- Very specific: line 57
Keep the final response short.
- Very specific: line 70
If the user says they will continue on another machine, remind them that /handoff writes repo-local files only.
- Very specific: line 94
If docs/HANDOFF/CURRENT.md is missing, say exactly:
- Very specific: line 107
If the user expected cross-machine continuity, remind them that the previous machine must commit and push docs/HANDOFF/ or otherwise sync …
- Very specific: line 109
If the current branch differs from the branch recorded in CURRENT.md, stop and ask for branch confirmation before modifying files.
- Distinctive: line 110
If local uncommitted changes exist, state that handon will summarize first and will not modify files until confirmed.
- Distinctive: line 112
Do not modify code or project files during the first handon response.
- Very specific: line 116
Never write these into handoff files:
- Distinctive: line 130
If suspicious sensitive material is encountered, describe it abstractly:
- Distinctive: line 137
Avoid recording sensitive usernames, internal account names, production hostnames, or private filesystem paths when a generic description …
- Very specific: line 141
Read references/templates.md when creating missing handoff files or formatting CURRENT.md, DECISIONS.md, TODO.md, AGENTS guidance, or the …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Handoff / Handon
Overview
Use repo-local markdown files to preserve only the information needed to continue work in a fresh session. Do not save full chat history, secrets, or a chronological transcript.
Default project files:
AGENTS.md
docs/HANDOFF/CURRENT.md
docs/HANDOFF/DECISIONS.md
docs/HANDOFF/TODO.mdCURRENT.md is the core handoff artifact. It should let a new machine, new agent, or new context window recover the current objective, recent work, risks, next steps, and validation plan in about three minutes.
Workflow Decision
- If the user asks for
/handoffor is ending a work session, run the Handoff workflow. - If the user asks for
/handonor wants to continue from a previous handoff, run the Handon workflow. - If the repo does not yet contain the handoff files and the user asks to set up the workflow, create the structure using
references/templates.md. - If the request is ambiguous, infer from intent: leaving/saving state means handoff; returning/restoring state means handon.
Handoff Workflow
When creating or updating a handoff:
- Inspect project state before writing:
git status
git diff --stat
git diff
git log --oneline -5- Read existing context when present:
README.md
AGENTS.md
docs/HANDOFF/TODO.md
docs/HANDOFF/DECISIONS.md
docs/HANDOFF/CURRENT.md- Inspect recently changed core files as needed to understand the actual implementation state.
- Create
docs/HANDOFF/if missing. - Update
docs/HANDOFF/CURRENT.mdusing the Current Handoff template inreferences/templates.md. - Update
docs/HANDOFF/TODO.mdordocs/HANDOFF/DECISIONS.mdonly when the user request or discovered project state clearly requires it. - Keep the final response short. Do not paste the full handoff unless the user asks.
Required final response shape:
Handoff completed.
Updated:
docs/HANDOFF/CURRENT.mdList additional updated handoff files only if they were actually changed.
If the user says they will continue on another machine, remind them that /handoff writes repo-local files only. They must commit and push docs/HANDOFF/ or otherwise sync those files before running /handon elsewhere.
Handon Workflow
When restoring context:
- Read:
AGENTS.md
docs/HANDOFF/CURRENT.md
docs/HANDOFF/DECISIONS.md
docs/HANDOFF/TODO.md
README.md- Check:
git status
git branch --show-current
git log --oneline -5- If
docs/HANDOFF/CURRENT.mdis missing, say exactly:
No handoff file found.
Expected:
docs/HANDOFF/CURRENT.md
Handon cannot restore the previous project state from handoff.You may infer context from README, git log, and TODO only after clearly labeling it as inference.
If the user expected cross-machine continuity, remind them that the previous machine must commit and push docs/HANDOFF/ or otherwise sync those files before /handon can restore context here.
- If the current branch differs from the branch recorded in
CURRENT.md, stop and ask for branch confirmation before modifying files. - If local uncommitted changes exist, state that handon will summarize first and will not modify files until confirmed.
- Output a short handon recap using the concise format in
references/templates.md. - Do not modify code or project files during the first handon response. Wait until the user explicitly confirms with words such as "start", "continue", "go ahead", or equivalent non-English confirmation phrases.
Safety Rules
Never write these into handoff files:
API keys
tokens
cookies
passwords
private keys
.env actual values
auth.json contents
database credentials
company-sensitive informationIf suspicious sensitive material is encountered, describe it abstractly:
- Sensitive credentials were detected during the session, but they were not written into this handoff.
- Check local environment files before sharing or committing.Avoid recording sensitive usernames, internal account names, production hostnames, or private filesystem paths when a generic description is enough.
References
- Read
references/templates.mdwhen creating missing handoff files or formattingCURRENT.md,DECISIONS.md,TODO.md, AGENTS guidance, or the Handon summary.
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.

