AgentSkillsCN

tdd-playbook

严格遵循TDD(红/绿/重构),优先进行领域单元测试和小步骤。

SKILL.md
--- frontmatter
name: tdd-playbook
description: Guides strict TDD (red/green/refactor), prioritizing domain unit tests and small steps.
allowed-tools: Read, Edit, Grep, Glob

TDD Playbook (training)

  • One failing test at a time.
  • Minimal code to pass.
  • Refactor only with green tests.
  • Prefer domain tests over UI tests. If stuck: restate smallest invariant and propose the next tiny test.