test-driven-development

Enforce test-first development using the RED-GREEN-REFACTOR cycle.

22|4|Updated Oct 28, 2025
One-click install
npx skills add https://github.com/ivfarias/ceo --skill test-driven-development-ivfarias
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/ivfarias/ceo/tree/main/.gemini/skills/test-driven-development
Command: npx skills add https://github.com/ivfarias/ceo --skill test-driven-development-ivfarias

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps ensure code reliability by enforcing tests before implementation.

Core Features & Use Cases

  • Test-first workflow: Write failing tests before coding anything.
  • Safe refactoring: Maintain confidence while evolving codebases.
  • Use Case: When starting a new feature or bugfix, apply TDD to drive design and prevent regressions.

Quick Start

Run the TDD cycle starting with a failing test to guide development.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor cycle work?

Test-driven development is a workflow enforcing test-first discipline by following the RED-GREEN-REFACTOR cycle. You write a failing test, implement minimal code to pass it, and then refactor with confidence to ensure correct, maintainable code.

How do I start writing failing tests before implementing new features?

To start writing failing tests before implementing features, apply the test-first workflow by defining expected behavior as a failing test case, then writing minimal implementation code to turn the failing test green.

Does test-driven development work for refactoring existing codebases?

Test-driven development works for refactoring existing codebases by maintaining confidence during evolution. The test-first discipline ensures you have passing tests verifying correct behavior before and after you modify the code.

What's the best way to prevent regressions when fixing bugs?

The best way to prevent regressions when fixing bugs is applying test-driven development. You write a failing test reproducing the bug, implement the fix to pass the test, and refactor safely to ensure the regression is permanently locked out.

Can I use test-first development for standard software engineering tasks?

You can use test-first development for standard software engineering tasks including new features, bug fixes, and refactors. The test-driven workflow applies broadly to standard codebases to drive design and ensure code reliability.