tdd-workflow
✓針對 Python 和 React 項目的測試驅動開發工作流程實施。當用戶請求 TDD、測試優先開發或紅綠重構方法時使用。強制執行嚴格的循環:編寫一個失敗的測試 -> 實現最少的代碼以通過 -> 在綠色時重構 -> 重複。適用於後端(pytest)和前端(測試庫)。更改代理行為以在代碼之前編寫測試。不提供測試模式(使用 pytest-patterns 或 react-testing-patterns 了解如何編寫測試)。
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
詳情
- 分類
- >_效率工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-05