tdd-strict

Enforce strict test-driven development by blocking code generation until tests exist.

38|5|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/Svenja-dev/claude-code-skills --skill tdd-strict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-strict
Source: https://github.com/Svenja-dev/claude-code-skills/tree/main/skills/tdd-strict
Command: npx skills add https://github.com/Svenja-dev/claude-code-skills --skill tdd-strict

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces strict Test-Driven Development using the Red-Green-Refactor cycle. It blocks code generation until tests exist and cover new work, across features, fixes, and refactoring. It documents 13 invalid rationalizations to deter shortcuts and guide disciplined development.

Core Features & Use Cases

  • Enforces the Red-Green-Refactor workflow and test-first discipline.
  • Blocks code generation until tests exist and pass, ensuring test coverage.
  • Documents 13 common rationalizations to prevent shortcuts and guide teams.
  • Use Case Example: When adding a new feature, write a failing test first, implement the minimal code to satisfy the test, then refactor while keeping all tests green.

Quick Start

Activate the TDD-strict skill for new features, bug fixes, and refactoring to enforce tests first. Integrate with your existing test suite and begin by writing a failing test

Frequently Asked Questions about tdd-strict

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

FAQPage Schema
How do I enforce strict test-driven development in TypeScript?

To enforce strict test-driven development in TypeScript, this skill blocks code generation until explicit tests exist and pass. It applies the Red-Green-Refactor cycle to new features, bug fixes, refactoring, and every exported function.

What is the Red-Green-Refactor cycle in TDD?

The Red-Green-Refactor cycle in TDD requires writing a failing test first, implementing the minimal code to satisfy the test, then refactoring while keeping all tests green. This skill enforces this workflow by blocking code generation until tests pass.

Does test-first development apply to refactoring and bug fixes?

Yes, test-first development applies to refactoring and bug fixes. This skill requires explicit tests to exist and cover new work before any code changes are generated across features, fixes, API expansions, and every exported function.

How to prevent TDD shortcuts and invalid rationalizations?

To prevent TDD shortcuts and invalid rationalizations, this skill documents 13 common rationalizations to deter developers from taking shortcuts. It actively blocks code generation until proper test coverage is verified.

Can I generate code before writing unit tests?

No, you cannot generate code before writing unit tests. This skill enforces strict TDD by blocking all code generation until tests exist and pass, ensuring complete test coverage for new features and modifications.

When should I not use strict TDD enforcement?

You should not use strict TDD enforcement when rapid prototyping without test coverage is required, as it blocks code generation until tests exist and pass. It is designed for disciplined development requiring test-first workflows.