tdd-cycle

Enforce a strict red-green-refactor TDD cycle for software development.

105|8|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/686f6c61/alfred-dev --skill tdd-cycle-686f6c61
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-cycle
Source: https://github.com/686f6c61/alfred-dev/tree/main/skills/desarrollo/tdd-cycle
Command: npx skills add https://github.com/686f6c61/alfred-dev --skill tdd-cycle-686f6c61

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a strict Test-Driven Development (TDD) workflow, ensuring that code is designed with testability in mind and that all production code is covered by failing tests before implementation.

Core Features & Use Cases

  • Strict Red-Green-Refactor Cycle: Guides users through the essential steps of TDD.
  • Design-Led Development: Promotes cleaner, more maintainable code by focusing on the public interface first.
  • Use Case: When starting a new feature, use this Skill to write the tests that define the desired behavior before writing any implementation code, ensuring a robust and well-tested feature.

Quick Start

Initiate the TDD cycle by writing a new test that is expected to fail.

Frequently Asked Questions about tdd-cycle

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

FAQPage Schema
How do I enforce a strict test-first development workflow for new features?

A strict red-green-refactor cycle guides test-first development by requiring a failing test before any production code. This ensures all implementation is covered by tests, guiding design and promoting code quality during new feature development.

What is the red-green-refactor cycle in Test-Driven Development?

The red-green-refactor cycle is a TDD methodology where you first write a failing test, then write the minimum production code to make it pass, and finally refactor the code. This cycle ensures clean, maintainable, and well-tested software behavior.

Does test-first development require writing tests for implementation details?

Test-first development focuses on testing behavior over implementation details. By designing the public interface first and writing tests for expected outcomes, you avoid brittle tests and promote code that is cleaner and easier to maintain.

How do I start a TDD cycle when building a new software feature?

To start a TDD cycle, initiate the process by writing a new test that is expected to fail. This failing test defines the desired behavior for your new feature before any implementation code is written, ensuring a robust and well-tested result.

Can I write production code without a failing test in strict TDD?

In strict TDD, no production code is written without a preceding failing test. This rule enforces testability and ensures that every piece of implementation is driven by a specific test, adhering to atomic commits and robust development practices.

When should I not use a strict Test-Driven Development cycle?

A strict TDD cycle may not suit exploratory programming or throwaway prototypes where behavior is not yet defined. Because it enforces writing failing tests before any production code, it requires a clear understanding of desired behavior upfront to avoid slowing down rapid experimentation.