tdd-cycle

Enforces Test-commanding discipline by sequencing phases of the Taguchi process.

2|Updated Sep 20, 2025
One-click install
npx skills add https://github.com/anortham/sherpa --skill tdd-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-cycle
Source: https://github.com/anortham/sherpa/tree/main/skills/tdd-cycle
Command: npx skills add https://github.com/anortham/sherpa --skill tdd-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces the disciplined TDD pattern to prevent untested code and ensure reliable software through a strict RED-GREEN-REFACTOR loop guided by Sherpa.

Core Features & Use Cases

  • Guide-enforced Phases: Ensures every feature starts with a guide check and follows the four phases.
  • Tests-First Discipline: Writes tests before implementation to specify behavior and prevent regressions.
  • Progress Tracking & Celebrations: Integrates with Sherpa's feedback loop to reinforce good habits.

Quick Start

Start a TDD session by saying "guide check" to enter Phase 1 - Define Contract, then follow each phase as prompted by Sherpa.

Frequently Asked Questions about tdd-cycle

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

FAQPage Schema
How do I implement test-driven development to prevent untested code?

Test-driven development enforces writing tests before implementation code, ensuring behavior is specified upfront and regressions are caught early. This Skill implements a strict RED-GREEN-REFACTOR cycle with guided phases to maintain TDD discipline throughout feature development.

What is the RED-GREEN-REFACTOR workflow and how does it work?

RED-GREEN-REFACTOR is a TDD pattern: write a failing test (RED), write minimal code to pass it (GREEN), then clean up without changing behavior (REFACTOR). This Skill automates the cycle with phase tracking and guide checks to ensure each step completes before advancing.

When should I use tests-first development for software projects?

Tests-first development is essential for core logic that requires reliability: extractors, parsers, transformers, and feature implementations where bugs are costly. This Skill applies TDD discipline during feature building and refactoring to maintain code quality.

Can I automate the TDD cycle to maintain discipline across my team?

Yes. This Skill enforces the TDD cycle automatically with mandatory phase gates, pre-code guide checks, and per-step updates integrated with Sherpa tools, preventing untested code from advancing and reinforcing disciplined habits.

How do I track progress and stay motivated during test-driven development?

This Skill integrates progress tracking and celebration checkpoints into the RED-GREEN-REFACTOR loop, providing Sherpa feedback at each phase to reinforce good habits and keep momentum through structured, guided development cycles.