tdd

Enforce the Red-Green-Refactor cycle for Test-Driven Development.

20|6|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/sigridjineth/oh-my-codex --skill tdd-sigridjineth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/sigridjineth/oh-my-codex/tree/main/skills/tdd
Command: npx skills add https://github.com/sigridjineth/oh-my-codex --skill tdd-sigridjineth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces the Test-Driven Development (TDD) methodology, ensuring that no production code is written without a preceding failing test, thereby improving code quality and reliability.

Core Features & Use Cases

  • Enforces Red-Green-Refactor Cycle: Guides users through writing a failing test, minimal implementation, and refactoring.
  • Strict Rule Enforcement: Implements clear rules against writing code before tests or including multiple features in one cycle.
  • Use Case: A developer is tasked with adding a new feature. This Skill ensures they first write a test that fails, then write only the necessary code to pass it, and finally refactor the code while keeping tests green.

Quick Start

Follow the TDD cycle to implement the next piece of functionality.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce strict Test-Driven Development in my development workflow?

To enforce Test-Driven Development, you must follow the Red-Green-Refactor cycle by writing a failing test before any production code, then creating minimal implementation to pass it, and finally refactoring while maintaining test integrity.

What are the core rules for writing tests before production code?

The core rules for writing tests before production code include prohibiting implementation without a preceding failing test and restricting a single development cycle to one feature to ensure reliable test adherence and code quality.

How does the Red-Green-Refactor cycle improve code quality during refactoring?

The Red-Green-Refactor cycle improves code quality by ensuring you write a failing test first, implement only the necessary code to pass it, and then safely refactor while keeping tests green to maintain reliability.

Can I include multiple features in a single TDD development cycle?

No, you cannot include multiple features in a single Test-Driven Development cycle. Strict rule enforcement prohibits combining features to ensure minimal implementation and maintain test integrity throughout the workflow.

When do I need to use Test-Driven Development methodology for adding new features?

You need to use Test-Driven Development when adding a new feature to ensure no production code is written without a preceding failing test, thereby improving overall code quality and reliability through enforced cycles.