tdd-workflow

Enforce a RED-GREEN-REFACTOR test-driven development workflow before implementation.

1|Updated May 6, 2026
One-click install
npx skills add https://github.com/ag47-pt/Website --skill tdd-workflow-ag47-pt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/ag47-pt/Website/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/ag47-pt/Website --skill tdd-workflow-ag47-pt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid unreliable implementations by enforcing a structured test-first workflow that turns requirements into verified behavior.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Guidance: Provides a clear workflow for writing failing tests, implementing minimal solutions, and improving code quality safely.
  • TDD Principles: Applies core practices such as behavior-focused tests, YAGNI, incremental refactoring, and the AAA testing pattern.
  • Use Case: Use this Skill when building new features, fixing bugs, or designing complex logic where automated tests should define expected behavior before implementation.

Quick Start

Use the tdd-workflow skill to guide me through creating a feature using the RED-GREEN-REFACTOR cycle.

Frequently Asked Questions about tdd-workflow

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

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

Test-driven development for bug fixes enforces a structured test-first workflow by writing a failing unit test that reproduces the bug, implementing the minimal fix to pass it, and refactoring safely. This verifies behavior before the actual implementation changes.

What is the RED-GREEN-REFACTOR cycle in unit testing?

The AAA testing pattern structures unit tests into Arrange, Act, and Assert phases to ensure behavior-focused validation. It guides writing clear tests by setting up conditions, executing the logic, and verifying expected outcomes during the test-driven workflow.

Does test-driven development work for complex logic design?

Test-driven development supports refactoring by ensuring behavior-focused tests validate existing logic before you improve code quality. It applies incremental refactoring practices within the RED-GREEN-REFACTOR cycle to maintain reliable software during structural changes.

When should I not use test-driven development for software development?

Test-driven development improves code quality by enforcing a test-first workflow that turns requirements into verified behavior. It applies YAGNI and incremental refactoring practices to ensure maintainable, reliable software changes during feature development and bug fixes.