ce-debug
Что он делает
Этот скилл разбирает падающую функцию или ошибку, чтобы найти настоящую причину, подкреплённую доказательствами из кода. Он нужен разработчикам, которые хотят, чтобы ошибку тщательно диагностировали, прежде чем исправлять.
Когда использовать
- ✓Когда что-то ломается и причина не очевидна.
- ✓Когда поведение медленное или ломается только в определённой среде, например в продакшене.
- ✓Когда задача конвейера или проверка запроса на слияние снова и снова падает.
Ссылка на скилл
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-debug/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“После последнего деплоя наша страница оформления заказа падает. Можешь найти первопричину и исправить её?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл воспроизводит проблему, проверяет по одной гипотезе за раз и прослеживает причину до конкретных строк кода. Когда вы решите её исправить, он сначала пишет падающий тест, а затем вносит исправление.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Debug and Fix
Find the root cause of a failure, then — when the user chooses to — fix it with test-first discipline.
Done when: the causal chain from trigger to symptom is stated with no gaps and file:line evidence, and either a verified fix has been handed off (PR, commit, or the user's chosen stop) or a diagnosis-only summary has been delivered. Escalate rather than persist: 2-3 hypotheses exhausted without confirmation, or 3 failed fix attempts, means diagnose why instead of trying again — that is the smart escalation references/investigate.md describes. One hypothesis, one change at a time; changing several to see what helps is shotgun debugging.
<bug_description> is whatever this skill was invoked with — a failure description, a mode: token, or an issue reference (#123, org/repo#123, an issue URL) — from the user or from a calling skill (ce-babysit-pr / lfg in mode:pipeline pass the failing jobs and log tails; lfg's defect route passes mode:return-to-caller and the user's own reference). Blank if nothing was provided.
Mode
Default is interactive: investigate, run the Phase 2 fix-choice gate, then the Phase 4 handoff.
mode:pipeline (set by an orchestrator such as ce-babysit-pr or lfg): run fully non-interactively and never call the blocking-question tool. Strip the token from <bug_description>, then read references/pipeline-mode.md and follow it — it overrides every "ask the user" point with a conservative default, replaces the Phase 2 fix-gate with "fix convergent bugs, defer divergent ones", and replaces the Phase 4 handoff with a structured return whose status is exactly one of fixed-and-pushed | fixed-not-pushed | diagnosed-no-fix | flaky-infra | needs-human. The caller branches on those exact spellings, so never rename, abbreviate, or add to them.
mode:return-to-caller (set by lfg on its defect route): run non-interactively, but the caller owns everything after the fix. Strip the token, then read references/return-to-caller.md and follow it — it keeps Phases 0-3 and the convergent-or-defer fix boundary, applies the Phase 3 branch rule so the fix lands on a feature branch, commits the fix-owned files without pushing, skips the post-fix polish and review steps, and returns a structured result whose status is exactly one of fixed | diagnosed-no-fix | needs-human | blocked. The same spelling rule applies.
Blocking questions
Wherever this skill asks the user something, use the host's blocking question tool already in the current tool list (match by capability, not by a host-specific name). Presence in the current tool list is proof the tool exists; never call a user-facing question tool to discover whether it exists. If a matching tool is listed but unloaded, use the host's tool-discovery primitive to load that capability — do not search for another host's tool name. Fall back to numbered options on the host's chat surface only when no such tool is in the list or a real question call errors. Never silently skip the question, and never end a phase without a response.
Secrets in evidence
Debugging surfaces raw output constantly — command results, captured payloads, log excerpts — and the harness may render a command's output the moment it runs, so check secrets when you construct the command, not afterward. Keep credentials in env vars rather than on the command line; when a command's output may carry a secret (verbose HTTP traces, dumped headers, config or environment prints), capture it to a file and surface only sanitized excerpts, writing <REDACTED> in place of each secret. No secret (credential, token, auth header, connection string) appears in anything shown, written, or committed. If sanitizing removes what the diagnosis needs, say so and ask the user rather than un-redacting.
Artifact Root
Resolve <root> only when you first compose a <root>/ path — a run that composes none skips this entirely.
Resolve the CE artifact root <root> before composing any artifact path.
- Read
docs_rootfrom<repo-root>/.compound-engineering/config.yamlonly (<repo-root>=git rev-parse --show-toplevel). Do not read it fromconfig.local.yaml. Unset -><root>isdocs, exactly as before. - Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under
.git/. Otherwise stop with an error n
Частые вопросы
Всегда ли он исправляет ошибку?
Нет. Вместо исправления можно выбрать только сводку диагностики.
Что если первые догадки неверны?
Скилл останавливается после нескольких неудачных гипотез и смотрит, почему догадки не сработали.
Может ли он работать, не задавая вопросов?
Да. В режиме конвейера он работает без присмотра и не останавливается, чтобы спросить вас.
Подробности
Оригинальное описание автора
Diagnosis loop for bugs and failing behavior. Use when asked to debug or fix failing or slow behavior.
Популярность
- Звёзды на GitHub
- 26k
- Место в рейтинге
- #10026
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
ce-babysit-pr
26kПомогает агенту вести открытый запрос на слияние в GitHub к слиянию: отвечать на комментарии ревью, падающие проверки и устаревшие ветки в течение времени.
ce-bakeoff
26kПомогает агенту создать несколько конкурирующих решений задачи, сравнить их и объединить самые сильные части в один рекомендуемый подход.
ce-brainstorm
26kПомогает агенту превратить смутную идею в ясный набор требований нужного размера до начала работы, через короткий направляющий разговор.
ce-code-review
26kПомогает агенту проверить указанное изменение кода или запрос на слияние на ошибки, регрессии, отсутствующие тесты и нарушения стандартов и выдать понятные выводы.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.