Skip to main content
ProductivityOfficialCertifiedReviewed Jul 21, 2026

Session Handoff

v2.0.1New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install session-handoff

What this does: Compress the current working session into a handoff document that a fresh session (or another person) can resume from without re-discovery. Triggers: you say "hand off this session", "write a handoff", "save context before I close this".

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/session-handoff/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous session scribe. Do NOT ask the user questions. Reconstruct the
session from conversation context plus repository state, and produce a handoff a stranger
could resume from.

TARGET: $ARGUMENTS

If arguments name a topic, use it as the handoff topic slug and scope the inventory to
that thread of work. With no arguments, cover the whole session and derive the topic from
its dominant task.

=== PRE-FLIGHT ===

  1. A project root exists (prefer git rev-parse --show-toplevel, else cwd). RECOVERY: if
    the session was not project-bound, write the handoff to
    ~/.claude/handoff/ instead and note that in the doc.
  2. .claude/handoff/ directory exists at the root. RECOVERY: create it.
  3. Session has resumable substance (decisions, edits, or findings). RECOVERY: if the
    session was trivial (a one-off question), stop and say a handoff is not warranted
    rather than writing an empty document.
  4. Repo state is inspectable: git status --porcelain, git log --oneline -15,
    git diff --stat. RECOVERY: without git, list files by recent mtime under the project
    and mark diff summaries BEST-EFFORT.

=== PHASE 1: INVENTORY THE SESSION ===

Reconstruct, from conversation context cross-checked against repo state:

  1. TASK: the goal in one sentence, plus current percent-done judgment.
  2. DECISIONS: each decision made, WHY it was made, and what was rejected (the why is the
    part a fresh session cannot recover; never omit it).
  3. FILES TOUCHED: every created/modified file with a one-line summary of the change.
    Cross-check against git status and git diff --stat; include uncommitted vs
    committed state per file.
  4. COMMANDS THAT WORKED: exact invocations for build, test, run, deploy, and any
    hard-won incantations (flags, env vars, ports).
  5. DEAD ENDS: approaches tried and abandoned, each with the reason, so the next session
    does not repeat them.
  6. BLOCKERS: what is currently stopping progress, with the exact error or missing input.
  7. NEXT ACTIONS: the next 3 concrete actions, each starting with a verb and naming its
    file or command.

VALIDATION: every file in git status is either in the FILES TOUCHED list or explicitly
noted as pre-existing/unrelated; DECISIONS all carry a why.
FALLBACK: where conversation context has been compacted away, recover what you can from
git history and file contents, and mark those entries RECONSTRUCTED so the reader knows
confidence is lower.

=== PHASE 2: WRITE THE HANDOFF ===

Write .claude/handoff/<YYYY-MM-DD>-<topic-slug>.md with this exact structure:

# Handoff: <topic> (<date>)

## RESUME PROMPT
<A paste-ready first message for the next session, written in second person
imperative: working dir, one-paragraph state summary, the next 3 actions, the
verification command to run first, and "read the rest of this file at
<absolute path> before changing anything".>

## Task and status
## Decisions (with why)
## Files touched
| File (absolute path) | Change | Committed? |
## Commands that work
## Dead ends (do not retry)
## Blockers
## Next 3 actions

Rules: absolute paths everywhere; no em dashes; no jargon that is not defined inline; the
RESUME PROMPT must stand alone even if the reader never scrolls further.

VALIDATION: file exists, every template section is non-empty (write "none" explicitly
rather than omitting a section), RESUME PROMPT is under 250 words.
FALLBACK: if a filename collision exists for today+topic, append -2 rather than
overwriting; never destroy a prior handoff.

=== PHASE 3: STRANGER TEST ===

Re-read the written handoff as if you had zero session context. Check:

  1. No unexplained jargon, internal nicknames, or "the fix we discussed" references.
  2. Every file path is absolute; every command is copy-paste runnable from a fresh shell.
  3. The next 3 actions are explicit enough that each could be executed without asking a
    single question.
  4. Dead ends state WHY they failed, not just that they did.
  5. The RESUME PROMPT alone is sufficient to start productive work.

Fix every failure in place and re-check.

VALIDATION: all five checks pass on the final re-read.
FALLBACK: if a check cannot pass because the information genuinely is not recoverable,
add an explicit KNOWN GAP: line in the relevant section instead of papering over it.

=== PHASE 4: PRUNE STALE HANDOFFS ===

  1. List files in the handoff directory older than 30 days by filename date (fall back to
    mtime).
  2. LIST them in the output with age and topic. Do NOT delete them unless the arguments
    contained --prune; with --prune, delete and report each deletion.

VALIDATION: stale list is accurate against ls -la of the directory.
FALLBACK: none needed; an empty directory reports "no stale handoffs".

=== OUTPUT ===

Session Handoff Written

  • Path:
  • Sections: task, N decisions, N files, N commands, N dead ends, N blockers, 3 next actions
  • Stranger test: PASS (or PASS with N KNOWN GAP lines)
  • RECONSTRUCTED entries: N (list them)
  • Stale handoffs (> 30 days): <list with ages, or "none">; deleted: <only with --prune>

Then print the RESUME PROMPT verbatim so the user can copy it immediately.

=== SELF-REVIEW ===

Score Complete, Robust, Clean 1-5. Complete: nothing in git status is unaccounted for.
Robust: the stranger test passed honestly, gaps flagged rather than hidden. Clean: the doc
follows the template exactly with absolute paths throughout. If any score < 4, fix the
document in-run; if unfixable, add a KNOWN GAP line and mention it in the output.

=== LEARNINGS CAPTURE ===

Append to ~/.claude/skills/session-handoff/LEARNINGS.md: date + project + topic, what
worked, what was awkward (context already compacted, unrecoverable decisions), suggested
patch to this skill, verdict [Smooth | Minor friction | Major friction].

=== STRICT RULES ===

  1. Never fabricate a decision rationale; mark unrecoverable ones RECONSTRUCTED or as a
    KNOWN GAP.
  2. Never write relative file paths anywhere in the handoff.
  3. Never delete stale handoffs without an explicit --prune flag; list them only.
  4. Never omit dead ends; repeating a known-bad approach is the costliest resume failure.
  5. Never let the RESUME PROMPT depend on scrolling further down the document.
  6. Never overwrite an existing handoff file; use a numbered suffix.
  7. Always cross-check the files list against git status before writing.
  8. Always print the RESUME PROMPT verbatim at the end of the run.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Productivity skills

Browse category →
quickstartZero to power user in one invoke — detects OS, installs Homebrew/apt/Node.js/Python, sets up Claude Code, authenticates skills-hub CLI, connects MCP servers, and installs recommended skills based on your project..115 installsgrill-meA relentless interview to sharpen a plan or design.35 installssession-memoryPersist, summarize, and reload agent context between sessions — writes a structured session log to CLAUDE.md / AGENTS.md / .hermes.md, snapshots decisions before destructive ops, and resumes long-running goals without re-briefing. Works with any coding agent. Use when the user asks to save progress for later, resume work from a previous session, or keep context before a long-running or destructive operation.25 installsgrillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.17 installsgit-hooksSet up pre-commit hooks for linting, formatting, and type-checking with commit message enforcement using conventional commits. Triggers: you want to enforce code quality on every commit, add conventional commits, prevent bad code from being committed.11 installsvscodeConfigure and operate VS Code-family IDEs (VS Code, VS Code Insiders, Cursor, VSCodium, Trae, Qoder, CodeBuddy) via CLI and structured JSON files. Qoder and CodeBuddy support is limited to their VS Code-compatible configuration surface, not proprietary AI chat, accounts, models, agents, marketplaces, or internal state.10 installs

Frequently asked questions about session-handoff

What does the session-handoff skill do?

Compress the current working session into a handoff document that a fresh session (or another person) can resume from without re-discovery. Triggers: you say "hand off this session", "write a handoff", "save context before I close this". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the session-handoff skill?

Run `npx @skills-hub-ai/cli install session-handoff` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/session-handoff/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does session-handoff work with?

session-handoff runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the session-handoff skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use session-handoff after installing it?

In Claude Code, type `/session-handoff` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the session-handoff skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.