tdd-workflow

Installation
SKILL.md

TDD 工作流 Skill

核心原则

强制要求:所有新功能、Bug 修复、重构必须达到 80% 以上测试覆盖率

RED-GREEN-REFACTOR 循环

1. RED(写测试,测试失败)

先写测试,验证测试会失败(因为功能尚未实现)。

2. GREEN(实现代码,测试通过)

编写最小代码使测试通过。

3. REFACTOR(重构代码,保持测试通过)

优化代码,保持所有测试通过。

工作流程

Related skills

More from cacr92/wereply

Installs
5
Repository
cacr92/wereply
GitHub Stars
1
First Seen
Mar 10, 2026