AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Systematic Debugging

skill-crewforth-crewforth-systematic-debugging · by crewforth

|

— No reviews yet
0 installs
0 views
— view→install

Install

$ agentstack add skill-crewforth-crewforth-systematic-debugging

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-crewforth-crewforth-systematic-debugging)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● today

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Systematic Debugging? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Systematic Debugging

Trigger phrases: "debug", "root cause", "why is this failing", "intermittent bug", "can't reproduce", "is broken", "crashes"

One rule holds the whole skill together: no fix without a confirmed root cause. A patch that makes the symptom disappear without a proven cause is not a fix — it's a coin flip that hides the bug until it returns somewhere worse. This skill is the discipline that turns "try things until it works" into "understand, then change one thing."

> Crewforth adaptation (local, .claude/): Distinct from iterate (a self-correction loop over a task) and reflect > (meta-review of an approach) — this skill is for a defect. §4 Prohibitions apply; a fix still goes through the > project's review/test gates. Don't disable a test or a gate to make a symptom pass (that is masking, not fixing).

The loop (do them in order — skipping a step is why bugs come back)

  1. Reproduce — a reliable, minimal repro. Can't reproduce → that IS the first problem; see references/techniques.md (intermittent/heisenbug).
  2. Isolate — shrink the surface until the failure is in the smallest possible slice (bisect commits, halve the input, disable half the system).
  3. Hypothesize — state ONE falsifiable cause: "X fails because Y." Write it down. A vague hunch is not a hypothesis.
  4. Test the hypothesis — the cheapest observation that would disprove it (a log, a breakpoint, a probe). If it survives, you have the cause; if not, back to 3.
  5. Confirm the root cause — you can explain the full chain symptom←…←cause, and you can turn the bug on and off by touching the cause.
  6. Fix — the smallest change at the cause (not the symptom). Consider what else shares that cause.
  7. Verify — the original repro now passes, a regression test locks it, and nothing nearby broke.

Checklist

  • [ ] Reliable repro captured (exact steps/input/env)
  • [ ] Failure isolated to the smallest slice
  • [ ] One falsifiable hypothesis written down
  • [ ] Hypothesis tested by observation (not by applying a fix and seeing)
  • [ ] Root cause confirmed (can toggle the bug via the cause; full chain explained)
  • [ ] Fix at the cause + regression test added
  • [ ] Original repro passes; no new failures

Anti-patterns (each is guess-driven patching wearing a disguise)

  • Shotgun debugging — changing several things at once; now you can't tell what mattered. One change at a time.
  • Symptom patching — a try/catch, a null-guard, a retry that swallows the failure without explaining it.
  • "It works now" without knowing why it broke — the bug is dormant, not dead.
  • Blaming the environment/flake before isolating — sometimes true, but only after step 2, never as the first move.
  • Deleting/skipping the failing test to go green — that is masking; the gate exists to catch exactly this.

Techniques by symptom

Bisecting (git + input + system), instrumentation vs. debugger, intermittent/heisenbugs (timing, state, ordering, resource), the hypothesis log, and when to stop and ask for a second pair of eyes: references/techniques.md.

Invariant rules

  1. No fix without a confirmed root cause — the one rule; everything else serves it.
  2. One change at a time — isolate cause and effect; never shotgun.
  3. Fix the cause, not the symptom — a guard that hides the failure is not a fix.
  4. Lock it with a regression test — the repro becomes a test so it can't silently return.
  5. Never mask to go green — don't disable a test/gate/assertion to make the symptom pass.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.