Логотип Session Handoff

Session Handoff

Сообщество
Motaghi
session-handoff

Use when the user says "summarize for clear", "wrap this session", "handoff time", "give me a resume prompt", or "let's clear and continue later". Runs in-session only. Extracts open decisions, active files, pending tasks, current state and recent corrections from the conversation, renders them in a fixed layout, writes a dated handoff note to the configured notes folder, and returns a short resume prompt that works in any agent host.

Обзор

ИздательMotaghi
Репозиторийmimir-skills
Название навыкаsession-handoff
Звёзды
51
Форки
0
Файлы в комплекте
1
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 1

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — Motaghi. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Session Handoff в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/Motaghi/mimir-skills/tree/main/skills/session-handoff
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Motaghi/mimir-skills.git /tmp/mimir-skills
mkdir -p .claude/skills
cp -r /tmp/mimir-skills/skills/session-handoff .claude/skills/session-handoff
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Session Handoff в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Session Handoff, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Session Handoff не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

session-handoff

Formalises the "summarize, clear, resume" workflow. The skill turns the conversation into five fixed fields, renders them in a deterministic layout, writes a dated note and prints a short prompt the user pastes into a fresh session. Setup-specific values (the notes folder, an optional renderer command, the note's frontmatter) are in a profile; see profiles/example.md. Your own profile is session-handoff.profile.md in the project root; if it is not there, ask the user where to write handoffs. Keep it in your project, not in this folder.

What it needs

  • Write access to the notes folder named in the profile.
  • A shell, only if the profile names a renderer command. Without one, render the layout in "Step 2" yourself.

If the notes folder is not writable, stop before writing anything and say so. Do not create a partial handoff.

When to invoke

Trigger phrasing the user types:

  • "summarize for clear"
  • "wrap this session"
  • "handoff time"
  • "give me a resume prompt"
  • "let's clear and continue later"

If the trigger is ambiguous, ask which conversation thread to hand off. If you are unsure whether to invoke this skill or summarize freehand, prefer the skill: the fixed layout and the deterministic file name are the value over a freestyle summary.

Process

Step 1: Extract the five fields

Use the conversation you can see. Earlier history that was compacted or is not in context is unknown: mark any field that depends on it unknown, never guess. Keep the entries you can see. When a list field may hold more from history you cannot see, add the item unknown: earlier history not visible; only a field that is wholly unknown holds the one item unknown (["unknown"]). Both render like any other item, as - unknown: earlier history not visible and - unknown. current_state says unknown for the part it cannot see. Build these fields with these exact names:

  • open_decisions: list of strings, each one a decision the user has not yet made or a question awaiting their answer.
  • active_files: list of strings, each one a file path you have read, written or edited this session.
  • pending_tasks: list of strings, each one a concrete next action that should resume work.
  • current_state: a multi-line string describing where the session is right now (what just got done, what is in flight).
  • recent_corrections: list of strings, each one a piece of feedback or a correction from the user that should not be lost.

Each field may be empty. Do not invent content to fill quotas. An honest empty list is better than a padded one. Keep each list to 50 items and current_state to about 4,000 characters; if you are over, cut the least useful items and say so.

Step 2: Render

If the profile names a renderer command, pipe the five fields to it as JSON (JavaScript Object Notation) on standard input and take the markdown from standard output. Malformed JSON or a non-zero exit means: show the error to the user and do not write a partial file.

Without a renderer, produce exactly this layout (an empty list renders as - (none)):

markdown
# Session handoff summary

## Open decisions
- <item>

## Active files
- <item>

## Pending tasks
- <item>

## Current state
<current_state text>

## Recent corrections
- <item>

Step 3: Pick a file name

  • Kebab-case slug from the session's primary topic, 3 to 5 words.
  • Date prefix: today's local date as YYYY-MM-DD.
  • File name <YYYY-MM-DD>-handoff-<slug>.md, with a collision suffix -2, -3 if that name already exists.

Example: for a session about polishing the checkout page, the slug is checkout-page-polish and the file is <YYYY-MM-DD>-handoff-checkout-page-polish.md.

Step 4: Write the note

Write the rendered markdown to <notes-folder>/<file name> with the profile's frontmatter prepended. With no profile frontmatter, use:

yaml
---
date: <YYYY-MM-DD>
tags: [handoff]
description: <one-line summary of the session, under 100 characters>
---

Step 5: Return the resume prompt

Print the resume prompt in chat for the user to copy:

Wrote <notes-folder>/<file name>

Start a fresh session, then paste this as your first message:

"Resume from <path of the note relative to the notes root> and proceed from the pending tasks. If the handoff names an execution plan or other authoritative source, reread it before building any focus or task list; the handoff is a pointer, not the source of truth."

Keep the prompt free of URLs (Uniform Resource Locators), so clipboard tools do not rewrite the .md file name.

The "reread the authoritative source" clause exists because a resumed session sees only the pasted prompt and its standing instructions, not the earlier transcript. If a plan drove the session, a task list built from the handoff alone can drop the plan's real criteria. When Step 1 finds that a plan or other source drove the session, name it explicitly in current_state.

Out of scope

  • Reading earlier handoff files. If the user asks "what was in last week's handoff?", that is an ordinary file read.
  • Running automatically when a session closes. The user invokes this explicitly.
  • Writing to any long-term memory store. That is a separate step with its own rules.

Failure modes

  • Renderer named in the profile but not available: report the missing command and stop without writing.
  • JSON parse error from the renderer: do not write a partial file; show the error and ask the user how to proceed.
  • Notes folder not writable: surface the error; do not retry silently.
  • Slug collision suffixes used up (rare): bump to the next number and warn the user that several handoffs landed today on the same topic.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Session Handoff?

Use when the user says "summarize for clear", "wrap this session", "handoff time", "give me a resume prompt", or "let's clear and continue later". Runs in-session only. Extracts open decisions, active files, pending tasks, current state and recent corrections from the conversation, renders them in a fixed layout, writes a dated handoff note to the configured notes folder, and returns a short resume prompt that works in any agent host.

Зачем использовать Session Handoff в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Session Handoff — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Session Handoff в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/Motaghi/mimir-skills/tree/main/skills/session-handoff. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Session Handoff?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Session Handoff?

С любым количеством. В TypingMind вы можете использовать Session Handoff с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Session Handoff?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — Motaghi. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇