Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install debuggingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/melodic-software/claude-code-plugins/debug)<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/debug"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/debug/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/debug"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00089 | $0.08733 |
| Opus 5.5 | $0.00036 | $0.03493 |
| Sonnet 5.5 | $0.00018 | $0.01747 |
| Haiku 4.5 | $0.00009 | $0.00873 |
Grade A, and why
debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 441 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug
Arguments. [diagnose] [--unattended] [bug description or observation]. e.g., /debugging:debug photo uploads over 20 MB fail with a 502, or /debugging:debug diagnose photo uploads over 20 MB fail with a 502
Variables
Arguments: $ARGUMENTS
--unattended, anywhere in the arguments, is not part of the observation: it is the caller declaring that nobody is
present, which governs the /debug offer under "Routing", the access requests of the Phase 1 surface pass, and the
tracker drafts of Phase 6, which are reported and never filed. Take it out before reading the rest. It is the one flag: any other -- token is part of the observation, such as a CLI option
that fails.
| Action | Selected by | What runs |
|---|---|---|
debug (bare) |
no action word | All six phases: the full loop ends in a fix with its regression test |
diagnose |
diagnose as the first word, or a request in plain words for the cause only ("diagnose this", "just tell me why", "don't fix it") |
See Action: diagnose |
Any first word other than diagnose is part of the observation.
Action: diagnose
A diagnosis detects and isolates the fault; it does not correct it. Run Phases 1 to 4, then stop once one Phase 3 row is confirmed. The report gives the cause at file:line, the loop command, and the loop output that confirms the row. Before reporting, remove every Phase 4 probe (the first group of Phase 6, "Remove what the run added") and change no other code: no fix, no regression test. Phase 5 and the rest of Phase 6 do not run, except that the report carries any lessons about driving the app (Phase 6, "Leave a record"). The loop command stays in the report so the fix that follows can reuse it: a loop file this run wrote is kept only in a directory named as scratch and the report names its path, so no test is left in the project's test tree.
Purpose
This skill turns a reported failure into a command that answers one question, "is the bug still here?", and then uses that command as the judge for every later step. The six phases below each end in a gate. How well Phase 1 goes decides most of the outcome: with a quick, repeatable check that an agent can run unattended, Phases 3 to 5 become routine work; without one, every hypothesis is a guess. The usual way a debugging session goes wrong is starting on causes before any such check exists. Phase 1 and Phase 6 (the check, and the cleanup that removes what the run added) carry the weight; the three phases between them follow from the check.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +7 lines 7dd1373622eb
- yesterday Changed · -21 lines 461923242b04
- 3d ago Changed dd145f8c9368
- 5d ago Changed · -14 tokens per session 1a261e6b0dcc
- 6d ago Changed · -112 tokens per session 97fe2396717a
- 8d ago Changed 36d43f52b389
- 9d ago Changed · +3 lines f0252d6857ff
- 10d ago Changed · -9 lines 7f98ad1e1652
- 15d ago Changed 5d0faa025ff1
- 16d ago First seen · 461 lines · 215 tokens per session scan A a75358e90447
debug is a skill published in the GitHub repository melodic-software/claude-code-plugins (34 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 8,733 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
debug compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugmelodic-software/claude-code-plugins | Skill | 34 | today | MIT | A | 89 | Claude Code |
| adversarial-analysisjimmc414/claude-code-plugin-marketplace | Skill | 4 | today | MIT | A | 37 | Claude Code |
| benchmark-before-optimizejimmc414/claude-code-plugin-marketplace | Skill | 4 | today | MIT | A | 25 | Claude Code |
| display-grid-statejimmc414/claude-code-plugin-marketplace | Skill | 4 | today | MIT | A | 25 | Claude Code |
| handle-edge-casesjimmc414/claude-code-plugin-marketplace | Skill | 4 | today | MIT | A | 27 | Claude Code |
| validate-before-processjimmc414/claude-code-plugin-marketplace | Skill | 4 | today | MIT | A | 24 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |