Test Driven Development

用于测试先行实现:当要实现功能或修复一个已清楚的问题,并且可以先写 failing test 再写生产代码时使用。Prefer `systematic-debugging` when 根因仍未知,Prefer `verification-before-completion` for 最终验收与完成声明。

hebertzhu 8d1d59c 1.2 KB Updated

File contents

test-driven-development

Intent

  • 用于测试先行实现:当要实现功能或修复一个已清楚的问题,并且可以先写 failing test 再写生产代码时使用。Prefer systematic-debugging when 根因仍未知,Prefer verification-before-completion for 最终验收与完成声明。

Default operating pattern

  1. Capture the actual engineering goal and the next decision that matters.
  2. Inspect the current code, tests, branch state, or CI context before acting.
  3. Take the smallest next action that reduces uncertainty or advances delivery.
  4. Collect fresh evidence before claiming progress.
  5. Summarize status, risks, and the next recommended step.

Pack fit

  • Included in: engineering-workflow, release-quality
  • Keep examples generic, privacy-safe, and portable across hosts.

Boundary

  • Do not force TDD when the behavior cannot yet be specified meaningfully.

hebertzhu/agent-foundry/tree/main/skills/test-driven-development commit 8d1d59c3e8

Frequently asked questions

npx skillmds@latest add hebertzhu/test-driven-development