Skip to content
Agent Orchestration
Skill

/tdd

Test-Driven Development workflow. Use when writing new features, fixing bugs, or refactoring code. Enforces RED-GREEN-REFACTOR cycle with 80%+ coverage.

BOOST
From plugin
claude-agents-skills
1436 skills4 agents
Install
$ npx -y skills add selmakcby/claude-agents-skills --skill tdd --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/tdd

Context preview

The summary Claude sees to decide when to auto-load this skill.

Test-Driven Development workflow. Use when writing new features, fixing bugs, or refactoring code. Enforces RED-GREEN-REFACTOR cycle with 80%+ coverage.

SKILL.md

tdd.SKILL.md
name: tdd
description: Test-Driven Development workflow. Use when writing new features, fixing bugs, or refactoring code. Enforces RED-GREEN-REFACTOR cycle with 80%+ coverage.

TDD — Test-Driven Development

Ne zaman tetiklenir

  • Yeni özellik yazıldığında
  • Bug fix öncesi (hatayı üreten test ilk yazılır)
  • Refactor sırasında (mevcut testler yeşil kalmalı)

RED — GREEN — REFACTOR

1. RED — Önce başarısız test yaz

  • Yeni davranışı test olarak yaz
  • Testi çalıştır, **başarısız olduğunu** gör
  • Başarısız olmazsa, test gerçekten bir şey ölçmüyor demektir

2. GREEN — Minimum kodu yaz

  • Testi geçiren **en az** kodu yaz
  • Güzel olmasına çalışma, sadece geçsin
  • Testin geçtiğini doğrula

3. REFACTOR — Temizle

  • Kod çalışıyor, şimdi netleştir
  • Testler yeşil kalmalı
  • İsim düzelt, duplication kaldır, fonksiyonları böl

Kapsam hedefleri

  • **Genel kod:** %80+ coverage
  • **Kritik:** auth, ödeme, güvenlik → %100 coverage
  • **Test türleri (hepsi gerekli):**
  • Unit (fonksiyon/utility)
  • Integration (API, DB)
  • E2E (kritik kullanıcı akışları)

Kurallar

  • Önce test, sonra kod. İstisnasız.
  • Test başarısız olursa kodu düzelt — **testi düzeltme**
  • Tüm dış bağımlılıkları mock'la (DB, API'ler, 3. parti)
  • Testler bağımsız olmalı (state paylaşmamalı)
Ships withclaude-agents-skills

Bu repo, YouTube videomdaki Claude Code ajanları + skill'ler setup'ının tam halidir. Kopyala, kendi makinene kur, 20 dakikada aynı sistem sende. Bölüm 1 — bu video · Ajanlar + Skills temel yapı Bölüm 2 — sonraki video · Ajanlar + Obsidian (kalıcı hafıza)

Get the whole plugin

Other skills on claude-agents-skills.