본문으로 건너뛰기
cccskills
무료GitHub에 공개

systematic-debugging

Four-phase debugging process - root cause first, then fix. Use when encountering bugs or unexpected behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.1 KB
  • agents/openai.yaml193 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Systematic Debugging

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

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

If you haven't completed Phase 1, you cannot propose fixes.

The Four Phases

Phase 1: Root Cause Investigation

BEFORE attempting ANY fix:

  1. Read Error Messages Carefully

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

    • Can you trigger it reliably?
    • What are the exact steps?
    • If not reproducible, gather more data
  3. Check Recent Changes

    • Git diff, recent commits
    • New dependencies, config changes
    • Environmental differences
  4. Trace Data Flow

    • Where does bad value originate?
    • What called this with bad value?
    • Keep tracing up until you find the source

Phase 2: Pattern Analysis

  1. Find Working Examples

    • Locate similar working code in same codebase
  2. Compare Against References

    • Read reference implementation completely
    • Don't skim - read every line
  3. Identify Differences

    • What's different between working and broken?
    • List every difference, however small

Phase 3: Hypothesis and Testing

  1. Form Single Hypothesis

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

    • Make the SMALLEST possible change
    • One variable at a time
  3. Verify Before Continuing

    • Did it work? Yes -> Phase 4
    • Didn't work? Form NEW hypothesis
    • DON'T add more fixes on top

Phase 4: Implementation

  1. Create Failing Test Case

    • Use the tdd.md skill
  2. Implement Single Fix

    • ONE change at a time
    • No "while I'm here" improvements
  3. Verify Fix

    • Test passes now?
    • No other tests broken?
  4. If 3+ Fixes Failed: Question Architecture

    • Is this pattern fundamentally sound?
    • Should we refactor vs continue fixing symptoms?
    • Discuss before attempting more fixes

Red Flags - STOP and Follow Process

  • "Quick fix for now, investigate later"
  • "Just try changing X and see if it works"
  • "I don't fully understand but this might work"
  • Proposing solutions before tracing data flow
  • "One more fix attempt" (when already tried 2+)

ALL mean: STOP. Return to Phase 1.

Quick Reference

PhaseKey ActivitiesSuccess Criteria
1. Root CauseRead errors, reproduce, check changesUnderstand WHAT and WHY
2. PatternFind working examples, compareIdentify differences
3. HypothesisForm theory, test minimallyConfirmed or new hypothesis
4. ImplementationCreate test, fix, verifyBug resolved, tests pass

When to Use

Use this skill when the task directly matches the workflow described above.

When Not to Use

Do not use this skill when the request is unrelated, low-stakes, or better handled by a simpler direct response.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Surface and categorize assumptions underlying product strategy. Use early in development to document what you're betting on.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itseffi/agentic-os1172026년 10월 7일 업데이트

Prioritize assumptions by risk and importance. Use after assumption mapping to decide what to test first.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itseffi/agentic-os1172026년 10월 7일 업데이트

Sync Jira issues with local tasks. Use during daily planning or when user asks about Jira issues.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itseffi/agentic-os1172026년 10월 7일 업데이트

Design backend architecture for implementation with API contracts, data model changes, service boundaries, security, and observability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itseffi/agentic-os1172026년 10월 7일 업데이트

Turn ideas into designs through collaborative dialogue. Use before any creative work - features, components, or modifications.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itseffi/agentic-os1172026년 10월 7일 업데이트

Check Google Calendar for today's schedule. Use during daily planning or when user asks about their calendar.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

itseffi/agentic-os1172026년 10월 7일 업데이트

itseffi의 스킬 모두 보기

이 스킬의 문제 신고