test-driven-development

Enforce a red-green-refactor test-first workflow for feature and bugfix development.

12|1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/ovargas/virtual-team --skill test-driven-development-ovargas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/ovargas/virtual-team/tree/main/skills/test-driven-development
Command: npx skills add https://github.com/ovargas/virtual-team --skill test-driven-development-ovargas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Red-green-refactor discipline helps teams ensure features are implemented with testing first, reducing regressions and design drift.

Core Features & Use Cases

  • Red-Green-Refactor cycle: enforce a test-first workflow from failing test to passing code and refactor.
  • Mode-based discipline: configurable strictness (strict, recommended, off) to fit team rituals.
  • End-to-end guidance: covers test writing, running tests, and incremental implementation across features and bugfixes.

Quick Start

Start by writing a failing test for the new behavior, then implement just enough code to make it pass.

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 a test-first workflow during feature development?

To enforce a test-first workflow, you apply a strict red-green-refactor cycle by writing a failing test for new behavior, implementing just enough code to pass, and then refactoring. This reduces regressions and design drift.

Can I configure TDD strictness to fit different team rituals?

Yes, you can configure TDD strictness using mode-based discipline with settings for strict, recommended, or off. This allows teams to adjust the test-first enforcement level to match their specific development rituals.

How does the red-green-refactor cycle work for bugfixes across different programming languages?

The red-green-refactor cycle guides bugfixes across languages by first writing a failing test that reproduces the bug, implementing the minimal code fix to make it pass, and then refactoring the implementation to ensure quality assurance.

What is the best way to start writing a failing test for a new feature behavior?

The best way to start is to write a failing test that accurately captures the new expected behavior, run it to confirm it fails, and then incrementally implement the production code until the test passes.

When should I not use strict mode for test-driven development?

You should avoid strict mode for test-driven development when your team requires flexible iteration without immediate test-first enforcement, switching instead to recommended or off modes to better fit exploratory programming contexts.