tdd-workflow

Enforce the RED-GREEN-REFACTOR cycle and AAA pattern for TDD workflows.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/emelleby/tc-vsme --skill tdd-workflow-emelleby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/emelleby/tc-vsme/tree/main/.agent/skills/tdd-workflow
Command: npx skills add https://github.com/emelleby/tc-vsme --skill tdd-workflow-emelleby

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams adopt Test-Driven Development (TDD) to reduce bugs, improve design, and speed up iteration by enforcing the RED-GREEN-REFACTOR cycle.

Core Features & Use Cases

  • TDD Cycle Mastery: Apply RED-GREEN-REFACTOR consistently to any feature.
  • Rule Enforcement: Follow the AAA pattern to structure tests and code.
  • Team Collaboration: Align developers on common testing practices across projects.

Quick Start

Run the TDD workflow with a simple feature: write a failing test, implement minimal code to pass, then refactor for readability.

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 TDD?

The RED-GREEN-REFACTOR cycle is a TDD workflow where you write a failing test, implement minimal code to pass it, then refactor for readability. This enforces strict test-driven development to reduce bugs and improve software design across diverse codebases.

How do I apply the AAA pattern to structure my tests?

Apply the AAA pattern by organizing tests into Arrange, Act, and Assert sections. This TDD workflow enforces strict structural rules for your test code, ensuring reliable feature development, bug fixes, and refactors across your team.

Do I need specific testing libraries to start test-driven development?

No specific testing libraries are required to start test-driven development. You can enforce the TDD workflow and AAA pattern using only standard testing libraries already available in your environment for feature development and refactoring.

How do I align my development team on common testing practices?

Align your development team on common testing practices by adopting a strict TDD workflow. Enforcing the RED-GREEN-REFACTOR cycle and AAA pattern consistently improves collaboration and code quality across diverse projects and codebases.

What's the best way to refactor code using test-driven development?

The best way to refactor code using test-driven development is to rely on existing passing tests after the GREEN phase. You refactor for readability knowing the tests enforce functionality, reducing bugs and speeding up iteration safely.