tdd

Drive software development with a red-green-refactor test-first workflow.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/datorresb/vibecoding-starter --skill tdd-datorresb
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/datorresb/vibecoding-starter/tree/main/.claude/skills/engineering/tdd
Command: npx skills add https://github.com/datorresb/vibecoding-starter --skill tdd-datorresb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers adopt the test-driven development discipline by ensuring tests drive design, reducing bugs and enabling safe refactoring.

Core Features & Use Cases

  • Red-Green-Refactor workflow to drive feature development with frequent feedback.
  • Fail-fast testing by writing tests before code to clarify intent and prevent regressions.
  • Safe refactoring through a broad suite that protects against regressions during code changes.
  • Use Cases include feature implementation, bug fixes, and API migrations with confidence.

Quick Start

  1. Write a failing test that captures the desired behavior.
  2. Implement the minimal code to pass the test.
  3. Refactor for readability and maintainability while keeping all tests green.

Frequently Asked Questions about tdd

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor workflow work?▼

Test-driven development is a discipline where you write failing tests before code, following a red-green-refactor workflow to drive feature implementation with frequent feedback and safe refactoring.

How do I start writing failing tests before implementing new features?▼

To start writing failing tests before implementing features, write a test that captures the desired behavior, implement minimal code to pass it, then refactor for readability while keeping all tests green.

Can I use test-driven development for bug fixes and API migrations?▼

Yes, test-driven development applies to bug fixes and API migrations across languages and runtimes, guiding small testable increments that prevent regressions and clarify intent.

Does test-driven development help with safe code refactoring?▼

Test-driven development enables safe refactoring by building a broad test suite that protects against regressions, allowing you to change code structure while maintaining fast feedback and green tests.

When should I use the test-driven development approach?▼

Use test-driven development when you need to drive software quality, reduce bugs, and enable safe refactoring during feature work, bug fixes, or API migrations across any language or runtime.