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.
- Autor
- fabricio21x ↗
- Repozytorium
- fbs ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 05.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.
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
- When it applies
- The rules
- The test
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
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · fabricio21x/fbs | 100 | MIT |
| requie/endostack | 100 | MIT |
| chmonitor/chmonitor | 86 | GPL-3.0 |
| xinhi6716/axiom-atropos | 86 | MIT |
| workerstack/clients | 86 | MIT |
| jirayusueb/egm-stack | 86 | Apache-2.0 |
| robansuini/pstack-codex | 86 | MIT |
| vahaah/astack | 86 | MIT |
| itsvedantkumar/vstack | 86 | MIT |
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ę.