一键导入
tdd
Test-driven development workflow. Write failing tests first, then implement the minimum code to make them pass. Use when implementing features or fixing bugs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test-driven development workflow. Write failing tests first, then implement the minimum code to make them pass. Use when implementing features or fixing bugs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | tdd |
| description | Test-driven development workflow. Write failing tests first, then implement the minimum code to make them pass. Use when implementing features or fixing bugs. |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write |
Strict red-green-refactor cycle. Never write implementation before a failing test exists.
pytestJUnit 5 or whatever the project already usesAfter all cycles complete:
Critically challenge the current changes. Ask probing questions about edge cases, design decisions, and potential issues. Do not approve until all concerns are addressed.
Summarize uncommitted changes and suggest logical commit groupings with messages. Use before committing to plan clean, atomic commits.
Scan recently changed files for tech debt — dead code, duplication, bloated abstractions, and stale comments. Run at the end of a session to catch agent-introduced bloat.