Skip to content
Back to skills

Debug

ASecurity

Troubleshoot and debug issues. Use when the user reports an error, a test failure, unexpected behavior, or asks to investigate why something isn't working.

  • 36 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
researchbashgit

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add NVlabs/Skill2Env --skill debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug?

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

Security grade badge for Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvlabs-debug/badge)](https://www.skillsdirectory.com/skills/nvlabs-debug)

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: debug
description: Troubleshoot and debug issues. Use when the user reports an error, a test failure, unexpected behavior, or asks to investigate why something isn't working.
allowed-tools: Bash, Read, Grep, Glob
---

# Debug

Help diagnose and troubleshoot the described issue or the most recent error.

## Steps

1. **Understand the problem**
   - Read any error messages or stack traces mentioned
   - Ask clarifying questions if the problem description is vague
   - Check recent git changes that might have caused the issue: `git diff HEAD~3`

2. **Reproduce**
   - If there's a failing test, run it to see the exact error
   - If it's a runtime issue, try to reproduce with minimal steps

3. **Investigate**
   - Find the relevant source files using the stack trace or error message
   - Trace the code path that leads to the error
   - Check for common issues:
     - Typos in variable or function names
     - Wrong types or missing type conversions
     - Missing imports or dependencies
     - Race conditions or async issues
     - Environment differences (missing env vars, wrong paths)
     - Recent changes that broke assumptions

4. **Form a hypothesis and verify**
   - State what you think the root cause is
   - Find evidence in the code that supports or refutes it
   - If needed, add targeted logging to narrow down the issue

5. **Report findings**
   - Root cause explanation (why it broke, not just what broke)
   - Suggested fix with specific code changes
   - How to prevent similar issues in the future

Do NOT make changes unless explicitly asked — diagnose and explain first. The user should decide whether and how to fix it.

$ARGUMENTS

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…