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

test-first

/test-first

Pisze test pinujący zachowanie, potem sprawia, by przechodził, i refaktoryzuje, przy prośbach o TDD lub test regresji.

Repozytorium
factory-stack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.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 10.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

Pisze test pinujący zachowanie, potem sprawia, by przechodził, i refaktoryzuje, przy prośbach o TDD lub test regresji.

Oryginalny opis (EN)

Write a failing test that pins the behavior, make it pass, then refactor. Use when the user asks for TDD or a regression test, or when a bug has an obvious reproduction; not for skill or prompt eval loops (use eval-runs or eval-hillclimb).

Jak działa

  1. Steps
  2. When a test is impractical
  3. Guardrails
  4. Done when
Sekcje z nagłówków SKILL.md, w oryginale · 31 linii, 337 słów
Podgląd SKILL.md
---
name: test-first
description: "Write a failing test that pins the behavior, make it pass, then refactor. Use when the user asks for TDD or a regression test, or when a bug has an obvious reproduction; not for skill or prompt eval loops (use eval-runs or eval-hillclimb)."
license: MIT
compatibility: droid
---

# Test first

Make the intended behavior executable before changing production code. The test fails before the change and passes after it.

## Steps

1. **Pin the behavior.** State the intended behavior, the current behavior, and the smallest observable case.
2. **Pick the narrowest test.** Use the closest unit, component, or integration test the codebase already has for that path. Do not build a new harness just to satisfy this skill.
3. **Write the test.** Drive the code through the interface its users touch. Derive the expected value from the requirement, not from a run of the code. See `engineering-principles` (test-behavior-not-implementation).
4. **Watch it fail.** Run it. It must fail for the intended reason. If it passes, or fails for another reason, fix the test first.
5. **Make it pass.** Write the smallest production change that satisfies the test.
6. **Rerun.** The new test passes, and the nearby tests still pass.
7. **Refactor.** Clean up with the tests green. Rerun after each step.
8. **Order the commits.** The failing test lands before the fix, so a reviewer can watch it go red, then green.

## When a test is impractical

If the only test would need broad harness setup, brittle mocks, production-only state, or large fixture churn, use the closest executable check instead: a script, a repro command, or an app drive through `prove-it-works`. No new test beats a bad test.

## Guardrails

- Never change a test to match a wrong implementation.
- Never weaken an existing assertion unless the expected behavior changed, and say why.
- Keep the test on this behavior. No unrelated coverage.
- For a flaky bug, make the test deterministic and name the signal it locks down.

## Done when

The reply names the test, pastes its failing output from before the change and its passing output after, lists the nearby checks you ran, and confirms the production change is limited to what the test required. If no failing test was practical, it says why and shows the check used instead.

Wersje

RepozytoriumWynikLicencja
Ta strona · Cynnamoroll/factory-stack100MIT
NoobyGains/godmode100MIT
tojim00d/Orbit-skills100MIT
claude-world/director-mode-lite100MIT
duthaho/claudekit100MIT
DemonPalace/DoneCheck90MIT

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

  • 100eng-tdd
    Naprawia błąd metodą najpierw test, gdy istnieje jasna i tania ścieżka testu regresji, przy prośbie o TDD albo test regresji.
  • 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.
  • 100tdd-pstack
    Pisze nieudany test regresyjny przed poprawką błędu, gdy użytkownik prosi o TDD albo ma tani lokalny test.
  • 100tdd
    Pisze testy najpierw: buduje funkcję od czerwonego do zielonego przy uzgodnionych punktach styku albo naprawia błąd testem regresji.

Uwagi i zgłoszenia

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