Systematic debugging
Skill gustavo-meilus/superpipelines/plugins/superpipelines/skills/systematic-debugging
Loop Engineering for AI coding agents, with real review boundaries. Your AI reviewer cannot edit code. Structurally.
npx -y skills add gustavo-meilus/superpipelines --skill systematic-debuggingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Enforces root-cause investigation before any fix is proposed or implemented. Use when encountering a bug, test failure, or unexpected behavior, before proposing or implementing a fix.
SKILL.md
4.3 KB, 954 tokens by cl100k_base, as published. Nobody here has run it
Systematic Debugging — Root Cause Protocol
<overview> Systematic Debugging is based on the Iron Law: **NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST**. It replaces guess-and-check thrashing with a scientific method—Read, Reproduce, Hypothesize, and Test—ensuring that fixes address the underlying problem rather than masking symptoms. </overview> <glossary> <term name="Root Cause">The original source of a failure; fixing it prevents the symptom from recurring.</term> <term name="Symptom Fix">A patch that hides a failure without addressing the cause; leads to technical debt and regression.</term> <term name="Iron Law">The non-negotiable rule prohibiting any fix proposal until Phase 1 is complete.</term> </glossary>Establishes a rigorous methodology for identifying, isolating, and resolving technical issues before any fix is proposed.
The Debugging Protocol
<protocol> ### PHASE 1: ROOT CAUSE INVESTIGATION - **Read**: Complete error messages, stack traces, and logs are read in full — no skimming. - **Reproduce**: A consistent, reliable trigger for the failure is established before proceeding. - **Gather Evidence**: Component boundaries are instrumented to log data ingress/egress. Example: adding `console.log` at each function boundary to observe where a value becomes `undefined`. - **Trace**: Data flow is mapped backward from the failure point to the origin of the bad state. - <HARD-GATE>Phase 1 is complete only when the agent can explain exactly WHAT failed and WHY.</HARD-GATE>PHASE 2: PATTERN ANALYSIS
- Working examples of similar logic in the codebase are located and examined.
- The broken implementation is compared against reference standards or successful instances.
- All differences are identified, however minor; no detail is assumed to be irrelevant.
PHASE 3: HYPOTHESIS & MINIMAL TESTING
- A single, specific hypothesis is formed: "X is the root cause because Y."
- The smallest possible change is made to test the hypothesis. Example: a one-line guard clause rather than a multi-function refactor.
- The result is verified before adding more logic. If it fails, the change is reverted and a new hypothesis is formed.
PHASE 4: IMPLEMENTATION & VERIFICATION
- A minimal failing test case is created (using the
test-driven-developmentskill). - A single fix addressing the root cause is implemented.
- The fix is verified against the test case and checked for regressions. </protocol>
Red Flags — STOP
- "Quick fix for now, investigate later." → STOP. Symptom fixes are failure.
- "Just try changing X and see if it works." → STOP. This is guessing, not debugging.
- "I'll skip the test; I manually verified it." → STOP. Untested fixes are guaranteed regressions.
- "Each fix reveals a new problem in a different place." → STOP. This is a signal of an architectural failure (The 3-Fix Limit).
Rationalization Table
<rationalization_table>
| Excuse | Reality |
|---|---|
| "The issue is too simple for process." | Simple issues have root causes. Process is faster than guessing even for minor bugs. |
| "Emergency, no time for investigation." | Systematic debugging is 5x faster than guess-and-check thrashing during crises. |
| "I see the problem, let me fix it." | Seeing a symptom is not the same as understanding the trigger. |
| "Multiple fixes at once save time." | Bundled fixes make it impossible to isolate the true resolution. |
| </rationalization_table> |
Reference Files
test-driven-development/SKILL.md— Creating failing tests.verification-before-completion/SKILL.md— Final verification protocol.sk-pipeline-state/SKILL.md— Debugging state corruption.root-cause-tracing.md— Backward tracing techniques.
What ships with it: 10 files
30.2 KB alongside SKILL.md, 2 of them executable
- condition-based-waiting-example.tsruns4.9 KB
- condition-based-waiting.md3.4 KB
- CREATION-LOG.md4.2 KB
- defense-in-depth.md3.6 KB
- find-polluter.shruns1.5 KB
- root-cause-tracing.md5.2 KB
- test-academic.md653 B
- test-pressure-1.md1.9 KB
- test-pressure-2.md2.2 KB
- test-pressure-3.md2.6 KB
Gives 2 of the 12 instructions most debug triage skills give in 954 tokens
Counted across 839 of the 1,149 authors here whose files we hold, read 2026-08-07
- Investigate root cause before proposing any fixin 102 of 839, across 67 files
- Read error messages completelyin 89 of 839, across 49 files
- Create a failing test case before fixinghere, and in 84 of 839, across 46 files
- Reproduce the issue consistentlyin 82 of 839, across 41 files
- Change one variable at a timein 82 of 839, across 42 files
- Check recent changesin 74 of 839, across 36 files
- Write the regression test before fixingin 74 of 839, across 40 files
- Fix the root cause not the symptomin 60 of 839, across 45 files
- Implement a single fix at a timein 59 of 839, across 20 files
- Trace data flow backward to the sourcehere, and in 50 of 839, across 20 files
- Remove all debug instrumentationin 49 of 839, across 13 files
- Form a single hypothesisin 48 of 839, across 18 files
Said here and by no other author read
- instrument boundaries to observe data flow
- explain what failed and why before fixing
- compare broken logic against working examples
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.