tdd-workflow

Implement test-driven development workflows using the RED-GREEN-REFACTOR cycle.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDD workflow principles help teams deliver reliable software by enforcing a test-first approach and structured refactoring.

Core Features & Use Cases

  • Enforces the RED-GREEN-REFACTOR cycle to drive feature development with tests first.
  • Provides the Three Laws of TDD and the AAA testing pattern as practical guidelines.
  • Useful for teams aiming to improve code quality, maintainability, and rapid feedback loops in software projects.

Quick Start

Write a failing test for a small function, implement only enough production code to pass the test, and refactor for clarity.

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 drives feature development by writing a failing test, implementing code to pass it, and refactoring for clarity. This test-first approach enforces structured refactoring and rapid feedback loops to ensure software reliability and maintainability.

How do I apply the AAA pattern to unit and integration tests?▼

Apply the AAA pattern by structuring tests into Arrange, Act, and Assert phases. This pattern provides practical guidelines for the test-driven development cycle, specifying naming conventions and phase rules to guide teams through reliable unit and integration testing.

What are the Three Laws of TDD for software engineering projects?▼

The Three Laws of TDD are practical guidelines provided to enforce a strict test-first approach. They specify steps and phase rules to guide teams through the RED-GREEN-REFACTOR cycle, ensuring code correctness and improving overall software quality and maintainability.

How do I start test-driven development for a new software feature?▼

Start test-driven development by writing a failing test for a small function, implementing only enough production code to pass the test, and refactoring for clarity. This enforces the test-first workflow to deliver reliable code with rapid feedback.

When should I use a test-driven development workflow?▼

Use a test-driven development workflow when your software project needs reliable quality through structured refactoring and rapid feedback loops. It is useful for teams aiming to improve code maintainability and enforce a strict test-first approach across unit and integration tests.

Does test-driven development work for integration tests?▼

Yes, test-driven development works for integration tests by applying the RED-GREEN-REFACTOR cycle and the AAA pattern. It specifies steps and phase rules to guide teams through both unit and integration testing to ensure code correctness and reliability.