test-driven-development

Enforce a test-driven development workflow with failing tests before production code.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/Rawgrowth-Consulting/rawclaw-agent --skill test-driven-development-rawgrowth-consulting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/Rawgrowth-Consulting/rawclaw-agent/tree/main/skills/software-development/test-driven-development
Command: npx skills add https://github.com/Rawgrowth-Consulting/rawclaw-agent --skill test-driven-development-rawgrowth-consulting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a test-first approach, ensuring developers write failing tests before production code and follow the RED-GREEN-REFACTOR cycle.

Core Features & Use Cases

  • Red-Green-Refactor discipline: mandate tests first, run them to observe failure, then implement minimal code to pass and refactor.
  • Applicable to feature development, bug fixes, and refactoring across software projects to improve reliability and maintainability.

Quick Start

Write a failing test for the desired behavior, run the test to confirm failure, then implement the simplest code to pass and refactor.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I practice test-driven development for feature building?▼

Test-driven development for feature building requires writing a failing test for the desired behavior first, running it to confirm failure, then implementing the minimal production code to pass before refactoring.

What is the red-green-refactor cycle in software engineering?▼

The red-green-refactor cycle mandates writing failing tests first, writing minimal code to make them pass, and refactoring only after the tests succeed to ensure reliable software.

Can I use a tests-first approach for bug fixes and refactoring?▼

Yes, a tests-first approach applies to bug fixes and refactoring by enforcing a failing test that captures the bug or desired behavior before changing any production code.

How do I start writing failing tests before production code?▼

Start writing failing tests by defining the desired behavior in a test, running it to observe the failure, and then writing the simplest production code required to make that test pass.

Why does writing tests first improve software quality?▼

Writing tests first improves software quality by enforcing a strict test-driven development workflow that requires real failing tests before implementation, ensuring reliability and maintainability across software projects.