Session Handoffのロゴ

Session Handoff

コミュニティ
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.

概要

公開者Innei
リポジトリSKILL
スキル名session-handoff
スター
81
フォーク
2
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    InneiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSession HandoffをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoff
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSession Handoffを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSession Handoffを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Session Handoffは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでSession Handoffを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Session Handoffはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSession Handoffをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Innei/SKILL/tree/main/skills/automation/session-handoffを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Session Handoffを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Session Handoffは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSession Handoffを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Session Handoff」は無料ですか?

InneiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇