systematic-debugging

systematic-debugging is a skill for Claude Code from GanyuanRan/Aegis. It costs 21 tokens per session (2,555 once invoked), scanned A, original, MIT.

A structured method for investigating bugs, failed tests, and unexpected behavior by reproducing the problem, tracing its cause, and identifying the responsible owner.

In plain words
What is it for?
Use it to examine errors and diffs, locate the source of incorrect behavior, assess effects across connected systems, and decide whether a code change is necessary.
Why use it?
It reduces guesswork and discourages applying fixes before understanding where the failure originates.

Skill for Claude Code

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

Part of the aegis plugin — 23 skills, 1 hook shipped together

Good fit Use it to examine errors and diffs, locate the source of incorrect behavior, assess effects across connected systems, and decide whether a code change is necessary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ganyuanran/aegis/systematic-debugging
About the project

Aegis is a method pack that guides coding agents to inspect a project's baseline, make bounded changes, and verify their work with fresh evidence. It is for people using coding-agent hosts who want fewer unverified changes and less unnecessary process. The catalogue add-ons implement this method through skills, instructions, commands, a hook, and a plugin.

GanyuanRan/Aegis · 1,460 stars · on GitHub · autoloom.codes

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 GanyuanRan/Aegis --skill systematic-debugging
Clone the repo
git clone --depth 1 https://github.com/GanyuanRan/Aegis

Made for: Claude Code.

Or install aegis, the plugin that ships this one along with the rest of its 23 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/ganyuanran/aegis/systematic-debugging/github.svg)](https://agentmods.dev/skills/ganyuanran/aegis/systematic-debugging)
Your own site
<a href="https://agentmods.dev/skills/ganyuanran/aegis/systematic-debugging"><img src="https://agentmods.dev/badge/skills/ganyuanran/aegis/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/ganyuanran/aegis/systematic-debugging"><img src="https://agentmods.dev/badge/skills/ganyuanran/aegis/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 2,555 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00021 $0.02555
Opus 5.5 $0.00008 $0.01022
Sonnet 5.5 $0.00004 $0.00511
Haiku 4.5 $0.00002 $0.00255

Measured 1mo ago against content hash 2e3ec13acce3, 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 1mo 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.

skills/systematic-debugging/SKILL.md · 208 lines

How it starts

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

Execute

Bug, failure, or unexpected behavior:

  1. Isolate — read error, reproduce, inspect the diff, and drill upward through diagnostic layers: L1 symptom → L2 logic → L3 system → L4 architecture → L5 cross-system contract → L6 platform → L7 spec gap. Layers are observation altitudes, not one causal chain; the causal shape at the stop altitude is classified explicitly before any root claim. Stop only when causal proof accounts for the recurrence generator or reaches a T-class boundary.
  2. Identify owner — compare working behavior, trace the bad value, locate the canonical owner, and treat duplicate owners as a finding.
  3. Decide before editing — Before fixing, run Patch-Shape Triage and Ripple Signal Triage when shared logic, contracts, fallbacks, adapters, producer/consumer seams, or source-of-truth boundaries are involved. Surface Change Necessity for any new source-code path or non-trivial source edit. Run Minimality Check for a new branch, fallback, adapter, owner, or compatibility path, and Pre-Edit Complexity Check for an overloaded owner or complexity growth. After Change Necessity selects code-change and before the first repair edit, own the TDD Route for the repair slice per test-driven-development (off default; strict on behavior/bugfix/shared/contract/persistence/permission/migration risk).
  4. Prove — test one hypothesis with the smallest reproduction or verification. A failing test first is required only by a recorded TDD Route: strict; with TDD Mode: off, do not require a failing test or RED/GREEN cycle. Three failed fixes means stop and question architecture.
  5. Repair and close — fix minimally at the canonical owner, verify in proportion to risk, review architecture, and close both repair and retirement tracks. If a symptom remains or shifts, reopen the causal model; do not assume it is a separate defect.

Done: confidence ≥ B, causal status matches recurrence evidence or an external terminal, tracks explicit, no H signal, and required D evidence passes.

Read the full file on GitHub · 208 lines

Files

What ships with it

8 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. 1mo ago Changed · +2 lines 2e3ec13acce3
  2. 1mo ago Changed · +3 lines 2708bffa944e
  3. 1mo ago Changed · +3 lines fc5b0888c386
  4. 2mo ago Changed · +4 lines d251d254da3f
  5. 2mo ago Changed · -47 lines 5d642fb60775
  6. 2mo ago Changed · +4 lines 6b923ab1f799
  7. 3mo ago Changed · +17 lines f54b9e1f185f
  8. 3mo ago First seen · 222 lines · 21 tokens per session scan A 3416b67da9c4

Subscribe to this mod's changes

systematic-debugging is a skill published in the GitHub repository GanyuanRan/Aegis (1,460 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 2,555 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-30.

Related

systematic-debugging compared with skills from other repositories

systematic-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
systematic-debuggingGanyuanRan/AegisSkill1.5kyesterdayMITA21Claude Code
agenttrace-session-auditsickn33/agentic-awesome-skillsSkill51ktodayMITA34Claude Code
test-failure-explorerQwenLM/qwen-codeSkill31ktodayApache-2.0A32Claude Code, Codex
code-review-graphtirth8205/code-review-graphSkill33k16d agoMITA84Codex
systematic-debuggingjnMetaCode/superpowers-zhSkill8.7k2d agoMITA24Claude Code
oversight-teammvschwarz/openrigSkill9.0ktodayApache-2.0A117Claude Code, Codex
aoe-runtime-lifecycleagent-of-empires/agent-of-empiresSkill5.3ktodayMITA76Claude Code, Codex