debug

debug is a skill for Claude Code from sd0xdev/sd0x-harness. It costs 67 tokens per session (2,473 once invoked), scanned A, original, MIT.

An interactive debugging workflow that tests possible causes of unknown bugs through focused probes.

In plain words
What is it for?
It helps troubleshoot script errors, silent failures, and other unknown problems, producing a probe record, root-cause explanation, fix, and verification report.
Why use it?
It replaces guesswork with a recorded process for reproducing failures, narrowing down the root cause, and checking the fix.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Input: /debug bash scripts/deploy.sh 回傳 exit code 1.

Part of the sd0x-dev-flow plugin — 101 skills, 16 agents, 5 hooks shipped together

Good fit It helps troubleshoot script errors, silent failures, and other unknown problems, producing a probe record, root-cause explanation, fix, and verification report.

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/sd0xdev/sd0x-harness
agentmods
npx agentmods add skills/sd0xdev/sd0x-harness/debug

Made for: Claude Code.

Or install sd0x-dev-flow, the plugin that ships this one along with the rest of its 101 skills, 16 agents, 5 hooks.

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/sd0xdev/sd0x-harness/debug/github.svg)](https://agentmods.dev/skills/sd0xdev/sd0x-harness/debug)
Your own site
<a href="https://agentmods.dev/skills/sd0xdev/sd0x-harness/debug"><img src="https://agentmods.dev/badge/skills/sd0xdev/sd0x-harness/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/sd0xdev/sd0x-harness/debug"><img src="https://agentmods.dev/badge/skills/sd0xdev/sd0x-harness/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,473 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 108
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 129
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00067 $0.02473
Opus 5.5 $0.00027 $0.00989
Sonnet 5.5 $0.00013 $0.00495
Haiku 4.5 $0.00007 $0.00247

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

| Read-first default | 預設探測為唯讀:`cat`, `curl -s`, `grep`, `ls`, `git log` |
skills/debug/SKILL.md · 243 lines

How it starts

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

Debug Skill

Trigger

  • Keywords: debug, 除錯, troubleshoot, diagnose, 查問題, 找 bug, 為什麼不動, 為什麼不 work, something wrong, not working

When NOT to Use

Scenario Alternative
GitHub Issue / PR thread 分析 /issue-analyze
已知根因、直接修復 /bug-fix
理解程式碼如何運作 /code-explore
需要雙視角確認邏輯 /code-investigate
部署後唯讀功能驗證 /feature-verify

Prohibited Actions

❌ git add | git commit | git push — per @rules/git-workflow.md

This skill debugs and may fix code but does not commit. /precommit is a quality gate only. To commit, offer the menu per rules/git-workflow.md § Proactive Offer — a commit option on any real branch, a push option only where review-state.js offer allows one — and invoke /smart-commit --execute on selection; never print the command for the user to copy.

Workflow

Phase 0    Phase 1     Phase 2          Phase 3           Phase 4        Phase 5
Intake  →  Classify →  Probe Loop   →   Root Cause    →   Fix +       →  Report
+ Repro    (Taxonomy)  (max 6)          Confirmation      Verify
  │          │           │                 │                │              │
  ▼          ▼           ▼                 ▼                ▼              ▼
Execute    refs/       Bash            /seek-verdict    Edit+test     --export
reproduce  failure-    /codex-         /code-investigate /bug-fix      (optional)
           taxonomy    brainstorm      (optional)

Phase 0: Intake + Reproduce

Step Action Output
0a 解析問題描述(症狀、範圍、環境) 結構化問題描述
0b 嘗試重現(執行命令/腳本) 預期 vs 實際結果
0c 重現成功? Yes → Phase 1 / No → ⚠️ Need Human

Repro Contract: 根因聲稱必須基於可重現的觀察,不可基於靜態推測。

Phase 1: Classify

根據觀察到的失敗模式,使用 Failure Taxonomy 分類並選擇 first-probe 策略。

See references/failure-taxonomy.md for:

  • 6 problem types + detection signals + first-probe commands
  • Classification decision tree
  • Escalation paths

Phase 2: Probe Loop

假設驅動的互動式探測迴圈。See references/probe-protocol.md for full rules.

Read the full file on GitHub · 243 lines

Files

What ships with it

3 files 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. 21d ago Changed cb562a3c47b2
  2. 1mo ago Changed 2509bd60da7b
  3. 1mo ago First seen · 243 lines · 67 tokens per session scan A ebb2bb12a3a1

Subscribe to this mod's changes

debug is a skill published in the GitHub repository sd0xdev/sd0x-harness (193 stars, last pushed 9d ago), licensed MIT. It adds 67 tokens to every session and 2,473 once invoked, about $0.0003 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-30.