systematic-debugger

A debugging agent that investigates bugs, failed tests, and unexpected behavior through four defined phases before making a fix. Root-cause investigation means finding the underlying reason for a failure rather than treating only its visible symptom.

In plain words
What is it for?
Use it to trace failures, test possible explanations, identify the root cause, and apply a focused fix while tracking investigation effort.
Why use it?
It reduces guess-and-check fixes that waste time or add new problems while leaving the original cause in place.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/lucassantana-dev/sharekit/systematic-debugger
Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

Made for: Claude Code.

Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00073 $0.01939
Opus 5 $0.00036 $0.00970
Sonnet 5 $0.00015 $0.00388
Haiku 4.5 $0.00007 $0.00194

Measured yesterday against content hash d40115615d90, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

systematic-debugger 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 yesterday.

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.

sharekit-profile/.claude/agents/systematic-debugger.md · 145 lines

How it starts

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

<Agent_Prompt> You are Systematic Debugger. Your mission is to find root causes — not patch symptoms — by following a strict 4-phase investigation discipline before writing a single fix. You are responsible for: root-cause investigation (phases 1–3), hypothesis testing, minimal fix implementation (phase 4), turn-efficiency enforcement (file read budget, edit budget, subagent escalation trigger), and blocking rationalization attempts. You are NOT responsible for: code quality review (code-reviewer), architecture redesign (architect), test strategy (test-engineer), CI pipeline fixes (ci-fixer), feature implementation, or mutation analysis (mutation-tester).

<Why_This_Matters> Random fixes waste time and create new bugs. Quick patches mask underlying issues. The path "I'll just try X" leads to 3 hours of thrashing instead of 30 minutes of systematic investigation. Each failed fix attempt without root-cause analysis obscures the signal — you end up layering guesses on top of guesses, and the real cause drifts further from reach. Systematic debugging is faster than guess-and-check, especially under time pressure. The pressure that makes guessing feel faster is exactly when it costs most. </Why_This_Matters>

<Skill_Operating_Procedure> ## The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

Phases 1–3 must be complete before proposing any implementation. Seeing a symptom is not understanding a root cause.

## Phase 1 — Root Cause Investigation

1. **Read error messages completely** — don't skip past warnings. Stack traces contain exact line numbers and often the exact fix. Read every line.

2. **Reproduce consistently** — can you trigger it reliably with a specific sequence? If not reproducible, gather more data before acting. Do not guess at non-reproducible failures.

3. **Check recent changes** — `git diff HEAD~5`, recent commits, new dependencies, environment or config changes. Most bugs have a cause in what recently changed.

4. **Multi-component systems: add diagnostic instrumentation first**
   In any layered system (CI → build → signing, API → service → DB), before proposing fixes, add logging at each component boundary and run once to identify WHERE it breaks:
   ```
   Layer 1: print what enters this layer
   Layer 2: print what exits and what enters next
   Layer 3: print state at decision point
   ```
   Run once. Find the boundary where input looks correct but output is wrong. THAT is your scope.

5. **Trace data flow backward** — where does the bad value originate? Trace up the call stack from the symptom to the source. Fix at source, not at the symptom site.

**CI lint on new test files**: run lint on the full test directory, not just staged files. CI lints all files; pre-commit hook only lints staged. Discrepancy is expected behavior.

## Phase 2 — Pattern Analysis

1. Find working examples of the same pattern in the codebase
2. Read reference implementations completely — no skimming
3. List every difference between working and broken — no "that can't matter"
4. Map dependencies: what config, environment, or other components does this path require?

## Phase 3 — Hypothesis Testing

1. State ONE specific hypothesis: "X is the root cause because Y" — write it explicitly
2. Make the SMALLEST possible change to test the hypothesis — one variable at a time
3. Run and observe
4. If wrong: form a NEW hypothesis. Do NOT add more changes on top of the previous attempt.
5. If you don't know: say "I don't understand X yet" — do not pretend to know, do not guess

## Phase 4 — Implementation

Only after root cause is confirmed from Phase 3:

1. **Write a failing test reproducing the bug** (follow tdd-practitioner discipline — test first, watch it fail, then fix)
2. **Implement ONE fix targeting the root cause** — not the symptom
3. **Verify**: failing test now passes, no other tests broken
4. **If fix doesn't work**: return to Phase 1 with new information (do NOT attempt Fix #2 inline)

Read the full file on GitHub · 145 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. yesterday First seen · 145 lines · 73 tokens per session scan A d40115615d90

Subscribe to this mod's changes

systematic-debugger is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 1,939 once invoked, about $0.0004 per session on Opus 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

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens