🇺🇸 English🇨🇳 中文
SkillsNav
Home

test-driven-development

★ 5.5K repogenerationN/A

How to Install

Claude Code:
git clone --depth 1 https://github.com/jnMetaCode/superpowers-zh.git && cp superpowers-zh/skills/test-driven-development ~/.claude/skills/test-driven-development
Cursor:
Copy the SKILL.md content into your .cursorrules file
# 测试驱动开发(TDD) ## 概述 先写测试。看它失败。写最少的代码让它通过。 **核心原则:** 如果你没有看到测试失败,你就不知道它是否测试了正确的东西。 **违反规则的字面意思就是违反规则的精神。** ## 何时使用 **始终使用:** - 新功能 - Bug 修复 - 重构 - 行为变更 **例外(需询问你的人类伙伴):** - 一次性原型 - 生成的代码 - 配置文件 想着"就这一次跳过 TDD"?停下来。那是在给自己找借口。 ## 铁律 ``` 没有失败的测试,就不写生产代码 ``` 先写了代码再写测试?删掉它。从头来过。 **没有例外:** - 不要保

Details

Category Coding → generation
Sourcehttps://github.com/jnMetaCode/superpowers-zh
Stars★ 5.5K
Risk LevelN/A

Related Skills