handoff
Что он делает
Этот инструмент создает файл `HANDOFF.md`. В нем кратко описано, чего вы пытаетесь достичь, что сработало, что не сработало и какие шаги делать дальше. Это как передаточная записка, чтобы работу мог продолжить другой человек или вы сами позже, ровно с того места, где остановились.
Когда использовать
- ✓Когда переписка с ИИ стала слишком длинной и запутанной.
- ✓Когда ИИ снова и снова пробует одно и то же решение, которое не работает.
- ✓Когда нужно остановиться и продолжить работу позже.
Ссылка на скилл
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/handoff/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Создай файл с кратким описанием, чтобы продолжить эту работу.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент анализирует основную цель, текущее состояние проекта (что работает, а что нет), изменённые файлы, неудачные попытки и следующие шаги. Всё это оформляется в документ, по которому легко продолжить работу.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Handoff
Generate a structured HANDOFF.md file that gives a fresh Claude session everything it needs to continue this work without dragging the current degraded context forward.
claude-mem already injects recent observations into every new session, so the fresh agent starts with a timeline of what happened. The handoff adds what that timeline cannot: the goal, the failed attempts and why they failed, the current theory, and exact next steps, plus pointers into memory for deeper recall.
When to Use
- The session is long and Claude feels confused or repetitive
- Claude keeps trying the same failing solution over and over
- The user wants to step away and resume later
/compactran but Claude still lacks clear direction- The user says "handoff", "generate a handoff", "I want to start fresh", or "write a handoff doc"
What to Capture
Think hard about the full arc of this conversation before writing. The handoff must be useful to a Claude instance that has never seen this conversation.
Required Sections
Goal — One paragraph. What is the user actually trying to accomplish? State the end state, not the current sub-task. Be specific enough that a fresh agent can orient immediately.
Current State — What is working right now? What is broken? What is the exact symptom of the problem? Include error messages verbatim if relevant.
Files in Play — List every file that has been read, edited, or created during this session that is relevant to the current task. Use absolute or repo-relative paths. Include a one-line note on why each file matters.
What Has Been Tried (and Why It Failed) — This is the most important section. List every approach attempted that did not work, and explain WHY it failed (not just that it failed). A fresh agent that skips this section will repeat the same mistakes.
Current Best Theory — What do you currently believe is the right path forward, even if you haven't proven it yet? Include any evidence or reasoning that supports it.
Next Steps — Concrete, ordered actions for the fresh agent to take. Be specific: file paths, function names, commands to run. The fresh agent should be able to start on step 1 immediately.
Key Constraints and Context — Any non-obvious constraints: environment specifics, user preferences expressed during this session, things the user explicitly said NOT to do, external dependencies, performance requirements, etc.
Memory Pointers — If claude-mem's search tools are available, run
searchfor this task's key terms and list the few observation IDs that matter most (a decision, the root cause, a failed approach), so the fresh agent can pull full details withget_observations. Also list one or twosearchqueries worth re-running. Skip this section if the tools are not available.
Writing Rules
- Write the handoff for a fresh Claude, not for the user. The user knows what happened; the fresh Claude does not.
- Be ruthlessly specific. Vague next steps are useless. "Fix the auth" is bad. "In
src/auth/middleware.ts:47, the token expiry check usesDate.now()but should usereq.timestamp— change the comparison on line 52" is good. - Include exact error messages, stack traces, or test output that captures the failure mode.
- Do not pad. Every sentence should be load-bearing information for the fresh agent.
- Do not write the handoff from the user's perspective. Write it as a briefing document addressed to the incoming agent.
Output
Write the handoff to HANDOFF.md in the current working directory (the project root).
Use this structure:
# Handoff
> Generated: [timestamp]
> Project: [project name or directory]
> Session summary: [one sentence describing what this session was about]
## Goal
[What the user is trying to accomplish — the actual end state]
## Current State
**Working:**
- [list what is confirmed working]
**Broken:**
- [exact symptom, error message, or failure mode]
## Files in Play
| File | Why It Matters |
|------|---------------|
| `path/to/file.ts` | [one line] |
## What Has Been Tried (and Why It Failed)
### Attempt 1: [short name]
- **What:** [what was done]
- **Why it failed:** [root cause, not just "it didn't work"]
### Attempt 2: [short name]
...
## Current Best Theory
[What you currently believe is the correct approach and why]
## Next Steps
1. [Specific, actionable step with file path or command]
2. [Next step]
3. ...
## Key Constraints
…
Частые вопросы
Зачем нужен этот файл?
Он помогает быстро разобраться в ходе работы любому, включая новую сессию ИИ, и продолжить без потери важной информации и без повторения старых ошибок.
Что делать после того, как файл `HANDOFF.md` создан?
Начните новую сессию с ИИ и попросите его прочитать файл `HANDOFF.md`, чтобы продолжить работу.
Нужно ли хранить файл `HANDOFF.md` в проекте?
Обычно нет, это временный файл. Его можно удалить после того, как новая сессия ИИ его прочитает и возобновит работу, или добавить в `.gitignore`, чтобы он не сохранялся постоянно.
Подробности
Оригинальное описание автора
Generate a HANDOFF.md that captures goal, current state, files touched, failed attempts, and next steps — so a fresh Claude session can continue exactly where this one left off. Use when sessions are getting long, Claude keeps retrying the same broken solution, or the user wants to step away and resume later.
repo: thedotmack/claude-mem
Популярность
- Звёзды на GitHub
- 101k
- Место в рейтинге
- #1271
- Лицензия
- Apache-2.0
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
Agent Cost Report
101kАгент составляет подробные отчёты о расходах на свою работу: сколько ушло на токены и сервисы.
claude-mem-install
101kПомогает агенту настроить Claude-Mem в разных окружениях с локальными или удалёнными воркерами и наблюдением.
mem-search
101kАгент ищет в прошлых воспоминаниях, чтобы вспомнить прежние решения или работу из старых сессий.
host-observer
101kПомогает агенту отвечать на задачи наблюдателя Claude-Mem только «skip_summary» или полным XML-наблюдением.
Похожие скиллы
knowledge-automation
394kПомогает агенту настроить задачу по расписанию, которая добавляет новое содержимое в хранилище Knowledge, и проверить, что задача работает.
knowledge-source-ingest
394kПомогает агенту держать хранилище Knowledge в актуальном состоянии, добавляя новое из чатов, лент или почтовых ящиков без повторного добавления уже сохраненного.
benchmark
280kПомогает агенту измерять скорость и производительность кода. Полезен, чтобы убедиться, что всё быстро, и найти причины тормозов.