red-green-tdd

Enforce Red-Green-Refactor TDD cycles with gate-based development steps.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/asadbek21coder/sinfim --skill red-green-tdd-asadbek21coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: red-green-tdd
Source: https://github.com/asadbek21coder/sinfim/tree/main/frontend-vue/.claude/skills/red-green-tdd
Command: npx skills add https://github.com/asadbek21coder/sinfim --skill red-green-tdd-asadbek21coder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Strict Red-Green-Refactor TDD workflow enforcement for AI agents. This is a step-by-step protocol with hard gates — not guidelines. It automatically triggers for any feature, bug fix, or behavior change that involves logic.

Core Features & Use Cases

  • Enforces gate-based development: Decompose, RED, GREEN, and REFACTOR gates with explicit entry criteria.
  • Applies to unit and integration changes involving logic, state machines, validators, or algorithms.
  • Provides a deterministic, auditable process that prevents skipping essential design steps.

Quick Start

Activate the RED-GREEN-REFACTOR protocol automatically for any change that involves logic.

Frequently Asked Questions about red-green-tdd

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

FAQPage Schema
How do I enforce strict Red-Green-Refactor TDD workflows in AI-assisted development?

The Red-Green-Refactor cycle is enforced through gate-based development with explicit entry criteria. It requires passing through Decompose, RED, GREEN, and REFACTOR gates sequentially, ensuring a deterministic, auditable process that prevents skipping essential design steps during code changes.

When should I use a gate-based TDD workflow for software testing?

A gate-based TDD workflow is needed for unit and integration changes involving logic, state machines, validators, or algorithms. It applies across software projects whenever a feature, bug fix, or behavior change requires a deterministic, auditable process with documented Decompose, RED, GREEN, and REFACTOR stages.

How do I prevent AI agents from skipping the test-writing phase in TDD?

To prevent AI agents from skipping the test-writing phase, use a hard-gate protocol that blocks progression until explicit entry criteria are met. This enforces a documented Decompose, RED, GREEN, and REFACTOR cycle, automatically triggering for any logic, state, or behavior change.

Does this TDD enforcement protocol apply to integration tests and state machines?

Yes, this TDD enforcement protocol applies to both unit and integration changes. It is explicitly designed for changes involving state machines, validators, algorithms, and complex decision logic across software projects, automatically triggering whenever these behaviors are modified.

What is the difference between guidelines and hard gates in a Red-Green-Refactor workflow?

Hard gates in a Red-Green-Refactor workflow act as strict, non-skippable barriers with explicit entry criteria, unlike optional guidelines. This gate-based approach ensures a deterministic, auditable process by mandating sequential progression through Decompose, RED, GREEN, and REFACTOR steps for any logic change.