К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

handoff · thedotmack — скилл для Claude Code: что делает и как установить

Формирует файл HANDOFF.md с целями, ошибками и следующими шагами для нового сеанса. Пригодится, когда агент зациклился или пора сбросить контекст.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add thedotmack/claude-mem --skill handoff -a claude-code
Открыть на GitHub

Что делает handoff

Скилл создаёт структурированный файл HANDOFF.md в корне проекта. Это бриф для следующего сеанса агента, когда текущий диалог перегружен или Claude застрял на повторяющихся попытках починить ошибку. Документ пишется не для человека, а для входящего ИИ-агента: в нём фиксируются конечная цель, подтверждённое рабочее состояние и точные симптомы сбоя с кодами ошибок.

Центральный раздел посвящён неудачным попыткам: скилл записывает каждое опробованное решение и точную причину неудачи, чтобы свежий агент не повторял те же действия. В файл также входят перечень затронутых файлов с пояснениями, текущая гипотеза, ограничения и пошаговый план действий с конкретными путями и именами функций. Если доступны инструменты claude-mem, скилл дополнительно сохраняет идентификаторы ключевых наблюдений и готовые запросы для поиска.

Этот файл задуман как временный черновик. Не коммитьте его в историю репозитория: после запуска новой сессии через фразу «Read HANDOFF.md and continue from where we left off» файл стоит удалить или сразу внести в .gitignore.

Какие задачи решает

  • зафиксировать цели и ошибки перед перезапуском сессии
  • составить список неудачных попыток с причинами сбоев
  • сформировать файл HANDOFF.md для передачи контекста
  • сохранить идентификаторы наблюдений памяти claude-mem

Примеры запросов агенту

  • Сделай handoff текущей сессии
  • Сгенерируй HANDOFF.md, я хочу начать заново
  • Запиши handoff doc перед тем, как я сделаю /clear

Как установить handoff

1Через Skills CLI (Vercel)

npx skills add thedotmack/claude-mem --skill handoff -a claude-code

2Вручную: положить файлы

~/.claude/skills/handoff/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/handoff/

Из того же набора20

Весь набор →
mem-search thedotmack Ищет решения и контекст из прошлых сессий кодинга. Пригодится, когда нужно вспомнить, как решали задачу ранее. Claude Code CX Codex Cursor +1 8 900установок smart-explore thedotmack Структурно ищет функции и классы через tree-sitter. Пригодится, когда нужно разобраться в кодовой базе без чтения всех файлов. Claude Code CX Codex Cursor +1 7 300установок make-plan thedotmack Скилл превращает запрос на фичу в план по фазам, где каждая фаза опирается на реальную документацию, а не на догадки. Пригодится перед запуском do. Claude Code CX Codex Cursor +1 7 200установок do thedotmack Скилл разбивает план реализации на фазы и поручает работу субагентам. Пригодится, когда нужно выполнить готовый план с проверками после каждого шага. Claude Code CX Codex Cursor +1 7 000установок knowledge-agent thedotmack Собирает выбранные наблюдения claude-mem в корпус знаний и даёт задавать ему вопросы. Нужен для анализа прошлой работы по теме или проекту. Claude Code CX Codex Cursor +1 5 700установок learn-codebase thedotmack Скилл заставляет агента полностью прочитать каждый исходный файл проекта. Пригодится на старте работы с незнакомым кодом. Claude Code CX Codex Cursor +1 5 300установок how-it-works thedotmack Скилл отвечает на вопросы об устройстве claude-mem. Он объясняет запись действий, хранение файлов и запуск подстановки контекста. Claude Code CX Codex Cursor +1 5 100установок pathfinder thedotmack Скилл строит схемы потоков по функциям проекта, ищет дублирование и предлагает свести повторяющиеся системы к общей архитектуре. Пригодится перед рефакторингом. Claude Code CX Codex Cursor +1 5 100установок

Другие версии handoff

Похожие

skill Yeachan-Heo Управляет локальными скиллами: показывает, создаёт, ищет, редактирует и удаляет их через слэш-команды. Пригодится для пользовательских и проектных наборов скиллов. Claude Code CX Codex Cursor +1 833установок binance-agentic-wallet binance-web3-team Скилл подключает консольный интерфейс кошелька Binance к агенту, позволяя проверять баланс, совершать переводы, торговать на бирже и управлять DeFi-операциями прямо из терминала. Claude Code CX Codex Cursor +1 15 000установок omc-doctor Yeachan-Heo Скилл разбирает установку oh-my-claudecode: сверяет версию плагина с той, что лежит в npm, и ищет в настройках старые хуки. Пригодится, когда плагин вроде стоит, а поведение сессии не меняется. Claude Code CX Codex Cursor +1 832установок obsidian-canvas-creator axtonliu Скилл собирает из текста файл JSON Canvas, который Obsidian открывает как доску: узлы, связи, группы. Раскладка на выбор — радиальная карта или свободная схема. Claude Code CX Codex Cursor +1 2 000установок firecrawl-build-search firecrawl Скилл объясняет агенту, как встроить поиск Firecrawl в продукт: сначала найти страницы по запросу, потом вытащить из них текст. Claude Code CX Codex Cursor +1 61 500установок system-info agno Скилл с двумя скриптами: отдаёт агенту сведения о хосте и листинг каталога. Пригодится, когда нужно понять, где вообще выполняется код. Claude Code CX Codex Cursor +1 302установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. Claude Code 1 052 851установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. Claude Code 711 230установок

Вопросы о handoff

Как установить handoff в Claude Code?

Выполните команду npx skills add thedotmack/claude-mem --skill handoff -a claude-code в терминале.

Что попадает в HANDOFF.md?

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

Нужно ли коммитить HANDOFF.md в Git?

Нет. Автор указывает, что это временный рабочий файл: удалите его после подхвата задачи новым агентом или добавьте в .gitignore.

Исходный текст

SKILL.md · Apache-2.0
---
name: handoff
description: 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.
---

# 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
- `/compact` ran 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

1. **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.

2. **Current State** — What is working right now? What is broken? What is the exact symptom of the problem? Include error messages verbatim if relevant.

3. **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.

4. **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.

5. **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.

6. **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.

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

8. **Memory Pointers** — If claude-mem's search tools are available, use Smart search: run `search` for this task's key terms, inspect `timeline` around relevant results, then fetch only selected records with `get_observations`. List the few observation IDs that matter most (a decision, the root cause, a failed approach), so the fresh agent can retrieve those records. Also list one or two `search` queries 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 uses `Date.now()` but should use `req.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:

```markdown
# 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

- [Non-obvious constraint or preference the user expressed]
- [Things explicitly ruled out]

## Memory Pointers

- Observations: [#ID — one line on why it matters]
- Searches worth re-running: [`search` query]
```

## After Writing

Tell the user:

1. That `HANDOFF.md` has been written
2. To run `/clear` or start a new Claude Code session
3. To open the new session and say: **"Read HANDOFF.md and continue from where we left off."**
4. That claude-mem gives the fresh agent the recent timeline automatically, and `HANDOFF.md` is its precise briefing on top of that
5. That `HANDOFF.md` is a scratch file: don't commit it (delete it once the new session has picked up, or add it to `.gitignore`)

Keep the message short. The user is ready to move — don't make them read a wall of text.

© thedotmack · Apache-2.0 · thedotmack/claude-mem

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой