AgentSkillsCN

tdd-loop

TDD循环检查清单:先写测试,再实现功能,随后进行重构,并最终验证结果。

SKILL.md
--- frontmatter
name: tdd-loop
description: TDD loop checklist: tests first, implement, refactor, verify.

TDD Loop

  • Write failing tests first (cover happy path + edge cases).
  • Implement minimal code to pass tests.
  • Refactor (keep tests green).
  • Run full test suite before declaring done.