test-driven-development

Guide teams through a RED-GREEN-REFACTOR cycle for test-first development.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/blake-goodwyn/sloppy-pancakes --skill test-driven-development-blake-goodwyn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/blake-goodwyn/sloppy-pancakes/tree/main/.claude/skills/test-driven-development
Command: npx skills add https://github.com/blake-goodwyn/sloppy-pancakes --skill test-driven-development-blake-goodwyn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures teams apply a disciplined RED-GREEN-REFACTOR cycle, driving test-first development and guarding against untested features.

Core Features & Use Cases

  • RED-GREEN-REFACTOR workflow: Guides writing a failing test, implementing the minimal code to pass, and refactoring with confidence.
  • Quality gate: Requires tests for new behaviors to prevent unseen regressions and design flaws.
  • Use Case: When adding a feature, you write a failing test, implement just enough code to pass, refactor, and commit with a clear message.

Quick Start

  • Read the RED-GREEN-REFACTOR steps before starting a task.
  • Write a failing test first, then implement only what is needed to pass.
  • Refactor, run the full test suite, and commit with a descriptive message.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
What is the RED-GREEN-REFACTOR cycle in test-driven development?

The RED-GREEN-REFACTOR cycle is a test-driven development workflow where you write a failing test, implement the minimal code to pass it, and then refactor with confidence. It enforces test-first development and guards against untested features.

How do I enforce a strict test-first development workflow when adding a feature?

To enforce a test-first development workflow, write a failing test first, implement only enough code to pass, refactor, run the full test suite, and commit with a descriptive message. This structured workflow prevents unseen regressions and design flaws.

Does test-driven development require external tooling beyond standard testing practices?

Test-driven development requires no external tooling beyond standard testing practices. It applies across languages and project sizes, guiding teams through when to write tests, implement code, and perform cleanup in a structured workflow.

When should I write tests during software implementation and refactoring?

You should write tests for new behaviors before implementing code during software implementation. This quality gate requires tests upfront to prevent unseen regressions, ensuring you refactor with confidence only after the minimal code passes.

Why does writing tests first improve code quality during feature implementation?

Writing tests first improves code quality by acting as a quality gate that requires tests for new behaviors. This test-driven approach prevents unseen regressions and design flaws, driving disciplined RED-GREEN-REFACTOR cycles for feature implementation.

Can I apply the RED-GREEN-REFACTOR cycle across different programming languages?

The RED-GREEN-REFACTOR cycle applies to any development task across languages and project sizes. It guides teams through writing failing tests, implementing minimal code, and refactoring without relying on external tooling beyond standard testing practices.