tdd

Guide red-green-refactor cycles for test-driven development workflows.

356|59|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/amazingloft999-droid/mattpocock-skills --skill tdd-amazingloft999-droid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/amazingloft999-droid/mattpocock-skills/tree/main/skills/engineering/tdd
Command: npx skills add https://github.com/amazingloft999-droid/mattpocock-skills --skill tdd-amazingloft999-droid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development workflows help developers ensure behavior is verified through public interfaces, reducing brittle refactors and miscommunication.

Core Features & Use Cases

  • Vertical red-green-refactor cycles that progress from a failing test to minimal implementation to passing tests.
  • Emphasis on integration-style tests and observable behavior over internal implementation details.
  • Structured workflow guidance (planning, tracer bullets, incremental loops, and disciplined refactoring) to improve code reliability.

Quick Start

Plan the first tracer bullet, then implement just enough code to pass the test.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate test-driven development workflows for building features?

Automate test-driven development by planning a tracer bullet, writing a failing test, implementing minimal code to pass, and refactoring with dependency-injected interfaces. This enforces structured red-green-refactor cycles to ensure behavior is verified through public interfaces.

What is the best way to structure red-green-refactor cycles for incremental software development?

Structure red-green-refactor cycles by progressing one test at a time from a failing test to minimal implementation to passing tests. This behavior-focused approach emphasizes integration-style tests over internal implementation details to reduce brittle refactors.

When do I need tracer bullets in test-driven development?

Use tracer bullets in test-driven development when you need to plan and verify an end-to-end vertical slice of a feature. Tracer bullets establish the initial failing test and minimal implementation path before applying full red-green-refactor loops.

Does test-driven development work for fixing bugs as well as building new features?

Yes, test-driven development workflows apply to both building features and fixing bugs. You write a failing test that reproduces the bug or defines the new behavior, then implement just enough code to make the test pass before refactoring.

Why does refactoring in TDD require dependency-injected interfaces?

Refactoring in TDD requires dependency-injected interfaces to verify behavior through public interfaces without relying on internal implementation details. This disciplined refactoring approach reduces miscommunication and prevents brittle code during incremental development loops.

How do I start a TDD loop without writing too much implementation code?

Start a TDD loop by planning the first tracer bullet and writing a single failing test. Implement just enough code to pass that test, ensuring incremental, behavior-focused progression before performing any structural refactoring.