test-driven-development

Enforce a red-green-refactor workflow requiring failing tests before production code.

60|38|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/abcnuts/manus-skills --skill test-driven-development-abcnuts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/abcnuts/manus-skills/tree/main/skills/workflow-skills/test-driven-development
Command: npx skills add https://github.com/abcnuts/manus-skills --skill test-driven-development-abcnuts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the development process by ensuring every feature starts with a failing test, preventing unnoticed regressions and guiding correct behavior.

Core Features & Use Cases

  • Red-Green-Refactor workflow as the standard for implementing features and fixes.
  • Clear guardrails that prevent production code without a failing test.
  • Helps teams document and enforce testing discipline across refactors and behavior changes.

Quick Start

Start by writing a failing test, then implement the minimal production code to pass it, and refactor while keeping all tests green.

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?

Test-driven development uses the red-green-refactor cycle: write a failing test, implement minimal production code to pass it, and refactor while keeping tests green. This workflow enforces testing discipline and prevents unnoticed regressions during feature development.

How do I enforce a test-first workflow for new features and bugfixes?

Enforce test-driven development by requiring a failing test before any production code. Implement minimal code to pass the test, then refactor. This guardrail prevents untested features and guides correct behavior across refactors and behavior changes.

Why should I write a failing test before writing production code?

Writing a failing test before production code ensures the test actually validates the new behavior. This test-driven approach prevents unnoticed regressions, documents expected behavior, and guides disciplined feature development from the start.

Does test-driven development work for refactoring existing code?

Test-driven development applies to refactoring by keeping all existing tests green while you clean up the code. The red-green-refactor cycle ensures behavior remains unchanged during structural improvements and behavior changes.

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

Test-driven development applies to both new features and bugfix work. Write a failing test that captures the desired behavior or bug scenario, implement minimal code to pass it, and refactor with confidence that tests prevent regressions.