session-handoff
Skill0 starsChanged 3 months agoMITView on GitHub
Generate rigorous, multi-artifact session handoff packages that preserve full context for zero-loss context switching between AI sessions. Use this skill whenever the user asks to: save session state, create a handoff, package context for a new session, summarize and preserve a conversation for later, do a session dump, create a context transfer, prepare a state snapshot, export session knowledge, hand off to another agent, persist session memory, "wrap up" or "save where we are", create a knowledge package, synthesize session context, or produce a resumption artifact. Also trigger when the user says things like "save this for next time", "capture everything we discussed", "I need to pick this up later", "package this session", "make sure nothing is lost", "create a handoff document", "session export", "context preservation", or any variant of persisting conversational and working state. Even if the user just says "handoff" or "save state" — use this skill.
164 other projects use a version of this.
Adopted by
Most recently taken up by
- OpenAgentsInc/openagentstheir own version, first seen Nov 29, 2026
- anivar/agentic-sdlctheir own version, first seen Nov 29, 2026
- mikejhill/agent-skillstheir own version, first seen Nov 29, 2026
- weiweimhy/agent-skillstheir own version, first seen Nov 29, 2026
- exerias21/brainstorm-toolkittheir own version, first seen Nov 29, 2026
- jamesctucker/morainetheir own version, first seen Nov 29, 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
ferocknewSkilldoc-reader
当用户要求"读取 Word 文档"、"解析 DOCX 文件"、"将 Word 转换为 Markdown"、"提取文档内容"、"读取 docx"时,或者需要在 JavaScript/Node.js 环境中读取 Microsoft Word 文档(.docx)并转换为 Markdown、HTML 或纯文本格式时使用此 skill。
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
mcabreradevSkillbug-diagnosis
Use when something is broken, failing or intermittent. Diagnose before fixing: a command that goes red on this bug first, then falsifiable hypotheses.
Also in 4 projects that use this
botlearn-aiSkilldoc-gen
Also in 4 projects that use this
Other versions164 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 164
- rohitg00/pro-workflow★ 2.9ksame name
- SethGammon/Citadel★ 927same name
- wanshuiyin/HERO-Anti-OverDefense★ 925same name
- OpenAgentsInc/openagents★ 469same name
- OneWave-AI/claude-skills★ 378same name
- ai-analyst-lab/ai-analyst★ 304same name
- entireio/skills★ 240same name
- Innei/SKILL★ 93same name
- yuzushi-dev/session-handoff★ 67same name
- Hive-Academy/ptah-extension★ 35same name
154 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 repository6 other files it gives its agents.
- comprehensive-data-analysisSkill
- template-skillSkill
- pdfSkill
- pdfSkill
- vdm-publication-bundleSkill
- {{SKILL_ID}}Skill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 140 edited versions we read keep these.
10
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
- Very specific: line 34
Before generating anything, locate this skill's directory (it will be wherever this SKILL.md lives) and read the schema reference:
- Very specific: line 120
Create all files in /home/claude/handoff/ and then copy to /mnt/user-data/outputs/handoff/.
- Distinctive: line 140
Write this as cohesive paragraphs, not bullet points.
- Very specific: line 153
Must validate against the schema in references/state_schema.md.
- Distinctive: line 163
Run the validation script after generating:
- Distinctive: line 198
Keep it to 15-30 nodes — enough to map the territory, not so many it's noise.
- Distinctive: line 200
After generating, validate it renders:
- Distinctive: line 232
Write this in a reflective, observational tone.
- Distinctive: line 265
Before presenting the package, self-evaluate on these axes (score 0-5 each):
- Distinctive: line 273
Minimum passing score: 20/25: If below, identify the weakest file and improve it.
- Distinctive: line 297
Missing rejection reasons: Every rejected path needs a *why*
- Distinctive: line 298
Sentiment whitewashing: If the session was frustrating, say so.
- Distinctive: line 300
Entity ambiguity: Every "it", "that", "the thing" must be resolved to a named entity
“Common” is measured: kept by at least 6 in 10 of the 140 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 — Zero-Loss Context Packaging
Purpose
This skill transforms a live session's full discourse — explicit content, latent intent, rejected paths, and intuitive leaps — into a structured, machine-and-human-readable Handoff Package. The goal is that a future agent (or the same user returning later) can resume work immediately without re-reading the full history.
The package captures not just what was said but why, what was rejected, and what was felt — the liminal state that typically evaporates between sessions.
Step 0: Read References
Before generating anything, locate this skill's directory (it will be wherever this SKILL.md lives) and read the schema reference:
view <this-skill-directory>/references/state_schema.mdThis contains the exact JSON schema for 01_state_snapshot.json and field-level guidance.
The skill also contains validation scripts in <this-skill-directory>/scripts/.
Step 1: Classify the Session
Determine these parameters from the conversation history (ask the user only if genuinely ambiguous):
| Parameter | Options |
| Scope | Ideation · Debugging · Refactoring · Architecture · Creative Writing · Research · Mixed |
| Domain | Software Engineering · Physics/Math · Philosophy · Creative · Business/Strategy · Mixed |
| Depth | Short (<10 exchanges) · Deep Dive (10-50) · Marathon (50+) |
| Urgency | Low · Medium · Critical |
| Next Owner | User · AI · Specific Role |
These parameters shape how you weight different parts of the package. A debugging session needs verbatim error codes; a philosophy session needs dialectic tracking; a creative session needs tonal preservation.
Step 2: Signal Extraction
Scan the full session history using domain-adapted parsing:
Engineering Sessions
- Preserve: stack traces, error codes, UUIDs, function signatures, file paths, diffs, dependency versions, architecture decisions, environment variables
- Extract: the causal chain of bugs/fixes, what was tried and failed
Physics / Math Sessions
- Preserve: LaTeX expressions verbatim (do not simplify), constants, derivation steps, notation conventions, coordinate choices
- Extract: which steps are proved vs. assumed vs. conjectured, layer dependencies
Philosophy / Creative Sessions
- Preserve: dialectic shifts, metaphor evolution, tonal changes, key phrasings that carry semantic load
- Extract: thesis evolution, which framings were abandoned and why
Business / Strategy Sessions
- Preserve: KPIs, OKRs, resource constraints, stakeholder positions, timelines
- Extract: decision rationale, risk assessments, trade-offs made
Noise filtering: Strip conversational filler ("Thanks!", "Can you check?") but always preserve the intent behind the query. If "Can you check?" was really "I suspect this is wrong but I'm not sure where" — capture that suspicion.
Step 3: Liminal Analysis
This is the highest-value, hardest-to-reconstruct layer. Capture:
- Rejected Paths — Ideas discussed and discarded. Record why they were rejected so the next session doesn't regress into re-exploring them.
- Assumptions — Leaps in logic that weren't fully proven but were treated as true.
Label each explicitly as
[Assumption]with confidence level (high/medium/low). - Intuitions — Hunches, pattern-recognitions, "I think this might connect to..." moments that haven't been formalized yet. These are often the most valuable signals.
- Tonal State — Was the session exploratory and loose? Rigid and debugging-focused? Frustrated and blocked? Triumphant and building? The next agent needs to match this energy or consciously shift it.
- Unfinished Threads — Topics that were raised but not resolved, questions asked but not answered, tangents that might be important later.
- Emergent Connections — Abstract links between concepts that surfaced during discussion but weren't the main focus. These often become the main focus next time.
Step 4: Generate the Package
Create all files in /home/claude/handoff/ and then copy to /mnt/user-data/outputs/handoff/.
File Manifest
handoff/
00_executive_narrative.md — The "Story of the Session"
01_state_snapshot.json — Machine-readable context (validated against schema)
02_active_context.md — Current focus, hot paths, immediate blockers
03_concept_map.mmd — Mermaid mindmap of entities/relationships explored
04_decision_log.md — Decisions made, alternatives rejected, rationale
05_liminal_space.md — Intuitions, assumptions, tone, "the unsaid"
06_next_actions.md — Prioritized action matrix with difficulty estimates
07_environment_spec.md — Technical environment, axioms, constants assumedFile-by-File Instructions
00_executive_narrative.md
Write this as cohesive paragraphs, not bullet points. Tell the story of the session as a causal chain:
"The session began with X. We explored Y, which led to the discovery that Z. This contradicted our earlier assumption about W, so we pivoted to A. The key breakthrough was B, which resolved the original question but opened new questions about C and D."
Structure: Opening context → Key developments (chronological) → Turning points → Current state → What's next. The reader should understand the arc of the session.
01_state_snapshot.json
Must validate against the schema in references/state_schema.md. Key fields:
status: one ofstable | volatile | blocked | completefocus.cursor_position: a plain-language description of where we are in the problem space — not a file path, but a conceptual locationentities: every significant noun — projects, functions, theorems, people, files, concepts — with type, state, and definitionknowledge_graph: adjacency list showing how entities relatesentiment.frustration_level: 0.0 (calm exploration) to 1.0 (deeply blocked)
Run the validation script after generating:
python <this-skill-directory>/scripts/validate_snapshot.py /home/claude/handoff/01_state_snapshot.json02_active_context.md
The "dashboard" view. Contains:
- Primary Focus: What we're actively working on right now
- Hot Paths: Lines of investigation that are live and promising
- Blockers: What's preventing progress, with specificity
- Dependencies: What needs to happen before what
- Quick Resume Instructions: 2-3 sentences a new agent can read to start immediately
03_concept_map.mmd
A Mermaid mindmap showing the session's conceptual territory. Use this structure:
mindmap
root((Session Topic))
Branch A
Sub-concept A1
Sub-concept A2
Detail
Branch B
Sub-concept B1
Rejected
Discarded Idea X
Discarded Idea YColor-code or label: active paths vs. rejected paths vs. open questions. Keep it to 15-30 nodes — enough to map the territory, not so many it's noise.
After generating, validate it renders:
python <this-skill-directory>/scripts/render_mermaid.py /home/claude/handoff/03_concept_map.mmd04_decision_log.md
For each significant decision in the session:
### Decision: [Short title]
- **Chosen**: [What was decided]
- **Alternatives considered**: [What else was on the table]
- **Rationale**: [Why this path was chosen]
- **Confidence**: [High/Medium/Low]
- **Reversibility**: [Easy/Hard/Irreversible]
- **Downstream effects**: [What this decision constrains or enables]05_liminal_space.md
The most unusual and valuable file. Contains:
- Session Tone: Paragraph describing the emotional/intellectual texture
- Unspoken Assumptions: Things treated as true without explicit proof
- Intuitive Leaps: Pattern-recognitions that haven't been formalized
- Rejected Ideas (with burial reasons): Why each was abandoned
- Emergent Threads: Connections that surfaced but weren't pursued
- Open Questions: Things we don't know yet but should
- Meta-Observations: Patterns in how the session itself evolved
Write this in a reflective, observational tone. This file is where the "between the lines" content lives.
06_next_actions.md
An action matrix, not just a list:
| Priority | Action | Owner | Difficulty | Confidence | Dependencies | Notes |
|----------|--------|-------|------------|------------|--------------|-------|
| P0 | ... | User | Medium | 85% | None | ... |
| P1 | ... | AI | Hard | 60% | P0 | ... |- Priority: P0 (do immediately) through P3 (backlog)
- Difficulty: Easy / Medium / Hard / Unknown
- Confidence: How sure we are this is the right next step (0-100%)
07_environment_spec.md
Everything about the technical/intellectual environment:
- Language/framework versions, OS, hardware constraints
- Library dependencies with exact versions
- Environment variables and configuration
- For physics/math: coordinate systems, notation conventions, axiom sets
- For philosophy: philosophical framework, key terms defined
- For creative: voice guidelines, audience, format constraints
Step 5: Quality Gates
Before presenting the package, self-evaluate on these axes (score 0-5 each):
- Resumability — Can a new model start work in <10 seconds of reading
02_active_context.md? - Ambiguity Reduction — Are all pronouns resolved to specific entities?
- Context Density — Is the signal-to-noise ratio maximized?
- Liminal Capture — Did we save intent, not just text?
- Completeness — Are all 8 files present and non-trivial?
Minimum passing score: 20/25. If below, identify the weakest file and improve it.
Also identify: Top Risk — the single most critical piece of context that is missing or ambiguous in the current session. State it explicitly so the user can address it before closing out.
Step 6: Present the Package
- Copy all files to
/mnt/user-data/outputs/handoff/ - Present using
present_files— lead with00_executive_narrative.md - State the quality gate scores
- State the Top Risk
- Offer to adjust any file before the user closes the session
Anti-Patterns to Avoid
- Bullet-point narratives: The executive narrative must be paragraphs, not lists
- Vague cursor positions: "Working on the code" is useless. "Debugging the race
condition in
sync_manager.py:L142where the mutex lock isn't releasing on timeout" is useful. - Missing rejection reasons: Every rejected path needs a why
- Sentiment whitewashing: If the session was frustrating, say so. The next agent needs to know.
- Entity ambiguity: Every "it", "that", "the thing" must be resolved to a named entity
- Redundancy across files: Each file has a specific purpose. Don't repeat the narrative in the decision log or the next actions in the active context.
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.

