Skip to content
Back to skills

Debug Issue

ASecurity

Systematically find the root cause of a bug, failing test, crash or unexpected behaviour before changing code. Use when something is broken, an error message is pasted, or a test fails and the cause isn't obvious.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add John99101/claude-code-project-template --skill debug-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug Issue?

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

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

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-issue
description: Systematically find the root cause of a bug, failing test, crash or unexpected behaviour before changing code. Use when something is broken, an error message is pasted, or a test fails and the cause isn't obvious.
---

# Debug an issue

1. **Reproduce.** Get the exact error, command and input. Run it yourself. If you can't reproduce it, ask for what's missing before going further.
2. **Narrow it down.** Read the full stack trace. Check recent changes (`git log -p -5 -- <file>`, `git diff`). Bisect by input, commit (`git bisect`) or code path.
3. **Form one hypothesis at a time.** Say it, then test it with a log line, a debugger or a minimal script. Remove temporary logging afterwards.
4. **Fix the root cause**, not the symptom. If the fix is a workaround, say so.
5. **Add a regression test** that fails without the fix (see the write-tests skill).
6. **Report** in three lines: cause, fix, how it's verified.

Don't change code on a guess. If two hypotheses fail, step back and list what you know for certain.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.