test-driven-development

Enforces red-green-refactor cycles by writing a failing unit or integration or system test before production code.

1|Updated May 7, 2026
One-click install
npx skills add https://github.com/wesleysimplicio/simplicio-mapper --skill test-driven-development-wesleysimplicio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/wesleysimplicio/simplicio-mapper/tree/main/.skills/test-driven-development
Command: npx skills add https://github.com/wesleysimplicio/simplicio-mapper --skill test-driven-development-wesleysimplicio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams ensure high-quality software by enforcing a test-first approach before implementing production code.

Core Features & Use Cases

  • Guided TDD workflow: prompts to write a failing test before any implementation.
  • Red-Green-Refactor cycle coaching: step-by-step instructions to validate tests, implement minimal code, and refactor safely.
  • Best-practice naming & discipline: reinforces writing meaningful tests and avoiding premature optimization.
  • Use Case: A developer on a feature request uses this skill to structure the workflow: write a failing unit test, implement the simplest code to pass, refactor, and ensure all tests pass.

Quick Start

Draft a failing test for the requested behavior, then implement the minimal production code to make the test pass, and repeat the red-green-refactor cycle.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I start test-driven development for a new software feature?

Test-driven development is a test-first approach where you write a failing test before any production code. It enforces a disciplined red-green-refactor workflow to validate behavior, implement minimal code, and refactor safely across common development scenarios.

How does the red-green-refactor cycle work in unit testing?

The red-green-refactor cycle in unit testing involves writing a failing test first, implementing the minimal code to pass that test, and then safely refactoring the implementation. This cycle repeats continuously to ensure high-quality software.

Can I use test-driven development for bug fixes and refactoring?

Yes, test-driven development applies during bug fixes and refactors. You write a failing test that captures the expected behavior, implement the minimal code to fix the issue, and then refactor safely while ensuring all tests pass.

What is the best way to enforce TDD discipline across a development team?

The best way to enforce TDD discipline is by following a guided workflow that prompts writing a failing test before implementation. This approach reinforces meaningful test naming and avoids premature optimization during the red-green-refactor cycle.

When should I not use a test-first approach in software engineering?

You should avoid a test-first approach when the expected behavior is completely undefined or for throwaway prototypes. The red-green-refactor workflow requires well-named tests and explicit coverage, making it best suited for feature work, bug fixes, and refactoring.