Back to list
doanchienthangdev

debugging-systematically

by doanchienthangdev

Omega Vibecode Kit

2🍴 1📅 Jan 21, 2026

SKILL.md


name: debugging-systematically description: AI agent follows a 5-phase debugging process with reproduction, isolation, hypothesis testing, and root cause resolution. Use when investigating bugs, troubleshooting issues, or hunting errors.

Debugging Systematically

Quick Start

  1. Reproduce - Create reliable reproduction steps, document environment
  2. Isolate - Binary search to narrow down, create minimal repro case
  3. Hypothesize - Generate 3+ theories with evidence and test cost
  4. Test - Design tests to prove/disprove each hypothesis
  5. Fix & Verify - Write failing test first, implement fix, verify green

Features

FeatureDescriptionGuide
ReproductionConsistent steps to trigger bugExact steps, environment, frequency
IsolationNarrow down problem areaBinary search code, git bisect
Hypothesis RankingPrioritize theories to testEvidence strength x (1/test cost)
Strategic LoggingAdd targeted debug output[DEBUG][Service][method] format
Git BisectFind regression commitgit bisect start, mark good/bad
Regression TestsPrevent bug from returningWrite failing test before fixing

Common Patterns

# Reproduction Template
Environment:
  OS: [version]
  Node: [version]
  Browser: [version]

Steps:
1. [Step 1]
2. [Step 2]
3. Observe: [Error]

Frequency: 100% | Intermittent (~50%)
First observed: [date]
Last known good: [commit/version]

# Isolation via Binary Search
function problematic() {
  // BLOCK A
  await stepA1();
  await stepA2();

  // BLOCK B
  await stepB1();
  await stepB2();

  // Comment out BLOCK B
  // Still fails? Bug in BLOCK A
  // Works now? Bug in BLOCK B
}

# Git Bisect
git bisect start
git bisect bad HEAD
git bisect good v2.0.0
# Git checks out middle, test and mark
git bisect good  # or: git bisect bad
# Repeat until culprit found
git bisect reset
# Hypothesis Template
| # | Hypothesis | Evidence | Test Cost | Priority |
|---|------------|----------|-----------|----------|
| H1 | Missing index | Seq scan in EXPLAIN | Low | 1st |
| H2 | N+1 query | Loop in code | Low | 2nd |
| H3 | Memory leak | Gradual increase | High | 3rd |

Best Practices

DoAvoid
Always reproduce before debuggingDebugging without reproduction
Write down hypotheses before testingTesting multiple hypotheses at once
Use binary search for large codebasesRandom code changes
Write failing test before fixingAssuming cause without evidence
Document the debugging sessionIgnoring intermittent bugs
Add logging strategicallyKeeping debug code in production
Check for related issuesFixing symptoms instead of root cause
  • solving-problems - 5-phase problem-solving framework
  • tracing-root-causes - 5 Whys and Fishbone analysis
  • avoiding-testing-anti-patterns - Prevent flaky tests
  • verifying-before-completion - Ensure fix is complete

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

+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