test-driven-development

Implement the Red-Green-Refactor cycle and Prove-It pattern for code changes.

23|6|Updated May 9, 2026
One-click install
npx skills add https://github.com/vinvcn/addyosmani-agent-skills-zh --skill test-driven-development-vinvcn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/vinvcn/addyosmani-agent-skills-zh/tree/main/skills/test-driven-development
Command: npx skills add https://github.com/vinvcn/addyosmani-agent-skills-zh --skill test-driven-development-vinvcn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the lack of reliability and maintainability in codebases by enforcing a disciplined Test-Driven Development (TDD) workflow, ensuring every feature and bug fix is backed by verifiable evidence.

Core Features & Use Cases

  • Prove-It Pattern: Ensures bug fixes are verified by a failing test case before the fix is applied, preventing regressions.
  • TDD Lifecycle: Guides the agent through the Red-Green-Refactor cycle to maintain high code quality.
  • Use Case: When tasked with implementing a new service or fixing a reported production issue, the agent will first write a failing test to define the expected behavior, then implement the minimal code required to pass.

Quick Start

Use the test-driven-development skill to write a reproduction test for the reported login timeout bug before implementing the fix.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How does the Red-Green-Refactor cycle work in test-driven development?

Test-driven development ensures bug fixes are verified by a failing test case before the fix is applied, using the Prove-It pattern. This disciplined workflow prevents regressions by backing every feature and bug remediation with verifiable evidence.

What is the best way to fix a production bug without introducing regressions?

The best way to fix a production bug without regressions is writing a reproduction test for the reported issue before implementing the fix. This test-driven approach ensures code correctness by verifying the expected behavior with a failing test case first.

How do I start implementing a new service using a TDD workflow?

To start implementing a new service with a TDD workflow, write a failing test to define the expected behavior, then implement the minimal code required to pass. This rigorous test-driven development workflow ensures your new features are backed by verifiable evidence.

Does test-driven development apply to refactoring existing codebases?

Yes, test-driven development applies to refactoring tasks across the software lifecycle. By enforcing the Red-Green-Refactor cycle and the Prove-It pattern for all logic modifications, it maintains code reliability and ensures your refactoring efforts do not break existing functionality.

When do I need to use the Prove-It pattern for software debugging?

You need to use the Prove-It pattern for software debugging whenever you are tasked with remediating a reported bug. It ensures bug fixes are verified by a failing test case before the fix is applied, preventing regressions and maintaining software quality.