session-handoff

session-handoff is a skill for Claude Code from OthmanAdi/MDDesign. It costs 67 tokens per session (1,253 once invoked), scanned A, original, Apache-2.0.

Instructions for preserving coding-session context across clearing the chat, restarting the computer, or changing editors. It gathers plans, progress notes, scratch notes, and saved decisions into a catch-up summary.

In plain words
What is it for?
Use it to restore context at session start, create a handoff note when stopping, or manually run a handoff and catch-up.
Why use it?
It reduces the risk of forgetting what was decided, what is unfinished, or where the previous session stopped.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the mddesign plugin — 5 skills, 10 commands, 5 agents, 4 hooks shipped together

Good fit Use it to restore context at session start, create a handoff note when stopping, or manually run a handoff and catch-up.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/othmanadi/mddesign/session-handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OthmanAdi/MDDesign --skill session-handoff
Clone the repo
git clone --depth 1 https://github.com/OthmanAdi/MDDesign

Made for: Claude Code.

Or install mddesign, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 5 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/othmanadi/mddesign/session-handoff/github.svg)](https://agentmods.dev/skills/othmanadi/mddesign/session-handoff)
Your own site
<a href="https://agentmods.dev/skills/othmanadi/mddesign/session-handoff"><img src="https://agentmods.dev/badge/skills/othmanadi/mddesign/session-handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/othmanadi/mddesign/session-handoff"><img src="https://agentmods.dev/badge/skills/othmanadi/mddesign/session-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01253
Opus 5.5 $0.00027 $0.00501
Sonnet 5.5 $0.00013 $0.00251
Haiku 4.5 $0.00007 $0.00125

Measured 3mo ago against content hash 87c3940eb09b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.clinerules/session-handoff/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Handoff

Bridges sessions. The user's session ends; the next session picks up exactly where the last one left off.

SessionStart catchup

Triggered automatically by the SessionStart hook. Manually invokable via /mddesign:handoff catchup.

Step 1: Read planning files

  • Read task_plan.md if it exists. Note the active phase id and its bullets.
  • Read findings.md if it exists. Note any ## Design Context block.
  • Read progress.md if it exists. Note the most recent ### Phase <id> Result and the most recent ### Handoff <timestamp> entry.

Step 2: Read scratch

  • Glob .agents/memory/scratch/**/*.md.
  • For each scratch file, read the last ISO-timestamped entry.

Step 3: Recall last WHY

  • Invoke /memory-router with a query like "recent decisions for project ".
  • The router dispatches to MemPalace; returns the most recent WHY entries for this project.

Step 4: Synthesize the preamble

Build a one-paragraph (4-6 sentence) "where we left off" that names:

  • The active phase and its current status
  • The most recent decision (from WHY)
  • Any open questions from the last ### Phase Result
  • Any in-flight scratch entries

Print this preamble to the user as your first message.

Step 5: Surface nudges

  • If the project has UI files (*.tsx|*.vue|*.svelte) but no DESIGN.md, print: "No DESIGN.md found. Run /mddesign:harvest to generate one."
  • If task_plan.md does not exist, print: "No task_plan.md. Use planning-with-files to create one before starting work."
  • If code-memory-router slash command is not registered, print: "code-memory-router not detected. Memory operations will fall back to scratch only."

Stop promotion

Triggered automatically by the Stop hook. Manually invokable via /mddesign:handoff promote.

Step 1: Dispatch memory-keeper

Call the Agent tool with subagent_type: memory-keeper. Pass:

  • A pointer to progress.md (last 50 lines)
  • A pointer to findings.md
  • A pointer to .agents/memory/scratch/

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 121 lines · 67 tokens per session scan A 87c3940eb09b

Subscribe to this mod's changes

session-handoff is a skill published in the GitHub repository OthmanAdi/MDDesign (14 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,253 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

session-handoff compared with skills from other repositories

session-handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-handoffOthmanAdi/MDDesignSkill147mo agoApache-2.0A67Claude Code
handoffthedotmack/claude-memSkill122ktodayApache-2.0A66Claude Code
daily-briefingvellum-ai/vellum-assistantSkill1.5k3d agoMITA75Claude Code, Codex
context-preservationa5c-ai/babysitterSkill1.9k1mo agoMITA32Claude Code
identity-snapshotdavekilleen/DexSkill5233d agoMITA74Claude Code, Codex
instinct-reviewsoftspark/ai-toolkitSkill180yesterdayApache-2.0A36Claude Code
repeatsoftspark/ai-toolkitSkill180yesterdayApache-2.0A33Claude Code