Handoff logo

Handoff

Community
ostikwhy-blip
handoff

Use when ending or pausing a Claude Code session whose work must continue in a fresh session — user says "create a handoff", "write a handoff", "I'm ending this session", "prepare for a fresh session", "hand this off", or "/handoff" — or when starting a session in a project that already contains a HANDOFF.md at the root ("resume", "pick up where we left off", "continue from the handoff"). Also relevant when a session shows degradation symptoms — Claude contradicted an earlier decision, re-explored something already established, hallucinated file contents, or the user says the session "feels off", "is getting confused", or "context is running low".

Overview

Publisherostikwhy-blip
Repositoryclaude-code-handoff-skill
Skill namehandoff
Stars
29
Forks
6
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ostikwhy-blip on GitHub. Read the source before you install it.

Installation

Install the Handoff AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ostikwhy-blip/claude-code-handoff-skill/tree/master
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ostikwhy-blip/claude-code-handoff-skill.git \
  .claude/skills/handoff
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Handoff in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Handoff on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Handoff is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Handoff

Overview

Write (or resume from) a HANDOFF.md at the project root so a fresh Claude Code session can continue this work without repeating dead ends. The file is written for the next Claude session, not for the human.

Core principle: this skill runs when your memory is least reliable. Nothing goes in the file from memory alone — every claim is verified against the repo NOW, or explicitly marked as unverified.

Mode selection

  • HANDOFF.md exists at project root AND this session did NOT just write it → RESUME mode
  • Otherwise → CREATE mode

Proactive suggestion rule

If you notice degradation (you contradicted an earlier decision, re-derived something already settled, misremembered a file), say ONE sentence — "This session may be degrading (⟨specific symptom⟩). Want me to run /handoff so a fresh session picks up cleanly?" — and STOP. Never write the file without confirmation.

CREATE mode

Step 1 — Archive any existing handoff

If HANDOFF.md exists at root:

  1. Read its Failed approaches and Known traps sections. Carry forward entries still relevant and unresolved — re-tagged [?] unless re-verified in Step 2.
  2. Move the file to .handoffs/<ISO-timestamp>-handoff.md (create the directory if needed).
  3. If a .gitignore exists and lacks .handoffs/, add it.

Step 2 — Verify BEFORE writing (anti-hallucination protocol)

Do this before drafting a single line. The rule: a claim may be tagged [V] only if confirmed by a command or file read during THIS handoff run. What you merely remember is [?].

  1. Orient in reality. Git repo: run git status, git log --oneline -15, git diff --stat. No git: list the directories you believe you touched and re-read those files. Reconstruct what actually changed vs. what you believe changed.
  2. Re-read, don't recall. Re-open every file the handoff will mention. Any quoted code or line number must come from the fresh read. File not where memory says? That's a caught hallucination — correct it, don't paper over it.
  3. Re-run ground truth. Run the project's test/build/lint command. "Tests pass" is written only from output produced in this run — otherwise it's [?].
  4. No invention. Can't verify it and don't clearly remember it? Omit it. An honest gap beats confident fiction.
  5. If many claims end up [?], write at the top: "Low-confidence handoff — verify aggressively."

Step 3 — Write HANDOFF.md

Copy assets/HANDOFF.template.md structure exactly. Fill every section; the template's HTML comments show what a good vs. useless entry looks like — read them, then delete them from the output.

Length budget: target ≤250 lines (~2,000 words); hard ceiling 400 lines. The handoff must fit in a fresh context alongside CLAUDE.md and initial exploration. Over budget? Cut in this order: drop narrative prose → compress Decisions to one line each → NEVER cut Failed approaches, Known traps, Verified state, or Next steps.

Quality gate — apply to every entry before keeping it: "Would a stranger with only this line avoid the mistake we made?" If not, add the file, the line, the reason, or delete the entry.

RESUME mode

  1. Read HANDOFF.md fully before doing any other work.
  2. Re-verify — the file may be stale or was written by a degraded model. Run git log/git status/git diff against the SHA in the header; re-run the tests. Confirm each [V] claim still holds; resolve [?] claims if cheap. Report drift explicitly: "handoff said X, repo now shows Y."
  3. Surface the Open questions to the user. Do not guess past a blocked step.
  4. Confirm the plan. Restate next steps adjusted for drift; get a go-ahead.
  5. Proceed. Leave HANDOFF.md in place — the next CREATE run archives it.

Rationalizations — all of these mean STOP

ExcuseReality
"I remember the session clearly, no need to re-verify"This skill runs precisely because memory is degraded. Verify or tag [?].
"Tests were passing earlier"Earlier ≠ now. Re-run them or write [?].
"A summary is enough — 'fixed several bugs'"A stranger can't avoid a dead end from a summary. Which bug, which file, which failed approach first.
"Context is nearly full, skip verification to save tokens"An unverified handoff poisons the NEXT session too. Verification is the non-negotiable part; cut prose instead.
"The old handoff is outdated, just delete it"Archive it. Its dead-ends section may be the only record of what not to retry.
"I'll pad thin sections so the file looks complete"Invention is worse than a gap. Write "not started, no design chosen" honestly.
"The user is in a hurry — auto-run the handoff"Suggest, never auto-execute. One sentence, then stop.

Red flags — catch yourself

  • Writing a file path or line number you didn't re-read this run
  • Typing "tests pass" without test output in this run's transcript
  • An entry with no file reference and no specific reason
  • HANDOFF.md creeping past 400 lines
  • Resuming work without having re-run verification against the header SHA

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Handoff AI skill do?

Use when ending or pausing a Claude Code session whose work must continue in a fresh session — user says "create a handoff", "write a handoff", "I'm ending this session", "prepare for a fresh session", "hand this off", or "/handoff" — or when starting a session in a project that already contains a HANDOFF.md at the root ("resume", "pick up where we left off", "continue from the handoff"). Also relevant when a session shows degradation symptoms — Claude contradicted an earlier decision, re-explored something already established, hallucinated file contents, or the user says the session "feels...

Why use Handoff on TypingMind?

Because you install it once and use it with any model. Handoff is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Handoff in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ostikwhy-blip/claude-code-handoff-skill/tree/master. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Handoff?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Handoff?

As many as you like. As long as a model supports skills, you can use Handoff with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Handoff AI skill free?

Yes. It is published on GitHub by ostikwhy-blip under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇