tdd

Implement a Test-Driven Development workflow with red-green-refactor cycles.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/Kushal9889/claude-plugins --skill tdd-kushal9889
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/Kushal9889/claude-plugins/tree/main/mattpocock-skills/skills/engineering/tdd
Command: npx skills add https://github.com/Kushal9889/claude-plugins --skill tdd-kushal9889

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach to Test-Driven Development (TDD), helping developers write tests before code, improving code quality, and fostering a more robust development process.

Core Features & Use Cases

  • Red-Green-Refactor Loop: Guides the development process with a clear cycle of writing failing tests, writing code to pass the tests, and refactoring the code.
  • Testability: Offers guidelines on writing good tests that are not coupled to implementation details.
  • Use Case: Ideal for developers who want to adopt TDD practices, especially when working on complex features or fixing bugs that require thorough testing.

Quick Start

Use the tdd skill to begin a new TDD cycle for your feature or bug fix.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I start test-driven development for a complex feature?

Test-driven development for a complex feature begins with a Red-Green-Refactor loop: write a failing test, implement code to pass it, then refactor. This workflow guides the cycle to improve testability and code quality for new features or bug fixes.

What is the Red-Green-Refactor loop in test-driven development?

The Red-Green-Refactor loop is a test-driven development cycle where you write a failing test, implement the minimum code to pass it, and then refactor. This workflow enforces the loop to ensure comprehensive testing and higher code quality.

How do I write tests that are not coupled to implementation details?

To write tests not coupled to implementation details, this workflow provides testability guidelines that focus on verifying behavior rather than internal code structure. This ensures tests remain robust during the refactoring phase of test-driven development.

Can I use test-driven development for fixing bugs that require thorough testing?

Yes, test-driven development is ideal for fixing bugs that require thorough testing. This workflow helps you write a failing test that reproduces the bug, implement the fix to pass the test, and refactor to maintain overall code quality.

Does test-driven development require any specific testing frameworks or dependencies?

No, this test-driven development workflow has no specific dependencies. It provides structured scripts and references for the Red-Green-Refactor loop, allowing you to apply the methodology using your existing testing frameworks and development environment.