Systematic debugging methodology using a 5-phase protocol. Use when troubleshooting code failures, investigating bugs, or analyzing unexpected behavior. Applies 10 proven debugging techniques including binary search, rubber duck, hypothesis-driven, and differential debugging.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/example-1-null-pointer.mdexamples/example-2-race-condition.mdexamples/example-3-memory-leak.mdgraphviz/workflow.dotreadme.mdreferences/best-practices.mdreferences/debugging-methodologies.mdreferences/troubleshooting-guide.mdresources/scripts/binary-search-debug.jsresources/scripts/debug-session-recorder.shresources/scripts/log-analyzer.pyresources/scripts/stack-trace-analyzer.pyresources/templates/debug-checklist.template.mdresources/templates/debug-config.template.jsonresources/templates/logging-config.template.pytests/test-binary-search-debug.jstests/test-log-analyzer.pytests/test-stack-trace-analyzer.pyname: debugging description: Systematic debugging methodology using a 5-phase protocol. Use when troubleshooting code failures, investigating bugs, or analyzing unexpected behavior. Applies 10 proven debugging techniques including binary search, rubber duck, hypothesis-driven, and differential debugging. version: 1.0.0 category: delivery tags:
Systematic debugging through proven methodologies and comprehensive error analysis.
Use when code fails or produces unexpected results, investigating intermittent bugs, analyzing production errors, or debugging complex race conditions and edge cases.
This skill includes production-ready automation scripts in resources/scripts/:
binary-search-debug.js - Automated binary search debugging
node binary-search-debug.js --mode commits --start <hash> --end <hash> --test "npm test"log-analyzer.py - Intelligent log file analysis
python log-analyzer.py --file app.log --format custom --output report.jsonstack-trace-analyzer.py - Stack trace intelligence
python stack-trace-analyzer.py --input error.log or cat trace.txt | python stack-trace-analyzer.py --stdindebug-session-recorder.sh - Debug session management
./debug-session-recorder.sh start --issue BUG-123 then ./debug-session-recorder.sh stopProduction-ready templates in resources/templates/:
debug-config.template.json - VS Code/IDE debug configurations
logging-config.template.py - Comprehensive logging setup
debug-checklist.template.md - Systematic debugging checklist
Comprehensive tests in tests/ directory:
Run tests:
# JavaScript tests
cd tests && npm test
# Python tests
python tests/test-log-analyzer.py
python tests/test-stack-trace-analyzer.py
# Find commit that introduced bug
node resources/scripts/binary-search-debug.js \
--mode commits \
--start HEAD~10 \
--end HEAD \
--test "npm test"
# Find exact line causing issue
node resources/scripts/binary-search-debug.js \
--mode code \
--file src/buggy.js \
--test "node test-script.js"
# Analyze application logs
python resources/scripts/log-analyzer.py \
--file /var/log/app.log \
--format custom \
--output analysis-report.json
# Analyze JSON logs
python resources/scripts/log-analyzer.py \
--file logs/production.json \
--format json
# From file
python resources/scripts/stack-trace-analyzer.py --input crash.log
# From clipboard
python resources/scripts/stack-trace-analyzer.py --clipboard
# From stdin (pipe)
cat error.txt | python resources/scripts/stack-trace-analyzer.py --stdin
# Start session
./resources/scripts/debug-session-recorder.sh start --issue PROJ-456
# Log commands during debugging
./resources/scripts/debug-session-recorder.sh log-command "pytest -vv tests/test_auth.py"
# Capture snapshot
./resources/scripts/debug-session-recorder.sh snapshot
# Stop and generate report
./resources/scripts/debug-session-recorder.sh stop
./resources/scripts/debug-session-recorder.sh report PROJ-456-20240115-103045