Session Resume logo

Session Resume

Community
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.

Overview

Publisheriamneilroberts
Repositoryclaude-skills
Skill namesession-resume
Stars
37
Forks
6
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by iamneilroberts on GitHub. Read the source before you install it.

Installation

Install the Session Resume AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/iamneilroberts/claude-skills/tree/main/skills/session-resume
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Session Resume in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Session Resume on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Session Resume is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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?"

Frequently asked questions

What does the Session Resume AI skill do?

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.

Why use Session Resume on TypingMind?

Because you install it once and use it with any model. Session Resume is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Session Resume in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/iamneilroberts/claude-skills/tree/main/skills/session-resume. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Session Resume?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Session Resume?

As many as you like. As long as a model supports skills, you can use Session Resume with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Session Resume AI skill free?

It is published on GitHub by iamneilroberts. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇