dsh-systematic-debugging

dsh-systematic-debugging is a skill for Claude Code, Codex from xl188/XLSkills. It costs 53 tokens per session (3,556 once invoked), scanned A, original, MIT.

A four-phase method for finding the underlying cause of bugs, failed tests, build failures, and performance problems before changing code.

In plain words
What is it for?
Use it to reproduce a technical problem, gather evidence, test several possible causes, and confirm the final fix. It can also split evidence gathering and hypothesis checks into parallel tasks.
Why use it?
It reduces guesswork and prevents quick patches from hiding the real problem or creating new bugs. It also uses a focused check that proves the reported issue is fixed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/repro_bug.py.

Good fit Use it to reproduce a technical problem, gather evidence, test several possible causes, and confirm the final fix. It can also split evidence gathering and hypothesis checks into parallel tasks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xl188/XLSkills
agentmods
npx agentmods add skills/xl188/xlskills/systematic-debugging

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 dsh-systematic-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/xl188/xlskills/systematic-debugging/github.svg)](https://agentmods.dev/skills/xl188/xlskills/systematic-debugging)
Your own site
<a href="https://agentmods.dev/skills/xl188/xlskills/systematic-debugging"><img src="https://agentmods.dev/badge/skills/xl188/xlskills/systematic-debugging/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 dsh-systematic-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/xl188/xlskills/systematic-debugging"><img src="https://agentmods.dev/badge/skills/xl188/xlskills/systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00053 $0.03556
Opus 5.5 $0.00021 $0.01422
Sonnet 5.5 $0.00011 $0.00711
Haiku 4.5 $0.00005 $0.00356

Measured 1mo ago against content hash a5ae980c98bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsh-systematic-debugging scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. HTTP 脚本 / curl 打 dev server
dsh/systematic-debugging/SKILL.md · 285 lines

How it starts

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

Systematic Debugging(DSH 版)

Random fixes waste time and create new bugs. Quick patches mask underlying issues.

Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.

Violating the letter of this process is violating the spirit of debugging.

与 Hermes 版的关系:四阶段、铁律、red flags 同源。工具换为 DSH(read / grep / glob / pwsh / subagent / job_*),并新增并行化:证据收集、假设验证可多路并行(DSH 同一条消息多 subagent 并行 + 后台任务不占并发槽)。

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

If you haven't completed Phase 1, you cannot propose fixes.

The Feedback Loop Rule

The feedback loop is the debugging work. Before reading code to build a theory, create or identify a tight command that can go red on the user's exact symptom and green when the bug is fixed. A tight loop is fast, deterministic, agent-runnable, and specific enough to catch this bug — not merely "doesn't crash".

When a clean repro is hard, spend disproportionate effort building the loop. Guessing without a red-capable loop is the failure mode this skill exists to prevent.

When to Use

Use for ANY technical issue:

  • Test failures / Bugs in production / Unexpected behavior
  • Performance problems / Build failures / Integration issues

Use this ESPECIALLY when:

  • Under time pressure (emergencies make guessing tempting)
  • "Just one quick fix" seems obvious
  • You've already tried multiple fixes
  • Previous fix didn't work
  • You don't fully understand the issue

Don't skip when:

  • Issue seems simple (simple bugs have root causes too)
  • You're in a hurry (rushing guarantees rework)
  • Someone wants it fixed NOW (systematic is faster than thrashing)

The Four Phases

You MUST complete each phase before proceeding to the next.

Phase 1: Root Cause Investigation

BEFORE attempting ANY fix:

1. Read Error Messages Carefully

  • Don't skip past errors or warnings;完整读栈、行号、文件路径、错误码
  • Action: 用 read 读相关源文件;用 grep 在代码库搜错误串

2. Build a Tight Feedback Loop

Read the full file on GitHub · 285 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. 1mo ago First seen · 285 lines · 53 tokens per session scan A a5ae980c98bf

Subscribe to this mod's changes

dsh-systematic-debugging is a skill published in the GitHub repository xl188/XLSkills (2 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 3,556 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

Diagnose and repair Hermes Agent

Use for diagnosing, repairing or optimizing a Hermes installation, especially after an update, skill-library changes, instruction conflicts, software failures or repeated checkpoint errors; also audit agent claims against retained tool and log evidence. Do not apply as a mandatory preflight for unrelated tasks…

howdeploy/deploychan_mcp · 63 tokens

adhoc-verification

Produce fresh, focused, local verification evidence for a code change without relying on the full test suite. Use when a system reminder (or the user) demands ad-hoc verification after an edit, or when you want to prove one behavior in isolation. Covers the correct way to write a throwaway supertest/harness script…

pedroiff0/awesome-skills · 86 tokens

grill-with-docs

Cross-examine codebase architecture against official library documentation and API specs. Identifies deprecations, anti-patterns, and suboptimal library usage.

pedroiff0/awesome-skills · 36 tokens

frontend-visual-verification

Confirm a CSS/HTML/template change actually rendered in a running browser — without being fooled by stale browser cache. Use whenever you edited frontend code (CSS, EJS/HTML, components) and must verify the visual result, especially when a vision screenshot seems to contradict the DOM or the served asset.

pedroiff0/awesome-skills · 66 tokens

skill-auditor

Use when auditing Hermes skills for broken references.

frgmstr/hermes-manager · 14 tokens

systematic-debugging

4-phase root cause debugging: understand bugs before fixing.

RobinBeraud/hermes-skills · 16 tokens