Skip to content
Back to skills

Test Driven Development

ASecurity

Implement a behavior change with a test-first loop when the contract can be tested. Use for bug fixes and regressions; adapt when the project cannot support a true red-green cycle.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 19, 2026
ai-agents

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add voyager67/Agent-Workbench --skill test-driven-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Driven Development?

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

Security grade badge for Test Driven Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/voyager67-test-driven-development/badge)](https://www.skillsdirectory.com/skills/voyager67-test-driven-development)

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: test-driven-development
description: Implement a behavior change with a test-first loop when the contract can be tested. Use for bug fixes and regressions; adapt when the project cannot support a true red-green cycle.
---

# Test-Driven Development

Use the project's existing test framework and conventions.

1. Inspect the implementation, nearby tests, fixtures, and documented commands.
2. Define the observable contract and the edge cases that matter.
3. Add the smallest focused test that demonstrates the missing or incorrect behavior.
4. Run it and confirm it fails for the intended reason.
5. Implement the minimum change that makes the test pass.
6. Run the focused test, then the relevant suite and additional checks justified by the change.
7. Refactor only when clarity improves without changing behavior; rerun affected tests.

Prefer deterministic tests that exercise public behavior. Avoid broad mocks, brittle snapshots, arbitrary sleeps, or tests that pass without reaching the changed path. For exploratory work or an untestable UI path, state why strict TDD is impractical and use the strongest available verification. Never claim a red-green cycle happened unless you observed it.

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.