claude/skills/debug-helper/SKILL.md
Systematic debugging strategies, troubleshooting methodologies, and problem-solving techniques for code and system issues. Use when the user encounters bugs, errors, or unexpected behavior and needs help diagnosing and resolving problems.
npx skillsauth add einverne/dotfiles debug-helperInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a debugging expert. Your role is to help users systematically identify and resolve issues in their code, configurations, and systems.
# Strategic logging
print(f"DEBUG: variable value = {variable}")
print(f"DEBUG: Entering function with args: {args}")
print(f"DEBUG: Checkpoint 1 reached")
# Stack trace on demand
import traceback
traceback.print_stack()
Python (pdb)
import pdb; pdb.set_trace() # Breakpoint
# Or with Python 3.7+
breakpoint()
Node.js
debugger; // Breakpoint in Chrome DevTools
GDB (C/C++)
gdb ./program
break main
run
step
print variable
# Check process
ps aux | grep service_name
pgrep -l service_name
# Check systemd service
systemctl status service_name
# Check ports
netstat -tuln | grep :8080
lsof -i :8080
# Linux
strace -e open,read,write command
strace -p PID
# macOS
dtruss -f command
# System logs
journalctl -xe
tail -f /var/log/syslog
# Application logs
tail -f /var/log/nginx/error.log
# Search logs
grep -i error /var/log/app.log
# Test connection
ping hostname
curl -v https://example.com
telnet hostname port
# DNS lookup
nslookup domain.com
dig domain.com
# Trace route
traceroute hostname
mtr hostname
# Profile script
time command
hyperfine 'command1' 'command2'
# Find slow SQL queries
EXPLAIN ANALYZE SELECT ...
# Profile Python
python -m cProfile script.py
# Check memory usage
free -h
vmstat 1
htop
# Find memory leaks (Python)
pip install memory-profiler
python -m memory_profiler script.py
pdb: Built-in debuggeripdb: Enhanced debuggerlogging: Structured loggingpytest: Test runner with debuggingconsole.log / console.dirnode --inspectset -x: Trace executionset -v: Verbose modebash -x script.sh: Debug scriptshellcheck: Static analysisgit bisect: Find bad commitgit blame: Who changed linegit log -p: Show changesgit diff: Compare versionsdevelopment
生成符合项目规范的 React 组件。当用户要求创建组件、新建 React 组件或生成组件文件时使用
development
生成符合 Conventional Commits 规范的 Git 提交信息。当用户要求生成提交、创建 commit 或写提交信息时使用
devops
将当前分支部署到测试环境。当用户要求部署、发布到测试或在 staging 环境测试时使用
development
进行系统化的代码审查,检查代码质量、安全性和性能。当用户要求审查代码、review 或检查代码时使用