tdd-workflow

Enforce a Test-Driven Development workflow with RED-GREEN-REFACTOR and AAA testing.

4|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/marcusagm/Mundam --skill tdd-workflow-marcusagm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/marcusagm/Mundam/tree/main/.agent/skills/tdd-workflow
Command: npx skills add https://github.com/marcusagm/Mundam --skill tdd-workflow-marcusagm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill captures and enforces a Test-Driven Development workflow to improve software quality by guiding teams to write tests before implementation and follow a structured cycle.

Core Features & Use Cases

  • RED-GREEN-REFACTOR guidance: Define the sequence of testing and implementation steps for each feature.
  • Three Laws of TDD: Enforce the principles that production code should only be written to pass tests, tests should be minimal, and refactoring should maintain test green.
  • AAA testing pattern: Promote Arrange-Act-Assert as the standard unit testing approach across projects.

Quick Start

Use the tdd-workflow skill to guide your team through a RED-GREEN-REFACTOR cycle for a new feature.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
What is the Test-Driven Development workflow for reliable software?▼

The RED-GREEN-REFACTOR cycle structures TDD by first writing a failing test (RED), writing production code to pass that test (GREEN), and then cleaning up the code while keeping tests green (REFACTOR).

How do I apply the AAA testing pattern in test-driven development?▼

You apply the AAA testing pattern in test-driven development by structuring unit tests into three distinct phases: Arrange the necessary preconditions, Act on the behavior, and Assert the expected outcome.

What are the Three Laws of TDD?▼

The Three Laws of TDD prescribe that production code should only be written to pass tests, tests should be minimal, and refactoring must maintain a green test state to ensure quality assurance.

Can I use test-driven development for bug fixes and feature development?▼

Yes, you can use test-driven development for both feature development and bug fixes in software projects, applying the RED-GREEN-REFACTOR cycle across teams adopting TDD to ship reliable code.

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

You should avoid the RED-GREEN-REFACTOR cycle when rapid prototyping without quality assurance constraints is required, as TDD enforces writing minimal tests and production code strictly to pass them.