debug

debug is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 89 tokens per session (8,733 once invoked), scanned A, original, MIT.

A six-phase method for diagnosing broken software behaviour: create a repeatable check, reproduce the problem, test possible causes, add measurements, fix it with a regression test, and clean up.

In plain words
What is it for?
It helps investigate interface bugs, unexpected logs, production symptoms, and performance regressions, then verifies the fix does not bring the problem back.
Why use it?
It prevents debugging from becoming guesswork by requiring evidence before choosing a cause or declaring the problem fixed.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the debugging plugin — 2 skills shipped together

Good fit It helps investigate interface bugs, unexpected logs, production symptoms, and performance regressions, then verifies the fix does not bring the problem back.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install debugging

Made for: Claude Code.

Or install debugging, the plugin that ships this one along with the rest of its 2 skills.

Wrote 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.

agentmods badge for debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/debug/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/debug)
Your own site
<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.

agentmods 80×15 button for debug

Your own site · 80×15
<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>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash 7dd1373622eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/hitl-loop.template.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/debugging/skills/debug/SKILL.md · 441 lines

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.

Read the full file on GitHub · 441 lines

Files

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.

Changes

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.

  1. today Changed · +7 lines 7dd1373622eb
  2. yesterday Changed · -21 lines 461923242b04
  3. 3d ago Changed dd145f8c9368
  4. 5d ago Changed · -14 tokens per session 1a261e6b0dcc
  5. 6d ago Changed · -112 tokens per session 97fe2396717a
  6. 8d ago Changed 36d43f52b389
  7. 9d ago Changed · +3 lines f0252d6857ff
  8. 10d ago Changed · -9 lines 7f98ad1e1652
  9. 15d ago Changed 5d0faa025ff1
  10. 16d ago First seen · 461 lines · 215 tokens per session scan A a75358e90447

Subscribe to this mod's changes

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.

Related

debug compared with skills from other repositories

debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugmelodic-software/claude-code-pluginsSkill34todayMITA89Claude Code
adversarial-analysisjimmc414/claude-code-plugin-marketplaceSkill4todayMITA37Claude Code
benchmark-before-optimizejimmc414/claude-code-plugin-marketplaceSkill4todayMITA25Claude Code
display-grid-statejimmc414/claude-code-plugin-marketplaceSkill4todayMITA25Claude Code
handle-edge-casesjimmc414/claude-code-plugin-marketplaceSkill4todayMITA27Claude Code
validate-before-processjimmc414/claude-code-plugin-marketplaceSkill4todayMITA24Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex