test-first
/test-first
Prowadzi jedną funkcję przez ścisły cykl TDD Red-Green-Refactor z listami kontrolnymi dla każdej fazy.
- Autor
- claude-world ↗
- Repozytorium
- director-mode-lite ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.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 21.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
Prowadzi jedną funkcję przez ścisły cykl TDD Red-Green-Refactor z listami kontrolnymi dla każdej fazy.
Oryginalny opis (EN)
Drive one feature through a strict TDD Red-Green-Refactor cycle with checklists for each phase. Use when implementing new functionality test-first, or when the user runs /test-first.
Jak działa
- Quick Steps
- Red Phase - Write Failing Test
- Green Phase - Minimal Implementation
- Refactor Phase - Clean Up
- Test Quality Checklist
Podgląd SKILL.md
---
name: test-first
description: Drive one feature through a strict TDD Red-Green-Refactor cycle with checklists for each phase. Use when implementing new functionality test-first, or when the user runs /test-first.
user-invocable: true
---
# Test-Driven Development
Implement TDD for: $ARGUMENTS
## Quick Steps
1. Write a failing test
2. Run test, confirm failure
3. Write minimal code to pass
4. Refactor while keeping tests green
5. Repeat
---
## Red Phase - Write Failing Test
### Test Design Principles
- **Test one specific behavior**
- **Test name describes expected result**
- **Test should fail (feature doesn't exist yet)**
### Must Test
- [ ] Normal case
- [ ] Edge cases
- [ ] Error cases
- [ ] Invalid input
### Example
```typescript
// auth/login.test.ts
it('should return JWT token for valid credentials', async () => {
const res = await request(app)
.post('/auth/login')
.send({ email: 'test@example.com', password: 'password123' })
expect(res.status).toBe(200)
expect(res.body.token).toBeDefined()
})
```
---
## Green Phase - Minimal Implementation
### Implementation Principles
- **Write ONLY enough code to pass the test**
- **Don't optimize yet**
- **Don't worry about elegance**
- **Just make it work**
---
## Refactor Phase - Clean Up
### Refactoring Checklist
- [ ] Is there code duplication?
- [ ] Are variable names clear?
- [ ] Are functions too long?
- [ ] Is the logic too complex?
### Refactoring Rules
- **Keep tests passing**
- **Change one thing at a time**
- **Run tests frequently**
---
## Test Quality Checklist
- [ ] Unit tests cover core logic
- [ ] Integration tests cover interactions
- [ ] Test names clearly describe intent
- [ ] Tests are independent and repeatable
- [ ] Tests run fast (unit tests < 100ms)
- [ ] Edge cases are covered
---
Follow TDD strictly. No shortcuts.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · claude-world/director-mode-lite | 100 | MIT |
| NoobyGains/godmode | 100 | MIT |
| tojim00d/Orbit-skills | 100 | MIT |
| Cynnamoroll/factory-stack | 100 | MIT |
| duthaho/claudekit | 100 | MIT |
| DemonPalace/DoneCheck | 90 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki e960094ac1b2 (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
Wymusza ścisły cykl czerwony, zielony, refaktoryzacja: jeden nieudany test naraz i sprawdzenie pochodzenia testów. - 100tdd
Prowadzi przez TDD z pętlą red-green-refactor przy budowie funkcji i naprawie błędów, także z testami integracyjnymi. - 100tdd
Prowadzi przez TDD z pętlą red-green-refactor przy budowie funkcji i naprawie błędów, także z testami integracyjnymi. - 100tdd
Prowadzi przez TDD z pętlą red-green-refactor przy budowie funkcji i naprawie błędów, także z testami integracyjnymi. - 96tdd-workflows-tdd-cycle
Prawdopodobnie prowadzi przez cykl programowania sterowanego testami: red, green, refactor. - 96tdd-workflows-tdd-cycle
Prawdopodobnie prowadzi przez cykl programowania sterowanego testami: red, green, refactor.