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.
npx skills add sungurerdim/dev-skills --skill ds-debuggit clone --depth 1 https://github.com/sungurerdim/dev-skillsWrote 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.
[](https://agentmods.dev/skills/sungurerdim/dev-skills/ds-debug)<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>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.
| Model | Per session | Once 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 |
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.
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/OKonly with the machine-checkable evidence the gates name — the exact command run and its observed output (orfile:linediff). Missing evidence → reportINCOMPLETEplus 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 reproducedwith 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 --porcelainbefore the first write; a dirty path the fix would touch →only you can do(commit or stash first); experiments are reverted per file withgit checkout -- {file}, never a tree-wide reset.git bisectruns only on a clean tree and always ends withgit 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 dowith the command (../core/ask-exception-list.md). State-exempt: the failing test, the commit and the issue are the durable record.
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.
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.
- 3d ago First seen · 159 lines · 65 tokens per session scan A 78187a8ebb7d
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.
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…
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…
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.
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.
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…
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.