
Test Driven Development
Structured red-green-refactor workflow that writes a failing test before any code change, including bug fixes.
- skills.sh installs
- 75.8K
- GitHub stars
- 119.7K
- last updated
- Aug 21, 2026
What it does
- Covers the full TDD loop (RED, GREEN, REFACTOR) plus a Prove-It Pattern that reproduces a reported bug with a test first
- Includes a test pyramid guide (roughly 80% unit, 15% integration, 5% E2E) and a small, medium, and large test size model
- Enforces discovering the repository's own build and test commands, and running the full suite before completion
- Designed for agents implementing logic, fixing bugs, or modifying behavior in existing code
Install
$ npx -y skills add addyosmani/agent-skills --skill test-driven-development -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Test-Driven Development
Overview
Write a failing test before writing the code that makes it pass. For bug fixes, reproduce the bug with a test before attempting a fix. Tests are proof — "seems right" is not done. A codebase with good tests is an AI agent's superpower; a codebase without tests is a liability.
When to Use
- Implementing any new logic or behavior
- Fixing any bug (the Prove-It Pattern)
- Modifying existing functionality
- Adding edge case handling
- Any change that could break existing behavior
When NOT to use: Pure configuration changes, documentation updates, or static content changes that have no behavioral impact.
Related: For browser-based changes, combine TDD with runtime verification using Chrome DevTools MCP — see the Browser Testing section below.
Discover the Stack First
The TDD cycle is universal; the commands are not. Before writing the first test, discover how this repository tests, and use its commands for every RED, GREEN, and verification step:
Details
- Repository
- github.com/addyosmani/agent-skills
- Categories
- Testing & QA, Agent Workflow & Planning
- First seen
- May 16, 2026
More from addyosmani/agent-skills
All 25- Context Engineering75.6K
- Incremental Implementation75.5K
- Git Workflow And Versioning73.3K
- Idea Refine72.7K
- Using Agent Skills72.3K
- Browser Testing With Devtools72.1K
- Source Driven Development71.8K
- Shipping And Launch71.8K
- Ci Cd And Automation71.7K
- Interview Me70.9K
- Deprecation And Migration70.7K
- Doubt Driven Development70.2K
- Observability And Instrumentation68.2K
- Constraint Driven Development46.7K
- Code Review And Quality89.3K
- Security And Hardening86.6K
- Frontend Ui Engineering82.8K
- Performance Optimization79.9K
- Spec Driven Development79.3K
- Documentation And Adrs78.1K
- Planning And Task Breakdown78.1K
- Code Simplification77.3K
- Api And Interface Design77.2K
- Debugging And Error Recovery77K
Similar to Test Driven Development
More Testing & QA
tddSkillmattpocock/skills1.2M installsTest-first development loop with rules for seams, test quality, and vertical slicing.
tdd-workflows-tdd-cycleSkillsickn33/agentic-awesome-skills292 installsStrict red-green-refactor TDD workflow that coordinates subagents through test specification, failing tests, minimal implementation, and refactoring.
tdd-workflowsPluginwshobson/agents42.8K starsTest-driven development methodology with red-green-refactor cycles and code review
tdd-workflows-tdd-greenSkillsickn33/agentic-awesome-skills263 installsMinimal-implementation guidance for the TDD green phase that makes failing tests pass without refactoring or redesign.