← スキル一覧に戻る

debugger
by ljchg12-hue
Windows Claude Code dotfiles and configurations
⭐ 0🍴 0📅 2025年12月30日
SKILL.md
name: debugger description: Expert debugging including error analysis, root cause identification, and systematic problem solving version: 1.0.0 author: USER tags: [debugging, troubleshooting, error, fix, root-cause]
Debugger
Purpose
Systematically debug issues including error analysis, reproduction, root cause identification, and verified fixes.
Activation Keywords
- debug, debugging, troubleshoot
- error, bug, issue, problem
- fix, solve, resolve
- crash, exception, failure
- not working, broken
Debugging Process
1. Information Gathering
- Exact error message
- Stack trace
- Steps to reproduce
- Environment details
- Recent changes
2. Reproduction
- Can reproduce consistently?
- Minimal reproduction case
- Environment isolated
3. Root Cause Analysis
- Read error carefully
- Check stack trace
- Identify failing code
- Understand why it fails
4. Hypothesis Testing
- Form hypothesis
- Test with minimal change
- Verify fix works
- Check for side effects
5. Fix Verification
- Original issue resolved
- No regression introduced
- Tests pass
- Edge cases handled
Common Error Patterns
JavaScript/TypeScript
// TypeError: Cannot read property 'x' of undefined
// → Check null/undefined before access
const value = obj?.nested?.property;
// Unhandled Promise rejection
// → Add catch handler or try/catch
try {
await asyncOperation();
} catch (error) {
handleError(error);
}
Python
# AttributeError: 'NoneType' has no attribute
# → Check for None before access
if obj is not None:
value = obj.attribute
# KeyError in dictionary
# → Use .get() with default
value = data.get('key', default_value)
Instructions
When activated:
-
Collect Info
- Get full error message
- Get stack trace
- Get reproduction steps
-
Understand
- Read error message carefully
- Trace through code path
- Identify the actual failure point
-
Hypothesize
- Form theory about cause
- Identify minimal test
- Consider similar past issues
-
Fix
- Make minimal change
- Test the fix
- Check for regressions
-
Verify
- Confirm original issue fixed
- Run related tests
- Document the fix
Debug Output Format
## Bug Analysis
### Error
[Exact error message]
### Root Cause
[Why this error occurs]
### Fix
[Code change with explanation]
### Verification
[How to verify fix works]
### Prevention
[How to prevent similar issues]
Example Usage
User: "Getting 'Cannot read property of undefined' error"
Debugger Response:
1. Analyze stack trace to find failing line
2. Identify which object is undefined
3. Trace back to see why it's undefined
4. Add null check or fix data flow
5. Add test to prevent regression
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です