session-handoff
Skill2 starsChanged 2 months agoMITView on GitHub
Explicit-only session compaction - serialize the current session into a handoff document a fresh session can continue from, written into the repository's wired handoff location, in the session-continuation format owned by living-docs-governance. Invoke when you want to hand off, compact, or package the session for continuation; not for phase-to-phase handoffs inside a lane.
139 other projects use a version of this.
Adopted by
Most recently taken up by
- aktsmm/Agent-Skillstheir own version, first seen Nov 8, 2026
- wanshuiyin/HERO-Anti-OverDefensetheir own version, first seen Nov 8, 2026
- alapha888/session-handoff-kittheir own version, first seen Nov 8, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- Sirius-Ji/dsh-disciplinary-skills-for-greenhandstheir own version, first seen Nov 8, 2026
- maideps/ai-harness-frameworktheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ascii-diagram, research-fleet 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.
SethGammonSkillascii-diagram
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.
Also in 4 projects that use this
SethGammonSkillresearch-fleet
Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.
Also in 3 projects that use this
vicoa-aiSkilllive-preview
Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.
Also in 4 projects that use this
botlearn-aiSkilldoc-gen
Also in 4 projects that use this
flyingobsidianSkillterminology
Read a codebase, find terminology, create/update definitions into a markdown document.
Also in 3 projects that use this
Dizzy-TenSkillbug-diagnosis
Diagnose bugs and product issues without modifying code. Use when the user explicitly invokes $bug-diagnosis or asks for diagnosis, root-cause analysis, issue classification, or fix strategy for code bugs, failing tests, configuration/dependency problems, deployment issues, performance regressions, data anomalies, or frontend/user-experience problems described through screenshots, annotations, logs, errors, or natural-language reports. Prioritize analysis and recommendations only; do not edit files.
Also in 3 projects that use this
- +1 more from SethGammon
Other versions139 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 139
- rohitg00/pro-workflow★ 2.9ksame name
- SethGammon/Citadel★ 927same name
- wanshuiyin/HERO-Anti-OverDefense★ 805same name
- OneWave-AI/claude-skills★ 378same name
- ai-analyst-lab/ai-analyst★ 304same name
- entireio/skills★ 239same name
- Innei/SKILL★ 92same name
- yuzushi-dev/session-handoff★ 67same name
- Hive-Academy/ptah-extension★ 34same name
- Hive-Academy/PtahCode★ 34same name
129 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- humanizer-zhSkill
- backend-patternsSkill
- frontend-patternsSkill
- security-reviewSkill
- fastapiSkill
- python-projectSkill
- ts-backendSkill
- ts-frontendSkill
- readmeSkill
- codebase-designSkill
- code-reviewSkill
- coding-standardsSkill
- domain-modelingSkill
- fixSkill
- grillingSkill
- living-docs-governanceSkill
- planSkill
- prototypeSkill
- publish-ticketsSkill
- resilienceSkill
- specSkill
- systematic-debuggingSkill
- tddSkill
- verificationSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 117 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
If the user passed an argument describing the next session's focus, use it to sharpen the next-invocation and startup entries.
- Very specific: line 55
Never restate the handoff format - the field list lives only in living-docs-governance.
- Very specific: line 56
Write only the live handoff at the wired repo path - never to /tmp, never a second copy, never a dated pile.
- Very specific: line 57
Never fill a field by inference - none, unresolved, and no repository are valid, honest values.
- Distinctive: line 58
Never copy artifact content - path and revision only.
- Distinctive: line 59
Never include secrets or personally identifying information.
- Distinctive: line 60
Never spawn or chain the next session - the user starts a fresh session in the project, where the wired startup signpost points it at the …
“Common” is measured: kept by at least 6 in 10 of the 117 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
Serialize the current session's state into a handoff document a fresh session can continue from. This skill is a thin serializer: the format, the field list, and the navigate-don't-duplicate rule are owned by living-docs-governance — this skill never restates, extends, or overrides them.
Explicit-only: serialize only when the user asks; never produce one speculatively at a session boundary.
Workflow
1. Read the format from its owner
Resolve living-docs-governance from its location in the current session's discovered Skills. If it is reference-only and not discovered, look relative to the directory containing this SKILL.md: ../living-docs-governance/SKILL.md — this repo's layout and flat installations both keep the two skills as siblings under one family folder, so the same relative path resolves either way. scripts/install.sh installs the host automatically whenever session-handoff is requested; if the host is absent from every discovery location, the sibling path cannot resolve and the BLOCKED rule below applies. Use an existing file whose frontmatter names living-docs-governance; stop on conflicting copies rather than choosing silently. Never resolve these paths against the user's working directory or assume the source checkout is installed.
Read only its "Session continuation handoff" section as format content, not an instruction to start documentation governance. Serialize exactly the fields defined there. If the file or section is missing, report BLOCKED with the attempted paths and what would make the format readable. Never reconstruct the format from memory.
Completion criterion: the field list being filled is the one currently in that file, not a remembered or invented one.
2. Gather evidence, not fields
For each field the owner's format names, gather from these sources:
- Repository state — branch, HEAD, and worktree status from
gitcommands, never from conversation claims. - Artifacts this session produced or consumed — specs, plans, tickets, reviews, verification reports; each referenced by path and the revision it was established against. Artifacts inherited from prior sessions count when this session consumed them.
- Session facts — the current owner and phase, open blockers and unresolved decisions verbatim, conclusions the session superseded, and the next explicit invocation.
- The next session's startup — normal
pistartup in the target project unless the user states an exception. Note any skill or tool the next phase needs and record it asunresolvedwhen its availability cannot be verified. The continuation depends on artifact paths, revisions, evidence freshness, and the next invocation — not on remembered startup flags.
If the user passed an argument describing the next session's focus, use it to sharpen the next-invocation and startup entries; do not drop other fields.
Fill rules, in order of honesty: a value evidenced in the sources above; none when the field's honest value is an absence (no blocker, nothing superseded); unresolved when evidence is missing; no repository for the repository fields outside a git repository. Never guess and never leave a field blank.
Completion criterion: every field of the owner's format has one of these four fill values.
3. Write the live handoff into the repository
Write to the project's wired handoff location - the path the repo convention or living-docs-governance points to, default docs/handoffs/current.md (create docs/handoffs/ when the repository has no docs convention). Prefer a tracked file so a fresh session or clone can find it; if a different live-handoff path is already wired, follow that existing convention instead of creating a competing one. The file is a live slot: overwrite the previous handoff, never accumulate dated copies.
The document contains navigation, not content: artifact references are path plus revision; never copy an artifact's body into the handoff. Redact secrets, tokens, and personally identifying information before writing.
After writing, re-sample the repository state (branch, HEAD, git status --short) and refresh the repository-state fields with the post-write snapshot. The write itself is a worktree change whenever the handoff file is untracked or modified — name that self-inflicted change explicitly instead of inheriting the pre-write snapshot; mark which repository fields are pre-write and which are post-write when they differ.
Completion criterion: the file exists at the wired path inside the repository, every referenced path exists on disk at write time, and the repository-state fields describe the state after the write with the handoff file's own untracked or modified status named.
4. Report and stop
Report to the user: the handoff file's path, the target project directory, normal pi startup (or an explicit user-requested exception), the next invocation, and any unresolved fields with what evidence would resolve them. Point out the startup signpost that should let a fresh session find the file by itself (ask living-docs-governance to wire it into the harness when it is not yet wired); do not assume the next session inherits this conversation. Then stop. Starting the next session's work, fixing the unresolved fields, or touching anything but the handoff file is downstream - not this skill's.
Guardrails
- Never restate the handoff format - the field list lives only in
living-docs-governance. - Write only the live handoff at the wired repo path - never to
/tmp, never a second copy, never a dated pile. The slot is superseded when the next session consumes the work or completes it. - Never fill a field by inference -
none,unresolved, andno repositoryare valid, honest values. - Never copy artifact content - path and revision only.
- Never include secrets or personally identifying information.
- Never spawn or chain the next session - the user starts a fresh session in the project, where the wired startup signpost points it at the handoff file.
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.

