test-driven-development

Enforce Red-Green-Refactor cycles with failing tests before implementation.

1|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill test-driven-development-bermudalocals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/BermudaLocals/hermes-agent-lite/tree/main/skills/software-development/test-driven-development
Command: npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill test-driven-development-bermudalocals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write tests before implementation to prevent defects and regressions, ensuring code changes are driven by verification.

Core Features & Use Cases

  • Enforces RED-GREEN-REFACTOR cycles to guide development and improve design.
  • Improves code quality by catching failures early and documenting intended behavior.
  • Useful for features, bug fixes, and refactors across any language with automated tests.

Quick Start

Begin by writing a failing test for the desired behavior, run the tests to observe the failure, then implement the minimal code to pass and refactor.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor cycle work?

Test-driven development is a process where you write a failing test first, implement minimal code to pass it, and then refactor. This red-green-refactor cycle drives feature development and prevents regressions by enforcing verification before implementation.

How do I start writing tests before implementation for a new feature?

Begin by writing a failing test for the desired behavior, then run the tests to observe the failure. Implement the minimal code required to pass the test, and iteratively refactor while maintaining automated test execution.

Can I use test-driven development for bug fixes and refactoring across any programming language?

Yes, test-driven development applies to feature development, bug fixes, and refactoring across projects using any language that supports automated tests. It catches failures early and documents intended behavior regardless of the specific tech stack.

Why should I write failing tests first instead of writing tests after implementation?

Writing failing tests first ensures code changes are driven by verification, preventing defects and regressions. This approach enforces red-green-refactor cycles, improves code design, and documents intended behavior before the implementation logic even exists.

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

No specific testing frameworks or dependencies are required. Test-driven development works across any language with automated tests, requiring only an environment capable of executing tests to observe failures and validate minimal implementation passes.