debug

A method for finding the root cause of failures, crashes, incorrect results, flaky tests, and regressions.

In plain words
What is it for?
Use it to reproduce a bug, reduce it to a small case, locate the responsible component or line, and report whether a fix was made.
Why use it?
It prevents treating symptoms as the cause or changing code before the problem has been reproduced and narrowed down.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hmbown/codewhale/debug
Any agent
npx skills add Hmbown/CodeWhale --skill debug
Clone the repo
git clone --depth 1 https://github.com/Hmbown/CodeWhale

Made for: Claude Code, Codex.

Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 183 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00030 $0.00183
Opus 5 $0.00015 $0.00092
Sonnet 5 $0.00006 $0.00037
Haiku 4.5 $0.00003 $0.00018

Measured yesterday against content hash 34d6d926aba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

crates/tui/assets/skills/debug/SKILL.md · 29 lines

What it actually says

Debug

When to use

Use for failures, flakes, wrong outputs, crashes, and regressions.

Non-goals

  • Do not jump to a fix before reproduction/localization when the bug is unclear.
  • Do not treat “run all tests” as debugging by default.

Workflow

  1. Reproduce or gather the strongest available failure signal.
  2. Minimize the case.
  3. Localize to component/file/line.
  4. State root cause vs symptoms.
  5. Fix only when authorized; otherwise hand back a diagnosis with evidence.

Output shape

  • Symptom
  • Reproduction
  • Localization
  • Root cause
  • Fix status / next step
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. yesterday First seen · 29 lines · 30 tokens per session scan A 34d6d926aba2

Subscribe to this mod's changes

debug is a skill published in the GitHub repository Hmbown/CodeWhale (40,867 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 183 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

Session Monitoring

Provides awareness of claudectl session state, health checks, and cost tracking. Activated when the user asks about session health, spending, brain decisions, or multi-session coordination.

mercurialsolo/claudectl · 38 tokens

translate-it-doc-en-zh

Translate English IT and software engineering documents into professional, accurate Chinese. Use when user provides English technical documentation, API docs, README, design docs, RFCs, or source code comments and asks for Chinese translation. Prioritize correctness, standard IT terminology, and engineering-style…

mxsm/rocketmq-rust · 62 tokens

figma-implement-design

Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via…

warpdotdev/warp · 81 tokens

json-ui

CRITICAL: Use for json-ui component rendering and development. Triggers on: json-ui, json render, component catalog, report render, HTML report, I18nString, i18n, bilingual, language switch, dual language, PaperHeader, AuthorList, Abstract, MetricsGrid, Section, Highlight, Zod schema, catalog.ts, cli.ts…

actionbook/actionbook · 118 tokens

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens

lingtai-tui-help

Anything you need to know about LingTai TUI. Read this first for the stable mental model, major-feature map, interface and slash-command help, or the correct source/manual route for a TUI question. It stays thin: exact command prose lives in the localized help assets, precise Go structure lives in lingtai-tui-anatomy…

Lingtai-AI/lingtai · 106 tokens