tdd-failing-tests-loop

Community

Turn red tests into safe green code.

AuthorAskTinNguyen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This guide provides a repeatable red-green-refactor loop to safely overhaul, refactor, or harden a code path using strict failing-tests-first TDD; it ensures contracts, tests, and implementation stay aligned while mitigating risk.

Core Features & Use Cases

  • Map the existing contract before touching code to capture durable behavior boundaries.
  • Write purposeful red tests that express explicit contract gaps.
  • Run the smallest relevant test slice to verify the targeted surface.
  • Make the smallest green change that satisfies the new contract.
  • Refactor after the contract is green to simplify and consolidate.
  • Sync internal docs, prompts, and policy to reflect the new runtime contract.
  • Broaden verification to adjacent subsystems and related suites.
  • Report the red → green timeline for auditable change.

Quick Start

Apply the red-green-refactor loop to a subsystem by mapping the contract, writing red tests for gaps, executing the smallest green change, and recording the red→green timeline.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tdd-failing-tests-loop
Download link: https://github.com/AskTinNguyen/vesper-team-skills/archive/main.zip#tdd-failing-tests-loop

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.