Tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
- Type
- Skill
- Author
- mattpocock
- Category
- Testing
- GitHub stars
- 304.2K
- Installs
- 1153.9K
- Last updated
- November 1, 2026
Install
npx skills add https://github.com/mattpocock/skills --skill tddUse cases
- Build a new feature test-first with integration tests
- Fix a bug by writing a failing test before the fix
- Follow the red-green-refactor cycle on a change
Frequently Asked Questions
What development cycle does it follow?
Red-green-refactor, writing tests before implementation.
What kind of tests does it write?
It focuses on integration tests, written before the implementation.
When should I reach for it?
When you want to build features or fix bugs test-first, or when you mention TDD, red-green-refactor, or test-first.
About this skill
Guides test-driven development for building features or fixing bugs test-first, following the red-green-refactor cycle. Useful when you want integration tests written before implementation. Triggered by mentions of TDD, red-green-refactor, or test-first requests.
Summary written with AI assistance from the project's public description.
More from mattpocock
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Grill With Docs
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
by mattpocock
Improve Codebase Architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
by mattpocock
Setup Matt Pocock Skills
Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first us...
by mattpocock
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh