본문으로 건너뛰기
Skillpedia
일반 코딩48k · #5918

systematic-debugging

하는 일

이 도구는 기술적 문제의 근본 원인을 찾도록 돕습니다. 프로그램 오류나 예상치 못한 동작 같은 문제입니다. 임시방편이 아니라 영구적인 해결책이 되도록, 고치기 전에 먼저 조사하도록 안내합니다.

사용하는 경우

  • ✓이해되지 않는 오류가 프로그램에 나타날 때.
  • ✓여러 번 고치려 했지만 성공하지 못했을 때.
  • ✓빠른 수정의 유혹이 큰 긴급 상황인 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/systematic-debugging/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/systematic-debugging/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“파일을 저장하려고 할 때 이상한 오류가 나는데, 근본 원인을 조사하려면 무엇을 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 체계적인 단계를 따를 것을 제안합니다. 먼저 오류를 이해하고 재현하는 방법을 확인합니다. 그다음 최근에 무엇이 바뀌었는지 살핍니다. 그제야 가설을 세우고 가장 작은 변경을 테스트해 원인을 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Systematic Debugging

Overview

Random fixes waste time and create new bugs. Quick patches mask underlying issues.

Core principle: Investigate before guessing and separate a verified repair from a temporary mitigation. During an incident, an authorized rollback or containment action may restore service while root-cause work continues.

Violating the letter of this process is violating the spirit of debugging.

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

Start with the observable failure and the smallest useful evidence check. Label any emergency mitigation explicitly and preserve evidence for the later root-cause investigation.

When to Use

Use for ANY technical issue:

  • Test failures
  • Bugs in production
  • Unexpected behavior
  • Performance problems
  • Build failures
  • Integration issues

Use this ESPECIALLY when:

  • Under time pressure (emergencies make guessing tempting)
  • "Just one quick fix" seems obvious
  • You've already tried multiple fixes
  • Previous fix didn't work
  • You don't fully understand the issue

Don't skip when:

  • Issue seems simple (simple bugs have root causes too)
  • You're in a hurry (rushing guarantees rework)
  • Manager wants it fixed NOW (systematic is faster than thrashing)

The Four Phases

You MUST complete each phase before proceeding to the next.

Phase 1: Root Cause Investigation

BEFORE attempting ANY fix:

  1. Read Error Messages Carefully

    • Don't skip past errors or warnings
    • They often contain the exact solution
    • Read stack traces completely
    • Note line numbers, file paths, error codes
  2. Reproduce Consistently

    • Can you trigger it reliably?
    • What are the exact steps?
    • Does it happen every time?
    • If not reproducible → gather more data, don't guess
  3. Check Recent Changes

    • What changed that could cause this?
    • Git diff, recent commits
    • New dependencies, config changes
    • Environmental differences
  4. Gather Evidence in Multi-Component Systems

    WHEN system has multiple components (CI → build → signing, API → service → database):

    BEFORE proposing fixes, add diagnostic instrumentation:

    For EACH component boundary:
      - Record allowed field names, sizes, statuses and correlation IDs
      - Redact secrets and private payloads before logging
      - Verify environment/config propagation
      - Check state at each layer
    
    Run once to gather evidence showing WHERE it breaks
    THEN analyze evidence to identify failing component
    THEN investigate that specific component
    

    Example (multi-layer system):

    # In each relevant process, report presence only; never dump secret values.
    if [ -n "${IDENTITY:-}" ]; then
      echo 'IDENTITY is set'
    else
      echo 'IDENTITY is absent or empty'
    fi
    
    # Read-only validation of an already-built artifact, when available.
    codesign --verify --verbose=2 "$APP"
    

    Interpretation: Compare presence checks at the actual workflow/build boundaries. Artifact verification does not itself prove that the correct signing identity propagated.

  5. Trace Data Flow

    WHEN error is deep in call stack:

    See root-cause-tracing.md in this directory for the complete backward tracing technique.

    Quick version:

    • Where does bad value originate?
    • What called this with bad value?
    • Keep tracing up until you find the source
    • Fix at source, not at symptom

Phase 2: Pattern Analysis

Find the pattern before fixing:

  1. Find Working Examples

    • Locate similar working code in same codebase
    • What works that's similar to what's broken?
  2. Compare Against References

    • If implementing pattern, read reference implementation COMPLETELY
    • Don't skim - read every line
    • Understand the pattern fully before applying
  3. Identify Differences

    • What's different between working and broken?
    • List every difference, however small
    • Don't assume "that can't matter"
  4. Understand Dependencies

    • What other components does this need?
    • What settings, config, environment?
    • What assumptions does it make?

Phase 3: Hypothesis and Testing

Scientific method:

  1. Form Single Hypothesis

    • State clearly: "I think X is the root cause because Y"
    • Write it down
    • Be specific, not vague
  2. Test Minimally

    • Make the SMALLEST possible change to test hypothesis
    • One variable at a time

…

자주 묻는 질문

왜 빠른 수정을 하면 안 되나요?

빠른 수정은 실제 문제를 가리고, 새로운 버그를 만들고, 결국 더 많은 시간을 들이게 할 수 있습니다. 근본 원인을 조사해야 오래가는 해결책을 얻을 수 있습니다.

'근본 원인'이란 무엇인가요?

문제가 발생하는 근본적인 이유입니다. 눈에 보이는 증상만 다루는 것이 아니라, 이것을 고쳐야 같은 오류가 다시 일어나지 않습니다.

문제가 시스템의 여러 부분에 걸쳐 있으면 어떻게 하나요?

도구는 부분 사이의 통신을 확인하고, 각 '경계'(한 부분이 다른 부분과 소통하는 지점)에서 정보를 기록해 실패가 처음 어디에서 일어나는지 찾도록 요청합니다.

상세 정보

작성자의 원본 설명

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5918
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬