Logo di 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.

Panoramica

AutoreInnei
RepositorySKILL
Nome della skillsession-handoff
Stelle
81
Fork
2
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Innei su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Session Handoff in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Session Handoff in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Session Handoff non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Session Handoff non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Session Handoff su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Session Handoff è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Session Handoff in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Session Handoff?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Session Handoff?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Session Handoff: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Session Handoff è gratuita?

È pubblicata su GitHub da Innei. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇