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

tdd-enforcer

星标7
分支4
更新时间2026年7月16日 16:09

Enforce strict red-green-refactor test-driven development for a feature. Decomposes the feature into testable behaviors, then for each behavior writes a failing test, runs it and verifies it fails for the RIGHT reason by asserting on the failure message, writes the minimal implementation, runs green, refactors under green tests, and commits one cycle at a time. Detects violations where implementation code appeared before its test and halts. Ends with a coverage delta report and a commit-per-cycle audit trail. Use when you want to "do TDD", "build this feature test-first", "enforce red-green-refactor", "write the test first", "strict TDD", or "make sure every line was driven by a test".

安装

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

SKILL.md
readonly