AGENT SKILL

tdd-cycle

Use when the implementer writes or changes production behavior.

License 许可
MIT
所属仓库
korallis/K-pi
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
tdd-cycle
description
Use when the implementer writes or changes production behavior.

03 SKILL.md 正文

TDD cycle

For non-trivial behavior, add or update the smallest test that expresses the frozen acceptance criterion. Run it before production changes and preserve the failing command, exit code, and relevant output in evidence.json. Implement only enough to make that behavior pass, then rerun the focused test.

Never weaken an assertion to obtain green. Keep deterministic tests isolated and full-suite safe. A one-line fix may skip the red step only when task.json identifies it as trivial.

04 同仓库更多 Skills