Skip to content
Back to skills

Debug

ASecurity

Diagnose a bug with Spadework's bug triager. Finds the root cause and proposes a fix, without applying it.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
developmentnodeapi

Works with

  • api

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add miguelclme/spadework-official --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/miguelclme-debug/badge)](https://www.skillsdirectory.com/skills/miguelclme-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: Diagnose a bug with Spadework's bug triager. Finds the root cause and proposes a fix, without applying it.
argument-hint: "[error message, stack trace, or \"this broke after X\"] | -help"
disable-model-invocation: true
---

# Spadework: debug

If the arguments are `-help` (or start with it), print exactly this and stop:

> **/spadework:debug**: diagnose a bug (doesn't fix it)
> Usage: `/spadework:debug <error, stack trace or description>`
> Example: `/spadework:debug "500 on POST /api/orders after the last deploy"`
> Runs `bug-triager`: confirms the failure, isolates the cause, and proposes a fix for you to review. Never applies it.

Arguments: $ARGUMENTS

1. If no argument was given, ask what's broken (the error, a stack trace, the steps to reproduce) before launching anything. The triager doesn't guess a cause from nothing.
2. **Stack notes**: run `node "${CLAUDE_PLUGIN_ROOT}/scripts/spadework.js" stack` in the current folder.
3. **Code graph**: run `node "${CLAUDE_PLUGIN_ROOT}/scripts/spadework.js" graph --json` in the current folder. Keep `text` and `graph_hint`.
4. Launch `spadework:bug-triager` with the Agent tool. Give it the issue, the Stack notes, `text` under `## Code graph` when it isn't empty, and say this is `/spadework:debug` in the user's repo, so it follows its "In /spadework:debug" part.
5. Show its diagnosis as it is. If the cause turned out to be obvious, say so plainly. Don't apply the fix. If `graph_hint` is set, print it after the diagnosis.

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 development →

Comments

Loading comments…

Newsletter

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