tdd

Automate red-green-refactor loops around vertical slices in test-driven development.

15|5|Updated May 17, 2026
One-click install
npx skills add https://github.com/cropsgg/skills --skill tdd-cropsgg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/cropsgg/skills/tree/main/skills/engineering/tdd
Command: npx skills add https://github.com/cropsgg/skills --skill tdd-cropsgg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development provides a disciplined approach to building software by ensuring tests define desired behavior before code, reducing defects and facilitating refactoring.

Core Features & Use Cases

  • Red–Green–Refactor workflow to validate one vertical slice at a time and capture intended behavior.
  • Structured process from defining a slice to integrating with regression checks, enabling safer changes.
  • Improves documentation of intent and guards against regressions during feature delivery and bug fixes.

Quick Start

Define a single user-visible behavior or bug repro, write a failing test for it, then implement the minimal code needed to pass and refactor for clarity.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce test-driven development loops for feature development and bug fixes?

You can enforce test-driven development by structuring red-green-refactor loops around vertical slices, which captures intended behavior and guards against regressions during feature delivery and bug fixes.

What is the best way to automate TDD workflows for vertical slices?

Automating TDD workflows involves structuring the process from slice definition to integration, requiring a test framework and minimal test scaffolding to run single-slice workflows that validate one behavior at a time.

How does a red-green-refactor workflow improve regression safety during refactoring?

A red-green-refactor workflow improves regression safety by writing failing tests for a single user-visible behavior before implementation, ensuring minimal code passes and enabling safer refactoring for clarity.

Do I need a test framework to run single-slice TDD workflows?

Yes, you need a test framework and minimal test scaffolding to run single-slice TDD workflows, as the process enforces steps from slice definition to integration and regression checks.

Can I use test-driven development for both new features and code refactoring?

Yes, test-driven development is applicable to feature development, bug fixes, and refactors in software projects where tests drive design and ensure regression safety.

What are the limitations of automating TDD processes for software testing?

The TDD automation process requires existing test scaffolding and a test framework, limiting its use in software projects lacking minimal test infrastructure or where tests do not drive design.