tdd-workflow

Guide developers through red-green-refactor cycles with failing tests and refactoring.

4|11|Updated May 1, 2025
One-click install
npx skills add https://github.com/Rational-Partners/ai-training-practical --skill tdd-workflow-rational-partners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/Rational-Partners/ai-training-practical/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/Rational-Partners/ai-training-practical --skill tdd-workflow-rational-partners

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This workflow provides a structured approach to building software by driving development with tests early, validating design decisions, and ensuring maintainable code through refactoring.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Establishes a disciplined loop that starts with failing tests, implements just enough code to pass, and improves it without breaking tests.
  • Test Quality & Coverage: Emphasizes measurable test quality, coverage targets, and regression safeguards during feature development.
  • Adoption & Collaboration: Guides teams on how to adopt TDD practices across frontend and backend tasks, with reusable patterns for different tech stacks.

Quick Start

Begin by scanning requirements, write failing tests first, implement just enough code to pass, and refactor while keeping all tests green.

Frequently Asked Questions about tdd-workflow

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

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

Test-driven development starts by scanning requirements, writing failing tests first, implementing just enough code to pass, and refactoring while keeping all tests green. This enforces a red-green-refactor cycle to build features with confidence.

What is the red-green-refactor cycle in TDD?

The red-green-refactor cycle is a disciplined TDD loop that begins with failing tests, implements the minimum code required to pass them, and then improves the codebase without breaking existing tests.

Does this TDD workflow apply to both frontend and backend tasks?

Yes, this TDD workflow applies to software projects of any tech stack. It provides reusable patterns to guide both frontend and backend teams in adopting test-driven development practices.

How do I maintain test quality and coverage during refactoring?

Maintain test quality and coverage during refactoring by preserving green tests and making progress commits. The workflow emphasizes measurable coverage targets and regression safeguards throughout feature development.

What's the best way to adopt TDD practices across a development team?

The best way to adopt TDD practices across a team is using a structured workflow that enforces red-green-refactor cycles. It guides collaboration with reusable testing patterns for different stacks to ensure reliable features.