Skip to content
Back to skills

Tdd

ASecurity

Implement behavior through a focused red-green-refactor loop. Triggers on "tdd", "测试驱动开发".

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 4, 2026
ai-agentsgotesting

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add int2t05/engineering-skills --skill tdd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tdd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/int2t05-tdd/badge)](https://www.skillsdirectory.com/skills/int2t05-tdd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tdd
description: Implement behavior through a focused red-green-refactor loop. Triggers on "tdd", "测试驱动开发".
---

# Test-Driven Development

## When to use

- Implement behavior through a focused red-green-refactor loop.

**Not for:** implement for planned delivery; test-generation for existing behavior.

## Steps

1. Find real commands, layout and public seam; use real code and controlled data, disclosing external substitutes.

2. Write one behavior test, run it and confirm failure from missing or incorrect behavior rather than harness errors.

3. Implement minimally, run the focused test and relevant regressions, and refactor while green.

4. Repeat for the next behavior and finish relevant verification; report observed red/green evidence and commit only on request.

## Verify

- A meaningful failure preceded the passing fix; assertions use independent expected behavior and checks are not disabled.

## References

- [engineering-principles.md](../../../references/engineering-principles.md) — shared decision boundaries, scope and verification.
- [references/test-strategy.md](references/test-strategy.md) — test pyramid, test-double hierarchy (Real > Fake > Stub > Mock), DAMP over DRY
- [references/testing-anti-patterns.md](references/testing-anti-patterns.md) — mock misuse, test-only methods, partial mocks, gate functions
- [references/mocking.md](references/mocking.md) — when to mock, designing for mockability
- [references/good-tests.md](references/good-tests.md) — good vs bad test examples, tautological tests

Files in this skill

  • SKILL.md4.9 KB
  • agents/openai.yaml134 B
  • references/good-tests.md3 KB
  • references/mocking.md1.4 KB
  • references/test-strategy.md2.3 KB
  • references/testing-anti-patterns.md9.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.