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 SethGammon/Citadel --skill systematic-debugginggit clone --depth 1 https://github.com/SethGammon/CitadelWrote 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/sethgammon/citadel/systematic-debugging)<a href="https://agentmods.dev/skills/sethgammon/citadel/systematic-debugging"><img src="https://agentmods.dev/badge/skills/sethgammon/citadel/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.
<a href="https://agentmods.dev/skills/sethgammon/citadel/systematic-debugging"><img src="https://agentmods.dev/badge/skills/sethgammon/citadel/systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00045 | $0.01276 |
| Opus 5.5 | $0.00018 | $0.00510 |
| Sonnet 5.5 | $0.00009 | $0.00255 |
| Haiku 4.5 | $0.00005 | $0.00128 |
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 3mo 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 — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/systematic-debugging — Root Cause Before Fix
Orientation
Use when: root cause is unknown and premature fixes keep failing -- enforces observe -> hypothesize -> verify before touching code. Don't use when: root cause is already known (use /marshal to implement the fix); the bug is shallow and the stack trace is enough (use /do).
Protocol
Phase 1: OBSERVATION & REPRODUCTION
- Read the error message, stack trace, or bug description
- Reproduce the issue:
- If it's a type error: run typecheck and read the full error
- If it's a runtime error: identify the triggering conditions
- If it's a behavioral bug: document expected vs actual behavior
- Isolate the failing component/function:
- What file? What function? What line?
- What are the inputs when it fails?
- Does it fail consistently or intermittently?
Output: A clear problem statement: "{Component} does {X} when it should do {Y}, triggered by {condition}"
Phase 2: HYPOTHESIS & VERIFICATION
-
Formulate up to 3 hypotheses for WHY the bug exists:
- H1: {most likely cause} — because {evidence}
- H2: {second candidate} — because {evidence}
- H3: {third candidate} — because {evidence}
-
For each hypothesis, define a verification step:
- Add a console.log / diagnostic read / breakpoint
- Check a specific value at a specific point
- DO NOT change any logic yet — only observe
-
Run the verification:
- Which hypothesis was confirmed?
- Which were eliminated?
- If none confirmed: formulate new hypotheses with the new information
CRITICAL: Do not skip this phase. Do not "just try" a fix. Verify first.
Phase 3: ROOT CAUSE ANALYSIS
Once a hypothesis is confirmed:
- Explain WHY the bug happens, not just WHERE:
- Trace the data flow backward from the symptom to the source
- Identify the specific incorrect assumption or logic error
- Document the causal chain: "A calls B with X, B assumes X > 0, but A passes -1 when {condition}"
What ships with it
2 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.
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.
- 3mo ago First seen · 144 lines · 45 tokens per session scan A f673e7bf5f8e
systematic-debugging is a skill published in the GitHub repository SethGammon/Citadel (943 stars, last pushed 5d ago), licensed MIT. It adds 45 tokens to every session and 1,276 once invoked, about $0.0002 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.
systematic-debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| systematic-debuggingSethGammon/Citadel | Skill | 943 | 5d ago | MIT | A | 45 | Claude Code |
| misakanet-failure-memoryIkalus1988/MisakaNet | Skill | 567 | today | Apache-2.0 | A | 31 | Claude Code |
| zapier-statuszapier/zapier-mcp | Skill | 460 | 20d ago | MIT | A | 66 | Claude Code |
| root-causejjanczur/tyran | Skill | 78 | 9d ago | Apache-2.0 | A | 61 | Claude Code |
| discoveryKanevry/session-orchestrator | Skill | 53 | 7d ago | MIT | A | 56 | Claude Code, Codex |
| claude-md-drift-checkKanevry/session-orchestrator | Skill | 53 | 7d ago | MIT | A | 196 | Claude Code |
| debugKanevry/session-orchestrator | Skill | 53 | 7d ago | MIT | A | 62 | Claude Code, Codex |