ds-context-reset — скилл для Claude Code: что делает и как установить
Скилл ds-context-reset для Claude Code управляет сбросом контекста длинных задач через файл PROGRESS.md.
MIT 562 установок ★ 320 обновлён 2026-10-28
npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a claude-codeЧто делает ds-context-reset
Скилл сохраняет состояние работы в PROGRESS.md вместо чата, чтобы чистая сессия продолжала задачу без отклонений. При появлении признаков устаревания контекста скилл помогает перенести накопленные факты в файл, переключиться на новую сессию или субагент и продолжить работу по плану.
Файл PROGRESS.md содержит цель, список выполненных и следующих шагов, открытые вопросы и ключевые факты. Объем файла ограничен примерно 150 строками, а секреты и токены в него записывать запрещено.
При достижении трех сбросов на одном пункте без прогресса скилл останавливает работу и запрашивает пользователя. Внутри сессии запрещено хранить секреты или токены.
Какие задачи решает
- сохранять состояние длинной задачи в PROGRESS.md
- переносить контекст в новую сессию или субагент
- очищать устаревший контекст модели
- фиксировать выполненные шаги и ключевые факты
Примеры запросов агенту
- /ds-context-reset
- Запусти сброс контекста через /ds-context-reset
- Обнови PROGRESS.md и подготовь перенос сессии через /ds-context-reset
Как установить ds-context-reset
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a claude-code2Вручную: положить файлы
~/.claude/skills/ds-context-reset/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ds-context-reset/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a codex2Вручную: положить файлы
.agents/skills/ds-context-reset/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a cursor2Вручную: положить файлы
.cursor/skills/ds-context-reset/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aicodeking/deepseek-stack skills/ds-context-reset2Вручную: положить файлы
.github/skills/ds-context-reset/SKILL.md1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a gemini-cli2Командой платформы
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-context-resetВручную: положить файлы
.devin/skills/ds-context-reset/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ds-context-reset
Как установить ds-context-reset в Claude Code?
Выполните команду npx skills add aicodeking/deepseek-stack --skill ds-context-reset -a claude-code, затем обратитесь к файлу ~/.claude/skills/ds-context-reset/SKILL.md.
Что делает ds-context-reset?
Скилл фиксирует рабочее состояние в PROGRESS.md при заполнении контекста или зацикливании модели, а затем переносит прогресс в свежую сессию.
Что нужно для работы ds-context-reset?
Для работы требуется файл PROGRESS.md в корне репозитория и чистая сессия или субагент для продолжения задач.
Исходный текст
SKILL.md · MIT
--- name: ds-context-reset description: "Keep a PROGRESS.md for long tasks and move to a fresh session or subagent that reads only that file when the context gets long or stale. Use when a task spans many steps or sessions, when the model starts repeating itself, forgets earlier facts, or re-tries old fixes, or when the context window is past about half full. Invoke as /ds-context-reset." --- # ds-context-reset Store the state of the work in a file, not in the chat, so a fresh context can continue without drift. ## Steps 1. At the start of a long task, create PROGRESS.md at the repo root with these sections: - **Goal**: one or two sentences, plus the acceptance check for the whole task. - **Done**: the verified steps, each with the command and result that proved it. - **Next**: the ordered steps that remain. The first item is the exact next action. - **Open questions**: unknowns and decisions that wait for the user. - **Key facts**: paths, commands, versions, gotchas, and approaches that failed (with the reason). 2. Update PROGRESS.md after every verified step. Do not update it for unverified ones. Commit the code and PROGRESS.md together with a descriptive message. 3. Watch for reset signals: you repeat an earlier answer, you forget a fact that is in Key facts, you retry a fix that failed, the same file gets reread many times, or the context is more than about half full. 4. When a signal appears, finish or revert the current step so the tree is in a known state. 5. Rewrite PROGRESS.md as a complete handoff. A reader who has only this file and the repo must be able to continue. Remove chatter and keep the facts. 6. Start a fresh session or subagent. Give it one instruction: "Read PROGRESS.md and `git log -5`, run the acceptance check for the last Done item, then do the first item in Next." 7. In the new context, confirm that the baseline check passes before you make new edits. If it fails, fix that first. ## Stop when - The goal's acceptance check passes and PROGRESS.md shows every item as Done. - You have done 3 resets on one Next item without progress. Stop and ask the user, with the file as your report. ## Rules - PROGRESS.md holds facts and evidence, not plans that nobody has checked. - Keep it under about 150 lines. Move old Done items into a short summary line. - Never put secrets or tokens in it. - The fresh context reads the file, not the old transcript. - Pair with ds-plan-loop for the Next list and with ds-unstick for the failed-approach notes.
© aicodeking · MIT · aicodeking/deepseek-stack