Skip to content
Back to skills

Debug Error

ASecurity

Finds the root cause of an error message or stack trace in your code, shows the evidence and proposes a minimal fix.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill debug-error --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug Error?

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

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

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-error
description: Finds the root cause of an error message or stack trace in your code, shows the evidence and proposes a minimal fix.
argument-hint: "<error message or stack trace>"
user-invocable: true
disable-model-invocation: true
---

Debug this error: $ARGUMENTS

1. Read the message and trace. Ignore framework and library frames; find the first frame inside this repository and open that file around the line.
2. Search the repo for the exact message text to see where it is raised, and check recent changes to those files with `git log -n 5 --oneline -- <file>`.
3. Write down two or three hypotheses ranked by likelihood. For each, name a quick check: print a value, read a config, run a failing test, query a log.
4. Run the cheapest checks. Do not change code to test a theory unless you can revert it at once.
5. Identify the root cause. Distinguish the line that crashed from the line that put bad data in place.
6. Propose the smallest fix and a test that would have caught it.

Report: **Cause** (one sentence), **Evidence** (file:line and what you saw), **Fix** (diff), **Test**. If you cannot reproduce or confirm the cause, say which information is missing instead of guessing. Ask "Apply this fix?" before editing.

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.