handoff
Skill9 starsChanged 27 days agoMITView on GitHub
Use when a coding session is getting long, before stopping complex implementation/migration/debugging work, when the operator says "prepare a handoff" / "hand this off" / "continue in a new chat" / "/handoff", or when a long autonomous run needs continuity (Mode run-ledger, announced in chat) — archives the superseded restart state to docs/tmp/handoff/archive/ (paper trail), then writes the active state to docs/tmp/handoff.md so a fresh AI session resumes from the exact current point without the previous chat. Do NOT use for routine commits, human-facing status reports, formal implement/deploy role relays (those are docs/tmp/handoff/<date>-<slug>-{implement,deploy}.md), or when no meaningful code/test/schema/config/decision change happened this session.
192 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 versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- 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
182 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 repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fusebase-flow-always.mdcCursor rule
- .cursor/rules/fusebase-flow-implementation.mdcCursor rule
- .cursor/rules/fusebase-flow-security.mdcCursor rule
- .cursor/rules/fusebase-flow-specs.mdcCursor rule
- .cursor/rules/fusebase-flow-validation.mdcCursor rule
- api-explorationSkill
- app-api-contract-testingSkill
- app-backendSkill
- app-business-docsSkill
- app-dev-practicesSkill
- app-e2e-testsSkill
- app-quality-patternsSkill
- app-routingSkill
- app-secretsSkill
- app-sidecarSkill
- app-ui-designSkill
- business-logic-guardianSkill
- client-vs-internalSkill
- code-reviewSkill
- comment-policySkill
- communicationSkill
- design-discovery-ideationSkill
- dev-debug-logsSkill
- documentation-budgetSkill
- file-uploadSkill
- find-wasted-codeSkill
- find-wasted-effortSkill
- fusebase-cliSkill
- fusebase-dashboardsSkill
- fusebase-flow-health-checkSkill
- fusebase-gateSkill
- fusebase-portal-specific-appsSkill
- git-history-diagnosticSkill
- git-workflowSkill
- handling-authentication-errorsSkill
- implementation-planningSkill
- invite-with-passwordSkill
- lightweight-laneSkill
- liveness-disciplineSkill
- managed-integrationsSkill
- mcp-gate-debugSkill
- module-size-disciplineSkill
- north-starSkill
- phase-auditSkill
- product-apps-decompositionSkill
- product-docs-firstSkill
- product-ownerSkill
- project-onboardingSkill
- release-deploy-reportingSkill
- remote-logsSkill
- repo-onboarding-context-mapSkill
- requirements-specificationSkill
- role-disciplineSkill
- security-permissions-reviewSkill
- skill-authoringSkill
- smoke-testingSkill
- task-delegationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 173 edited versions we read keep these.
6
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 40
No meaningful change happened this session (nothing to continue from) — say so.
- Very specific: line 61
Create docs/tmp/ if absent.
- Very specific: line 70
Read the header: Mode:, Updated:, Branch:, HEAD:.
- Very specific: line 73
Never append a resumption note to the file (FR-18) — the next write supersedes in place (targeted Edit when most sections are unchanged.
- Distinctive: line 106
Do not write a human-PM / marketing-style document — the reader is an AI agent.
- Very specific: line 107
Do not guess; write Unknown.
- Distinctive: line 108
Do not hide failed attempts or dead-end debugging paths.
- Distinctive: line 109
Do not emit a vague Next Step.
- Distinctive: line 110
Do not include chain-of-thought or unrelated chat history.
- Very specific: line 111
Do not use docs/tmp/handoff.md for a formal implement/deploy relay (those are dated files under docs/tmp/handoff/).
- Very specific: line 112
Do not auto-invoke restart mode (invocation: manual) — the operator triggers it.
- Distinctive: line 113
Do not archive on every run-ledger update (in-place supersede.
“Common” is measured: kept by at least 6 in 10 of the 173 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
Style: Mode-B-lite. Produces the active-continuity artifact
docs/tmp/handoff.md(FR-23 Tier 2) for the NEXT AI coding agent — not a human PM report. Operator-triggered (invocation: manual) for restart mode;Mode: run-ledgeris the sole sanctioned autonomous write (long-run continuity, announced in chat).
Purpose
Capture the exact current state of a coding session into docs/tmp/handoff.md so a brand-new AI session continues without the previous chat. Long sessions degrade and compaction is lossy; a structured handoff preserves goal, repo state, decisions, in-flight files, failed attempts, constraints, and the single next action. This is the active restart state; formal role-relay prompts (implement/deploy/architect) are separate dated files under docs/tmp/handoff/ produced by implementation-planning / release-deploy-reporting.
Two modes (header Mode: line; absent in a legacy file → treat as restart): restart — operator-triggered snapshot for the next session; run-ledger — a long autonomous run's continuity note, written without operator trigger and announced in chat (one line), so context death mid-run loses nothing. A fresh session reading Mode: run-ledger resumes from records (read the ledger + cited artifacts first, resume from the last durable fact — task-delegation successor contract); a run-ledger is a continuity note, not a role-relay draft (it does not breach "AI Developer acknowledges; doesn't draft").
When to invoke
- Operator says "prepare a handoff" / "hand this off" / "continue in a new chat" / runs
/handoff(→Mode: restart). - Operator replies
rotateto a rotation offer (FR-17;role-discipline§ Forward Momentum) →Mode: restart. - Session is getting long / context degrading, or about to stop a complex implementation, migration, or debugging session.
- Meaningful code/test/schema/config/decision changes were made and must survive into the next session.
- A long autonomous run needs continuity across possible context death (→
Mode: run-ledger, no operator trigger needed; announce the write in chat — one line).
Do not invoke when
- No meaningful change happened this session (nothing to continue from) — say so; do not write a hollow file.
- Operator wants a human-facing status update / standup / PR description — this file is for an AI agent.
- The artifact needed is a formal role relay (
docs/tmp/handoff/<date>-<slug>-{implement,deploy}.md) — that'simplementation-planning/release-deploy-reporting. - Operator wants release/deploy reporting — use
release-deploy-reporting.
Required inputs
| Input | Where it lives | If missing |
| Repo state | git status --short, git branch --show-current, git rev-parse --short HEAD, git diff --stat | Stop; confirm the working dir is the intended repo |
| Output structure | templates/handoff.md (the 16 canonical sections) | Use that template's section order; do not improvise |
| Session facts | the current conversation (goal, role, decisions, failures, next step) | Write Unknown; never guess |
| Build/test commands | package.json, Makefile, pyproject.toml, repo docs | Detect before inventing; else Unknown |
Procedure
- Classify per FR-23 (
documentation-budget): a handoff is Tier 2 — warranted only when the next session needs exact continuation state. If nothing meaningful changed, stop. - Inspect repo state: branch, short HEAD,
git status --short,git diff --stat; review small diffs. - Detect real build/test/lint commands from manifests. Do not invent.
- Reconstruct session facts: role + authority, goal + non-goals, done/partial/not-started, locked decisions, constraints, what failed and why, open questions, the single next concrete action.
- Mode + archive (paper trail). Stamp
Mode: restart(operator-triggered) orMode: run-ledger(autonomous continuity — announce the write in chat, one line). Archive the predecessor todocs/tmp/handoff/archive/<YYYY-MM-DD-HHMM>-handoff.md(timestamp from itsUpdated:header when parseable, else file mtime/now) ONLY on restart supersede or mode transition (restart↔run-ledger,/handoffover a live ledger, or a different ticket's file). Run-ledger updates supersede IN PLACE (FR-18; git history is the audit trail) — never one archive file per ledger update. Archive files are dated history — agents never load them; the operator may prune the archive anytime (nothing references it). - Create
docs/tmp/if absent. Producedocs/tmp/handoff.mdagainsttemplates/handoff.md— same section order, every section filled with content /Unknown/None, and currentUpdated: <YYYY-MM-DD HH:MMZ>+Mode:lines in the header. Do NOT append resumption notes above old content (FR-18); the superseded restart predecessor lives in the archive. Write primitive (FR-18): supersede replaces stale semantics, not the file. A run-ledger update where most sections are unchanged is a targetedEditof the stale regions + theUpdated:/HEAD:header — not a regeneration. A fullWriteis for a restart snapshot, a mode transition, a different ticket, or when most sections changed. "Fresh" means no stale semantics survive, never retype the file. - Quality bar: factual only; pointers to canonical spec/decisions/tasks instead of reprinting them (FR-23); exactly one concrete executable Next Step; preserve repo terminology; product/user decisions separate from implementation detail; before reusing any copied procedural block, check whether a capability shipped since it was written supersedes the procedure.
- Report a short Mode A summary in chat (Goal, Current state, Active files, Next step, Validation). Do not paste the full file unless asked.
Resuming from a handoff (reader contract)
Named reader: the NEXT session, via workflows/session-initiation.md steps 5/5a (which reads docs/tmp/handoff.md automatically at session start).
- Read the header:
Mode:,Updated:,Branch:,HEAD:. - Trust gate. Diff recorded
Branch:/HEAD:vs livegit branch --show-current/git rev-parse --short HEAD. Match →Active Files in FlightandNext Stepare current; resume there. Mismatch → the repo moved after the write: re-derive in-flight state fromgit status --short+git log <recorded-HEAD>..HEAD --oneline; treat the file table as historical;Key Decisions Made/Failed Attemptsstay valid (they don't decay with HEAD). Mode: run-ledger→ resume from records: read the ledger's cited artifacts BEFORE acting; resume from the last durable fact (task-delegationsuccessor contract).- Never append a resumption note to the file (FR-18) — the next write supersedes in place (targeted
Editwhen most sections are unchanged; fullWriteon a structure/mode/ticket change).
Run-ledger write cadence
Supersede the ledger at durable milestones, not per tool call: after each commit, gate verdict, locked decision, completed T-task/slice, or concluded failed attempt — and BEFORE any operation that could kill context (deploy, migration, long bounded run). Each write = one-line chat announcement. Between milestones the ledger may lag; git history covers the gap. One archive file per update is a violation (in-place supersede — see Procedure step 5).
Output artifacts
| Artifact | Path | Mode |
| Active session handoff | docs/tmp/handoff.md | Mode B (16 sections from templates/handoff.md, Updated: + Mode: header) |
| Archived predecessor | docs/tmp/handoff/archive/<YYYY-MM-DD-HHMM>-handoff.md | dated history — never loaded (restart supersede / mode transition only) |
| Handoff summary | chat | Mode A |
Failure cases
| Failure mode | Detection | Response |
| Nothing meaningful to hand off | git status clean, no in-flight decisions | Tell operator no handoff is warranted; do not write a hollow file |
| Facts unknown | A section can't be filled from session/repo | Write Unknown; never invent results/decisions |
| Vague next step | Next Step reads "continue" / "fix issues" | Rewrite as one named file/function/command + expected result |
| Stale existing handoff | docs/tmp/handoff.md describes a different/old task | Archive it, then supersede with current state — a different ticket is a full Write (FR-18 write primitive); do not merge contradictory histories |
| Regenerated an unchanged file to "supersede" it | whole-file Write whose diff touches a few regions | Use a targeted Edit; FR-18 replaces stale semantics, not the file |
| Reprinting canonical docs | Handoff restates the full spec/decisions/tasks | Replace with pointers (FR-23) + current state |
Escalation path
- Repo state ambiguous (detached HEAD, mid-rebase, dirty submodules) → record under
Environment / Branch / Repo Stateand ask the operator to confirm before the next session continues. - Session made deploy/production-affecting changes → also route through
release-deploy-reporting; the active handoff is not a deploy record. - Decisions still unsettled → list under
Known Issues / Open Questions, notKey Decisions Made.
Anti-patterns
- Do not write a human-PM / marketing-style document — the reader is an AI agent.
- Do not guess; write
Unknown. - Do not hide failed attempts or dead-end debugging paths.
- Do not emit a vague Next Step.
- Do not include chain-of-thought or unrelated chat history.
- Do not use
docs/tmp/handoff.mdfor a formal implement/deploy relay (those are dated files underdocs/tmp/handoff/). - Do not auto-invoke restart mode (
invocation: manual) — the operator triggers it.Mode: run-ledgeris the sole sanctioned autonomous write and MUST be announced in chat when written. - Do not archive on every run-ledger update (in-place supersede; archive fires on restart supersede / mode transition only).
Clean-room note
Original Fusebase Flow content. The session-continuity-doc concept is common to long-running agent workflows; no third-party code, prompts, or skill files are copied. See docs/source-map.md.
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.

