fresh-start — скилл для Claude Code: что делает и как установить
Скилл собирает краткую выжимку диалога до 300 слов, чтобы перезапустить чат без потери важных решений и перерасхода токенов.
npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a claude-codeЧто делает fresh-start
Каждое новое сообщение в затянувшемся диалоге отправляет всю историю заново. Из-за этого лимиты тают быстрее, модель начинает забывать ранние указания, а ответы ощутимо замедляются. Скилл структурирует контекст в один компактный блок кода: фиксирует общую цель, принятые решения с краткими причинами, статус файлов, ближайший шаг и важные ограничения, включая проверенные неудачные попытки.
Инструкция запрещает помещать в сводку полные файлы, сырые логи или расшифровки разговора. В конце выжимки скилл даёт расчёт экономии: показывает примерное соотношение токенов между разросшейся сессией и чистым стартом.
В Claude Code для обновления контекста достаточно выполнить команду /clear и вставить подготовленный блок, тогда как для частичной чистки хватает /compact. Если в проекте используется /cco task patch, состояние задач сохранится автоматически.
Какие задачи решает
- перенести задачу в чистый диалог без потери контекста
- сократить расход токенов при длинных сессиях разработки
- зафиксировать решения и ограничения перед сбросом переписки
- оценить выигрыш по контексту перед началом новой сессии
Примеры запросов агенту
- Подготовь handoff для переноса этой задачи в новый чат
- Диалог стал слишком длинным, собери сводку fresh-start
- Зафиксируй текущее состояние проекта и следующий шаг перед очисткой контекста
Как установить fresh-start
1Через Skills CLI (Vercel)
npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a claude-code2Вручную: положить файлы
~/.claude/skills/fresh-start/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/fresh-start/
1Через Skills CLI (Vercel)
npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a codex2Вручную: положить файлы
.agents/skills/fresh-start/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a cursor2Вручную: положить файлы
.cursor/skills/fresh-start/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install egorfedorov/claude-context-optimizer fresh-start2Вручную: положить файлы
.github/skills/fresh-start/SKILL.md1Через Skills CLI (Vercel)
npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a gemini-cli2Командой платформы
gemini skills install https://github.com/egorfedorov/claude-context-optimizer --path skills/fresh-startВручную: положить файлы
.devin/skills/fresh-start/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о fresh-start
Как установить fresh-start в Claude Code?
Выполните в терминале npx skills add egorfedorov/claude-context-optimizer --skill fresh-start -a claude-code либо поместите файл по пути ~/.claude/skills/fresh-start/SKILL.md.
Что входит в сводку fresh-start?
Скилл генерирует фрагмент до 300 слов, куда входят цель проекта, принятые решения, текущее состояние файлов, следующий шаг и ограничения, которые нельзя терять.
Как скилл сочетается со встроенными командами Claude Code?
Для обычной работы агенту хватает встроенной /compact. Скилл нужен для полного сброса через /clear, а утилита /cco task patch помогает удерживать статус задач.
Исходный текст
SKILL.md · MIT
--- name: fresh-start description: Continue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use whenever the user wants to move to a new chat or conversation, hits usage limits, says replies got slow or Claude forgets earlier details, or the conversation has grown long. license: MIT --- # Fresh start Every message re-sends the whole conversation, so a long one uses up limits fast and recalls its early details worse. A new conversation that starts from a short handoff costs a fraction and stays sharp. ## When to offer it - The user asks to start over, hits a limit, or says replies got slow or forgetful. - The conversation is clearly long: many long turns, large pasted files or documents. Offer it once, in one sentence, at a natural break. Don't interrupt a short conversation or a task that is nearly done. ## The handoff Write it in the user's language, under 300 words, inside one code block so it copies cleanly: 1. **Goal** — one line. 2. **Decisions so far** — bullets, each with its reason in a few words. 3. **Current state** — what exists now: files, drafts, versions, results. Quote only short snippets that the next step needs; name everything else. 4. **Next step** — the very next thing to do, then any open questions. 5. **Must not be lost** — names, numbers, constraints, preferences, things that were tried and failed. Then give the saving in one line, as an estimate: "This conversation is about 60K tokens; the handoff is about 500, so each message in the new chat re-sends under 1% of what it does here." Then tell the user: open a new conversation, paste the block, and continue. ## On each surface - **claude.ai chat:** a new chat with the pasted handoff. In a Project, the project's files stay available, so the handoff can just name them. - **Cowork:** start a new task with the handoff as its first message. - **Claude Code:** `/compact` keeps working in place and is usually enough. For a clean break, `/clear` and paste the handoff. `/cco task patch` keeps structured task state across `/compact` automatically. Never paste whole files, logs or the transcript into the handoff.
© egorfedorov · MIT · egorfedorov/claude-context-optimizer