AgentSkillsCN

tdd-workflow

针对测试驱动开发,完整执行红-绿-重构三阶段循环

SKILL.md
--- frontmatter
name: tdd-workflow
description: Full TDD Red-Green-Refactor cycle for test-driven development

TDD Workflow

Invoke the TDD Red-Green-Refactor cycle for the given feature or bug fix.

  1. Write a failing test that describes the expected behavior
  2. Run it to confirm it fails
  3. Write the minimum implementation to make it pass
  4. Run it to confirm it passes
  5. Refactor while keeping tests green
  6. Check coverage meets 80% threshold