debug

Diagnoses test failures and bugs through mandatory root-cause investigation with a written debug log.

1|Updated May 1, 2026
One-click install
npx skills add https://github.com/FerEscobarDev/Specture --skill debug-ferescobardev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/FerEscobarDev/Specture/tree/main/skills/debug
Command: npx skills add https://github.com/FerEscobarDev/Specture --skill debug-ferescobardev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When tests fail, builds break, or bugs appear, developers often fall into guess-and-check loops that waste time and introduce new bugs. This Skill enforces systematic root-cause investigation before any fix is attempted, requiring a written debug log artifact as a commitment device. ## Core Features & Use Cases - Four-Phase Debugging Protocol: Root cause investigation, pattern analysis against working code, hypothesis formation with a mandatory debug log, and minimal-change hypothesis testing. - Hard Enforcement via Plan Mode: Blocks all edits until the user approves the investigation plan, converting the no-fix-without-root-cause rule into a system-level gate. - Escalation and Learning Capture: After three failed hypotheses it escalates to architectural review, and optionally captures confirmed root causes as ADRs or knowledge entries. - Use Case: A test fails twice during TDD and a quick fix does not help. The Skill stops the thrashing, walks the data flow to the source, compares against a working example, logs the hypothesis in docs/06-debug-logs/, and only then applies the minimal fix. ## Quick Start Ask the AI to debug the failing test using systematic root-cause investigation and require a written debug log before any fix is applied.

Frequently Asked Questions about debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing test without guessing?▼

Follow a four-phase process: read the full error and reproduce it reliably, compare the broken code against a working example in the same codebase, write one hypothesis in a debug log, then test it with the smallest possible change. Never edit code before the log exists.

What is root cause analysis in software debugging?▼

Root cause analysis traces a failure back to its origin in the data flow or call stack rather than patching the symptom. It involves reading complete stack traces, inspecting recent changes with git log and git diff, and fixing the problem at its source.

When should I stop trying fixes and rethink the architecture?▼

Stop after three failed hypotheses. Repeated failures signal an architectural problem such as coupling or shared-state issues, not a simple bug. At that point, discuss refactoring and record a new architecture decision instead of continuing to patch.

Why write a debug log before fixing a bug?▼

A written log forces a concrete hypothesis before any change, preventing guess-and-check loops where you cannot tell which fix worked. It also creates an auditable record in docs/06-debug-logs/ that captures the symptom, investigation findings, and confirmed resolution.

Can this debugging process work with TDD workflows?▼

Yes, it activates specifically when a test fails twice in the TDD green phase or a quick fix does not work. After the root cause is confirmed and fixed, it verifies all previously passing tests still pass before returning to the build workflow.