tdd

Execute Red-Green-Refactor cycles for test-first feature development.

19|3|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/changoo89/claude-pilot --skill tdd-changoo89
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/changoo89/claude-pilot/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/changoo89/claude-pilot --skill tdd-changoo89

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reducing regression risk and design guesswork by enforcing test-first feature development through a structured Red-Green-Refactor cycle.

Core Features & Use Cases

  • Red-Green-Refactor cycle for feature implementation with tests-first discipline.
  • Minimal Green implementation to pass tests, followed by focused refactoring.
  • Regression safety net and clear team guidance for collaborative development.

Quick Start

Run the test suite to execute a Red-Green-Refactor cycle for a new feature and confirm all tests pass.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement test-first feature development using a Red-Green-Refactor cycle?

Test-first feature development using a Red-Green-Refactor cycle starts by writing a failing test, creating a minimal implementation to pass it, and then refactoring the code. This structured approach reduces regression risk and removes design guesswork during feature work.

What is the minimal Green implementation in test-driven development?

A minimal Green implementation in test-driven development is the simplest code required to make a failing test pass. After achieving a passing state, you then perform focused refactoring to improve code quality while maintaining regression safety.

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

Yes, you can use test-driven development for bug fixes and refactoring existing code. The Red-Green-Refactor workflow applies to these scenarios by establishing a regression safety net through tests before altering the logic.

Does test-driven development with pytest work for collaborative software teams?

Test-driven development with pytest works effectively for collaborative software teams. It provides clear guidance for teammates by enforcing phase-based testing workflows and creating a regression safety net that supports coordinated feature development.

Why does test-first discipline reduce regression risk in software engineering?

Test-first discipline reduces regression risk by ensuring every feature implementation is guarded by a pre-written test. This creates a continuous regression safety net that catches errors immediately during the Red-Green-Refactor cycle.

What are the limitations of applying Red-Green-Refactor cycles to large feature work?

The Red-Green-Refactor cycle may face limitations with large feature work when initial design guesswork is high. Breaking features into smaller, testable increments is necessary to maintain the cycle's effectiveness and ensure minimal Green implementations remain achievable.