test-driven-development

Automate red-green-refactor cycles with failing-test-first workflows.

58|6|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/Matt-Aurora-Ventures/Jarvis --skill test-driven-development-matt-aurora-ventures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/Matt-Aurora-Ventures/Jarvis/tree/main/.windsurf/skills/test-driven-development
Command: npx skills add https://github.com/Matt-Aurora-Ventures/Jarvis --skill test-driven-development-matt-aurora-ventures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development (TDD) is a disciplined approach that helps prevent defects by writing tests before production code, ensuring behavior is verified from the start.

Core Features & Use Cases

  • Encourages writing small, testable units and driving design with tests.
  • Guides the red-green-refactor cycle to catch regressions early.
  • Use during new features, bug fixes, and refactors to maintain code quality and confidence.

Quick Start

Write a failing test for a feature, then implement the minimal code to 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 start writing unit tests before production code?

Test-driven development is a disciplined approach where you write a failing unit test for a feature, implement minimal production code to pass it, and then refactor. This cycle ensures behavior is verified from the start.

What is the red-green-refactor cycle in test-driven development?

The red-green-refactor cycle in test-driven development involves writing a failing test, producing the minimal code to make it pass, and then cleaning up the design. This workflow catches regressions early and drives reliable code quality.

When should I use test-driven development for bug fixes and new features?

Use test-driven development during new features, bug fixes, and refactors to maintain software quality and confidence. It encourages writing small, testable units and driving design with tests to prevent defects and catch regressions early.

Does test-driven development require specific testing frameworks or dependencies?

Test-driven development does not require specific external dependencies or frameworks. It is an agile workflow discipline that can be applied to any software engineering task requiring robust unit tests and reliable code quality.

What's the best way to ensure reliable code quality in agile development?

The best way to ensure reliable code quality in agile development is adopting test-driven development. By enforcing a failing-test-first workflow and writing minimal production code, you prevent defects and verify behavior from the start.