maestro:tdd

Enforce the Red-Green-Refactor cycle by creating failing tests before production code.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/ReinaMacCredy/Maestro-CLI --skill maestro-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maestro:tdd
Source: https://github.com/ReinaMacCredy/Maestro-CLI/tree/main/.codex/skills/maestro%3Atdd
Command: npx skills add https://github.com/ReinaMacCredy/Maestro-CLI --skill maestro-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, ensuring that all production code is written only after a failing test has been created and observed, thereby preventing bugs and improving code reliability.

Core Features & Use Cases

  • Enforces Red-Green-Refactor Cycle: Guides users through writing a failing test, writing minimal code to pass, and then refactoring.
  • Prevents Regressions: Ensures that new code is tested before it's written, and that existing functionality isn't broken during refactoring.
  • Use Case: When developing a new feature, use this Skill to write the test for that feature first. Observe the test fail, then write the minimum code to make it pass, and finally clean up the code while keeping the test green.

Quick Start

Follow the Test-Driven Development cycle by writing a failing test before any new implementation code.

Frequently Asked Questions about maestro:tdd

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

FAQPage Schema
How do I enforce the Test-Driven Development cycle when writing new software features?

To enforce the Test-Driven Development cycle, write a failing test for a new feature before writing any production code. Then, write the minimal code required to pass the test, and finally refactor the implementation while keeping the test green.

What is the Red-Green-Refactor cycle in agile software development?

The Red-Green-Refactor cycle is a Test-Driven Development practice where you write a failing test, write minimal code to make it pass, and then refactor the code. This ensures code quality and prevents regressions during development.

Why should I write failing tests before writing production code?

Writing failing tests before production code ensures that your tests are actually validating behavior and prevents bugs. This Test-Driven Development approach documents expected behavior through executable tests and improves overall code reliability.

How do I prevent code regressions during refactoring?

To prevent regressions during refactoring, follow the Test-Driven Development methodology by maintaining executable tests created before the production code. These tests verify existing functionality remains intact while you clean up and refactor the implementation.

Can I use Test-Driven Development for existing codebases that need refactoring?

Test-Driven Development is highly effective for refactoring existing codebases because it mandates creating executable tests first. By observing a failing test before making changes, you ensure new code is tested and existing functionality is documented and protected.

What are the limitations of strict Test-Driven Development?

Strict Test-Driven Development requires adherence to rigid rules regarding test creation order, which may slow down initial development. You must always observe a failing test before writing implementation code, preventing rapid prototyping without executable test coverage.