Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

tdd

/tdd

Przeprowadza jedno zachowanie cyklem czerwony, zielony, refaktoryzacja: wybiera poziom testu, uruchamia tylko jeden plik i sprawdza, że test pada z właściwego powodu.

Repozytorium
yaw ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

85/ 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ść20 / 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
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.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 sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Przeprowadza jedno zachowanie cyklem czerwony, zielony, refaktoryzacja: wybiera poziom testu, uruchamia tylko jeden plik i sprawdza, że test pada z właściwego powodu.

Argumenty

/tdd <behaviour sentence>
Oryginalny opis (EN)

Red, green, refactor for exactly one behaviour. Pick the test level, run only that file, watch it fail for the right reason, make it pass, refactor, commit. The implement-issue skill uses it. Use it directly for a bug fix, with the reproducer first.

Jak działa

  1. 1. Pick the level
  2. 2. Red
  3. 3. Green
  4. 4. Refactor, with the file still green
  5. 5. Commit
  6. Hard stops
Sekcje z nagłówków SKILL.md, w oryginale · 52 linii, 340 słów
Podgląd SKILL.md
---
name: tdd
description: Red, green, refactor for exactly one behaviour. Pick the test level, run only that file, watch it fail for the right reason, make it pass, refactor, commit. The implement-issue skill uses it. Use it directly for a bug fix, with the reproducer first.
argument-hint: "<behaviour sentence>"
---

# One behaviour: $ARGUMENTS

The rules are in `.claude/rules/tdd.md`. This is the procedure. Read the rule once
per session, not once per behaviour.

## 1. Pick the level

The narrowest level that can express the behaviour.

<!-- Adoption fills this table with the test levels of the project. -->

| Level | What it tests | Where the test goes | Run one file |
| --- | --- | --- | --- |
| <unit> | <pure rules, invariants> | <beside the code> | `<command> <file>` |
| <integration> | <the database, a service> | <…> | `<command> <file>` |
| <end to end> | <a path through the running app> | <…> | `<command>` |

## 2. Red

In the workflow, the test exists already and belongs to the `tester`. Run only that
file. It must fail on an assertion. A compile error, a missing export, or an import
failure is the wrong reason: add the minimal export or type that the `## Contract` of
the plan names, run it again, and continue only when the failure is the assertion. A
wrong test is a dispute (`implement-issue`, step 6). Note the failing assertion in one
line.

Outside the workflow, for a bug fix in a session of your own, write the reproducer
yourself, through the public surface of the module. Then continue the same way.

## 3. Green

Write the minimum production code that passes. Do not make it general. Run the file
again.

## 4. Refactor, with the file still green

Apply the naming and comment rules of `.claude/rules/`. Remove duplication. Run the
file again.

## 5. Commit

One behaviour, one commit, as `.claude/rules/pr-workflow.md` says:
`<scope>: <imperative summary>`, with a body that says why. A refactor is its own
commit and never shares one with a behaviour.

## Hard stops

- No skipped or focused test in the tree.
- Production code before a red test: put it aside, watch the test fail without it,
  then bring it back. Never change the test to fit the code.

Wersje

RepozytoriumWynikLicencja
Ta strona · mirko-roehlich/yaw85MIT
kdlbs/kandev100AGPL-3.0
sentimony/skills100MIT
sentimony/skills100MIT
TerminalSkills/skills100Apache-2.0
duronext/jig100MIT
xoai/sage100MIT
rolemodel/skills100MIT
matteocodogno/wellforge100MIT

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

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 100test-driven-development
    Buduje funkcje i naprawia błędy test-first: jeden test, który pada z właściwego powodu, minimalny kod i refaktoryzacja.
  • 100test-driven-development
    Pisze test, który najpierw pada z właściwego powodu, potem minimalna zmiana go przechodzi, a na koniec refaktoryzacja.
  • 100tdd-workflow
    Pisze funkcje i poprawki test-first w cyklu czerwony, zielony, refaktor.
  • 90tdd-loop
    Prowadzi cykl czerwony, zielony, refaktoryzacja przy dodawaniu zachowania albo naprawie błędu, zaczynając od testu, który nie przechodzi.
  • 100red-green-refactor
    Prowadzi przez cykl TDD red-green-refactor: najpierw test, który pada, potem minimalny kod przechodzący test i refaktoryzacja przy zielonych testach.
  • 90tdd-red-green-refactor
    Prowadzi zmianę w krótkich cyklach czerwony, zielony, refaktoryzacja, z Claude w roli dyscyplinowanego partnera i widoczną listą testów.

Uwagi i zgłoszenia

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