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

test-driven-development

星标14
分支1
更新时间2026年5月20日 03:18

TDD discipline for STANDARD-profile Implement phase. Daily protocol without opening SKILL.md: - RED first: write the test from an AC, RUN it, confirm it fails. No implementation yet. - GREEN second: write the minimum code to pass. Resist adding "while I'm here" code. - REFACTOR third: clean up only after green. Tests stay green throughout. - One test = one AC. If a test asserts multiple behaviors, split it. - Never modify a test to make a failing implementation pass — fix the implementation. - Skipping RED (writing test+impl together) violates the discipline; you do not know the test actually tests anything. Open SKILL.md when deciding: how to test code without obvious seams, when to stub vs mock vs use a real dependency, refactor patterns that preserve green.

安装

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

SKILL.md
readonly