tdd

Orchestrate the RED-GREEN-REFACTOR cycle with specialized agents for test writing and code simplification.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enforces the Test-Driven Development (TDD) methodology, ensuring that tests are written before code, leading to more robust, maintainable, and well-defined software.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Cycle: Orchestrates the complete TDD workflow using specialized agents.
  • Automated Test Generation: Agents write failing tests based on defined behavior.
  • Minimal Implementation: Guides the creation of just enough code to pass tests.
  • Code Refinement: Agents clean up code and tests without altering behavior.
  • Use Case: When developing a new feature, use this Skill to automatically generate tests, write the minimal code to pass them, and then refactor the result, ensuring high quality from the start.

Quick Start

Use the tdd skill to add a user registration endpoint.

Frequently Asked Questions about tdd

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

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

Test-driven development is implemented by orchestrating the RED-GREEN-REFACTOR cycle: clarifying behavior, writing failing tests, creating minimal code to pass, and refactoring for clarity.

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

The RED-GREEN-REFACTOR cycle is a testing workflow that starts with writing failing tests, implements the minimal code required to make them pass, and then cleans up the code without altering behavior.

How do I write failing tests before implementing code logic?

Failing tests are written by specialized agents based on the defined behavior, ensuring that tests are created before code implementation to guide development and improve maintainability.

Do I need custom agent definitions to run the TDD workflow?

Yes, custom agent definitions for test-architect and code-simplifier are required to automate test generation, guide minimal implementation, and refine the code through the TDD cycle.

When should I use test-driven development over writing code first?

Test-driven development should be used when developing a new feature to ensure high quality from the start, automatically generate tests, and enforce robust, maintainable software design.