Sign in
Explore
Skills · SkillEveryday codingTesting & SecurityDebuggingReviewed

systematic-debugging

Find the root cause of a bug, test failure or unexpected behaviour before proposing any fix. Use when something breaks.

Kind
Skill
Works with
Claude Code
Source
Claude Code Templates @ 72e5f237f64d
Path
cli-tool/components/skills/development/systematic-debugging/SKILL.md
Jobs
Debugging
Topics
Debugging

Credit

Made by
davila7
Original
github.com/davila7/claude-code-templates/blob/72e5f237f64d70a…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/systematic-debugging/ (the skill folder)
  • 10 other files in the folder: CREATION-LOG.md, condition-based-waiting-example.ts, condition-based-waiting.md, defense-in-depth.md and 6 more
Runs scripts
Yes
  • condition-based-waiting-example.ts
  • find-polluter.sh
  • shell block in the text
  • script file in the folder (condition-based-waiting-example.ts)
Uses the network
None found
Needs secrets
None found
Reads environment variables
  • IDENTITY
  • APP
  • POLLUTION_CHECK
  • TEST_PATTERN
  • TEST_FILES
  • TOTAL
Reads outside the project
  • /Users/jesse/.claude/CLAUDE.md (CREATION-LOG.md)
  • ~/threads/thread-manager (condition-based-waiting-example.ts)
  • ~/threads/types (condition-based-waiting-example.ts)
  • /usr/bin/env (find-polluter.sh)
  • and 1 more
Calls other skills
  • superpowers:test-driven-development
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • condition-based-waiting-example.ts: Complete implementation of condition-based waiting utilities
  • find-polluter.sh: Bisection script to find which test creates unwanted files/state
Source revision
72e5f237f64d
Licence
MIT
Last activity
26 Nov 2026
Source changed after the scan
Yes
  • Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# Systematic Debugging

## Overview

Random fixes waste time and create new bugs. Quick patches mask underlying issues.

**Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.

**Violating the letter of this process is violating the spirit of debugging.**

## The Iron Law

```
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
```

If you haven't completed Phase 1, you cannot propose fixes.

## When to Use

Use for ANY technical issue:
- Test failures
- Bugs in production
- Unexpected behavior
- Performance problems
- Build failures
- Integration issues

**Use this ESPECIALLY when:**
- Under time pressure (emergencies make guessing tempting)
- "Just one quick fix" seems obvious
- You've already tried multiple fixes
- Previous fix didn't work
- You don't fully understand the issue

**Don't skip when:**
- Issue seems simple (simple bugs have root causes too)
- You're in a hurry (rushing guarantees rework)
- Manager wants it fixed NOW (systematic is faster than thrashing)

## The Four Phases

You MUST complete each phase before proceeding to the next.

### Phase 1: Root Cause Investigation

**BEFORE attempting ANY fix:**
…