tdd-workflow

Guide Test-Driven Development with the RED-GREEN-REFACTOR cycle.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/ofelixdev/cc-kit --skill tdd-workflow-ofelixdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/ofelixdev/cc-kit/tree/main/template/skills/tdd-workflow
Command: npx skills add https://github.com/ofelixdev/cc-kit --skill tdd-workflow-ofelixdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to software development by guiding users through the Test-Driven Development (TDD) methodology, ensuring robust and well-tested code.

Core Features & Use Cases

  • TDD Cycle Guidance: Explains and enforces the RED-GREEN-REFACTOR loop.
  • Core Principles: Details the Three Laws of TDD and the AAA pattern.
  • Use Case: When starting a new feature, follow the TDD cycle to write a failing test, implement the minimum code to pass, and then refactor for quality.

Quick Start

Follow the RED-GREEN-REFACTOR cycle to develop new code.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
What is the RED-GREEN-REFACTOR cycle in Test-Driven Development?

The RED-GREEN-REFACTOR cycle in Test-Driven Development involves writing a failing test, implementing the minimum code to pass it, and then refactoring for quality. This structured approach ensures robust, testable software.

How do I start writing code using the Test-Driven Development methodology?

To start Test-Driven Development, follow the Three Laws of TDD and the AAA pattern. You begin by writing a failing test for a new feature, implement just enough code to make it pass, and then refactor the implementation to improve code quality.

What are common Test-Driven Development anti-patterns to avoid?

Common Test-Driven Development anti-patterns include skipping the refactor phase or writing excessive code before testing. This Skill identifies these pitfalls to help you maintain strict adherence to the TDD methodology and write robust, testable code.

Can I use AI-augmented strategies for Test-Driven Development?

Yes, you can use AI-augmented strategies for Test-Driven Development. This Skill includes AI-augmented TDD strategies to assist you in navigating the RED-GREEN-REFACTOR cycle, enforcing core principles, and generating robust testable code.

When should I apply the AAA pattern in TDD?

You should apply the AAA pattern during the Test-Driven Development process to structure your tests clearly. It stands for Arrange, Act, and Assert, helping you write organized tests that validate code behavior effectively throughout the TDD cycle.