ce-debug
하는 일
이 스킬은 실패하는 기능이나 버그를 살펴 코드의 근거를 바탕으로 실제 원인을 찾습니다. 수정 전에 버그를 신중하게 진단하고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓무언가 고장 났는데 원인이 분명하지 않을 때.
- ✓운영 환경처럼 특정 설정에서만 느리거나 실패할 때.
- ✓파이프라인 작업이나 풀 리퀘스트 검사가 계속 실패할 때.
스킬 링크
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-debug/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“마지막 배포 후 결제 페이지가 실패합니다. 근본 원인을 찾아 고쳐 주실 수 있나요?”
매주 새 스킬 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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
ce-babysit-pr
26k에이전트가 리뷰 댓글, 실패한 검사, 오래된 브랜치를 시간에 걸쳐 처리하며 열린 GitHub 풀 리퀘스트가 병합 상태로 나아가도록 돕습니다.
ce-bakeoff
26k에이전트가 한 문제에 대해 여러 경쟁 해결책을 만들고 비교한 뒤, 가장 강한 부분을 합쳐 하나의 추천 방식으로 정리하도록 돕습니다.
ce-brainstorm
26k에이전트가 막연한 아이디어를 짧은 안내 대화를 거쳐, 작업을 시작하기 전에 명확하고 알맞은 크기의 요구 사항으로 바꾸도록 돕습니다.
ce-code-review
26k에이전트가 지정된 코드 변경이나 풀 리퀘스트를 버그, 회귀, 누락된 테스트, 표준 문제 측면에서 검토하고, 명확한 발견 사항을 보고하도록 돕습니다.