bug-hunter
Investigate and fix bugs systematically. Use when debugging issues or tracing errors.
📖 中文导读:Investigate and fix bugs systematically. Use when debugging issues or tracing errors. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: bug-hunter description: Investigate and fix bugs systematically. Use when debugging issues or tracing errors. allowed-tools: Bash, Read, Grep, Glob
Bug Hunter
Version: 1.0.0 Purpose: Systematic bug investigation and resolution
Workflow
Step 1: Reproduce
# Run failing test/command
npm test
Document:
- Expected behavior
- Actual behavior
- Error message
Step 2: Locate
# Search for error
grep -r "error message" src/
Step 3: Trace
- Find error origin
- Trace call stack
- Identify root cause
Step 4: Fix
- Write failing test
- Implement fix
- Verify test passes
Step 5: Document
## Bug Fix Report
**Issue**: [Description]
**Root Cause**: [Explanation]
**Fix**: [What was changed]
**Test**: [How to verify]
Tips
- Check recent commits:
git log --oneline -20 - Look for similar issues:
git log --grep="bug" - Binary search:
git bisect