One-click install
npx skills add https://github.com/derickdsouza/dd-claude --skill tdd-derickdsouza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/derickdsouza/dd-claude/tree/main/skills/tdd
Command: npx skills add https://github.com/derickdsouza/dd-claude --skill tdd-derickdsouza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validate software behavior through public interfaces, not internal implementation.

Core Features & Use Cases

  • Integration-style tests that verify observable behavior via public APIs.
  • Vertical slice workflow: one test → one minimal implementation → repeat.
  • Use case: ensure a feature works end-to-end through its public surface during refactors.

Quick Start

Start by writing a single end-to-end test for the first behavior, then implement the minimal code to pass it.

Frequently Asked Questions about tdd

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

FAQPage Schema
What is the red-green-refactor loop in software testing?

The red-green-refactor loop is a testing workflow where you write a failing test, implement the minimal code to pass it, and then refactor. This cycle validates software behavior through public interfaces with one test per behavior.

How do I write integration tests that verify observable behavior?

Write integration tests that interact exclusively with public APIs rather than internal implementation. This approach ensures you validate observable behavior end-to-end, keeping tests resilient during refactors and feature development.

When should I use end-to-end testing instead of unit testing?

Use end-to-end testing when you need to validate a feature works through its public surface across the entire stack. This Skill applies testing workflows to unit, integration, and acceptance testing for features, bug fixes, and refactors.

Does test-driven development work for refactoring existing software?

Test-driven development works for refactoring by using reproducible end-to-end tests to verify observable behavior through public interfaces. This ensures the software behavior remains valid before and after the code changes.

Can I apply the red-green-refactor workflow to acceptance testing?

You can apply the red-green-refactor workflow to acceptance testing by writing a single end-to-end test for the first behavior, then implementing the minimal code to pass it. This vertical slice workflow repeats for each behavior.

Why do my tests break when I refactor internal implementation?

Tests break during refactors when they validate internal implementation instead of observable behavior. Disciplined testing through public interfaces prevents this by ensuring reproducible end-to-end tests remain stable across code changes.