ds-debug

ds-debug is a skill for Claude Code, Codex from sungurerdim/dev-skills. It costs 65 tokens per session (3,445 once invoked), scanned A, original, MIT.

A debugging workflow that reproduces a failure, narrows down its cause, tests possible explanations, applies a small fix, and verifies a regression test. A regression test checks that a fixed bug does not return.

In plain words
What is it for?
Use it when tests or continuous integration checks fail, software crashes, or a feature returns the wrong result and the cause is unknown.
Why use it?
It replaces guesswork with an observed failure and evidence that the fix addresses it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when tests or continuous integration checks fail, software crashes, or…

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

Made for: Claude Code, Codex.

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 ds-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/sungurerdim/dev-skills/ds-debug.svg)](https://agentmods.dev/skills/sungurerdim/dev-skills/ds-debug)
Your own site
<a href="https://agentmods.dev/skills/sungurerdim/dev-skills/ds-debug"><img src="https://agentmods.dev/badge/skills/sungurerdim/dev-skills/ds-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,445 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.00065 $0.03445
Opus 5 $0.00032 $0.01723
Sonnet 5 $0.00013 $0.00689
Haiku 4.5 $0.00006 $0.00345

Measured 3d ago against content hash 78187a8ebb7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ds-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 3d 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.

ds-debug/SKILL.md · 159 lines

How it starts

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

/ds-debug

"Fix the bug" without a reproduction produces a plausible edit that fixes nothing, a test written after the fact that never went red, and a second incident a week later. This skill starts from an observed failure, narrows it mechanically, tries at most three hypotheses, and ships the smallest fix that turns the regression test from red to green.

Bug Hunter — reproduce → localize → hypothesize (≤ 3) → minimal fix → red-proven regression test → done gate.

Completion Evidence — applies to every phase: Report done/OK only with the machine-checkable evidence the gates name — the exact command run and its observed output (or file:line diff). Missing evidence → report INCOMPLETE plus what is missing. Self-assessment is never evidence. (This band repeats at file end by design — both copies are normative.)

Triggers

  • User runs /ds-debug
  • User reports a failure: "this test fails", "X returns the wrong value", "it crashes when…", "fix bug #N"
  • A ds-build unit stays red after its approaches are exhausted and hands the diagnosis here
  • CI or a check is red and the cause is unknown

Triggers — INVOKE / DON'T INVOKE

INVOKE DON'T INVOKE
"why does parseMoney('1,234') return NaN — fix it" "review the code for bugs in general" (→ ds-review)
"the test suite went red after the last commit" "make the tests pass" by editing assertions (never — that is test weakening)
"reproduce and fix issue #7" "implement feature #8" (→ ds-build)
"flaky test in CI" "optimize this slow function" (→ ds-review --perf or ds-tune)
"crash on startup in production" "set up error monitoring" (→ ds-deploy)

Contract

Dimensions: none (carrier)

  • Fixes the observed failure and nothing else; unrelated defects found on the way become findings with a disposition, never silent edits.
  • Standalone. Reads the repo, its tests, logs and git history; web lookups only under --research (ds-research when present, inline search otherwise), each fact cited.
  • Full accounting enforced: every finding and planned check ends in an explicit disposition (fixed / skipped + reason / only you can do); summary totals balance.
  • Pre-existing / out-of-scope errors detected during work are NOT skipped — fixed inline or escalated with concrete blocker.
  • The red comes first. No edit before the failure is reproduced by a command whose output is pasted; a report that cannot be reproduced ends as not reproduced with what was tried — never as a speculative fix.
  • Tests are never weakened. The regression test asserts the intended behavior from the report; an existing test that encodes the bug is corrected to the intended behavior and the change is stated. Assertion strength, expected values and coverage of the failing path never shrink.
  • Checkpoint (../core/checkpoint-protocol.md): git status --porcelain before the first write; a dirty path the fix would touch → only you can do (commit or stash first); experiments are reverted per file with git checkout -- {file}, never a tree-wide reset. git bisect runs only on a clean tree and always ends with git bisect reset.
  • Mechanical Done Gate: {check-cmd} (ds-quality arm when installed, else the stack-native chain from ../core/toolchains.md) captured at baseline, re-run after the fix and once before close; new red → fix ≤ 3 attempts, then revert and record; baseline red reported red-at-baseline; no tooling → Verification-Infrastructure Gap surfaced.
  • Hypothesis budget: at most three hypotheses, each with a prediction, the test that would falsify it, and the observed result; a fourth is not tried — the run reports the three falsifications and stops with options.
  • Publishing (push, PR, release) is never done here — only you can do with the command (../core/ask-exception-list.md). State-exempt: the failing test, the commit and the issue are the durable record.

Read the full file on GitHub · 159 lines

Files

What ships with it

1 file 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. 3d ago First seen · 159 lines · 65 tokens per session scan A 78187a8ebb7d

Subscribe to this mod's changes

ds-debug is a skill published in the GitHub repository sungurerdim/dev-skills (1 stars, last pushed 3d ago), licensed MIT. It adds 65 tokens to every session and 3,445 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

ring:test-driven-development

Enforcing the RED-GREEN-REFACTOR loop: write one failing test and watch it fail, write minimal code to pass, then refactor green. Use when starting implementation of a new feature or bugfix, or writing any new production code. Requires pasted failure output as proof of RED; code written before its test must be…

LerianStudio/ring · 89 tokens

ring:detecting-goroutine-leaks

Detecting goroutine leaks in Go: greps for goroutine patterns, audits goleak coverage (VerifyTestMain/VerifyNone), runs goleak, and dispatches ring:backend-go to fix leaks and add regression tests. Use after implementation or during review when code spawns goroutines or a leak is suspected. Runs before…

LerianStudio/ring · 109 tokens

debug

Systematic bug investigation with a five-phase framework: reproduce, narrow, diagnose, fix, verify. Supports automated regression bisect via --regression flag. Produces a structured debug report with root cause analysis, regression test, and CQ/Q self-evaluations.

greglas75/zuvo · 55 tokens

bug-fix

Guided end-to-end bug-fix workflow for Plan Forge tempering bugs — load → pre-fix review → write failing test → fix → validate → post-fix sweep → close. Composes /code-review, /clean-code-review, /forge-quench, and /test-sweep around the forgebug tool surface so a fix never closes without a regression check.

srnichols/plan-forge · 80 tokens

audit-loop

Run a recursive audit drain loop — discover findings from the running system, triage each into bug/spec/classifier lanes, repeat until convergence. USE FOR: end-to-end audit of a deployed or locally-running app, draining findings to zero. DO NOT USE FOR: single-shot tempering runs (use forgetemperingrun), one-off bug…

srnichols/plan-forge · 100 tokens

edge-case-hunter

Focuses specifically on unusual inputs, boundary conditions, empty states, and unexpected user behavior that implementations commonly miss. Use to find what a normal test pass would skip over.

codebygarv/Ai-skills · 39 tokens