test-driven-development

Guide red-green-refactor cycles with failing tests before production code.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/bouwerp/agentic-framework --skill test-driven-development-bouwerp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/bouwerp/agentic-framework/tree/main/skills/test-driven-development
Command: npx skills add https://github.com/bouwerp/agentic-framework --skill test-driven-development-bouwerp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a test-first discipline, ensuring no production code is written before a failing test is created and guiding developers through red-green-refactor cycles, framework detection, and cross-language testing practices.

Core Features & Use Cases

  • Red-Green-Refactor cycle: write a failing test first, implement the minimum to pass, then refactor with tests green.
  • Verification discipline: mandatory RED, GREEN, and REFACTOR phases to guard against regressions.
  • Framework-agnostic guidance: supports multiple languages and test frameworks with detection and best practices.
  • Edge-case and test-quality focus: emphasizes testing edge cases, mutation concepts, and regression test workflows.
  • Bug-to-test workflow: converts bugs into regression tests to prevent recurrence.

Quick Start

Write the failing test for the new behaviour, implement the minimum production code to pass, and refactor while keeping the test suite green.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How does test-driven development prevent code regressions?

Test-driven development prevents regressions by enforcing a red-green-refactor cycle where a failing test is written before production code, ensuring every feature is guarded by mandatory verification phases.

How do I convert a bug fix into a regression test?

You convert a bug fix into a regression test using a bug-to-test workflow that first writes a failing test reproducing the bug, then implements the minimum production code to make it pass.

Can I apply test-driven development across different programming languages?

Yes, you can apply test-driven development across any language stack using framework-agnostic detection that provides cross-language testing guidance and best practices for your specific environment.

What is the red-green-refactor cycle for writing tests?

The red-green-refactor cycle is a test-driven workflow where you write a failing test, implement the minimum production code to pass it, and then refactor while keeping the test suite green.

How do I handle edge cases when writing tests first?

Handle edge cases during test-driven development by emphasizing edge-case focus and test-quality practices throughout the red-green-refactor cycle to ensure robust production code and prevent regressions.