← スキル一覧に戻る

systematic-debugging
by mway
⭐ 4🍴 0📅 2026年1月22日
SKILL.md
name: systematic-debugging description: Use when encountering bugs, test failures, unexpected behavior, or performance issues before proposing fixes. allowed-tools: ["shell", "read_file", "apply_patch", "update_plan"] metadata: short-description: Root-cause-first debugging workflow
Systematic Debugging
Read these references:
~/.config/agent/core/behavior.md- Evidence-based reasoning~/.config/agent/core/methodology.md- Problem-solving framework~/.config/agent/domain/testing/unit.md- Test strategy
Overview
Random fixes waste time. Always find the root cause before fixing symptoms.
Core principle: Root-cause investigation before fixes.
The Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Phase 1: Root Cause Investigation
- Read errors carefully (stack traces, line numbers, error codes)
- Reproduce consistently (steps, frequency, exact conditions)
- Check recent changes (diffs, dependency changes, env changes)
- Gather evidence across boundaries (log inputs/outputs between layers)
- Trace data flow (use
root-cause-tracing.md)
Phase 2: Pattern Analysis
- Find working examples in the codebase
- Compare against references completely
- List every difference (no assumptions)
- Identify dependencies and assumptions
Phase 3: Hypothesis & Testing
- Form a single, explicit hypothesis
- Test minimally (one variable at a time)
- Verify before proceeding
- If uncertain, pause and ask
Phase 4: Implementation
- Create a failing repro test when feasible
- Prefer automated tests; one-off scripts if needed
- If strict TDD is required, invoke
tdd-enforce
- Implement a single fix for the root cause
- Verify the fix (re-run tests, check regressions)
- If 3+ fixes fail, stop and question architecture
Red Flags — STOP
- “Quick fix now, investigate later”
- Multiple fixes at once
- Guessing without evidence
- Skipping the repro test when feasible
Supporting Techniques
root-cause-tracing.md- Trace bugs backward to sourcedefense-in-depth.md- Layered validation after root cause foundcondition-based-waiting.md- Replace arbitrary sleeps with conditions
Arguments
Target: ${ARGUMENTS}
スコア
総合スコア
40/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
レビュー
💬
レビュー機能は近日公開予定です