·tdd

使用垂直切片示踪子弹工作流程指导测试驱动的开发。在实现功能、修复错误或编写应驱动设计的测试时使用。通过公共接口强制编码前进行规划、增量红绿重构周期以及基于行为的测试。触发器:“TDD”、“首先测试”、“编写测试”、“跟踪子弹”或通过测试实现增量功能。

0安装·0热度·@sadiksaifi

安装

$npx skills add https://github.com/sadiksaifi/agents --skill tdd

如何安装 tdd

通过命令行快速安装 tdd AI 技能到你的开发环境

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

来源:sadiksaifi/agents。

SKILL.md

查看原文

Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.

DO NOT write all tests first, then all implementation. This is "horizontal slicing" — treating RED as "write all tests" and GREEN as "write all code."

Correct approach: Vertical slices via tracer bullets. One test → one implementation → repeat. Each test responds to what you learned from the previous cycle.

使用垂直切片示踪子弹工作流程指导测试驱动的开发。在实现功能、修复错误或编写应驱动设计的测试时使用。通过公共接口强制编码前进行规划、增量红绿重构周期以及基于行为的测试。触发器:“TDD”、“首先测试”、“编写测试”、“跟踪子弹”或通过测试实现增量功能。 来源:sadiksaifi/agents。

可引用信息

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

安装命令
npx skills add https://github.com/sadiksaifi/agents --skill tdd
分类
>_效率工具
认证
收录时间
2026-02-26
更新时间
2026-03-10

Browse more skills from sadiksaifi/agents

快速解答

什么是 tdd?

使用垂直切片示踪子弹工作流程指导测试驱动的开发。在实现功能、修复错误或编写应驱动设计的测试时使用。通过公共接口强制编码前进行规划、增量红绿重构周期以及基于行为的测试。触发器:“TDD”、“首先测试”、“编写测试”、“跟踪子弹”或通过测试实现增量功能。 来源:sadiksaifi/agents。

如何安装 tdd?

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

这个 Skill 的源码在哪?

https://github.com/sadiksaifi/agents