tdd

Guide AI agents through red-green-refactor cycles to implement software features.

5|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/onesyntax/skills --skill tdd-onesyntax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/onesyntax/skills/tree/main/skills/tdd
Command: npx skills add https://github.com/onesyntax/skills --skill tdd-onesyntax

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? This Skill guides AI agents through implementing features using Uncle Bob's Test-Driven Development principles, emphasizing rapid, safe delivery via the Red-Green-Refactor cycle and the Three Laws of TDD.

## Core Features & Use Cases

  • Step-by-step TDD workflow: Understand the feature, enumerate test cases, write failing tests, implement minimal production code, refactor, and repeat.
  • Focus on disciplined design, naming, and maintainable test code aligned with TDD best practices.
  • Use Case: A developer uses this Skill to drive feature delivery with confidence, ensuring tests guide implementation from start to finish.

Quick Start

Use the TDD workflow to write a failing test for a simple feature, implement the minimal code to pass, then refactor.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement test-driven development cycles for feature work?

To implement test-driven development cycles, follow the Red-Green-Refactor workflow: enumerate test cases, write a failing test, write minimal production code to pass, then refactor safely. This approach guides feature delivery from start to finish.

What are the three laws of TDD and how do they apply to software testing?

The three laws of TDD enforce strict test-driven development progression: write no production code without a failing test, write only enough test code to fail, and write only enough production code to pass. This cycle ensures safe, maintainable software testing.

Can I use this TDD workflow for bug fixes and refactoring across various codebases?

Yes, this TDD workflow applies to feature work, bug fixes, and refactoring across various codebases. It guides AI agents through safe implementation by emphasizing disciplined design and maintainable test code aligned with TDD best practices.

Do I need special dependencies or frameworks to start writing failing tests?

No special dependencies are required. You need only a standard development environment and a codified workflow as described in the SKILL.md frontmatter to start writing failing tests and implementing minimal production code.

What is the best way to apply Uncle Bob's TDD principles during AI-assisted development?

The best way to apply Uncle Bob's TDD principles is to have AI agents follow the rapid, safe delivery cycle: understand the feature, enumerate test cases, write failing tests, implement minimal code, and refactor. This ensures tests guide implementation.

Why does my code break when I skip the failing test step in Red-Green-Refactor?

Skipping the failing test step in Red-Green-Refactor breaks the TDD cycle because you lose immediate feedback on test validity. Writing a failing test first confirms the test checks the right behavior before writing minimal production code to pass it.