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.
- Autor
- mirko-roehlich ↗
- Repozytorium
- yaw ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 1
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 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. Pick the level
- 2. Red
- 3. Green
- 4. Refactor, with the file still green
- 5. Commit
- Hard stops
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
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · mirko-roehlich/yaw | 85 | MIT |
| kdlbs/kandev | 100 | AGPL-3.0 |
| sentimony/skills | 100 | MIT |
| sentimony/skills | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| duronext/jig | 100 | MIT |
| xoai/sage | 100 | MIT |
| rolemodel/skills | 100 | MIT |
| matteocodogno/wellforge | 100 | MIT |
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.