·tdd-workflow
>_

tdd-workflow

hieutrtr/ai1-skills

针对 Python 和 React 项目的测试驱动开发工作流程实施。当用户请求 TDD、测试优先开发或红绿重构方法时使用。强制执行严格的循环:编写一个失败的测试 -> 实现最少的代码以通过 -> 在绿色时重构 -> 重复。适用于后端(pytest)和前端(测试库)。更改代理行为以在代码之前编写测试。不提供测试模式(使用 pytest-patterns 或 react-testing-patterns 了解如何编写测试)。

8安装·0热度·@hieutrtr

安装

$npx skills add https://github.com/hieutrtr/ai1-skills --skill tdd-workflow

SKILL.md

When fixing a bug, always start with a failing test that reproduces the bug:

This guarantees the bug cannot regress — the test will catch it.

Cycle 1 — RED: Test that createuser returns a user

针对 Python 和 React 项目的测试驱动开发工作流程实施。当用户请求 TDD、测试优先开发或红绿重构方法时使用。强制执行严格的循环:编写一个失败的测试 -> 实现最少的代码以通过 -> 在绿色时重构 -> 重复。适用于后端(pytest)和前端(测试库)。更改代理行为以在代码之前编写测试。不提供测试模式(使用 pytest-patterns 或 react-testing-patterns 了解如何编写测试)。 来源:hieutrtr/ai1-skills。

查看原文

可引用信息

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

安装命令
npx skills add https://github.com/hieutrtr/ai1-skills --skill tdd-workflow
分类
>_效率工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 tdd-workflow?

针对 Python 和 React 项目的测试驱动开发工作流程实施。当用户请求 TDD、测试优先开发或红绿重构方法时使用。强制执行严格的循环:编写一个失败的测试 -> 实现最少的代码以通过 -> 在绿色时重构 -> 重复。适用于后端(pytest)和前端(测试库)。更改代理行为以在代码之前编写测试。不提供测试模式(使用 pytest-patterns 或 react-testing-patterns 了解如何编写测试)。 来源:hieutrtr/ai1-skills。

如何安装 tdd-workflow?

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

这个 Skill 的源码在哪?

https://github.com/hieutrtr/ai1-skills