Skip to main content
在 Manus 中运行任何 Skill
一键导入

tdd-enforcer

星标0
分支1
更新时间2026年5月10日 22:07

Enforces a test-driven development workflow: writes failing tests first, waits for user confirmation, then writes the minimal implementation to pass them, then refactors. Use this skill when the user types /tdd, says "write tests first", "TDD this", "test-driven", or "write tests for X before implementing it". Also trigger when the user asks to implement a non-trivial function, service, or feature and hasn't mentioned tests yet — proactively suggest the TDD cycle. Skips the ceremony for clearly trivial tasks (one-liners, pure config, simple data classes with no logic). Adapts to any language and test framework — always reads the project first.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly