systematic-debugging

systematic-debugging is a skill for Claude Code from Azzygoatcoder/agent-useful-skills. It costs 21 tokens per session (862 once invoked), scanned A, original, MIT.

A debugging process that investigates the root cause of a bug, test failure, or unexpected result before changing code.

In plain words
What is it for?
Use it to reproduce issues, compare working examples, test possible causes, implement a fix, and verify the result.
Why use it?
It reduces repeated fixes that only hide symptoms and may create new problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the superpowers plugin — 9 skills, 1 hook shipped together

Good fit Use it to reproduce issues, compare working examples, test possible causes, implement a fix, and verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/azzygoatcoder/agent-useful-skills/systematic-debugging
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 Azzygoatcoder/agent-useful-skills --skill systematic-debugging
Clone the repo
git clone --depth 1 https://github.com/Azzygoatcoder/agent-useful-skills

Made for: Claude Code.

Or install superpowers, the plugin that ships this one along with the rest of its 9 skills, 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 systematic-debugging

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/systematic-debugging"><img src="https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 862 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.00021 $0.00862
Opus 5.5 $0.00008 $0.00345
Sonnet 5.5 $0.00004 $0.00172
Haiku 4.5 $0.00002 $0.00086

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

Security

Grade A, and why

systematic-debugging 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 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (condition-based-waiting-example.ts, find-polluter.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/superpowers/skills/systematic-debugging/SKILL.md · 71 lines

How it starts

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

Systematic Debugging

Overview

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.

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

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

场景判定(先定轻重,再定流程)

场景 力度
生产环境、正式项目、共享代码、反复出现的 bug 完整四阶段:根因 → 模式 → 假设验证 → 实施
个人业余项目、低风险探索、一次性脚本 轻量调试:至少做到「稳定复现 → 定位根因 → 验证修复」;不需要形式上把四阶段全走一遍
纯 throwaway / 临时现象 可不深挖,但不要把这个修复当作"已验证"提交

判断标准:这个 bug 会浪费别人/后续/生产多少时间? 低风险就快走,高成本就按完整流程。完整流程不是仪式,是"这个错误值得花时间"时的护城河。

⚠️ 与 references/debugging-guide.md 的优先级:该文件是上游原文,里面写着 "You MUST complete each phase" 并把"问题很简单不需要流程"列为 Common Rationalization。上面这张场景判定表是本地新增的、优先于它的—— 但那句 rationalization 警告的失效模式仍然成立:判定为「轻量」不代表可以跳过根因定位(轻量路径第 2 步 就是定位根因)。换句话说:可以少走阶段,不可以不做根因。 拿不准按「完整四阶段」走。

Quick Reference

Phase Key Activities Success Criteria
1. Root Cause Read errors, reproduce, check changes, gather evidence Understand WHAT and WHY
2. Pattern Find working examples, compare Identify differences
3. Hypothesis Form theory, test minimally Confirmed or new hypothesis
4. Implementation Create test, fix, verify Bug resolved, tests pass

完整四阶段、Red Flags、Common Rationalizations 和 Supporting Techniques 见 references/debugging-guide.md。

轻量路径(个人/低风险项目)

  1. 先复现:能不能稳定触发?不能,先补数据/日志,别猜。
  2. 定位根因:读错误信息、看最近改动、追到数据源头。至少确定“是哪里错了”,而不是“哪里看起来像错”。
  3. 最小修复:一次只改一个变量,验证修复是否生效。
  4. 验收:确认问题消失;如果影响真实使用,补一个最小回归测试。

Red Flags(速记)

  • 还没定位根因就开始改
  • “先快速修一下,之后再查”
  • 一次改多个地方
  • 3 次以上修复失败还在继续

遇到这些,STOP 回到根因调查。

Supporting Techniques

  • root-cause-tracing.md — Trace bugs backward through call stack to find original trigger
  • defense-in-depth.md — Add validation at multiple layers after finding root cause
  • condition-based-waiting.md — Replace arbitrary timeouts with condition polling

Read the full file on GitHub · 71 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. 2mo ago Changed · +5 lines 9edd092a0f7a
  2. 3mo ago First seen · 66 lines · 21 tokens per session scan A 03f2a83202b2

Subscribe to this mod's changes

systematic-debugging is a skill published in the GitHub repository Azzygoatcoder/agent-useful-skills (9 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 862 once invoked, about $0.0001 per session on Opus 5.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-08-31.

Related

systematic-debugging compared with skills from other repositories

systematic-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
systematic-debuggingAzzygoatcoder/agent-useful-skillsSkill9todayMITA21Claude Code
unica-testingIngvarConsulting/unicaSkill283todaynoneA73Claude Code, Codex
source-accessIngvarConsulting/unicaSkill283todaynoneA60Claude Code
code-diagnosticsIngvarConsulting/unicaSkill283todaynoneA60Claude Code
code-searchIngvarConsulting/unicaSkill283todaynoneA52Claude Code
query-optimizeIngvarConsulting/unicaSkill283todaynoneA59Claude Code
transactions-locksIngvarConsulting/unicaSkill283todaynoneA82Claude Code