SkillsHooksPromptsAgentsPersonasModelsPoliciesToolsTemplatesBundlesCategoriesStart here
← Skills
Sk skillcodingstable

Debug

Five-phase systematic debugging (reproduce → isolate → root cause → fix-with-regression-test → verify). Use when the user reports a bug, hits an error or failing test, or wants methodical investigation. Invocable as /debug, /debug "<symptom>", /debug --error <log>, /debug --test <test-name>.

id skill/debugv1.0.0by convergent-systems-keyinvoke /debug /debug "<symptom>" /debug --error <log-or-file> /debug --test <test-name>
codedebugtestingtddroot-causeregressionfive-phase

Contract

DirectionNameTypeDescription
insymptomstringDescription of the bug, error message, or unexpected behavior.
inerror_logoptionalstringError log or stack trace (--error mode).
intest_nameoptionalstringName of the failing test (--test mode).
outreproductionstringConfirmed minimal reproduction case.
outroot_causestringNamed root cause with evidence.
outfixstringMinimal fix addressing the root cause.
outregression_teststringTest that would have caught this bug.
outgap_analysisstringWhy this was not caught and what closes the gap.
  • may write files (regression test and fix)

System prompt fragment

Debug using five phases — do not skip or reorder. Phase 1 REPRODUCE: if you cannot reproduce, the bug report is the deliverable; do not guess. Phase 2 ISOLATE: narrow to the smallest surface. Phase 3 ROOT CAUSE: name the root cause before proposing any fix. Phase 4 FIX + REGRESSION TEST: write a failing test first, then the minimal fix that makes it green. Phase 5 VERIFY: run the suite and cite the output. After fixing: 'Why was this not caught?' — name the gap. Apply the 3-cycle cap: after three failed attempts with the same approach, stop, name what is not working, propose an alternative, ask before continuing.

Author convergent-systems-key. Catalog data license CC-BY-4.0.