ワンクリックで
test-driven-development
测试驱动开发。遵循 RED-GREEN-REFACTOR 循环:先写失败的测试,再写最少的代码让测试通过,最后重构。用于编写新功能或修复 bug 时。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
测试驱动开发。遵循 RED-GREEN-REFACTOR 循环:先写失败的测试,再写最少的代码让测试通过,最后重构。用于编写新功能或修复 bug 时。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Brainstorm before writing code. Refine rough ideas through questions, explore alternatives, present design in sections for validation. Use when starting a new feature or project.
Code review skill. Check code for correctness, edge cases, code style, and performance issues. Use when reviewing PRs or checking code quality.
Systematic debugging. Use a 4-phase root cause analysis process - collect evidence, form hypotheses, verify hypotheses, fix and verify. Use when troubleshooting bugs or abnormal behavior.
Test-driven development. Follow the RED-GREEN-REFACTOR cycle - write failing tests first, then write minimal code to pass, then refactor. Use when writing new features or fixing bugs.
Introduction to the Superpowers skills system. Learn how to use this set of development workflow skills. Use when first encountering superpowers or needing to understand the overall process.
Verification before completion. Ensure the problem is truly fixed, not just superficially passing. Use before declaring a task complete.
| name | test-driven-development |
| description | 测试驱动开发。遵循 RED-GREEN-REFACTOR 循环:先写失败的测试,再写最少的代码让测试通过,最后重构。用于编写新功能或修复 bug 时。 |
严格遵循 TDD 的 RED-GREEN-REFACTOR 循环。
避免以下行为:
test_[被测功能]_[场景]_[期望结果]
示例:
test_login_with_valid_credentials_returns_tokentest_login_with_invalid_password_returns_401