Skip to content
Back to skills

Code Debugging

ASecurity

Systematic debugging frameworks for finding and fixing bugs - includes root cause analysis, defense-in-depth validation, and verification protocols

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
ai-agentstestingdebuggingcode-reviewsecurity

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add tstapler/dotfiles --skill code-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tstapler-code-debugging/badge)](https://www.skillsdirectory.com/skills/tstapler-code-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-debugging
description: Systematic debugging frameworks for finding and fixing bugs - includes root cause analysis, defense-in-depth validation, and verification protocols
when_to_use: when encountering bugs, test failures, unexpected behavior, or needing to validate fixes before claiming completion
version: 1.0.0
languages: all
---

# Debugging Skills

A collection of systematic debugging methodologies that ensure thorough investigation before attempting fixes.

## Available Sub-Skills

### Systematic Debugging
**Location:** `systematic-debugging/SKILL.md`

Four-phase debugging framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. The iron law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

### Root Cause Tracing
**Location:** `root-cause-tracing/SKILL.md`

Trace bugs backward through the call stack to find the original trigger. Don't fix symptoms - find where invalid data originated and fix at the source.

### Defense-in-Depth Validation
**Location:** `defense-in-depth/SKILL.md`

Validate at every layer data passes through to make bugs structurally impossible. Four layers: Entry Point → Business Logic → Environment Guards → Debug Instrumentation.

### Verification Before Completion
**Location:** `verification-before-completion/SKILL.md`

Run verification commands and confirm output before claiming success. The iron law: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.

## When to Use

- **Bug in production** → Start with systematic-debugging
- **Error deep in stack trace** → Use root-cause-tracing
- **Fixing a bug** → Apply defense-in-depth after finding root cause
- **About to claim "done"** → Use verification-before-completion

## Quick Dispatch

| Symptom | Sub-Skill |
|---------|-----------|
| Test failure, unexpected behavior | systematic-debugging |
| Error appears in wrong location | root-cause-tracing |
| Same bug keeps recurring | defense-in-depth |
| Need to confirm fix works | verification-before-completion |

## Core Philosophy

> "Systematic debugging is FASTER than guess-and-check thrashing."

From real debugging sessions:
- Systematic approach: 15-30 minutes to fix
- Random fixes approach: 2-3 hours of thrashing
- First-time fix rate: 95% vs 40%

---

## Related Skills

| Skill | When to apply |
|-------|--------------|
| `code-root-cause-analysis` | Error has stack trace; search wiki + external docs for historical context |
| `code-review` | Verify fix is complete and correct before claiming done |
| `security-review` | Bug involves auth, input handling, or data exposure |
| `code-ast-grep` | Search codebase structurally to find all related call sites |
| `lean-agent-loop` | Run iterative hypothesis-test-fix cycles with minimal-context agents per verification pass |

Files in this skill

  • SKILL.md2.8 KB
  • defense-in-depth/SKILL.md3.8 KB
  • root-cause-tracing/SKILL.md5.4 KB
  • root-cause-tracing/find-polluter.sh1.5 KB
  • systematic-debugging/CREATION-LOG.md4.2 KB
  • systematic-debugging/SKILL.md9.5 KB
  • systematic-debugging/test-academic.md653 B
  • systematic-debugging/test-pressure-1.md1.9 KB
  • systematic-debugging/test-pressure-2.md2.2 KB
  • systematic-debugging/test-pressure-3.md2.6 KB
  • verification-before-completion/SKILL.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…