# Test Driven Development

> Drive behavior changes through a failing test, the smallest working implementation, and then cleanup once the behavior is locked.

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

---


# Test Driven Development

Use this skill when the behavior can be expressed clearly in tests before the implementation is obvious.

## Preferred Flow

1. Write or identify the failing test first.
2. Make the minimal change that turns it green.
3. Refactor only after behavior is protected.
4. Keep the test focused on one behavior.

## Guardrails

- Do not add broad, fragile snapshot coverage when a precise assertion is possible.
- If the repo has a stronger existing testing pattern, follow it.

