Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

principle-fix-root-causes

/principle-fix-root-causes

Odtwarza błąd lub nieoczekiwanie padający test, śledzi objaw do przyczyny i naprawia przyczynę w miejscu, w którym powstała.

Repozytorium
fbs ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.11.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 05.11.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

Odtwarza błąd lub nieoczekiwanie padający test, śledzi objaw do przyczyny i naprawia przyczynę w miejscu, w którym powstała.

Oryginalny opis (EN)

Use when fixing a bug or a test that fails unexpectedly: reproduce it first, trace the symptom to its cause, and fix the cause rather than the place the symptom appeared.

Jak działa

  1. When it applies
  2. The rules
  3. The test
Sekcje z nagłówków SKILL.md, w oryginale · 22 linii, 294 słów
Podgląd SKILL.md
---
name: principle-fix-root-causes
description: "Use when fixing a bug or a test that fails unexpectedly: reproduce it first, trace the symptom to its cause, and fix the cause rather than the place the symptom appeared."
user-invocable: false
---

# Fix root causes

A fix at the place the symptom shows usually moves the bug instead of removing it. The second report of the same bug, in a new shape, costs more than finding the cause the first time.

## When it applies

Whenever you fix a defect, a failing test, a crash or a wrong result, and when a review finding says something is broken.

## The rules

1. **Reproduce first.** Write a failing test, or record exact steps that show the defect, before you change any code. If you can't reproduce it, say so, add the check or log that would catch it next time, and don't call a guess a fix.
2. **Quote the actual failure.** The full output that matters: the error, the stack, the received and expected values. Not just the assertion line.
3. **Trace, don't guess.** Follow the wrong value back to where it is first wrong, with `path:line` at each step. Read the code; don't infer from names.
4. **Fix the cause.** Change the place where the wrong value is produced, not the place it is noticed. No catch-and-ignore, no special case for the one input that failed. When the cause is a provider you can't change, handle it at the boundary (`principle-boundary-discipline`).
5. **Two strikes, then question the premise.** When two fixes for the same symptom fail, stop. Name the assumption both fixes shared and test that assumption before trying a third.
6. **Look for siblings.** Search for other places that make the same mistake. Report them; fix only those inside your task's scope.

## The test

The reproduction fails before the fix and passes after it, the fix's diff touches the place the trace ended, and no try/catch or special case hides the symptom.

Wersje

RepozytoriumWynikLicencja
Ta strona · fabricio21x/fbs100MIT
requie/endostack100MIT
chmonitor/chmonitor86GPL-3.0
xinhi6716/axiom-atropos86MIT
workerstack/clients86MIT
jirayusueb/egm-stack86Apache-2.0
robansuini/pstack-codex86MIT
vahaah/astack86MIT
itsvedantkumar/vstack86MIT

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

Pobrania w ostatnich 30 dniach: 1 · ranking

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

Podobne skille

  • 100fix
    Naprawia błąd metodą test-first: pisze padający test odtwarzający błąd, znajduje przyczynę źródłową, poprawia i dodaje test regresji.
  • 100tdd-fix
    Naprawia błąd test-first: pisze padający test odtwarzający błąd, szuka przyczyny źródłowej, poprawia kod i dodaje test regresji.
  • 90fix-issue
    Naprawia zgłoszenie z GitHuba: odtwarza błąd, znajduje przyczynę, poprawia kod i dodaje test regresji.
  • 96fix-bug
    Naprawia usterkę: odtwarza ją, pisze nieprzechodzący test, znajduje przyczynę, poprawia kod i zapisuje wniosek.
  • 90root-cause
    Znajduje i naprawia właściwą przyczynę błędu, zamiast łatać objaw w miejscu zgłoszenia, śledząc zły stan do jego źródła.
  • 100debug
    Diagnozuje nieudany test, build, awarię lub regresję bez edycji kodu: odtwarza objaw, sprawdza hipotezy i wskazuje przyczynę.

Uwagi i zgłoszenia

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