tdd-workflow
Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reviews REST API designs for consistency, naming conventions, versioning strategy, and error handling patterns
Guides agents through auditing project dependencies for known vulnerabilities, outdated packages, and license compliance issues
| name | tdd-workflow |
| description | Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code |
| skillctl | {"namespace":"examples","version":"1.0.0","category":"testing","tags":["tdd","testing","workflow"],"capabilities":["read_file","write_file"]} |
Guide every feature and bugfix through the red-green-refactor cycle.
Activate when the user asks to implement a feature, fix a bug, or add behavior — before any implementation code is written.
Do NOT activate for documentation changes, configuration tweaks, refactoring that preserves behavior, or exploratory questions.
Before touching implementation code, write a test that captures the desired behavior:
Write the minimum implementation code to make the failing test pass:
With all tests passing, improve the code:
assert calls are fine if they verify the same behavior.Use descriptive names that read as specifications:
test_empty_cart_has_zero_total
test_adding_item_increases_count
test_removing_last_item_empties_cart
test_discount_code_reduces_total_by_percentage
Avoid generic names like test_function_works or test_case_1.
After the primary behavior passes, add tests for: