tdd

Guide teams through the red-green-refactor cycle with failing tests before code.

2|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/chanhee-kang/oh-my-gemini --skill tdd-chanhee-kang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/chanhee-kang/oh-my-gemini/tree/main/skills/tdd
Command: npx skills add https://github.com/chanhee-kang/oh-my-gemini --skill tdd-chanhee-kang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The practice of ensuring software quality by writing tests before code, preventing untested features from entering production.

Core Features & Use Cases

  • Enforce TDD discipline: Guides the Red-Green-Refactor cycle to ensure every feature starts with a failing test.
  • Structured workflow: Provides clear rules for when to write tests, implement minimal code, and refactor.
  • Use Case: A developer starts a new feature by writing a failing test, then implements just enough code to pass, and refactors while keeping tests green.

Quick Start

Use the TDD skill to guide your next feature development cycle from failing test to green pass.

Frequently Asked Questions about tdd

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 software quality practice where you write a failing test before implementing code. You follow the red-green-refactor cycle: write a failing test, implement minimal code to pass, then refactor while keeping tests green.

How do I enforce test-first development discipline in my coding workflow?

To enforce test-first development, you structure your workflow with clear rules: always write a failing test before implementing a feature, write just enough code to pass the test, and refactor with tests remaining green to ensure code discipline.

Do I need external services or installations to practice TDD?

You do not need external services or installations to practice TDD beyond standard testing frameworks. It applies across development cycles and is suitable for individual projects and team workflows without additional infrastructure.

What is the best way to start a new feature using test-driven development?

The best way to start a new feature using test-driven development is to write a failing test that defines the expected behavior, implement minimal code to make the test pass, and then refactor the code while keeping the tests green.

Can I use TDD for both individual projects and team software engineering workflows?

TDD is suitable for both individual projects and team workflows. It guides teams to write failing tests before implementing code and applies across development cycles to enforce disciplined iterative development.

Why write a failing test before implementing code in test-driven development?

Writing a failing test before implementing code in test-driven development prevents untested features from entering production. It ensures every feature starts with a failing test, verifying software quality through the red-green-refactor cycle.