·test-driven-development
</>

test-driven-development

carvalab/k-skills

TDD 工作流程指南。在编写新功能或修复错误时主动使用。强制红-绿-重构循环并防止测试反模式。

6安装·0热度·@carvalab

安装

$npx skills add https://github.com/carvalab/k-skills --skill test-driven-development

SKILL.md

Write tests before code. The test is the specification. If you can't write a test, you don't understand the requirement.

Test commands by language: | Language | Run Tests | Watch Mode |

| Go | go test ./... | go test ./... -v | | Node/TS | npm test | npm test -- --watch | | Python | pytest | pytest-watch | | Java | ./mvnw test | ./mvnw test -Dtest= |

TDD 工作流程指南。在编写新功能或修复错误时主动使用。强制红-绿-重构循环并防止测试反模式。 来源:carvalab/k-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/carvalab/k-skills --skill test-driven-development
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 test-driven-development?

TDD 工作流程指南。在编写新功能或修复错误时主动使用。强制红-绿-重构循环并防止测试反模式。 来源:carvalab/k-skills。

如何安装 test-driven-development?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/carvalab/k-skills --skill test-driven-development 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/carvalab/k-skills