Back to list
TKontu

debug

by TKontu

0🍴 0📅 Jan 25, 2026

SKILL.md


name: debug description: Use when encountering bugs, test failures, or unexpected behavior - find root cause before fixing

Systematic Debugging

The Rule

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

Four Phases

Phase 1: Investigate

  1. Read error messages completely - They often contain the solution
  2. Reproduce consistently - Can you trigger it reliably?
  3. Check recent changes - git diff, what changed?
  4. Trace data flow - Where does the bad value come from?

Phase 2: Find Pattern

  1. Find working similar code in codebase
  2. Compare working vs broken
  3. List every difference

Phase 3: Hypothesis

  1. Form ONE hypothesis: "I think X because Y"
  2. Make smallest possible change to test it
  3. If wrong, form NEW hypothesis (don't pile fixes)

Phase 4: Fix

  1. Write failing test that reproduces bug
  2. Implement single fix for root cause
  3. Verify test passes
  4. Verify no other tests broke

Red Flags

If thinking:

  • "Quick fix, investigate later" - STOP
  • "Just try changing X" - STOP
  • "I don't understand but this might work" - STOP

Return to Phase 1.

3+ Fixes Failed?

If you've tried 3+ fixes without success:

  • STOP attempting more fixes
  • Question the architecture
  • Ask your orchestrator for guidance

Quick Reference

PhaseDoConfirm
InvestigateRead errors, reproduce, check changesUnderstand WHAT and WHY
PatternFind working example, compareKnow the difference
HypothesisSingle theory, minimal testConfirmed or rejected
FixTest first, single fix, verifyBug gone, tests pass

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon