Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

systematic-debugging

/systematic-debugging

Prowadzi czteroetapową analizę przyczyny przy zepsutym lub niewyjaśnionym działaniu: wymaga dowodów i kończy testem regresji.

Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Prowadzi czteroetapową analizę przyczyny przy zepsutym lub niewyjaśnionym działaniu: wymaga dowodów i kończy testem regresji.

Oryginalny opis (EN)

Use when something is broken, failing, or behaving inexplicably. A four-phase root-cause process that forbids shotgun edits, requires evidence for each hypothesis, and ends with a regression test.

Jak działa

  1. The rule
  2. Phase 1 — Reproduce
  3. Phase 2 — Narrow
  4. Phase 3 — Root cause
  5. Phase 4 — Fix
  6. Anti-patterns
  7. Stuck?
Sekcje z nagłówków SKILL.md, w oryginale · 69 linii, 502 słów
Podgląd SKILL.md
---
name: systematic-debugging
description: Use when something is broken, failing, or behaving inexplicably. A four-phase root-cause process that forbids shotgun edits, requires evidence for each hypothesis, and ends with a regression test.
license: MIT
metadata:
  category: debugging
  pack: freebuff-superpowers
---

# Systematic Debugging

## The rule

Find the cause before changing the code. Two consecutive speculative fixes mean you are
guessing, and guessing is how a one-line bug becomes a five-file diff.

## Phase 1 — Reproduce

Get a reliable, minimal reproduction and capture it verbatim.

- The exact command, request, or interaction, and the full error text.
- The environment: branch, dependency versions, platform, relevant config.
- Whether it is deterministic, and what makes it appear or disappear.

If you cannot reproduce it, say so and gather evidence instead: logs, traces, the report
from the user with exact steps. Do not "fix" something you have not seen fail.

## Phase 2 — Narrow

Halve the search space rather than reading everything.

- Read the error bottom-up: the first frame in *your* code is usually the interesting one.
- Follow the data: where does the wrong value originate, and what is the last point it is
  known to be correct?
- Confirm assumptions with evidence, not intuition: add a log or assertion, write a
  focused test, or query the state. Delete the instrumentation afterwards.
- Check whether the code you are reading is the code that actually runs (build artifacts,
  stale `dist/`, cached modules, the wrong environment).

## Phase 3 — Root cause

State the cause in one sentence, and state the observation that would distinguish it from
the alternative explanations you considered.

> "The poller reads `status` before the transaction commits, so it sees the previous
> row. If that is right, delaying the read by one tick makes it pass, and reading a
> committed write always succeeds."

If you cannot state the cause, you are still in Phase 2. Keep investigating; do not start
editing.

## Phase 4 — Fix

1. Write a failing test that reproduces the bug. Watch it fail for the right reason.
2. Apply the smallest fix at the cause, not at the symptom. No defensive try/catch that
   hides the error; no retry that masks a race; no widened condition that silences a case.
3. Watch the test pass, then run the surrounding suite.
4. Grep for sibling call sites with the same bug and fix them deliberately, or report them.
5. Add the regression test permanently.

## Anti-patterns

- **Shotgun edits:** changing several things, then "it works now". You have learned
  nothing and shipped an unexplained diff.
- **Symptom patching:** suppressing the error message, adding a sleep, catching and
  ignoring, clamping a value until the crash stops.
- **Repeated re-runs:** running the same failing command without changing your mental
  model. Change what you know, not how many times you try.
- **Trusting green tests:** a suite that passes while the bug reproduces means the suite
  is wrong. Fix the test first.

## Stuck?

After two failed hypotheses, escalate deliberately: share the reproduction, what you ruled
out and how, and your current best theory. Ask for the one piece of information you cannot
get yourself. Silent flailing burns the user's tokens and their patience equally.

Wersje

RepozytoriumWynikLicencja
Ta strona · slayyyyer/freebuff-superpowers90MIT
magnus919/agent-skills100MIT
FrancoStino/opencode-skills-collection100MIT
foryourhealth111-pixel/Vibe-Skills100Apache-2.0
GanyuanRan/Aegis100MIT
rootcastleco/rei-skills100MIT
jkaloger/lazyspec100MIT
innei/ryugi100MIT
yusixian/anjian100MIT

Migawka bazy z 13.11.2026 · wersja paczki 7f5f76196d73 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100systematic-debug
    Prowadzi przez cztery fazy szukania przyczyny błędu przed poprawką: przy awariach, testach, nieoczekiwanym działaniu i stosach wywołań.
  • 100systematic-debugging-codex
    Prowadzi czteroetapowe debugowanie z badaniem przyczyny wspieranym przez Codex, gdy użytkownik wprost o to poprosi.
  • 100codex-systematic-debugging
    Wymusza czterofazowe debugowanie z ustaleniem przyczyny źródłowej przed poprawkami przy błędach, nieudanych testach i nieoczekiwanych wynikach.
  • 100code-showcase-systematic-debugging
    Prowadzi przez czterofazową metodykę debugowania z analizą przyczyny źródłowej, przy błędach i nieudanych testach, z zasadą: żadnych poprawek bez ustalenia przyczyny.
  • 100code-showcase-systematic-debugging
    Prowadzi przez czterofazową metodykę debugowania z analizą przyczyny źródłowej, przy błędach i nieudanych testach, z zasadą: żadnych poprawek bez ustalenia przyczyny.
  • 90debug-to-root-cause
    Szuka przyczyny źródłowej błędów i niestabilnych testów przez odtworzenie, izolację i weryfikację hipotez przed poprawką.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.