tdd
/tdd
Implementuje funkcje w ścisłym TDD z cyklem red-green-refactor: najpierw nieprzechodzący test, potem minimalny kod i refaktoryzacja, dla funkcji wymagających wysokiej niezawodności.
- Autor
- viknesh20-20 ↗
- Repozytorium
- claude-code-tool-kit ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.05.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.05.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
Implementuje funkcje w ścisłym TDD z cyklem red-green-refactor: najpierw nieprzechodzący test, potem minimalny kod i refaktoryzacja, dla funkcji wymagających wysokiej niezawodności.
Argumenty
/tdd [feature or function to implement]
Oryginalny opis (EN)
Implements features using strict test-driven development — red-green-refactor cycle. Writes a failing test first, then minimal code to pass, then refactors. Use when building features that need high reliability.
Jak działa
- Detect Test Environment
- The TDD Cycle
- Test Progression
- Output
- Rules
Podgląd SKILL.md
--- name: tdd description: "Implements features using strict test-driven development — red-green-refactor cycle. Writes a failing test first, then minimal code to pass, then refactors. Use when building features that need high reliability." argument-hint: "[feature or function to implement]" allowed-tools: Read, Grep, Glob, Bash, Write, Edit --- # Test-Driven Development ## Detect Test Environment !`ls package.json pytest.ini pyproject.toml go.mod Cargo.toml *.csproj Gemfile mix.exs 2>/dev/null` !`find . -type f \( -name "*.test.*" -o -name "*.spec.*" -o -name "test_*" -o -name "*_test.*" \) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | head -5` --- ## The TDD Cycle For the requested feature, repeat this cycle until complete: ### RED — Write a Failing Test 1. Write the smallest possible test that describes the next piece of behavior 2. The test must import/reference the function or module (even if it doesn't exist yet) 3. Run the test — it MUST fail 4. Verify the failure message is meaningful (not just a compilation error) ### GREEN — Make It Pass 1. Write the absolute minimum code to make the test pass 2. Hardcoding is acceptable at this stage — it will be cleaned up in refactor 3. Don't add functionality the test doesn't require 4. Run the test — it MUST pass 5. Run all related tests — nothing else should break ### REFACTOR — Clean Up 1. Remove duplication in both production and test code 2. Improve naming, extract methods, simplify logic 3. Run tests after every refactoring step — they must stay green 4. Stop when the code is clean ## Test Progression Start simple, add complexity gradually: 1. Null/empty/zero case 2. Single item / simplest valid input 3. Multiple items / typical case 4. Edge cases / boundary values 5. Error cases / invalid input 6. Async / concurrent behavior (if applicable) ## Output - Show each cycle clearly: RED (test code + failure), GREEN (impl + pass), REFACTOR - Display test runner output at each step - Final summary: all tests, coverage of the feature ## Rules - NEVER write implementation before a failing test - NEVER skip the refactor step - One behavior per cycle — don't batch multiple features - If the test framework isn't set up, set it up first
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · viknesh20-20/claude-code-tool-kit | 90 | 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 ba2213e87ab0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 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. - 90test-driven-development
Prowadzi przez cykl TDD przy nowych funkcjach i poprawkach: jeden czerwony test, minimalny kod, potem refaktoryzacja. - 100tdd-expert
Prowadzi pracę ścisłym cyklem Red-Green-Refactor: jeden padający test, minimalny kod i refaktoryzacja na zielonym, z planowaniem listy testów i przykładowym cyklem kata. - 100tdd-feature
Dostarcza szkielet red-green-refactor do budowy nowych funkcji w TDD: najpierw padające testy, potem implementacja, która je przechodzi. - 100test-driven-development-tdd-workflow
Prowadzi iteracyjny rozwój oprogramowania zgodnie ze ścisłym cyklem czerwone, zielone, refaktoryzacja. - 100sdlc-tdd
Prowadzi rozwój testami w pionowych krokach: najpierw nieudany test, potem minimalny kod i refaktoryzacja.