Logo van Session Handoff

Session Handoff

Community
Innei
session-handoff

Produce a self-contained handoff prompt for another agent (Codex, a fresh Claude session, a teammate) when the user wants to delegate continued work. Triggers on: "写一个 prompt 给 codex"、"交接一下"、"让 xxx 跟进"、"summary 一下再写个 prompt"、"handoff to another agent"、"write a prompt so X can continue", or any request to capture the current session state for continuation elsewhere.

Overzicht

UitgeverInnei
RepositorySKILL
Skillnaamsession-handoff
Sterren
81
Forks
2
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door Innei op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Session Handoff in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Innei/SKILL.git /tmp/SKILL
mkdir -p .claude/skills
cp -r /tmp/SKILL/skills/automation/session-handoff .claude/skills/session-handoff
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Session Handoff in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Session Handoff automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Session Handoff niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

session-handoff

Write a handoff prompt that lets a cold receiving agent continue the current work without re-asking the user for context. The receiving agent has zero knowledge of this session — the prompt must be self-contained.

When to invoke

  • User explicitly asks to hand off: "让 codex 跟进", "write a prompt for X", "交接给 xxx".
  • User asks for a session summary that will be forwarded to another agent.
  • User wants to pause and capture state for later continuation.

Do not invoke when the user just wants a status update or a summary for themselves — those are conversational, this produces a delegation artifact.

Required sections

The output is a single Markdown document the user will copy and paste. It must contain the following sections, in order, with the section titles as written (Chinese / English mix is fine — match whatever the rest of the session is using):

  1. 用户与环境 / User & Environment

    • Who the user is (name, handle, role) and contact if known.
    • Working directory, current branch, target merge branch.
    • Local services / databases (host, port, db name, credentials) the receiving agent will need. Redact .env contents and cloud tokens.
    • Dev workflow commands actually in use (bun run dev:spa, pnpm xxx, etc.).
    • User preferences and hard constraints (git rules, commit conventions, "do not touch" list, lint/test scoping rules, output style).
  2. 当前正在处理的事项 / Current Task

    • Top-level goal in 1–2 sentences.
    • The current blocker or open question.
    • If a previous approach was abandoned, say why so the receiver doesn't retry it.
  3. 本会话已完成的工作 / History

    • Chronological or grouped bullets.
    • Each bullet names: what changed, which files/lines, the rationale, and any user feedback that shaped the decision.
    • Include deprecations/migrations touched, not just additions.
  4. 下一步待做 / Next Steps

    • Numbered, concrete actions.
    • For each: files to touch, the specific change, and any preconditions.
    • Inline open questions that the receiver must ask the user before committing.
    • State which path you recommend and why, so the receiver can challenge the recommendation instead of rediscovering it.
  5. 关键文件速查 / Key Files Index

    • Grouped by concern (UI / services / server / schema / packages / tests).
    • One line per file explaining its role in this task.
  6. 调试 / 验证方法 / Debug & Verification

    • Exact shell commands to verify state (DB queries, log filters, curl invocations).
    • The test scenarios that should pass before shipping.
    • How to reproduce the original bug (if applicable).
  7. 需要用户定夺的点 / Open Decisions

    • Policy or UX questions the receiving agent must NOT silently choose.
    • Phrase each as a question with the options already identified.

Writing rules

  • Self-contained. No phrases like "as we discussed earlier" or "per the previous exchange". Inline the context.
  • Concrete over abstract. "改 foo.ts:42 的 MAX_RETRIES 从 3 到 5" beats "tune retry behavior".
  • Backticks around file paths, commands, identifiers, and DB rows.
  • Line numbers whenever referencing a specific location — paths alone rot less, but line numbers make the handoff immediately actionable.
  • Shell blocks for DB queries, gh commands, bunx invocations. Use real, pasteable snippets; don't pseudocode.
  • Quote user feedback verbatim when it shaped a decision — the receiver needs to know what the user said literally, not a paraphrase.
  • No filler. Skip "this was a great discussion", emoji, or apology prose.
  • Redact secrets. .env, tokens, API keys never go into the prompt. If the receiver needs them, tell them to ask the user.

Presentation to the user

  • Do not emit the handoff prompt inline in chat. Write it to a file instead, then open that file for the user.
  • Steps, in order:
    1. Generate a random filename under the system temp directory, e.g. /tmp/session-handoff-<random>.md (use a short unique token — timestamp, uuidgen | head -c 8, $RANDOM, etc.). Avoid collisions with existing files.
    2. Use the Write file tool to write the full handoff prompt (Markdown, all required sections) to that path. Do not wrap the content in an outer fenced code block — the file is the artifact.
    3. Run open <path> (macOS) via the shell tool to open the file in the user's default Markdown viewer/editor.
    4. Reply with exactly OK — no preface, no summary, no path echo, no fenced block of the content. The file + open call is the delivery.
  • Do not execute the handoff yourself (don't spawn the other agent). Your job is to produce the artifact file.

Quality bar

Before emitting, check:

  • Could a cold teammate start from this prompt and work for an hour without needing to ask the user anything other than the listed Open Decisions?
  • Are all file paths real? No invented paths.
  • Are user-visible decisions and trade-offs preserved, not averaged out?
  • Are there concrete shell commands in the debug section?
  • Did any secret sneak in? Scan for tokens, passwords, DSNs.

If any answer is "no", revise before showing to the user.

Veelgestelde vragen

Wat doet de AI-skill Session Handoff?

Produce a self-contained handoff prompt for another agent (Codex, a fresh Claude session, a teammate) when the user wants to delegate continued work. Triggers on: "写一个 prompt 给 codex"、"交接一下"、"让 xxx 跟进"、"summary 一下再写个 prompt"、"handoff to another agent"、"write a prompt so X can continue", or any request to capture the current session state for continuation elsewhere.

Waarom Session Handoff gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Session Handoff bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Session Handoff in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Session Handoff gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Session Handoff gebruiken?

Zoveel als je wilt. Je kunt Session Handoff gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Session Handoff gratis?

Deze skill is door Innei op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇