debug

debug is a skill for Claude Code from MichaelYcJo/SpecSeal. It costs 77 tokens per session (439 once invoked), scanned A, original, MIT.

A step-by-step method for finding the cause of a bug, meaning code that runs but produces the wrong result. It uses reproduction, one hypothesis at a time, a failing test, and verification after the fix.

In plain words
What is it for?
Use it when a test fails or running code behaves incorrectly, including reproducing the issue and checking that other tests still pass.
Why use it?
It avoids random changes that can hide the real cause or make it unclear which change solved the problem.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the specseal plugin — 22 skills, 5 agents, 4 hooks shipped together

Good fit Use it when a test fails or running code behaves incorrectly, including reproducing the issue and checking that other tests still pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michaelycjo/specseal/debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MichaelYcJo/SpecSeal --skill debug
Clone the repo
git clone --depth 1 https://github.com/MichaelYcJo/SpecSeal

Made for: Claude Code.

Or install specseal, the plugin that ships this one along with the rest of its 22 skills, 5 agents, 4 hooks.

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/michaelycjo/specseal/debug/github.svg)](https://agentmods.dev/skills/michaelycjo/specseal/debug)
Your own site
<a href="https://agentmods.dev/skills/michaelycjo/specseal/debug"><img src="https://agentmods.dev/badge/skills/michaelycjo/specseal/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/michaelycjo/specseal/debug"><img src="https://agentmods.dev/badge/skills/michaelycjo/specseal/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 439 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.00077 $0.00439
Opus 5.5 $0.00031 $0.00176
Sonnet 5.5 $0.00015 $0.00088
Haiku 4.5 $0.00008 $0.00044

Measured 7d ago against content hash d7e35534587f, 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 7d ago.

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.

skills/debug/SKILL.md · 55 lines

What it actually says

debug, one hypothesis at a time, and a failing test before the fix

The code runs and produces the wrong answer, which means it can be reproduced. A bug that cannot be reproduced cannot be claimed fixed. Changing several things at once destroys the only signal there is: which change mattered.

Phase 1: Understand (before touching code)

  • Read the FULL error message and stack trace
  • Reproduce the issue (write a failing test if possible)
  • Check recent changes that might have caused it
  • Collect evidence: logs, error output, state

Phase 2: Locate

  • Find working examples of similar code in the codebase
  • Compare working and broken code: what is different?
  • Binary search: narrow down the problem area
  • Check inputs and outputs at each boundary

Phase 3: Hypothesize

  • Form ONE hypothesis at a time
  • Design a minimal test to confirm or deny it
  • If it is denied, form a new hypothesis (don't patch the old one)

Phase 4: Fix

  • Write a failing test that reproduces the bug
  • Make the minimal change to fix it
  • Verify: failing test now passes
  • Verify: no other tests broke

Rules

  • Never guess-and-check randomly. Be systematic.
  • One change at a time. Verify after each.
  • If three fix attempts fail, STOP (the 3+ Fix Rule). The problem may be architectural.
  • Document what was tried and what was learned.

Output Format

Bug: [description]
Root cause: [why it happens]
Fix: [what was changed]
Test: [how it's verified]
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. 7d ago Changed d7e35534587f
  2. 2mo ago First seen · 55 lines · 77 tokens per session scan A 582acdb244ae

Subscribe to this mod's changes

debug is a skill published in the GitHub repository MichaelYcJo/SpecSeal (1 stars, last pushed 4d ago), licensed MIT. It adds 77 tokens to every session and 439 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

roslyn-query

Query .NET/C# codebases using Roslyn AST analysis via dotnet run file. Use for tracing data flow, auditing API usage, finding pattern violations, or ad-hoc codebase queries.

NikiforovAll/claude-code-rules · 44 tokens

anti-patterns

Catalogue of known SDLC anti-patterns that greatcto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident).

avelikiy/great_cto · 59 tokens

skeptical-triage

Reusable 3-round self-challenge + arbiter pattern for filtering false positives from findings/verdicts. Use when the cost of a false-positive gate block exceeds the cost of 4 extra LLM turns.

avelikiy/great_cto · 49 tokens

shipyard-debugging

Investigates root cause systematically before any fix is proposed. Use when encountering any bug, test failure, unexpected behavior, or error message. Also use for tracebacks, exceptions, "not working" complaints, build failures, performance problems, or integration issues, and whenever the next step would be to…

lgbarn/shipyard · 72 tokens

codebase-hygiene

Two-mode skill: (1) find semantic duplicates — functions doing the same thing under different names, invisible to copy-paste detectors; (2) deepen shallow modules — thin wrappers and pass-through layers that spread complexity. Advisory and read-only; changes route through BUILD with full gates.

romiluz13/cc10x · 67 tokens