← スキル一覧に戻る

systematic-debugging
by maslennikov-ig
MegaCampus 2.0 - AI-powered course generation platform
⭐ 1🍴 0📅 2026年1月23日
SKILL.md
name: systematic-debugging description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Systematic Debugging
Core principle: ALWAYS find root cause before attempting fixes.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
The Four Phases
Phase 1: Root Cause Investigation
BEFORE attempting ANY fix:
- Read Error Messages Carefully - Stack traces, line numbers, error codes
- Reproduce Consistently - Exact steps, every time?
- Check Recent Changes - Git diff, new deps, config changes
- Gather Evidence in Multi-Component Systems - Log data at each component boundary, run once, analyze WHERE it breaks
Phase 2: Pattern Analysis
- Find Working Examples - Similar working code in same codebase
- Compare Against References - Read reference implementation COMPLETELY
- Identify Differences - List every difference, however small
Phase 3: Hypothesis and Testing
- Form Single Hypothesis - "I think X is the root cause because Y"
- Test Minimally - SMALLEST possible change, one variable at a time
- Verify Before Continuing - Didn't work? Form NEW hypothesis, don't stack fixes
Phase 4: Implementation
- Create Failing Test Case - MUST have before fixing
- Implement Single Fix - ONE change at a time, no "while I'm here" improvements
- Verify Fix - Test passes? No other tests broken?
- If 3+ Fixes Failed - STOP. Question the architecture, discuss with human partner
Red Flags - STOP and Return to Phase 1
- "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
- Each fix reveals new problem in different place
Quick Reference
| Phase | Key Activity | Success Criteria |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, check changes | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です