·tdd

指导新功能、错误修复和重构的测试驱动开发工作流程(红-绿-重构)。识别测试改进机会并应用 pytest 最佳实践。在编写测试、实现功能或遵循 TDD 方法时使用。 **主动激活**:在具有测试基础设施(pytest 文件、tests/ 目录)的项目中实现功能或修复错误时自动调用。 **检测**:检查tests/目录、pytest.ini、pyproject.toml以及pytest配置或测试文件。 **用例**:编写生产代码、修复错误、添加功能、遗留代码特征。

9安装·0热度·@mguinada

安装

$npx skills add https://github.com/mguinada/agent-skills --skill tdd

如何安装 tdd

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

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

来源:mguinada/agent-skills。

SKILL.md

查看原文

Guides Test-Driven Development workflow: Red-Green-Refactor cycle for new features, bug fixes, legacy code, and test refactoring.

After each TDD cycle (or when reviewing existing tests), search for these improvement opportunities:

See best-practices.md for test writing, organization, and code quality guidelines.

指导新功能、错误修复和重构的测试驱动开发工作流程(红-绿-重构)。识别测试改进机会并应用 pytest 最佳实践。在编写测试、实现功能或遵循 TDD 方法时使用。 **主动激活**:在具有测试基础设施(pytest 文件、tests/ 目录)的项目中实现功能或修复错误时自动调用。 **检测**:检查tests/目录、pytest.ini、pyproject.toml以及pytest配置或测试文件。 **用例**:编写生产代码、修复错误、添加功能、遗留代码特征。 来源:mguinada/agent-skills。

可引用信息

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

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

Browse more skills from mguinada/agent-skills

快速解答

什么是 tdd?

指导新功能、错误修复和重构的测试驱动开发工作流程(红-绿-重构)。识别测试改进机会并应用 pytest 最佳实践。在编写测试、实现功能或遵循 TDD 方法时使用。 **主动激活**:在具有测试基础设施(pytest 文件、tests/ 目录)的项目中实现功能或修复错误时自动调用。 **检测**:检查tests/目录、pytest.ini、pyproject.toml以及pytest配置或测试文件。 **用例**:编写生产代码、修复错误、添加功能、遗留代码特征。 来源:mguinada/agent-skills。

如何安装 tdd?

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

这个 Skill 的源码在哪?

https://github.com/mguinada/agent-skills

详情

分类
>_效率工具
来源
skills.sh
收录时间
2026-02-22