# Test Driven Development

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

- Skill: `hebertzhu/test-driven-development` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hebertzhu/test-driven-development`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hebertzhu/test-driven-development/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: hebertzhu (https://skillmd.com/u/hebertzhu)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hebertzhu/test-driven-development

---


# 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.

