tdd

Guide the red-green-refactor loop for interface-level testing with SOLID principles.

Updated Feb 28, 2019
One-click install
npx skills add https://github.com/rjschie/dotfiles --skill tdd-rjschie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/rjschie/dotfiles/tree/main/files/claude/skills/tdd
Command: npx skills add https://github.com/rjschie/dotfiles --skill tdd-rjschie

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill assists developers in adopting and implementing Test-Driven Development (TDD) practices, which can improve code quality, reliability, and maintainability.

Core Features & Use Cases

  • TDD Loop Integration: Guides the implementation of the red-green-refactor loop.
  • Behavior-Driven Development: Instructs on writing tests that describe the behavior rather than implementation details.
  • Module Design: Offers guidelines on designing testable interfaces and modules.
  • Use Case: When starting a new project or refactoring existing code, this Skill can help establish a structured and efficient TDD process.

Quick Start

Initialize your TDD process with this skill by writing a test for a feature you want to implement.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I start applying test-driven development to write testable code?▼

Start test-driven development by writing a single failing test for a desired feature. This initiates the red-green-refactor loop to establish minimal, testable codebases.

What is the red-green-refactor loop in software development?▼

The red-green-refactor loop is a test-driven development cycle where you write a failing test, implement minimal code to pass it, and then refactor. This improves code quality and maintainability.

Should I test implementation details or behavior when using test-driven development?▼

Test-driven development should focus on describing behavior rather than implementation details. This approach ensures robust interface-level testing and supports SOLID principles for better module design.

Can I use test-driven development principles when refactoring existing code?▼

Yes, you can use test-driven development when refactoring existing code. It helps establish a structured process by designing testable interfaces and modules to improve overall code reliability.

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

No specific testing frameworks or dependencies are required. The process focuses on applying TDD principles, behavior descriptions, and SOLID design patterns to your existing development workflow.