test-driven-development

Enforce the RED-GREEN-REFACTOR cycle by requiring failing tests before production code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a disciplined development approach by requiring failing tests before implementing code, preventing untested work from entering production.

Core Features & Use Cases

  • Enforces the RED-GREEN-REFACTOR cycle as the standard workflow.
  • Prohibits implementing features before writing tests, reducing regression bugs.
  • Guides teams through structured test-first development, code quality, and safe refactoring.

Quick Start

Write a failing test first, run it to see red, implement the minimal code to pass, then refactor while keeping tests green.

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 the test-driven development workflow for feature work and bug fixes?

Enforce test-driven development by requiring a failing test before any production code is written. This applies the RED-GREEN-REFACTOR cycle to feature work and bug fixes, preventing untested code from entering production and reducing regression bugs.

What is the RED-GREEN-REFACTOR cycle and how does it improve code quality?

The RED-GREEN-REFACTOR cycle is a test-driven development workflow where you write a failing test, implement minimal code to pass it, then refactor while keeping tests green. This ensures comprehensive test coverage and predictable outcomes across languages and teams.

Can I use this test-first development approach across different programming languages and teams?

Yes, this test-first development approach applies across languages and teams. It guides teams through structured development and safe refactoring regardless of the programming language, ensuring consistent quality assurance and commit discipline throughout the workflow.

What's the best way to start writing tests before implementation to prevent untested work?

The best way to start is to write a failing test first, run it to see red, implement the minimal code to pass the test, then refactor while keeping tests green. This prohibits implementing features before writing tests, ensuring predictable outcomes.

Why does test-driven development forbid implementing features before writing tests?

Test-driven development forbids implementation before tests to prevent untested work from entering production. By enforcing the RED-GREEN-REFACTOR cycle and guiding commit discipline, it reduces regression bugs and ensures comprehensive test coverage for all code changes.