test-driven-development

Enforce failing tests before production code in Python projects.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/jacardl/New-Radar --skill test-driven-development-jacardl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/jacardl/New-Radar/tree/main/backend/frameworks/hermes-agent/skills/software-development/test-driven-development
Command: npx skills add https://github.com/jacardl/New-Radar --skill test-driven-development-jacardl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures code quality by requiring tests to fail before any production code is written, driving deliberate, minimal implementations.

Core Features & Use Cases

  • Enforces RED-GREEN-REFACTOR cycles at the start of every feature or bug fix.
  • Guides test-first development across Python projects, reducing regressions.
  • Helps teams document expected behavior through tests that act as living specifications.

Quick Start

Illustrate a new feature by writing a failing test first, then implement the minimal code to pass it.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I enforce test-driven development cycles in Python?

To enforce test-driven development, write a failing test first, implement the minimal code required to pass it, and then refactor without introducing regressions. This RED-GREEN-REFACTOR cycle ensures deliberate, minimal implementations across Python projects.

What is the RED-GREEN-REFACTOR cycle in software engineering?

The RED-GREEN-REFACTOR cycle is a test-driven development workflow requiring a failing test first, followed by minimal production code to pass it, and concluding with regression-free refactoring to ensure code quality.

How do I reduce regressions when refactoring Python code?

To reduce regressions during refactoring, apply a test-first workflow by writing tests that act as living specifications before changing production code, ensuring minimal implementation and regression-free behavior.

Can I use test-first development for both bug fixes and new features?

Yes, test-first development applies to both bug fixes and feature development. It enforces writing a failing test before any production code, driving deliberate implementations and reducing regressions across the workflow.

When do I need to write a failing test before writing production code?

You need to write a failing test before production code whenever you are developing features, fixing bugs, or refactoring. This ensures requirements are satisfied through a disciplined workflow and minimal implementation.