Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

systematic-debugging

/systematic-debugging

Znajduje rzeczywistą przyczynę defektu przez odtworzenie go, zawężanie przestrzeni poszukiwań bisekcją i udowodnienie diagnozy przed zmianą kodu, przy awariach, niestabilnych testach i uporczywych błędach.

Repozytorium
agent-dev-team ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.09.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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 26.09.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

Znajduje rzeczywistą przyczynę defektu przez odtworzenie go, zawężanie przestrzeni poszukiwań bisekcją i udowodnienie diagnozy przed zmianą kodu, przy awariach, niestabilnych testach i uporczywych błędach.

Oryginalny opis (EN)

Finds the actual cause of a defect by reproducing it, narrowing the search space by bisection, and proving the diagnosis before changing code. Use for a crash, a stack trace, a flaky or intermittently failing suite, or behaviour that differs from expectation and resists an obvious fix. Refuses to change code before the cause is proven.

Jak działa

  1. Process
  2. Signals you have not found it
  3. Output
  4. Red flags
Sekcje z nagłówków SKILL.md, w oryginale · 104 linii, 729 słów
Podgląd SKILL.md
---
name: systematic-debugging
description: Finds the actual cause of a defect by reproducing it, narrowing the search space by bisection, and proving the diagnosis before changing code. Use for a crash, a stack trace, a flaky or intermittently failing suite, or behaviour that differs from expectation and resists an obvious fix. Refuses to change code before the cause is proven.
license: MIT
metadata:
  phase: verify
  owners: [senior-engineer, software-engineer, principal-engineer]
  version: "0.1.0"
---

# Systematic Debugging

The expensive failure mode is changing code before understanding the bug. It sometimes
makes the symptom go away, which is worse than not fixing it, because now nobody will look
again.

**No code changes until you can state the cause and predict the fix's effect.**

## Process

### 1. Reproduce

A bug you cannot reproduce is a bug you cannot prove you fixed. Get to a single command,
or a written sequence of steps, that produces the failure reliably.

If it is intermittent, make it deterministic: pin the seed, freeze the clock, force the
interleaving, inject the fault, shrink the data. The work to make it reproducible is
almost always less than the work of debugging it while it flickers.

If you truly cannot reproduce it, say so explicitly and switch to adding observability so
the next occurrence is diagnosable. That is a legitimate outcome; a speculative fix is not.

### 2. Read the evidence you already have

The stack trace, the assertion message, the log line, the error text. Read all of it, in
order, including the parts that look like boilerplate. The cause chain of an error names
the real failure more often than the top message does.

Quote the decisive line. Do not paraphrase an error.

### 3. State what you expected and what happened

In one sentence each. The gap between them is the search space. Most of the time this step
alone reveals a wrong assumption.

### 4. Narrow

Bisect the space, do not sweep it.

- **In time:** when did it last work? `git bisect` on a reliable reproduction is the
  fastest tool available and is chronically underused.
- **In the stack:** is the input to this layer correct? Check the middle first, then halve
  again. Three checks beat twenty guesses.
- **In the data:** which input triggers it? Shrink the failing case to the smallest one
  that still fails.
- **In the environment:** does it fail in a clean checkout, another machine, another
  version?

Change one thing at a time. Two changes and you have learned nothing about either.

### 5. Form a hypothesis that predicts something

A useful hypothesis says: "if this is the cause, then X will be true." Then check X. A
hypothesis that explains the failure but predicts nothing new cannot be tested, only
believed.

### 6. Prove it

Confirm the cause before fixing: add a temporary assertion, log the value, break at the
line, or construct the input that must fail if you are right.

### 7. Fix the cause

Then re-run the reproduction. Then run the full suite. Then write the regression test that
would have caught this, named after the bug.

## Signals you have not found it

- The fix is a retry, a sleep, a lock added because it helped, or a try/catch around the
  symptom.
- You cannot explain why the bug appeared when it did.
- The fix works but you do not know why.
- You changed three things and it started working.

Every one of these means the bug is still there, in a form that will return later and be
harder to find.

## Output

```markdown
## Diagnosis: <symptom>
- **Reproduction:** <the command or steps>
- **Expected / actual:** <one sentence each>
- **Narrowed by:** <what you bisected and how>
- **Cause:** `path:line` — <the mechanism, not the symptom>
- **Proof:** <what you observed that confirms it>
- **Fix:** <the change>
- **Regression test:** <path, and the run>
- **Why it was not caught:** <the gap>
```

## Red flags

| Thought | Reality |
|---------|---------|
| "I'll try changing this and see" | That is guessing. Narrow first. |
| "It works now" | Why? If you cannot say, it will return. |
| "It is probably a race" | Probably is not a diagnosis. Name the two operations and the order. |
| "I cannot reproduce it, but I know the fix" | You know a fix for a bug you have not seen. |
| "Adding a delay fixed it" | You moved the timing. The race is still there. |
| "The stack trace is just framework noise" | Read it. The cause chain is usually below the noise. |
| "I'll add a try/catch for now" | You have hidden the evidence for the next person, who is you. |

Wersje

RepozytoriumWynikLicencja
Ta strona · khuynh22/agent-dev-team100MIT
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 f663a69b5357 (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

  • 100debugging-workflow
    Znajduje przyczynę defektu przez hipotezy i bisekcję zamiast zgadywania, a potem naprawia go z testem regresji, także przy niestabilnych testach i incydentach produkcyjnych.
  • 100debugging
    Prowadzi systematyczne debugowanie przez analizę przyczyn źródłowych przy błędach, nieudanych lub niestabilnych testach, awariach produkcyjnych i integracyjnych, w tym odtworzenie, poprawkę, zapobieganie i post-mortem.
  • 100root-cause-debugging
    Znajduje prawdziwą przyczynę błędu przez minimalne odtworzenie, uszeregowane hipotezy, eksperymenty na jednej zmiennej i bisekcję gita.
  • 100debugging
    Prowadzi systematyczne debugowanie przyczyn źródłowych z weryfikacją przy błędach, stack trace, zepsutych lub niestabilnych testach i regresjach.
  • 100debugging-playbook
    Debuguje zgłoszony błąd krok po kroku: odtwarza go, zawęża przyczynę logami i bisekcją, stosuje najmniejszą poprawkę i dodaje test regresji.
  • 100systematic-debug
    Znajduje przyczynę błędu przed napisaniem poprawki, także gdy awaria przechodzi przez granice komponentów, np. po wklejeniu logu.

Uwagi i zgłoszenia

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