tdd-workflow

Guide developers through a test-first red-green-refactor workflow for implementing behavior.

26|1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/TeamSloppy/Sloppy --skill tdd-workflow-teamsloppy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/TeamSloppy/Sloppy/tree/main/Sources/sloppy/Resources/Skills/tdd-workflow
Command: npx skills add https://github.com/TeamSloppy/Sloppy --skill tdd-workflow-teamsloppy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides teams to implement features using a test-first red-green-refactor workflow, ensuring that new behavior is validated by focused tests before production code changes.

Core Features & Use Cases

  • Red-Green-Refactor loop: clarify behavior, add a focused failing test, verify red, implement the minimal production change, and verify green.
  • Build-Mode Checklist Integration: provides an explicit checklist to guide builds and maintain discipline.
  • Regression Fix Flow: reproduce the bug, add a regression test, fix the issue with a small safe change, and re-run validation.
  • Quality & Documentation Guidance: emphasizes test quality, guardrails, and repeatable validation across workflows.

Quick Start

Begin by identifying the smallest observable behavior and write a failing test to drive your first minimal production change.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I implement test-driven development using the red-green-refactor workflow?

Test-driven development using the red-green-refactor workflow starts by defining the smallest observable behavior, writing a focused failing test to verify red, implementing minimal production code to reach green, and then performing a safe refactor.

What is the best way to fix regressions with a test-first approach?

The best way to fix regressions with a test-first approach is to reproduce the bug, add a regression test that captures the failure, apply a small safe production change to fix the issue, and re-run validation loops to confirm the fix.

Why does my TDD workflow need a build-mode checklist?

A TDD workflow needs a build-mode checklist to maintain development discipline and guide builds through rigorous test planning, focused validation, and explicit rollout validations across the structured core loop.

Can I use this TDD workflow to validate new features before production code changes?

Yes, you can use this TDD workflow to validate new features before production code changes by writing focused tests that define observable behaviors, running minimal validation loops, and ensuring all tests pass before integration.

When should I not use a red-green-refactor loop for software engineering tasks?

You should not use a red-green-refactor loop when building features or fixing regressions that lack observable behaviors to test, as the workflow requires defining explicit test cases and running focused validation loops before changing production code.