ds-explain — скилл для Claude Code: что делает и как установить
Скилл разъясняет код и причины его архитектуры простым языком в Claude Code, Codex и Cursor. Включается при разборе чужих подсистем и по команде /ds-explain.
MIT 545 установок ★ 320 обновлён 2026-10-28
npx skills add aicodeking/deepseek-stack --skill ds-explain -a claude-codeЧто делает ds-explain
Скилл анализирует исходный код, прослеживает путь выполнения от точки входа до эффекта и находит причины архитектурных решений в истории коммитов или описаниях PR. Поведение подкрепляется ссылками на конкретные файлы и строки, а догадки о намерениях разработчиков отделяются от фактов. Настройка подсистемы для крупного кодебаза распределяется на несколько параллельных агентов.
Работа строится на строгих правилах: скилл не редактирует код, разделяет идеи и перечни функций, а при отсутствии архивных записей о причинах кода прямо сообщает об этом. Каждое утверждение о поведении привязывается к строке и файлу, а поиск причин останавливается через три неудачные попытки.
Какие задачи решает
- объяснить логику работы функции или подсистемы
- разобраться в чужом коде перед его изменением
- найти причины архитектурного решения по истории коммитов
- изучить пограничные случаи и структуру состояния
Примеры запросов агенту
- Объясни, как работает этот модуль и почему он устроен именно так
- Разбери этот файл перед рефакторингом
- Как устроена точка входа в этой подсистеме?
Как установить ds-explain
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-explain -a claude-code2Вручную: положить файлы
~/.claude/skills/ds-explain/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ds-explain/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-explain -a codex2Вручную: положить файлы
.agents/skills/ds-explain/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-explain -a cursor2Вручную: положить файлы
.cursor/skills/ds-explain/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aicodeking/deepseek-stack skills/ds-explain2Вручную: положить файлы
.github/skills/ds-explain/SKILL.md1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-explain -a gemini-cli2Командой платформы
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-explainВручную: положить файлы
.devin/skills/ds-explain/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-explain -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ds-explain
Как установить ds-explain в Claude Code?
Выполните команды npx skills add aicodeking/deepseek-stack --skill ds-explain -a claude-code и обратитесь к файлу ~/.claude/skills/ds-explain/SKILL.md.
Что делает ds-explain?
Разбирает исходный код, прослеживает цепочку вызовов и объясняет причины выбора архитектуры со ссылками на файлы и строки.
Какие ограничения действуют у скилла?
Скилл не вносит изменения в код, требует подтверждения ссылками на файлы и отделяет точные факты от предположений о намерениях авторов.
Исходный текст
SKILL.md · MIT
--- name: ds-explain description: "Explain how a piece of code works, why it is built that way, and what that means, in plain language a person can follow. Use for 'how does X work', 'why is it like this', 'teach me this', onboarding to a subsystem, or /ds-explain." --- # ds-explain Give one plain account of what a thing is, how it runs, and why it has its current shape, so the reader can change it with confidence. ## Steps 1. Work out what the reader needs. Read the conversation: are they about to change it, review it, debug it, or are they new? Pick the three or four things they should walk away knowing. Skip what they already know. 2. Size the job. A single function needs one pass. A subsystem across many files can use two to four parallel read-only subagents, each on one angle, then one pass to combine them. 3. How it works. Read the actual code. Trace the main runtime path from entry point to effect. Note who owns each piece of state and where the boundaries are. Cite files and lines. 4. Why it is that way. Check commit history, blame, PR descriptions, linked issues and comments near the code. Separate what the record says from what you infer, and label inferences clearly. If no record exists, say so. 5. Write the explanation. Start with a plain definition in general terms, then tie it to this codebase. Walk through what happens when someone actually uses it. Then the reasons, then the edge cases. Use a small diagram or table when it helps. 6. Offer to go deeper on one named part. ## Stop when - The reader's question is answered with cited code and sourced reasons. - Or you have spent three rounds of searching for the reason with no record. Say the reason is unknown. ## Rules - Do not edit code. - Every claim about behavior points at a file and line. - Never present a guess about intent as fact. - Explain ideas, do not list functions.
© aicodeking · MIT · aicodeking/deepseek-stack