Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

trace-bug

/trace-bug

Prowadzi dyscyplinowaną diagnozę trudnych błędów i regresji wydajności: pętla informacji zwrotnej, odtworzenie, hipotezy, instrumentacja, poprawka i sprzątanie.

Licencja
MIT
Ostatnia zmiana repozytorium
31.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 31.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 dyscyplinowaną diagnozę trudnych błędów i regresji wydajności: pętla informacji zwrotnej, odtworzenie, hipotezy, instrumentacja, poprawka i sprzątanie.

Oryginalny opis (EN)

Disciplined bug diagnosis loop for hard bugs and performance regressions. Use when user reports something broken, throwing, failing, or slow. Follows: feedback loop → reproduce → hypothesise → instrument → fix → cleanup.

Jak działa

  1. Phase 1 — Build a Feedback Loop
  2. Phase 2 — Reproduce + Minimise
  3. Phase 3 — Hypothesise
  4. Phase 4 — Instrument
  5. Phase 5 — Fix + Regression Test
  6. Phase 6 — Cleanup + Post-Mortem
  7. Workspace Integration
Sekcje z nagłówków SKILL.md, w oryginale · 92 linii, 494 słów
Podgląd SKILL.md
---
name: trace-bug
description: Disciplined bug diagnosis loop for hard bugs and performance regressions. Use when user reports something broken, throwing, failing, or slow. Follows: feedback loop → reproduce → hypothesise → instrument → fix → cleanup.
license: MIT
compatibility: opencode
---

# Diagnosing Bugs

A discipline for hard bugs. Skip phases only when explicitly justified.

## Phase 1 — Build a Feedback Loop

**This is the skill.** Everything else is mechanical. If you have a **tight** pass/fail signal for the bug, you will find the cause. If you don't have one, no amount of staring at code will save you.

Spend disproportionate effort here.

### Ways to construct one

1. **Failing test** at whatever seam reaches the bug
2. **Curl / HTTP script** against a running dev server
3. **CLI invocation** with a fixture input, diffing stdout
4. **Headless browser script** (Playwright/Puppeteer)
5. **Replay a captured trace** — save real request/event log
6. **Throwaway harness** — minimal subset that exercises the bug
7. **Bisection harness** — automate boot at state X, check, repeat

### Tighten the loop

- Can I make it faster? (Cache setup, skip unrelated init)
- Can I make the signal sharper? (Assert on specific symptom)
- Can I make it more deterministic? (Pin time, seed RNG)

### Completion Criterion

Phase 1 is done when the loop is **tight** and **red-capable**:
- Drives the actual bug code path and asserts the user's exact symptom
- Deterministic — same verdict every run
- Fast — seconds, not minutes
- Agent-runnable — you can run it unattended

If you catch yourself reading code to build a theory before this command exists, **stop.**

## Phase 2 — Reproduce + Minimise

Run the loop. Watch it go red.

Confirm:
- The loop produces the failure mode the **user** described
- The failure is reproducible across multiple runs

**Minimise:** Shrink the repro to the smallest scenario that still goes red. Cut inputs, callers, config, data one at a time.

Done when every remaining element is load-bearing — removing any makes it go green.

## Phase 3 — Hypothesise

Generate 3-5 ranked hypotheses before testing any. Each must be falsifiable.

> Format: "If X is the cause, then changing Y will make the bug disappear"

Show the ranked list to the user before testing.

## Phase 4 — Instrument

Each probe maps to a specific prediction from Phase 3. Change one variable at a time.

1. Debugger/REPL if env supports
2. Targeted logs at boundaries that distinguish hypotheses
3. Never "log everything and grep"

Tag every debug log with prefix like `[DEBUG-a4f2]`.

## Phase 5 — Fix + Regression Test

1. Turn the minimised repro into a failing test at a correct seam
2. Watch it fail
3. Apply the fix
4. Watch it pass
5. Re-run the Phase 1 feedback loop against original scenario

## Phase 6 — Cleanup + Post-Mortem

Before declaring done:
- Original repro no longer reproduces
- Regression test passes
- All debug instrumentation removed
- The correct hypothesis is stated in commit/PR message

Then ask: what would have prevented this bug?

## Workspace Integration

**Related rules:** `.opencode/rules/testing.md` (quality gates), `.opencode/rules/coding.md`
**Related workflow:** `.opencode/workflows/bugfix.md`
**Related agents:** `@developer`, `@researcher`
**Related skills:** `debug`, `verify-completion`, `tdd`

Wersje

W bazie nie ma innych skilli o nazwie trace-bug.

Migawka bazy z 13.11.2026 · wersja paczki b54c9e35deee (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

  • 100diagnose
    Prowadzi zdyscyplinowaną pętlę diagnozy trudnych błędów i regresji wydajności: odtworzenie, minimalizacja, hipoteza, instrumentacja, poprawka i test regresji.
  • 90diagnose
    Prowadzi zdyscyplinowaną pętlę diagnozy trudnych błędów i regresji wydajności: reprodukcja, minimalizacja, hipoteza, instrumentacja, naprawa i test regresji.
  • 90diagnose
    Prowadzi zdyscyplinowaną pętlę diagnozy trudnych błędów i regresji wydajności: reprodukcja, minimalizacja, hipoteza, instrumentacja, naprawa i test regresji.
  • 90diagnose
    Diagnozuje trudne błędy i regresje wydajności pętlą: odtworzenie, zawężenie, hipotezy, pomiar, poprawka i test.
  • 90diagnose
    Prowadzi diagnozę zgłoszonego błędu lub spadku wydajności: odtwarza problem, formułuje hipotezy i dodaje test regresji.
  • 90diagnosing-bugs
    Prowadzi pętlę diagnozy trudnych błędów i regresji wydajności: od odtworzenia, przez hipotezy, po sprawdzenie przyczyny.

Uwagi i zgłoszenia

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