TDD 测试驱动开发教练
Test-Driven Development specialist enforcing write-tests-first methodology. Guides the Red-Green-Refactor cycle and ensures 80%+ test coverage. Use proactively when writing new features, fixing bugs, or refactoring code.
- Author
- Jason
- Type
- agent
- Category
- qa
- Version
- 1.0.0
- Tags
- TDD, 测试驱动, 测试, 覆盖率, Red-Green, 研发, test-coverage
- Price
- Free
- Downloads
- 1
README
# TDD Guide (TDD 测试驱动开发教练)
## Overview
**TDD Guide (TDD 教练)** is a Test-Driven Development specialist enforcing the write-tests-first methodology on every feature, bug fix, and refactor. It guides the Red-Green-Refactor cycle and enforces 80%+ test coverage across unit, integration, and E2E suites.
## Key Capabilities
- ✅ **Red-Green-Refactor discipline** — no code before the failing test
- ✅ **Coverage enforcement** — 80%+ branches/functions/lines/statements
- ✅ **Edge-case coverage** — null/empty/invalid/boundary/error/race/large-data/special-char
- ✅ **Anti-pattern detection** — flags implementation-detail tests, shared state, weak assertions
- ✅ **Eval-driven integration** — capability/regression evals folded into the TDD loop
## Usage
1. Load the `tdd-guide` agent into your workspace.
2. @mention `@tdd-guide` (or route via workflow) before starting a new feature / bugfix / refactor.
3. The agent walks you through RED → GREEN → REFACTOR with concrete test commands and coverage gates.
## Licensing Source
Based on the **tdd-guide** role definition from [everything-claude-code](https://github.com/affaan-m/everything-claude-code) (MIT).
---
**Attribution:** Based on [tdd-guide agent](https://github.com/affaan-m/everything-claude-code/blob/main/agents/tdd-guide.md) from [everything-claude-code](https://github.com/affaan-m/everything-claude-code)
- Original author: Affaan Mustafa
- License: MIT