running-tdd-cycle

Coordinate the complete TDD RED-GREEN-REFACTOR workflow for Python development.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/nicolaei/claude-plugins --skill running-tdd-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: running-tdd-cycle
Source: https://github.com/nicolaei/claude-plugins/tree/main/programmer/skills/running-tdd-cycle
Command: npx skills add https://github.com/nicolaei/claude-plugins --skill running-tdd-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides Python developers through the complete TDD RED-GREEN-REFACTOR cycle, ensuring tests drive design and feature implementation.

Core Features & Use Cases

  • Orchestrates RED, GREEN, and REFACTOR phases for new features in Python projects.
  • Prompts explicit phase transitions and provides practical guidance for writing tests, implementing code, and refactoring.
  • Useful when users mention TDD, test first, RED phase, GREEN phase, or REFACTOR phase.

Quick Start

Begin in the RED phase by writing a failing test and let the workflow guide you through GREEN and REFACTOR.

Frequently Asked Questions about running-tdd-cycle

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

FAQPage Schema
How do I do TDD in Python using the RED-GREEN-REFACTOR cycle?

To guide the TDD workflow in Python, start in the RED phase by writing a failing test, move to GREEN by implementing minimal production code to pass it, and then REFACTOR the code while keeping tests green.

What is the RED-GREEN-REFACTOR workflow in test-driven development?

The RED-GREEN-REFACTOR workflow drives design through tests by requiring a failing test first (RED), minimal implementation to pass the test (GREEN), and code refactoring without breaking tests (REFACTOR). It ensures tests drive feature implementation.

How do I start writing tests first for a new Python feature?

To start writing tests first for a new Python feature, begin in the RED phase by writing a failing test that defines the desired behavior, then let the TDD workflow guide you through the GREEN and REFACTOR phases for implementation.

When should I transition between RED, GREEN, and REFACTOR phases?

You transition between RED, GREEN, and REFACTOR phases after explicitly completing the current step: write a failing test first, implement minimal code to turn it green, and then refactor the codebase while ensuring tests remain green.

Can I use this TDD workflow for refactoring existing Python code?

Yes, you can use this TDD workflow for refactoring existing Python code by applying the REFACTOR phase, which guides you to improve the code structure while keeping the tests green to ensure functionality remains intact.