test-driven-development
仓库创建 2026年1月5日最近提交 2 天前SkillHot 收录 21 天前
▸ 精选理由
保证测试驱动开发纪律性并防止跳过测试或挂起进程。
这个 Skill 做什么
强制 RED-GREEN-REFACTOR 的严格 TDD 流程并记录退出码证据。
把 RED‑GREEN‑REFACTOR 的 TDD 流程严格执行:先写一个会失败的测试(RED),实现功能让测试通过(GREEN),再重构(REFACTOR),每步都要记录退出码证据。在开发新功能或改动核心逻辑时使用,禁止跳过或用 watch 模式。特点是只用 run 模式并加超时保护,保证 CI 环境下可复现且不挂起。
▸ 展开 SKILL.md 英文原文
Strict RED-GREEN-REFACTOR cycle enforcement. Tests are never skipped or deferred. Run mode only, never watch mode. Exit code evidence mandatory.
1.6k
Stars
94
Forks
40
仓库内 Skill
+111
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/cc10x/skills/test-driven-development/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/cc10x/skills/test-driven-development/SKILL.md"SKILL.MD 节选查看完整文件 ↗
## Non-Negotiable Rules - Always use run mode (`CI=true npm test` or `--run` flag) - NEVER use watch mode (prevents hanging processes) - Use timeout guards (`timeout 60s`) as backup - Record exit codes as evidence at each phase - If tests fail 3 consecutive times in GREEN, report failure status - Never skip RED phase (failing test must exist before implementation) - Never defer tests to "later" -- TDD means tests first ## Scope Discipline - If implementation requires >3 file changes, flag for scope review - Architectural choices require user approval unless pre-approved in plan - New dependencies require user approval ## When to Use - Every feature implementation in BUILD workflow - Eve
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有