Command Palette

Search for a command to run...

Back to skills
skill № 39367

session-handoff

At session end, write a structured handoff file so next session can pick up in 30 seconds. USE WHEN: user says "今天先到这" / "done for today" / "see you tomorrow"…

FreeNo executable scripts
MiniMax-AIby MiniMax-AI★ 30 GitHub stars

Install session-handoff in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Session Handoff

Sessions end. Time, context, attention, the user's day — all are finite. The default end is "we'll pick it up next time," but that usually means "we'll figure out what we were doing next time" — which costs the user another 5 minutes of re-orientation every session, and costs you the context you built.

This Skill makes session end a first-class operation with an explicit output: a handoff file that the next session can read first, before any other action, and be productive in 30 seconds instead of 5 minutes.

When to use

Activate when any of these is true:

  • The user says "done for today" / "let's stop here" / "see you tomorrow" / "we'll continue later".
  • The context is about to be compacted or has grown large; you anticipate losing context before the next user message.
  • A long task is in progress and a "natural pause" is approaching (end of work day, end of a logical milestone, user switch context).
  • A sub-task is in flight (long-running build, background command) that will outlive this session.

When NOT to use

  • The session just started. There is no in-progress work to hand off.
  • The work is fully complete and verified (completion-audit passed). No in-progress state to hand off.
  • The user explicitly said "throw it all away, start fresh next time." Respect that.

Process

  1. Confirm the handoff is wanted (if you can — skip this step if the user is clearly stepping away). One line: "Writing a handoff file so next session can pick this up — okay?"

  2. Choose a single, predictable path. Default (illustrative; actual on-disk path is host-internal): <host-handoff-root>/<ISO-date>-<short-id>.md. The mcode 0.2.4 public surface does not document a handoff file path. The Skills below use <host-handoff-root> as a conceptual placeholder; the host determines the actual root. Different from world-state and goal files (those describe current state; handoff is the transition).

  3. Write the handoff file in this exact shape:

    # Handoff — <short task name>
    
    **Written**: <ISO timestamp>
    **Session ended because**: <one-line reason — user said stop / time up / context about to compact>
    **Handed off to**: <next session, whoever reads this first>
    
    ## Goal (verbatim from the user)
    
    <quote the user's original ask>
    
    ## Current state (point-in-time snapshot)
    
    - <state file path> — last updated <ISO>
    - <world-state file path> — last updated <ISO>
    - <goal file path> — last updated <ISO>
    - <family file path, if any> — last updated <ISO>
    
    ## What was done (this session)
    
    - [x] <step + result + key file path>
    - [x] <step>
    - [ ] <step — not done in this session, see "In progress">
    
    ## In progress (when we stopped)
    
    - **What**: <the sub-task that was running when we stopped>
    - **Where we were**: <the exact step / line / commit>
    - **Next concrete step**: <one verb-first sentence — "Run X and report Y">
    - **Blocker (if any)**: <one sentence>
    
    ## Open questions for next session
    
    - <question that, if answered, would unblock the next step>
    - <another question>
    
    ## Critical paths (read these first next session)
    
    - <file the next session absolutely must read>
    - <another file>
    - <tool / state to check>
    
    ## Things that might be wrong on resume
    
    - <state that may have changed since this handoff>
    - <file that may have been edited by another process>
    - <assumption that may no longer hold>
    
  4. Update the state files (world-state, goal, family) to reference the handoff file by path. The next session's world-state-tracking read should mention "see handoff file X" so the next-session agent knows to read it first.

  5. Tell the user, in one line, where the handoff is: "Handoff written to <host-handoff-root>/2026-08-24-xxx.md (path illustrative; actual on-disk root is host-internal) — read this first next session."

  6. If a sub-task is in flight (background command, async build, etc.):

    • Record its task_id, command, expected completion signal in the handoff.
    • Do not assume the sub-task will complete; the next session may need to check.

Output contract

The user sees, in this order:

  • One-line confirmation of the handoff path.
  • The handoff file's contents (or a link to it).
  • (If sub-task in flight) the task_id and how to check its status.
  • (If open questions) the questions, so the user can answer them before the next session.

Example

# Handoff — Auth refactor (OIDC alongside SAML)

**Written**: 2026-08-23T23:55:00Z
**Session ended because**: user said "we'll continue tomorrow"
**Handed off to**: next session — read this first

## Goal (verbatim from the user)

> "Refactor the auth subsystem to support OIDC without breaking the existing SAML path."

## Current state (point-in-time snapshot)

- `<host-goal-root>/2026-08-23-auth-oidc.md` *(path illustrative; actual on-disk root is host-
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the session-handoff skill do?

At session end, write a structured handoff file so next session can pick up in 30 seconds. USE WHEN: user says "今天先到这" / "done for today" / "see you tomorrow" / "we'll continue later" / "下次再继续" / "end session" / "收尾", context about to compact, long task in progress, natural pause approaching (end of work day, end of milestone), sub-task in flight that outlives this session. TRIGGER PHRASES: "今天先到这", "done for today", "see you tomorrow", "we'll continue later", "下次再继续", "先到这", "end session", "session 结束", "收尾", "写到 handoff file", "wrap up", "session handoff", "session 接力". SKIP WHEN: session just started (no in-progress work to hand off), work is fully complete and verified (completion-audit passed), user said "throw it all away, start fresh next time" / "全部扔掉".

How do I install the session-handoff skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the session-handoff skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare session-handoff with