Skip to content

test-driven-development

Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline, the request does not mention tests and the answer looks obvious from reading it. The skill writes the failing test first and changes the function second, never the change alone.

Install

Install with Skills CLI
npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development

The installer uses the repository’s current default branch. The source link shows the exact snapshot recorded by the directory.

Manual install (any agent)
  1. Download the skills/test-driven-development folder from the repository.
  2. Place it in your agent’s skills directory.
  3. Restart the agent; it reads SKILL.md on load.

Agent compatibility

There is no agent compatibility evidence for this listing yet.

Source and rankings

View the pinned SKILL.md file

Related skills

Search directory

Try a search