什么是 tdd?
当用户想要使用测试驱动开发来实现功能或修复错误时,应该使用此技能。通过垂直切片、测试编写和实现之间的上下文隔离、人工检查点和自动测试反馈循环来强制实施红-绿-重构循环。将多代理编排与任务工具结合使用,以在架构上强制实施上下文隔离。支持 Jest、Vitest、pytest、Go 测试、cargo 测试、PHPUnit 和 RSpec。 来源:glebis/claude-skills。
当用户想要使用测试驱动开发来实现功能或修复错误时,应该使用此技能。通过垂直切片、测试编写和实现之间的上下文隔离、人工检查点和自动测试反馈循环来强制实施红-绿-重构循环。将多代理编排与任务工具结合使用,以在架构上强制实施上下文隔离。支持 Jest、Vitest、pytest、Go 测试、cargo 测试、PHPUnit 和 RSpec。
通过命令行快速安装 tdd AI 技能到你的开发环境
来源:glebis/claude-skills。
Enforce disciplined RED-GREEN-REFACTOR cycles using separate subagents for test writing and implementation. The core innovation: the Test Writer never sees implementation code, and the Implementer never sees the specification. This prevents the LLM from leaking implementation intent into test design.
| /tdd | Interactive mode — pause for approval at slices and each RED checkpoint | | /tdd --auto | Autonomous mode — run all slices without pausing; stop ONLY on unrecoverable errors | | /tdd --resume | Resume from .tdd-state.json in project root |
| /tdd --dry-run | Validation mode — runs Phase 0 + Phase 1 fully, renders all prompts, but skips Task() calls. No code is written. |
当用户想要使用测试驱动开发来实现功能或修复错误时,应该使用此技能。通过垂直切片、测试编写和实现之间的上下文隔离、人工检查点和自动测试反馈循环来强制实施红-绿-重构循环。将多代理编排与任务工具结合使用,以在架构上强制实施上下文隔离。支持 Jest、Vitest、pytest、Go 测试、cargo 测试、PHPUnit 和 RSpec。 来源:glebis/claude-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/glebis/claude-skills --skill tdd当用户想要使用测试驱动开发来实现功能或修复错误时,应该使用此技能。通过垂直切片、测试编写和实现之间的上下文隔离、人工检查点和自动测试反馈循环来强制实施红-绿-重构循环。将多代理编排与任务工具结合使用,以在架构上强制实施上下文隔离。支持 Jest、Vitest、pytest、Go 测试、cargo 测试、PHPUnit 和 RSpec。 来源:glebis/claude-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/glebis/claude-skills --skill tdd 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/glebis/claude-skills