test-driven-development

Guide developers through the Red-Green-Refactor cycle for TDD.

1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/mezivillager/hacer --skill test-driven-development-mezivillager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/mezivillager/hacer/tree/main/.claude/skills/test-driven-development
Command: npx skills add https://github.com/mezivillager/hacer --skill test-driven-development-mezivillager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) methodology to ensure code quality, prevent regressions, and build robust software by requiring tests to be written before implementation code.

Core Features & Use Cases

  • Enforces TDD Cycle: Guides users through the Red-Green-Refactor cycle.
  • Prevents Common Pitfalls: Details and warns against testing anti-patterns and rationalizations.
  • Use Case: When starting a new feature, use this Skill to ensure you write a failing test first, then minimal code to pass, and finally refactor, guaranteeing the feature works as intended and preventing future bugs.

Quick Start

Use the test-driven-development skill to implement a new feature by writing a failing test first.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
What is the test-driven development process for building new software features?

Test-driven development (TDD) is a methodology that enforces the Red-Green-Refactor cycle. It requires writing failing tests before production code to ensure software quality, prevent regressions, and guide implementation through minimal coding steps.

How do I implement the Red-Green-Refactor cycle when writing tests first?

To implement the Red-Green-Refactor cycle, first write a failing test for the new feature, then write minimal production code to pass that test, and finally refactor the code. This testing sequence ensures the feature works as intended and prevents future bugs.

Why does writing tests after implementation lead to debugging issues and regressions?

Writing tests after implementation often leads to debugging issues because it allows common rationalizations and testing anti-patterns. TDD prevents this by enforcing rigorous test-first development, ensuring code quality and preventing regressions before deployment.

What are common testing anti-patterns to avoid during refactoring in TDD?

Common testing anti-patterns during refactoring include rationalizing skipped tests or writing overly broad tests. This Skill details and warns against these pitfalls, ensuring developers maintain strict quality assurance and prevent regressions while refactoring production code.

Can I use test-driven development for general software development and quality assurance?

Yes, you can use test-driven development for general software development and quality assurance. It guides developers in building robust software by enforcing a rigorous testing methodology that prevents regressions and ensures overall code quality.