tdd-workflow

Guide developers through the RED-GREEN-REFACTOR cycle of Test-Driven Development.

6|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/paulojalowyj/openkit --skill tdd-workflow-paulojalowyj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/paulojalowyj/openkit/tree/main/.opencode/skills/tdd-workflow
Command: npx skills add https://github.com/paulojalowyj/openkit --skill tdd-workflow-paulojalowyj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to writing high-quality, well-tested code by guiding developers through the Test-Driven Development (TDD) methodology.

Core Features & Use Cases

  • TDD Cycle Guidance: Explains and enforces the RED-GREEN-REFACTOR loop.
  • Best Practices: Details principles for each phase, including the Three Laws of TDD and the AAA pattern.
  • Use Case: When starting a new feature, use this Skill to ensure you write tests before implementation, leading to more robust and maintainable code.

Quick Start

Follow the TDD cycle by writing a failing test first, then the minimal code to pass, and finally refactoring.

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 first, creating minimal code to pass that test, and then refactoring the implementation for code quality without changing behavior.

How do I start writing code using test-driven development methodology?

To start test-driven development, write a failing test defining a new feature, implement the minimal code required to pass the test, and finally refactor the codebase to improve structure while maintaining passing tests.

What are the Three Laws of TDD and the AAA pattern?

The Three Laws of TDD and the AAA pattern are test-driven development best practices that enforce writing tests before implementation, structuring tests into Arrange, Act, and Assert phases for robust and maintainable software.

Can I use test-driven development for agile software development?

Yes, test-driven development supports agile software development by providing a structured RED-GREEN-REFACTOR loop that ensures high code quality, supports continuous refactoring, and enables AI-augmented collaborative development workflows.

When should I not use the RED-GREEN-REFACTOR cycle?

You should reconsider the RED-GREEN-REFACTOR cycle for exploratory programming or throwaway prototypes where immediate code quality and strict test-first constraints slow down rapid software development validation.