systematic-debugging

systematic-debugging is a skill for Claude Code from camilooscargbaptista/cto-toolkit. It costs 136 tokens per session (1,988 once invoked), scanned A, original, MIT.

A step-by-step method for finding software bugs by gathering evidence, testing explanations, and narrowing down the cause.

In plain words
What is it for?
Use it to investigate reproducible or intermittent failures, logs, memory or performance problems, distributed-system issues, and production incidents.
Why use it?
It prevents guesswork and premature fixes by requiring observations and experiments before changing code.

Skill for Claude Code

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

Part of the cto-toolkit plugin — 54 skills, 6 agents, 3 hooks shipped together

Good fit Use it to investigate reproducible or intermittent failures, logs, memory or performance problems, distributed-system issues, and production incidents.

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

Made for: Claude Code.

Or install cto-toolkit, the plugin that ships this one along with the rest of its 54 skills, 6 agents, 3 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 systematic-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/systematic-debugging/github.svg)](https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/systematic-debugging)
Your own site
<a href="https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/systematic-debugging"><img src="https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/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/camilooscargbaptista/cto-toolkit/systematic-debugging"><img src="https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,988 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.00136 $0.01988
Opus 5.5 $0.00054 $0.00795
Sonnet 5.5 $0.00027 $0.00398
Haiku 4.5 $0.00014 $0.00199

Measured 3mo ago against content hash d76408788a7e, 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 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.

systematic-debugging/SKILL.md · 258 lines

How it starts

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

Systematic Debugging Methodology

You are a senior engineer helping debug issues methodically. The biggest debugging mistake is jumping to conclusions — resist the urge to guess and instead follow a structured process. Every bug is logical; the code is doing exactly what it was told to do.

The Scientific Debugging Method

1. OBSERVE    → Gather symptoms and data
2. HYPOTHESIZE → Form a testable theory
3. PREDICT    → What would be true if the hypothesis is correct?
4. TEST       → Run an experiment to confirm or refute
5. CONCLUDE   → Either fix it or form a new hypothesis

Never skip steps. The most common debugging failure is jumping from OBSERVE to a fix without testing the hypothesis.

Step 1: Observe — Gather Information

Before touching code, answer these questions:

What is the expected behavior?

  • What should happen according to the spec/user story?
  • Did this ever work? When did it stop?

What is the actual behavior?

  • Exact error message (not paraphrased)
  • Stack trace (full, not truncated)
  • HTTP status code, response body
  • Console output, log entries

What are the conditions?

  • Reproducible or intermittent?
  • Steps to reproduce (minimal set)
  • Which environment? (local, staging, production)
  • Which users/accounts/data affected?
  • What changed recently? (deploy, config, dependency update)

Collect evidence:

# Recent changes
git log --oneline -20
git log --since="3 days ago" --oneline

# Recent deploys
# (check your CI/CD system)

# Relevant logs
# Tail application logs, filter by error level
# Check for correlation: timestamp of first occurrence vs deploys

# System state
# CPU, memory, disk, network
# Database connections, queue depth
# Cache hit rates

Step 2: Hypothesize — Form Theories

List possible causes ranked by likelihood. Consider:

Common bug categories:

  • State bug — Variable has unexpected value at some point
  • Timing bug — Race condition, async ordering, timeout
  • Data bug — Corrupt input, encoding issue, null/undefined
  • Integration bug — API contract mismatch, version incompatibility
  • Configuration bug — Wrong env var, missing secret, feature flag
  • Resource bug — Memory leak, connection pool exhaustion, disk full

Read the full file on GitHub · 258 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. 3mo ago First seen · 258 lines · 136 tokens per session scan A d76408788a7e

Subscribe to this mod's changes

systematic-debugging is a skill published in the GitHub repository camilooscargbaptista/cto-toolkit (9 stars, last pushed 8mo ago), licensed MIT. It adds 136 tokens to every session and 1,988 once invoked, about $0.0005 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-debuggingcamilooscargbaptista/cto-toolkitSkill98mo agoMITA136Claude Code
systematic-debuggingmateaix/mateclawSkill1.2k3d agoApache-2.0A16Claude Code, Codex
debugging-and-error-recoveryvanja-emichi/a0_agent_skillsSkill63mo agoMITA43Claude Code, Codex
systematic-debuggingfurkangonel/cowranglerSkill12mo agoMITA14Claude Code, Codex
systematic-debuggingjnMetaCode/skilletSkill22mo agoMITA43Claude Code, Codex
codebase-refactoringkucherenko/jscpdSkill6.6kyesterdayMITA63Claude Code, Codex
recipe-diagnoseshinpr/claude-code-workflowsSkill725yesterdayMITA15Claude Code