tdd-pstack
/tdd-pstack
Pisze nieudany test regresyjny przed poprawką błędu, gdy użytkownik prosi o TDD albo ma tani lokalny test.
- Autor
- oldwinter ↗
- Repozytorium
- skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 20.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 20.10.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
Pisze nieudany test regresyjny przed poprawką błędu, gdy użytkownik prosi o TDD albo ma tani lokalny test.
Oryginalny opis (EN)
TDD bug fix: write the failing regression test before the fix. Use only when the user explicitly asks for TDD or a failing/regression test, or when a bug has an obvious cheap local test target; use the full tdd workflow for feature TDD. Skip when the test path is unclear, expensive, integration-heavy, or not requested.
Jak działa
- Workflow
- If a Failing Test Is Impractical
- Guardrails
- Final Response
Podgląd SKILL.md
--- name: tdd-pstack description: "TDD bug fix: write the failing regression test before the fix. Use only when the user explicitly asks for TDD or a failing/regression test, or when a bug has an obvious cheap local test target; use the full tdd workflow for feature TDD. Skip when the test path is unclear, expensive, integration-heavy, or not requested." --- # TDD Bug Fix When fixing a bug with a clear, cheap test path, make the broken behavior executable before changing production code. The goal is a focused regression test that fails before the fix and passes after it. Do not force a test when it would be impractical. If the available test would require broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, vague reproduction steps, or large unrelated fixture churn, skip adding a new test and use the closest useful verification instead. ## Workflow 1. **Understand the bug.** Identify the intended behavior, current behavior, affected path, and smallest observable reproduction. 2. **Choose the narrowest executable check.** Prefer the closest unit, component, integration, or regression test already used for that codepath. If no practical test path is obvious, do not create one from scratch just to satisfy the workflow. 3. **Write the failing test first.** Add the smallest focused test that would have caught the bug. The test should encode intended behavior, not mirror the current implementation. 4. **Run the new test before fixing.** Confirm it fails for the intended reason. Quote the failure content, not the assertion line: an exception, an empty result against a literal, and the predicted mismatch all print red, and only the last one proves the test measures the bug. If it passes or fails for an unrelated reason, correct the test or reproduction before editing the implementation. 🔴 CHECKPOINT: no production edit until the failing run is quoted and the failure reason is explained. 5. **Fix the bug.** Make the smallest production change that satisfies the intended behavior while preserving nearby contracts. 6. **Rerun the regression test.** Confirm the test now passes. ## If a Failing Test Is Impractical Use the closest executable regression check instead: a targeted script, manual reproduction command, browser automation, snapshot comparison, log assertion, or focused integration check. Prefer no new test over a bad test. A bad test is one that mostly tests mocks, encodes current implementation details, depends on timing or unrelated global state, needs expensive infrastructure for a small fix, or would be deleted immediately after proving the fix. ## Guardrails - Do not change tests merely to match a wrong implementation. - Do not weaken existing assertions unless the expected behavior has genuinely changed and the reason is clear. - Keep the regression test focused on the bug. Avoid broad fixture churn or unrelated coverage expansion. - If the bug is flaky, make the test deterministic where possible and document the signal being locked down. - If the bug exposes a broader class of failures, first land the focused regression path, then consider additional sibling coverage. ## Final Response Report the evidence, not just the outcome: - Name the failing-before test or executable check and quote the failure it produced, trimmed to the diff. - Name the passing-after test run and any nearby validation performed. - If failing-before evidence could not be demonstrated, state why and describe the closest regression check used instead.
Pliki w paczce (4)
- LICENSE 1 KB
- NOTICE.md 1 KB
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
Wersje
W bazie nie ma innych skilli o nazwie tdd-pstack.
Migawka bazy z 13.11.2026 · wersja paczki 658d501b35c7 (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
- 100tdd
Stosuje TDD tylko na wyraźne życzenie albo gdy błąd ma tani lokalny test; w innych przypadkach pomija go. - 100tdd
Stosuje TDD tylko na wyraźne życzenie albo gdy błąd ma tani lokalny test; w innych przypadkach pomija go. - 100tdd
Stosuje TDD tylko na wyraźne życzenie albo gdy błąd ma tani lokalny test; w innych przypadkach pomija go. - 100tdd
Stosuje TDD tylko na jawną prośbę o TDD, padający test lub test regresji albo gdy błąd ma tani, lokalny cel testowy. - 100tdd
Stosuje TDD tylko na jawną prośbę o TDD, padający test lub test regresji albo gdy błąd ma tani, lokalny cel testowy. - 100tdd
Stosuje TDD tylko na jawną prośbę o TDD, padający test lub test regresji albo gdy błąd ma tani, lokalny cel testowy.