Agent Skills
› wibus-wee/see
› tdd
tdd
GitHub遵循TDD流程,先写最小失败测试,再实现代码使其通过,最后重构。适用于有明确验证目标的特性或Bug修复。
Trigger Scenarios
实现新功能
修复Bug
Install
npx skills add wibus-wee/see --skill tdd -g -y
SKILL.md
Frontmatter
{
"name": "tdd",
"description": "Write a minimal failing test before implementation, make it pass with the simplest code, and refactor cleanly. Use when implementing bug fixes or features with clear verification targets."
}
Test-Driven Development (TDD)
- Understand the exact requirement or bug and identify the narrowest executable check.
- Write the failing test first. Ensure it fails for the expected reason, not a setup or syntax error.
- Implement the minimal production code needed to make the failing test pass. Avoid speculative features.
- Re-run the test to confirm green.
- Refactor: clean up names, remove duplication, and simplify structure while keeping tests green.
- Verify adjacent tests and broader contracts to ensure no regressions.
Version History
- b47adae Current 2026-11-26 00:11


