Skip to content
Back to skills

Common Debugging

ASecurity

Troubleshoot systematically using the Scientific Method. Use when debugging crashes, tracing errors, diagnosing unexpected behavior, or investigating exceptions.

  • 549 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added June 6, 2026
developmentdebugging

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-debugging/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: common-debugging
description: Troubleshoot systematically using the Scientific Method. Use when debugging crashes, tracing errors, diagnosing unexpected behavior, or investigating exceptions.
metadata:
  triggers:
    keywords:
    - debug
    - fix bug
    - crash
    - error
    - exception
    - troubleshooting
---
# Debugging Expert

## **Priority: P1 (OPERATIONAL)**


## Scientific Method

1. **OBSERVE**: Gather data. What exactly happening?
 - Logs, Stack Traces, Screenshots, Steps to Reproduce.
2. **HYPOTHESIZE**: Formulate theory. "I think X causing Y because Z."
3. **EXPERIMENT**: Test theory.
 - Create reproduction case.
 - Change _one variable at time_ to validate hypothesis.
4. **FIX**: Implement solution once root cause proven.
5. **VERIFY**: Ensure fix works and doesn't introduce regressions.

## Anti-Patterns

- **No shotgun debugging**: Prove root cause before changing code.
- **No debug prints in production**: Remove all print/console.log before commit.
- **No symptom masking**: Fix root cause; never swallow errors without handling.

## Best Practices

- **Diff Diagnosis**: What changed since it last worked?
- **Minimal Repro**: Create smallest possible code snippet that reproduces issue.
- **Rubber Ducking**: Explain code line-by-line to inanimate object (or agent).
- **Binary Search**: Comment out half code to isolate failing section.

## References

- [Bug Report Template](references/bug-report-template.md)

Files in this skill

  • SKILL.md1.4 KB
  • references/bug-report-template.md638 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…