systematic-debugging

Solid

4-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before any code changes. Emergency stop after 2 failed fixes. Prevents shotgun debugging and fix cascades.

Code & Development 1 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /systematic-debugging — Root Cause Before Fix ## Identity /systematic-debugging enforces one rule: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Most debugging failures come from guessing. This skill forces a structured approach: observe → hypothesize → verify → fix. The fix is always the last step, never the first. ## Protocol ### Phase 1: OBSERVATION & REPRODUCTION 1. Read the error message, stack trace, or bug description thoroughly 2. Reproduce the issue: - If it's a type error: run typecheck and read the full error - If it's a runtime error: identify the triggering conditions - If it's a behavioral bug: document expected vs actual behavior 3. Isolate the failing component/function: - What file? What function? What line? - What are the inputs when it fails? - Does it fail consistently or intermittently? **Output**: A clear problem statement: "{Component} does {X} when it should do {Y}, triggered by {condition}" ### Phase 2: HYPOTHESIS & VERIFICATION 1. Formulate up to 3 hypotheses for WHY the bug exists: - H1: {most likely cause} — because {evidence} - H2: {second candidate} — because {evidence} - H3: {third candidate} — because {evidence} 2. For each hypothesis, define a verification step: - Add a console.log / diagnostic read / breakpoint - Check a specific value at a specific point - DO NOT change any logic yet — only observe 3. Run the verification: - Which hypothesis was con...

Details

Author
allysgrandiose674
Repository
allysgrandiose674/Armory
Created
3 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category