# tdd

Agent skill by Matt Pocock (https://www.totaltypescript.com)

Test-first for features and bug fixes, with integration tests rather than mocks where the integration is the risk. The discipline it adds is writing the failing test before the agent is allowed near the implementation.

Topics: Testing
Last updated: 2026-08-19 (28 days ago)
Source: https://github.com/mattpocock/skills
Repository: https://github.com/mattpocock/skills

## Install

```bash
npx skills add https://github.com/mattpocock/skills --skill tdd
```

## In the author's words

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

## Verification

- Source link: Resolved (HTTP 200) (pass)
- Repository: Resolves on GitHub (pass)
- Install command: Transcribed from the author's own page (pass)
- Maintenance: Last updated 28 days ago (pass)
- Attribution: Credited to Matt Pocock (pass)

Full page: https://stackskills.dev/library/tdd
