SkillDevelopment

tdd

Build features and fix bugs with a test-first red/green loop.

By Matt PocockMIT licence

What it does

Helps build a feature or fix a bug by first agreeing which user-visible behaviour to test. The assistant writes one failing test, makes the smallest change that passes it, then repeats for the next behaviour. Tests use the software's public interfaces rather than its internal structure. Refactoring belongs to a separate review stage, outside this skill's red/green loop.

Installation

This command adds the whole Matt Pocock's skills collection, which includes tdd.

npx skills@latest add mattpocock/skills

  • Choose the target agent when prompted.
  • Include setup-matt-pocock-skills, then run /setup-matt-pocock-skills once per repository.
  • This installs editable files. The README also documents agent-specific plugin options; choose one route per agent.

Installation options in the README

Part of a collection

  • CollectionDevelopment, Operations

    Matt Pocock's skills

    Composable skills for software engineering and agent workflows.

    By Matt Pocock

    Development, Operations