test-driven-development

Enforce test-first development with red-green-refactor workflows for features and bug fixes.

3|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/twjarviszyra-web/hermes-unbound --skill test-driven-development-twjarviszyra-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/twjarviszyra-web/hermes-unbound/tree/main/skills/software-development/test-driven-development
Command: npx skills add https://github.com/twjarviszyra-web/hermes-unbound --skill test-driven-development-twjarviszyra-web

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents implementation drift by forcing you to define behavior with tests before writing production code, making features, bug fixes, and refactors more reliable.

Core Features & Use Cases

  • Red-Green-Refactor Workflow: Guides you through writing a failing test, making the smallest possible change, and cleaning up safely after the test passes.
  • Regression Protection: Helps you lock in fixes and catch unintended side effects when changing existing code.
  • Use Case: When adding a new API endpoint or fixing a parsing bug, use this Skill to verify the behavior first, implement only what is necessary, and confirm the full suite still passes.

Quick Start

Write one failing test for the behavior you want to add, run it to confirm it fails for the expected reason, then implement the smallest code change to make it 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 prevent regression bugs when refactoring existing code?

Prevent regression bugs during refactoring by enforcing a test-first discipline that locks in existing behavior with failing tests before making code changes. This ensures repeatable red-green-refactor workflows and confirms your full test suite remains green after modifications.

What is the red-green-refactor workflow for test-driven development?

The red-green-refactor workflow requires writing a failing test to define desired behavior, implementing the minimal production code to make it pass, and then safely cleaning up the code. This test-first process prevents implementation drift and ensures reliable feature delivery.

How do I fix a parsing bug using a test-first approach?

Fix a parsing bug using a test-first approach by writing a failing test that verifies the specific expected behavior, running it to confirm it fails for the correct reason, and then implementing only the necessary code change to make the test pass.

Does test-driven development work for adding new API endpoints?

Yes, test-driven development works for adding new API endpoints by requiring you to define the endpoint behavior with a failing test first, implementing the smallest code change to satisfy that test, and confirming the full suite still passes.

Why do I need a failing test before writing production code?

You need a failing test before writing production code to define exact behavior expectations upfront and prevent implementation drift. This disciplined verification ensures you only write the minimal code necessary to satisfy the test.