systematic-debugging skill
Use before proposing a permanent fix for bugs, test failures, or unexpected behavior with an unknown root cause—mandatory when symptoms are far from the cause, a prior fix failed, or the issue crosses components. Reproduce, trace backward to the root cause, fix once at the source, and add a regression test. Do not trigger for obvious errors whose message identifies the cause (syntax/typo/missing import); fix those directly.
- GitHub 스타
- 25
- 파일
- 1
- 마지막 커밋
- 2026년 9월 15일
- 라이선스
- MIT
- 허용된 도구
- —
systematic-debugging skill은 무엇을 하나요?
systematic-debugging은(는) agent skill입니다. Use before proposing a permanent fix for bugs, test failures, or unexpected behavior with an unknown root cause—mandatory when symptoms are far from the cause, a prior fix failed, or the issue crosses components. Reproduce, trace backward to the root cause, fix once at the source, and add a regression test. Do not trigger for obvious errors whose message identifies the cause (syntax/typo/missing import); fix those directly.
systematic-debugging skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 systematic-debugging skill 설치
/plugin marketplace add chipfighter/coding-discipline /plugin install coding-discipline@coding-discipline
Claude Code에 systematic-debugging skill 설치
~/.claude/skills/systematic-debugging/SKILL.md
$ npx degit chipfighter/coding-discipline/plugins/coding-discipline/skills/systematic-debugging ~/.claude/skills/systematic-debuggingClaude Code (project)에 systematic-debugging skill 설치
.claude/skills/systematic-debugging/SKILL.md
$ npx degit chipfighter/coding-discipline/plugins/coding-discipline/skills/systematic-debugging .claude/skills/systematic-debuggingCodex에 systematic-debugging skill 설치
~/.agents/skills/systematic-debugging/SKILL.md
$ npx degit chipfighter/coding-discipline/plugins/coding-discipline/skills/systematic-debugging ~/.agents/skills/systematic-debuggingGemini CLI에 systematic-debugging skill 설치
~/.gemini/skills/systematic-debugging/SKILL.md
$ npx degit chipfighter/coding-discipline/plugins/coding-discipline/skills/systematic-debugging ~/.gemini/skills/systematic-debuggingClaude.ai에 systematic-debugging skill 설치
npx degit chipfighter/coding-discipline/plugins/coding-discipline/skills/systematic-debugging systematic-debugging && zip -r systematic-debugging.zip systematic-debugging # claude.ai → Customize → Skills → + → Create skill → Upload a skill → systematic-debugging.zip
SKILL.md
GitHub에서 보기Hard rule: do not package a guess as a permanent fix before locating the root cause. If the user explicitly needs emergency containment, you may apply a reversible temporary mitigation first, but you must state its risks and that the root cause is not fixed, then continue investigating.
1. Reproduce
- Read the error message and full stack trace carefully—the answer is often there. Do not skip them. Note the line number, file, and error code.
- Establish a reliable reproduction first: which steps trigger it every time? If you cannot reproduce it reliably, gather data before proceeding. Do not guess.
- Inspect recent changes: git diff, recent commits, new dependencies, and configuration or environment differences.
2. Trace backward to the root cause
- Follow the bad value backward: where did it come from → who called something with it → continue to the source. Fix it at the source, not at the symptom.
- In a multi-component system (CI→build→signing, API→service→library), record what enters and leaves each boundary. Run it once to see which layer fails, then investigate that layer. Do not guess based on intuition.
- Find a similar working example and list every difference from the broken one. Do not assume that "this difference cannot matter."
- Example: an amount on a page has two extra decimal places. Trace it backward: the display layer receives the wrong value → it came from the API → the value read from the database is correct → the API returned cents as dollars. Fix the API layer; do not compensate with display formatting.
3. One hypothesis at a time
- Write it down: "I believe the root cause is X because Y."
- Test it with the smallest change, varying only one thing at a time. Do not stack new fixes on an unverified one.
- If you do not understand X, say so. Do not pretend and guess.
4. Fix the root + add a regression test
- Write a failing test that reproduces the bug before fixing it (see tdd).
- Make one fix in one place. Do not opportunistically refactor or change anything else.
- Verify that the test passes, nothing else broke, and the problem is actually gone (see verify-before-done).
Three failed fixes = stop and question the architecture
If every fix creates a new problem elsewhere or requires a "large refactor," the problem is not the hypothesis but the architecture. Do not attempt a fourth fix. Stop and discuss whether the design itself is fundamentally wrong.
No random attempts: when these thoughts appear, stop and return to Step 1
| Thought | What to do |
|---|---|
| "Apply a quick fix now and investigate the root cause later." | There is no later—once the symptom changes, you will stop investigating. Trace it to the root cause before changing anything. |
| "Change this and see whether it works." | That is guessing. First write, "I believe the root cause is X because Y," then test it with the smallest change. |
| "It is probably X; just fix it." | Reaching a conclusion before tracing the data flow is a gamble. Follow the bad value to its source first. |
| "Put several changes in and run it." | Change only one variable at a time, or a passing result will not tell you which change mattered. |
| "Two attempts failed; maybe one more will work." | Stop. A third attempt probably means the direction is wrong. Return to Step 1 or ask someone else. |
이 스킬의 파일
1systematic-debugging skill 질문
Claude Code에 systematic-debugging skill을 어떻게 설치하나요?
npx degit chipfighter/coding-discipline/plugins/coding-discipline/skills/systematic-debugging ~/.claude/skills/systematic-debugging를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
systematic-debugging skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.