test-driven-development

Enforce a failing test before production code in software projects.

5|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/oduffy-delphi/coordinator-claude --skill test-driven-development-oduffy-delphi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/oduffy-delphi/coordinator-claude/tree/main/plugins/coordinator/skills/test-driven-development
Command: npx skills add https://github.com/oduffy-delphi/coordinator-claude --skill test-driven-development-oduffy-delphi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing features and fixes often leads to regressions and ambiguous requirements. TDD enforces a failing test before coding, guiding design and providing a safety net for refactors.

Core Features & Use Cases

  • Red-Green-Refactor workflow that formalizes the test-first cycle to ensure correctness.
  • Quality-first development by keeping tests as the single source of truth for behavior.
  • Team collaboration through explicit expectations for test coverage during feature work.

Quick Start

Write a failing test for the intended behavior, then implement the minimal code to pass it.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How does test-driven development prevent software regressions?

Test-driven development prevents regressions by requiring a failing test before writing production code, creating a safety net that validates intended behavior during future feature work and refactors.

What is the red-green-refactor cycle in TDD?

The red-green-refactor cycle in TDD formalizes test-first development by starting with a failing test, implementing minimal code to pass it, and then refining the design to ensure correctness and quality.

How do I start writing code with a test-first workflow?

To start test-first coding, write a failing test for the intended behavior, then implement the minimal production code required to make that test pass, ensuring quality assurance through explicit expectations.

Can I use test-driven development for bug fixes and refactoring?

Yes, test-driven development applies to bug fixes and refactoring across software projects, guiding design and ensuring test coverage by validating the intended behavior through minimal, real tests.

When should I not use test-first development for software design?

You should avoid test-first development when requirements are ambiguous or exploratory, as TDD relies on tests as the single source of truth for behavior, which requires clear expectations before coding begins.