debug

debug is a skill for Claude Code from Tradebaas/Groundwork. It costs 0 tokens per session (754 once invoked), scanned A, original, MIT.

A step-by-step method for finding the root cause of a bug, crash, failing test, or incorrect result. It starts by reproducing the problem and ends by proving the fix with a regression test, which checks that the same bug does not return.

In plain words
What is it for?
Use it to inspect errors, create a minimal reproduction, compare recent changes, test possible causes, and verify the final repair.
Why use it?
It replaces guesses with evidence and helps isolate one cause at a time, especially when an earlier fix did not work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the vibe plugin — 13 skills, 3 agents, 1 hook shipped together

Good fit Use it to inspect errors, create a minimal reproduction, compare recent changes, test possible causes, and verify the final repair.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tradebaas/groundwork/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 Tradebaas/Groundwork --skill debug
Clone the repo
git clone --depth 1 https://github.com/Tradebaas/Groundwork

Made for: Claude Code.

Or install vibe, the plugin that ships this one along with the rest of its 13 skills, 3 agents, 1 hook.

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/tradebaas/groundwork/debug/github.svg)](https://agentmods.dev/skills/tradebaas/groundwork/debug)
Your own site
<a href="https://agentmods.dev/skills/tradebaas/groundwork/debug"><img src="https://agentmods.dev/badge/skills/tradebaas/groundwork/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/tradebaas/groundwork/debug"><img src="https://agentmods.dev/badge/skills/tradebaas/groundwork/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 754 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.00000 $0.00754
Opus 5.5 $0.00000 $0.00302
Sonnet 5.5 $0.00000 $0.00151
Haiku 4.5 $0.00000 $0.00075

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

plugins/vibe/skills/debug/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

debug: from symptom to proven root cause

A fix you never saw fail is a guess (verify). This loop turns an unknown failure into a proven fix at the lowest cost. Production incident? Stabilize first per maintain (rollback beats diagnosis under fire), then run this loop calmly.

The loop

  1. Read the actual error. The message, the stack, the failing line. Capture expected vs actual behavior verbatim before touching anything: the error usually says more than the first theory about it.
  2. Reproduce before fixing. A failing automated test at the nearest seam is the goal; a minimal script is the fallback. Shrink the repro until removing anything makes the bug disappear. What you cannot reproduce you cannot fix, only disturb.
  3. Check what changed. Most bugs live in the newest diff: recent commits, dependency bumps, config or environment changes. git bisect beats rereading the whole system.
  4. Hypothesize, test one change at a time. Rank hypotheses by likelihood and cost of testing; each experiment changes exactly one thing and names its predicted outcome before running. Two simultaneous changes make the result unreadable. Read the evidence at arm's length: a failing suite or a log enters the context as its failures and counts (tail, grep, or a subagent), never whole, or the third experiment runs in a context the first two filled. Expect horses, not zebras: the common cause outranks the exotic one until evidence says otherwise.
  5. Fix the root cause, once. The fix goes where the cause lives, not where the symptom showed (decision ladder in docs/standards/GLOBAL.md: understand, then fix the cause once). A symptom patch that leaves the cause in place is not progress, and per debug hygiene a change that demonstrably fixed nothing gets reverted, not left in.
  6. Prove and clean. The repro test passes and stays as the regression test; every debug shim (prints, sleeps, forced branches, commented-out calls) is removed; the full gate chain runs green.

Read the full file on GitHub · 52 lines

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. 6d ago Changed d63eaf9dcf99
  2. 1mo ago Changed · +2 lines ba6c1121ce98
  3. 1mo ago First seen · 50 lines · 0 tokens per session scan A b688bc746995

Subscribe to this mod's changes

debug is a skill published in the GitHub repository Tradebaas/Groundwork (2 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 754 tokens. 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

testing

Skill validation framework PLUS daily test-suite health and regression intelligence. Validates skill conformance (frontmatter, manifest coverage, resolver coverage). Runs the project test suite in tiered phases (unit / evals / integration / system health), classifies failures, and produces a regression-aware report.

garrytan/gbrain · 63 tokens

verify

Verify that a change really works before you claim completion.

Yeachan-Heo/oh-my-claudecode · 12 tokens

detect-static-dependencies

ACTIVATION PREREQUISITE: the request or discovered target must explicitly identify C#, .NET, .cs, or .csproj; otherwise stay dormant without invoking this skill. USE FOR: locating System.DateTime.Now/UtcNow, System.IO.File/Directory, System.Environment, HttpClient, Console, or Process usage in C#; auditing C# code for…

dotnet/skills · 135 tokens

dart-downstream-fix

DART Downstream Fix: fix a DART bug reported through gz-physics or Gazebo.

dartsim/dart · 25 tokens

testing-blocks

Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.

adobe/skills · 61 tokens

experiment-iterative-coder

Iterative code refinement through plan → code → evaluate → refine cycles. Runs lint checks (ruff), tests (pytest), and structured self-evaluation each cycle, then diagnoses failures and refines. Decomposes complex tasks into sequential phases, iterates up to 3 times per phase (10 total). Use when: the main agent…

EvoScientist/EvoSkills · 145 tokens