AgentSkillsCN

Tdd

TDD

SKILL.md

TDD Skill

Use when

  • Implementing new behavior where correctness matters
  • Fixing bugs with unclear boundaries

Loop

  1. Write a failing test
  2. Implement the minimal fix
  3. Refactor safely
  4. Re-run tests

Done criteria

  • Tests cover the intended behavior
  • No unnecessary refactors