tdd-workflow

Guide test-first development through RED-GREEN-REFACTOR cycles with AAA tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid brittle, hard-to-debug code by guiding you through a disciplined test-first development process, so requirements become executable specifications before implementation begins.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Guidance: Structure work into failing tests, minimal passing code, and clean refactoring.
  • Test Design Support: Prioritize behavior-focused, edge-case, and error-handling tests using the AAA pattern.
  • AI-Augmented Collaboration: Split TDD work across agents or roles for test writing, implementation, and optimization.
  • Use Case: Ideal for building a new feature, fixing a bug with a regression test, or improving complex logic with safer incremental changes.

Quick Start

Ask the AI to help you apply TDD to one small feature by writing a failing test first and then implementing only the minimum code needed to make it pass.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I apply test-driven development to a new feature?▼

Test-driven development for a new feature involves writing a failing test first, implementing only the minimum code needed to make it pass, and then safely refactoring. This enforces the RED-GREEN-REFACTOR cycle using the AAA test structure.

What is the AAA test structure in unit testing?▼

The AAA test structure in unit testing organizes tests into Arrange, Act, and Assert phases to validate behavior. It prioritizes behavior-focused validation, edge cases, and error handling alongside the RED-GREEN-REFACTOR cycle.

When should I use TDD for bug fixes?▼

Use TDD for bug fixes when you need a regression test to prevent the issue from reoccurring. You write a failing test reproducing the bug, implement the minimal code fix to pass it, and safely refactor.

Can I split TDD work across multiple AI agents?▼

You can split TDD work across AI agents or roles by assigning specific phases like test writing, minimal implementation, and code optimization. This AI-augmented collaboration structures complex logic development into safer incremental changes.

Does TDD work for improving complex logic in existing software?▼

TDD works for improving complex logic by enforcing safer incremental changes through the RED-GREEN-REFACTOR cycle. It guides you to specify expected behavior with failing tests before modifying or refactoring the existing code.

Why write failing tests before implementation code?▼

Writing failing tests before implementation code ensures your requirements become executable specifications early. This prevents brittle, hard-to-debug code by validating behavior and edge cases before the main software development begins.