staff-test-driven-development

Enforce red-green-refactor test-first development for production code changes.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/HexSleeves/skills --skill staff-test-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: staff-test-driven-development
Source: https://github.com/HexSleeves/skills/tree/main/skills/staff-tdd-discipline
Command: npx skills add https://github.com/HexSleeves/skills --skill staff-test-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents unverified code from slipping into production by enforcing a strict test-first workflow for features, bug fixes, refactors, and behavior changes.

Core Features & Use Cases

  • Red-Green-Refactor Discipline: Write one failing test, verify it fails for the right reason, then implement the smallest change needed to pass.
  • Verification Guardrails: Check that tests fail before coding, pass after coding, and remain green through refactoring.
  • Real-World Use Case: Use it when adding a new API endpoint, fixing a regression, or changing business logic so every change is backed by a proof of behavior.

Quick Start

Use the staff-test-driven-development skill to help me write a failing test first for this bug fix and then guide me through the minimal implementation.

Frequently Asked Questions about staff-test-driven-development

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

FAQPage Schema
How do I enforce a test-driven development workflow for bug fixes and refactoring?

Test-driven development for bug fixes is enforced by requiring a failing test before implementation, writing minimal code to satisfy the test, and verifying the failure occurs for the expected reason before refactoring.

What is the red-green-refactor cycle and how does it verify code changes?

The red-green-refactor cycle is a test-first process where you write a failing test, implement the smallest code change to pass it, and then refactor while ensuring tests remain green throughout the verification process.

How do I write a failing test first for a new feature and verify it fails for the right reason?

To write a failing test first for a new feature, you draft a test defining the expected behavior, run it to confirm it fails specifically due to missing implementation, and then proceed to write the minimal production code required to make it pass.

Does test-first development apply to behavior changes in existing software projects?

Test-first development applies to behavior changes in existing software projects by enforcing strict verification guardrails, ensuring every logic modification or new API endpoint is backed by a proof of behavior before the code is refactored.

Can I use this test-first approach for both new features and regression fixes?

You can use this test-first approach for both new features and regression fixes, as it enforces disciplined red-green-refactor execution to verify that production code changes pass tests and prevent unverified code from slipping in.

What are the limitations of strict test-first development for rapid prototyping?

Strict test-first development requires writing a failing test before any implementation, which may limit rapid prototyping speed by enforcing verification guardrails and minimal code increments for every behavior change or refactor.