tdd-workflow

Guides users through the RED-GREEN-REFACTOR cycle of Test-Driven Development.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/OmarMira/Coontabilidad --skill tdd-workflow-omarmira
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/OmarMira/Coontabilidad/tree/main/.agent/skills/tdd-workflow
Command: npx skills add https://github.com/OmarMira/Coontabilidad --skill tdd-workflow-omarmira

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to software development that emphasizes writing tests before writing code, leading to more robust, maintainable, and well-tested software.

Core Features & Use Cases

  • Test-Driven Development (TDD): Guides users through the RED-GREEN-REFACTOR cycle.
  • TDD Principles: Explains the three laws of TDD and best practices for each phase.
  • Use Case: When starting a new feature, follow the TDD workflow to write a failing test, then write the minimal code to pass, and finally refactor for quality.

Quick Start

Follow the RED-GREEN-REFACTOR cycle to develop 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, creating minimal code to pass that test, and then refactoring the code for quality. It ensures robust, maintainable software.

How do I apply the AAA pattern when writing tests before code?▼

To apply the AAA pattern during test-driven development, you structure your tests into Arrange, Act, and Assert phases. This methodology guides you through writing failing tests first to build well-tested software.

When should I use test-driven development in my software development workflow?▼

You should use test-driven development when starting a new feature that requires robust and maintainable code. It provides a structured agile approach to writing tests before code, ensuring higher software quality.

What are common TDD anti-patterns to avoid during refactoring?▼

Common TDD anti-patterns involve skipping the minimal passing code phase or neglecting refactoring for quality. Understanding the three laws of TDD helps avoid these pitfalls and maintains a clean development cycle.

What are the three laws of TDD and how do they guide writing failing tests?▼

The three laws of TDD dictate that you write no production code without a failing test, write only enough test code to fail, and write only enough production code to pass. They enforce the structured test-driven development workflow.