test-driven-development

Enforce test-first development with a red-green-refactor cycle.

74|6|Updated Aug 6, 2025
One-click install
npx skills add https://github.com/mneves75/dnschat --skill test-driven-development-mneves75
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/mneves75/dnschat/tree/main/.claude/skills/test-driven-development
Command: npx skills add https://github.com/mneves75/dnschat --skill test-driven-development-mneves75

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing tests after code often leads to incomplete coverage or tests that don't truly verify behavior, resulting in fragile software and recurring bugs. This skill enforces a disciplined approach to ensure verifiable code.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Guides you through writing a failing test, then minimal code to pass it, and finally refactoring.
  • Mandatory Test-First: Strictly enforces writing a failing test before any production code, proving the test's validity.
  • Rationalization Prevention: Addresses common excuses for skipping TDD, ensuring consistent application of the methodology.
  • Use Case: Implement a new user registration feature by first writing a test that fails when an empty email is submitted, then writing minimal code to make that test pass, ensuring the validation works.

Quick Start

Use the test-driven-development skill to implement the new user registration feature, starting with a failing test for empty email validation.