test-driven-development

Enforce the red-green-refactor workflow by writing failing tests before production code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/do-zoo/match-screening-cisc --skill test-driven-development-do-zoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/do-zoo/match-screening-cisc/tree/main/.agents/skills/test-driven-development
Command: npx skills add https://github.com/do-zoo/match-screening-cisc --skill test-driven-development-do-zoo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write robust software by forcing tests before implementation, reducing debugging time and catching regressions early.

Core Features & Use Cases

  • Red-Green-Refactor workflow: write a failing test, implement minimal code, then refactor for clarity.
  • Guardrails for common workflows: feature development, bug fixes, and safe refactoring with automated feedback.
  • Clear rules to maximize reliability: adhere to the iron law "no production code without a failing test" and keep tests focused.

Quick Start

Write a failing test for the new feature, then implement the minimal code to pass, and refactor.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How does test-driven development improve software quality?

Test-driven development improves software quality by enforcing a workflow where you write a failing test before implementation, which reduces debugging time and catches regressions early in the development cycle.

How do I apply red-green-refactor for bug fixes and feature development?

To apply red-green-refactor, you first write a failing test defining the desired behavior, implement the minimal code required to pass that test, and then refactor the codebase for clarity without breaking functionality.

What is the core rule for writing production code in test-driven development?

The core rule of test-driven development is the iron law that no production code is written without first starting from a failing test, ensuring every feature has guaranteed test coverage and safer changes.

Can I use test-driven development for safe refactoring?

Yes, test-driven development is highly effective for safe refactoring because it provides automated feedback through existing tests, ensuring that structural changes do not alter or break current software behavior.

When should I not rely on test-driven development?

You should not rely on test-driven development when writing exploratory code or throwaway scripts, as the strict requirement to create failing tests before implementation adds unnecessary overhead to non-production code.

What's the best way to keep tests focused during test-driven development?

The best way to keep tests focused during test-driven development is to write tests that target single behaviors and adhere to the red-green-refactor workflow, maximizing reliability and preventing test bloat.