tdd-workflow

Guides developers through RED-GREEN-REFACTOR cycles with AAA tests and incremental commits.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bcassiano/MariIA --skill tdd-workflow-bcassiano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/bcassiano/MariIA/tree/main/ag_kit_2/.agent/skills/tdd-workflow
Command: npx skills add https://github.com/bcassiano/MariIA --skill tdd-workflow-bcassiano

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDD Flow reduces reliance on post-hoc debugging by enforcing a test-first approach, improving code reliability and maintainability.

Core Features & Use Cases

  • Enforces RED-GREEN-REFACTOR cycle across feature development and bug fixes
  • Promotes AAA testing pattern for clear test structure
  • Guides teams on when to apply TDD and how to refactor safely

Quick Start

Create a failing test, implement minimal code to pass, then refactor with small, incremental changes.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I start a test-driven development workflow for new features?

Start a test-driven development workflow by writing a failing test first, implementing minimal code to pass that test, then refactoring with small, incremental commits. This RED-GREEN-REFACTOR cycle reduces post-hoc debugging.

What is the AAA testing pattern and when should I use it?

The AAA testing pattern structures tests into Arrange, Act, and Assert sections. Use it during TDD cycles to maintain clear test structure and improve software reliability across feature development and bug fixes.

How do I apply TDD cycles when fixing existing bugs?

Apply TDD to bug fixes by writing a failing test that reproduces the specific bug, implementing the minimal code correction to make it pass, and refactoring safely with small commits to prevent regressions.

What are the rules for refactoring code during the TDD cycle?

Refactoring rules in TDD require making small, incremental changes only after the failing test passes. You must maintain clear test naming conventions and commit practices to ensure safe code modifications.

Does test-driven development require specific testing frameworks or dependencies?

Test-driven development does not require specific frameworks. The workflow enforces the RED-GREEN-REFACTOR cycle and AAA pattern independently, guiding teams on when to apply TDD across any software development environment.