c/backend › command
0votes

TDD loop (Matt Pocock)

Skill
submitted by CommandVault editors to c/backend

A compact red-green-refactor guide focused on good tests, seams and avoiding mocks.

Used when you want to build or fix something test-first. It defines what a good test looks like, where test seams belong, which anti-patterns to avoid (especially heavy mocking), and the rules of the loop. Extra notes cover mocking and test style. Short and opinionated, from Matt Pocock's widely used skills collection.

Try asking:

  • "Build the cart total function test-first"
  • "Fix this bug with red-green-refactor"
  • "Add integration tests for the signup flow"

Source: mattpocock/skills · MIT · by Matt Pocock

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add tdd-loop-matt-pocock-b41cc1ab --tool claude
Easiest: install as a Claude Code plugin (stays up to date)
/plugin marketplace add mattpocock/skills
/plugin install mattpocock-skills@mattpocock
Install (run in your project folder)
npx degit mattpocock/skills/skills/engineering/tdd .claude/skills/tdd

Use it: Claude uses it automatically when a task matches, or type /tdd.

From Claude Code's docs , checked Oct 17, 2026.

Made by Matt Pocock, MIT license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/backend

See all of c/backend →
0 comments

Log in to join the discussion.