test-driven-development

Enforces RED-GREEN-REFACTOR cycle requiring a failing test before production code changes.

10|Updated May 9, 2026
One-click install
npx skills add https://github.com/jcwleo/oh-no-harness --skill test-driven-development-jcwleo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/jcwleo/oh-no-harness/tree/main/plugins/oh-no-harness/skills-claude/test-driven-development
Command: npx skills add https://github.com/jcwleo/oh-no-harness --skill test-driven-development-jcwleo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents the common pitfall of writing production code before verifying requirements, ensuring that every behavior change is backed by a failing test and a clear verification path.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Enforcement: Guides the agent through the strict TDD cycle to ensure high-quality, verified code changes.
  • Workflow Integration: Seamlessly integrates with ralph, systematic-debugging, and ultrawork to provide a mid-loop discipline for behavior-changing tasks.
  • Use Case: When implementing a new feature or fixing a complex bug, use this skill to ensure you write a failing test case first, confirm the failure, implement the minimal fix, and refactor safely.

Quick Start

Activate the test-driven-development skill to begin a new feature implementation by writing a failing test case first.

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 a test-first development cycle for feature implementation?

To enforce a test-first development cycle, you must mandate a failing test before any production code modification. This strict test-driven development approach ensures every behavior change is backed by a failing test and a clear verification path.

What is the RED GREEN REFACTOR process in test-driven development?

The RED GREEN REFACTOR process requires writing a failing test (RED), implementing the minimal code to pass it (GREEN), and safely improving the code structure (REFACTOR). This cycle ensures high-quality, verified code changes for feature implementation and bug fixes.

Can I use test-driven development for behavior-preserving refactoring?

Yes, you can use test-driven development for behavior-preserving refactors. Within established workflows, the test-first discipline applies to refactoring by ensuring existing tests verify that structural code changes do not alter the original software behavior.

Does test-driven development integrate with systematic debugging workflows?

Test-driven development integrates seamlessly with systematic debugging workflows to provide mid-loop discipline for behavior-changing tasks. It ensures that complex bug fixes are verified by mandating a failing test case before implementing the minimal fix.

Why write a failing test before writing production code?

Writing a failing test before production code prevents the pitfall of implementing features without verifying requirements. It establishes a strict verification path, ensuring that every behavior change is evidence-based and reliably tested through the TDD cycle.