Agent skill
tdd
Test-Driven Development workflow'u için kullan. "/tdd" komutuyla veya "test yaz", "tdd ile yap" ifadesi geçtiğinde devreye gir. Mevcut bir component/hook/service için test yazmak istendiğinde de kullan.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tdd-cagan-rn-todo-app
SKILL.md
TDD Workflow
Kullanım
Bu skill, mevcut veya yeni kod için TDD döngüsünü uygular.
Adımlar
1. Hedefi Belirle
- Hangi dosya/component test edilecek?
- Mevcut test dosyası var mı? (kontrol et)
2. Test Dosyası Oluştur (yoksa)
src/{component|hook|service}/__tests__/FileName.test.tsx
3. Test Senaryolarını Belirle
rules/testing-standards.md'ye göre:
- Happy path
- Error path
- Edge case'ler (empty, null, max length vb.)
4. Testleri Yaz (RED)
Önce failing testleri yaz.
npm test -- --testPathPattern=FileName ile confirm et — fail olması beklenen.
5. Implementation (GREEN)
Testleri geçirecek minimum kodu yaz.
npm test çalıştır — GREEN olana kadar iterate et.
6. Refactor
Testler GREEN iken kodu temizle.
npm test tekrar çalıştır — GREEN'de kaldığını doğrula.
7. Coverage Raporu
npm test -- --coverage --testPathPattern=FileName
Raporu kullanıcıya göster.
@tdd-guide Subagent ile Fark
- Bu skill: Hızlı, interaktif TDD — mevcut component'ler için
- @tdd-guide subagent: implement-feature pipeline içinde izole context'te çalışır
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?