Session Resumeのロゴ

Session Resume

コミュニティ
iamneilroberts
session-resume

Load a session handoff file and resume the work it describes. Use when the auto-resume hook doesn't apply — a new terminal, or an older handoff you want to pick up by hand.

概要

公開者iamneilroberts
リポジトリclaude-skills
スキル名session-resume
スター
37
フォーク
6
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/iamneilroberts/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/session-resume .claude/skills/session-resume
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Session Resume

Find and load a session handoff file to resume previous work.

Steps

  1. Search for handoff files. Look in these directories (the first is the optional shared out-of-tree coordination home used by the branch skill; the rest are in-tree):

    • $(bash ~/.claude/coordination/resolve-coord-dir.sh)/handoffs/ — only if you installed scripts/resolve-coord-dir.sh to ~/.claude/coordination/; skip this line if the script isn't present.
    • docs/summaries/
    • .claude-sessions/
    • .worktrees/*/docs/summaries/ (worktree handoffs)

    Handoff precedence (important — avoids loading a thin auto-pause over a real one):

    • pause-*.md = intentional handoffs (model-written via /handoff, /session-pause).
    • auto-*.md = mechanical thin auto-pauses (written by hooks at ~75% context or on /clear). A legacy pause-*.md whose first line is # Auto Session Pause is also mechanical.
    • handoff-*.md = long-lived multi-session coordination docs.
    • Prefer the newest intentional pause-*.md. Only fall back to the newest auto-*.md when no intentional handoff exists. Mention if you fell back to a mechanical one (its detail is thin — verify against git).
  2. Filter by current repo (default behavior):

    • Run git rev-parse --show-toplevel to get the current repo root
    • For each found file, read the first 10 lines and check for a **Repo:** line
    • Keep files where the Repo: value matches the current repo root
    • Keep files where the Repo: value is a subdirectory of the repo root (e.g., worktree paths like /repo/.worktrees/mvp)
    • Keep files with no Repo: line (legacy files — these predate repo tagging)
    • Exclude files where the Repo: value is a different repo entirely
    • If the user passes --all or says "all repos/projects", skip this filter and show everything
  3. If an argument was provided (other than --all), filter results by date (YYYY-MM-DD) or topic slug substring match.

  4. If multiple files found, list the 5 most recent with dates and any topic info from the filename:

    Found 3 handoff files (filtered to current repo):
    1. docs/summaries/pause-2026-02-26-context-hooks.md (2 hours ago)
    2. docs/summaries/pause-2026-02-25-auth-refactor.md (1 day ago)
    3. docs/summaries/handoff-2026-02-24-api-redesign.md (2 days ago)
    
    Which one should I load? (Use `--all` to see handoffs from all repos)

    Ask the user to pick one.

  5. If exactly one file found, load it directly.

  6. If no files found, tell the user:

    No handoff files found for this repo. This session appears to be a fresh start. What would you like to work on? (Use /session-resume --all to search across all repos)

  7. After loading the handoff file, do the following:

    • Present a brief summary of what's in the handoff (accomplished, remaining work, branch)
    • If the handoff came from a worktree (path contains .worktrees/):
      • Extract the worktree directory from the file path (e.g., .worktrees/mvp/docs/summaries/pause-*.md → .worktrees/mvp/)
      • Check if that worktree directory still exists
      • If it exists, cd into the worktree directory and tell the user: "Switched into worktree at [path] on branch [branch]." Verify git state from there.
      • If the worktree no longer exists, warn the user and suggest checking if the branch was merged
    • Run git status --short and git branch --show-current (from the correct directory) to verify current git state matches the handoff
    • If there's a mismatch (different branch, unexpected changes), warn the user
    • If the handoff has a Remaining Work section, present it and ask: "Should I continue with the remaining work, or do you have something else in mind?"

よくある質問

AIスキル「Session Resume」では何ができますか?

Load a session handoff file and resume the work it describes. Use when the auto-resume hook doesn't apply — a new terminal, or an older handoff you want to pick up by hand.

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

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

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

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

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

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

Session Resumeで使えるAIモデルの数に制限はありますか?

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

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

iamneilrobertsがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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