tdd

Automate test-driven development with RED-GREEN-REFACTOR cycles and progress logging.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/SyloRei/claude-godmode --skill tdd-sylorei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/SyloRei/claude-godmode/tree/main/skills/tdd
Command: npx skills add https://github.com/SyloRei/claude-godmode --skill tdd-sylorei

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the development process by ensuring tests drive design and prevent regressions through a disciplined RED-GREEN-REFACTOR workflow.

Core Features & Use Cases

  • RED — write a failing test for the next behavior
  • GREEN — implement the minimal code to pass tests
  • REFACTOR — clean up while green
  • Commit after each GREEN phase to capture atomic progress
  • Break features into behaviors and drive implementation with acceptance criteria
  • Pipeline-aware workflow with gating and progress tracking

Quick Start

List the feature's behaviors, then execute RED-GREEN-REFACTOR cycles to validate and evolve the implementation.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I automate the test-driven development workflow for feature decomposition?

Automating the test-driven development workflow involves decomposing a feature into behavior-driven RED-GREEN-REFACTOR cycles. This ensures tests guide implementation by enforcing strict progression from a failing test to minimal passing code, followed by cleanup and atomic commits.

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

The RED-GREEN-REFACTOR cycle in software testing dictates writing a failing test for the next behavior, implementing minimal code to pass, and cleaning up while green. This disciplined cycle prevents regressions and ensures tests drive design.

How do I enforce committing code only after tests pass in TDD?

To enforce committing code only after tests pass in TDD, the workflow captures atomic progress by committing after the GREEN phase. It strictly prevents writing production code before a failing test exists.

Do I need a specific testing framework to run focused test cycles?

You need a project-compatible test framework with established naming conventions to run focused test cycles. The workflow requires the ability to execute targeted tests to validate each behavior-driven progression.

What's the best way to break features into behaviors using acceptance criteria?

The best way to break features into behaviors is to list the feature's acceptance criteria and drive implementation through one RED-GREEN-REFACTOR cycle per behavior. This pipeline-aware approach provides gating and automated progress tracking.

Why does test-driven development prevent regressions during refactoring?

Test-driven development prevents regressions during refactoring by enforcing that code cleanup only occurs while tests are green. The pipeline-aware workflow ensures every refactor step is validated against established acceptance criteria.