tdd-workflow

Automate Test-Driven Development education and adoption for software teams.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Facilitates reliable adoption of Test-Driven Development by guiding teams through the RED-GREEN-REFACTOR cycle, reducing defects and improving design.

Core Features & Use Cases

  • Definition of the TDD cycle and the three laws
  • Guidelines for writing focused tests, naming, and incremental implementation
  • Use cases: onboarding new developers, running TDD workshops, and refactoring sessions

Quick Start

Apply the RED-GREEN-REFACTOR cycle to a new feature or bugfix to drive development with tests and iterative refinement.

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 test-driven development?

The RED-GREEN-REFACTOR cycle in test-driven development is a workflow where you first write a failing test, write the minimum code to make it pass, and then refine the design. This approach reduces defects and improves software design incrementally.

How do I apply test-driven development to a new feature or bugfix?

To apply test-driven development to a new feature or bugfix, start by writing a focused failing test using the AAA pattern. Next, implement the minimal code to pass the test, then refactor the implementation while keeping the test green.

Can I use this test-driven development workflow for team onboarding and workshops?

Yes, you can use this test-driven development workflow for team onboarding and workshops. It provides guidelines for writing focused tests, naming conventions, and incremental implementation, making it suitable for developers across various codebases and team sizes.

What are the three laws of test-driven development?

The three laws of test-driven development dictate writing no production code without a failing test, writing only enough test code to fail, and writing only enough production code to pass the test, enforcing the RED-GREEN-REFACTOR cycle.

Does test-driven development work for refactoring existing codebases?

Yes, test-driven development works for refactoring existing codebases. It guides teams through the RED-GREEN-REFACTOR cycle to safely modify code, ensuring tests drive iterative refinement and reduce defects during refactoring sessions.