test-driven-development

Enforce a strict Test-Driven Development workflow with one test at a time.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/RandyHaylor/enhanceclaude --skill test-driven-development-randyhaylor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/RandyHaylor/enhanceclaude/tree/main/ai-tools/test-driven-development
Command: npx skills add https://github.com/RandyHaylor/enhanceclaude --skill test-driven-development-randyhaylor

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enforces a strict Test-Driven Development (TDD) workflow to ensure code precisely matches requirements, prevents over-implementation, and builds confidence through incremental, verifiable progress.

Core Features & Use Cases

  • Strict TDD Cycle: Follows Red-Green-Next, writing one test, making it pass, and verifying before proceeding.
  • Minimal Implementation: Writes only the code necessary to pass the current test.
  • Mocked Timers & Async: Provides patterns for reliable testing of asynchronous operations.
  • Test Failure Diagnosis: Offers a systematic procedure using proof tests to isolate issues.
  • Use Case: When adding a new feature, use this Skill to write a test for the smallest piece of functionality, implement just enough to pass, and then repeat, ensuring the final code is robust and requirement-driven.

Quick Start

Use TDD to add a new setting to the configuration file, writing one test at a time and waiting for confirmation before proceeding.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I enforce a strict test-driven development workflow when adding new features?

To enforce strict test-driven development, you write one test, make it pass with minimal implementation, and verify before proceeding to the next test. This prevents over-implementation and ensures code matches requirements through incremental progress.

What is the best way to write minimal implementation code that passes requirements?

The best way to write minimal implementation code is by following a Red-Green-Next cycle, writing only the code necessary to pass the current test before moving forward, ensuring the final code is robust and requirement-driven.

How do I handle mocked timers and async operations during test automation?

To handle mocked timers and async operations during test automation, use provided testing patterns designed for reliable asynchronous execution, ensuring your tests remain stable and deterministic throughout the development workflow.

What is a proof test and how does it help with debugging test failures?

A proof test is a systematic procedure for debugging test failures by isolating issues. It helps diagnose exactly why a test fails, ensuring your test-driven development cycle maintains high code quality and verifiable progress.

Why does writing tests first improve code quality and prevent over-implementation?

Writing tests first improves code quality by forcing you to write minimal implementation code to pass the current test. This strict test-driven development workflow prevents over-implementation and builds confidence through incremental, verifiable progress.