Logo vun Session Handoff

Session Handoff

Communautéit
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.

Iwwersiicht

EditeurInnei
RepositorySKILL
Skill-Nummsession-handoff
Stären
81
Forks
2
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum Innei op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Session Handoff an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-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 nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Session Handoff an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Session Handoff automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Session Handoff net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-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.

Firwat Session Handoff op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Session Handoff besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Session Handoff an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Session Handoff benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Session Handoff benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Session Handoff domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Session Handoff gratis?

De Skill gëtt vum Innei op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇