test-driven-development

Enforce test-first development with failing tests before minimal code.

35|13|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/wildwasser/opencode-agents --skill test-driven-development-wildwasser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/wildwasser/opencode-agents/tree/main/.opencode/skills/test-driven-development
Command: npx skills add https://github.com/wildwasser/opencode-agents --skill test-driven-development-wildwasser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development reduces regressions and guides implementation by requiring tests before production code, improving reliability and maintainability.

Core Features & Use Cases

  • Enforces test-first workflows for new features and bug fixes.
  • Reduces regressions by validating code changes against a test suite.
  • Use Case: during feature development or refactoring, write a failing test first and then implement the minimal code to pass.

Quick Start

Create a failing test that describes the desired behavior, then implement the minimal code to satisfy 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 start writing unit tests before implementation using test-driven development?

Test-driven development starts by writing a failing unit test that describes the desired behavior, then implementing the minimal code required to make that test pass, and finally refactoring to maintain a clean design.

What is the red-green-refactor cycle in software testing?

The red-green-refactor cycle is the core test-driven development workflow: write a failing test (red), implement minimal code to pass it (green), and then refactor the code to improve design while keeping tests passing.

When should I use test-first development for bug fixes and refactoring?

Test-first development should be used during feature development, bug fixes, and refactoring to guide implementation with small, verifiable steps and prevent regressions by validating code changes against a test suite.

Does test-driven development reduce code regressions in software projects?

Test-driven development reduces regressions by requiring tests before production code. It validates all code changes against a comprehensive test suite, improving software reliability and maintainability.

What's the best way to guide implementation with small verifiable steps?

The best way to guide implementation with small verifiable steps is enforcing a test-first workflow: require a failing test first, write minimal code to pass it, and subsequently refactor to maintain clean design.