tdd

Guide test-driven development through red-green-refactor cycles with integration tests.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/sadie100/claude-dotfiles --skill tdd-sadie100
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/sadie100/claude-dotfiles/tree/main/skills/tdd
Command: npx skills add https://github.com/sadie100/claude-dotfiles --skill tdd-sadie100

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of implementing effective test-driven development practices, guiding users through the red-green-refactor cycle with clear steps and best practices.

Core Features & Use Cases

  • Test-First Approach: Encourages writing tests before implementation to ensure code quality and maintainability.
  • Vertical Slices: Promotes a structured testing approach that focuses on one aspect of the system at a time.
  • Refactoring Guidelines: Provides guidance on refactoring techniques to improve code without breaking tests.

Quick Start

Activate the TDD Skill to begin a test-first development cycle.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement test-driven development using the red-green-refactor cycle?

The red-green-refactor cycle in test-driven development starts by writing a failing test, then writing code to make it pass, and finally refactoring. This Skill guides you through these structured steps to ensure tests verify behavior through public interfaces.

What is the best way to structure integration tests when developing new features?

Structuring integration tests is best done by focusing on one vertical slice of the system at a time. This Skill promotes a structured testing approach to help you develop features incrementally while maintaining high code quality.

Do I need prior testing knowledge to use a test-first development workflow?

Yes, using a test-first development workflow requires an understanding of basic testing principles and a willingness to follow structured practices. This Skill builds on that foundation to guide your development process.

How does test-driven development help with fixing bugs and refactoring code?

Test-driven development helps with fixing bugs and refactoring by ensuring tests verify behavior through public interfaces before changes are made. This Skill provides refactoring guidelines to safely improve code without breaking tests.

When should I avoid using a test-first approach for software testing?

You should avoid a test-first approach if your context lacks clear public interfaces to verify or if you cannot commit to structured red-green-refactor cycles. This Skill is ideal for users seeking a structured approach to developing features.