tdd-enforcer

Enforce the RED-GREEN-REFACTOR cycle across JavaScript/TypeScript, Go, and Python projects.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/kinnerkarmanish/mak --skill tdd-enforcer-kinnerkarmanish
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd-enforcer
Source: https://github.com/kinnerkarmanish/mak/tree/main/library/skills/development/tdd
Command: npx skills add https://github.com/kinnerkarmanish/mak --skill tdd-enforcer-kinnerkarmanish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces strict Test-Driven Development discipline by ensuring that tests drive every feature implementation and prevent ad-hoc coding.

Core Features & Use Cases

  • Enforces the RED-GREEN-REFACTOR cycle to structure feature work and improve reliability.
  • Provides pre-implementation checks, blocking code until tests exist and fail, then pass, and finally refactor with green tests.
  • Supports multi-language environments (JavaScript/TypeScript, Go, Python) with framework-specific guidance and hooks.

Quick Start

Create a failing test for the intended feature, implement the minimum code to pass, then refactor while keeping tests green.

Frequently Asked Questions about tdd-enforcer

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

FAQPage Schema
How do I enforce test-driven development discipline to prevent ad-hoc coding in my workflow?▼

To enforce test-driven development discipline, you must automate the RED-GREEN-REFACTOR cycle by blocking implementation until tests exist and initially fail, then writing minimum code to pass, and refactoring while keeping tests green.

Can I use a pre-commit TDD workflow with Go test and pytest?▼

Yes, a pre-commit TDD workflow supports Go test and pytest, providing framework-specific guidance and hooks for Go and Python projects to ensure tests guide implementation and prevent ad-hoc coding.

What is the RED-GREEN-REFACTOR cycle in test-driven development?▼

The RED-GREEN-REFACTOR cycle in test-driven development requires writing tests that initially fail (RED), implementing the minimum code to pass (GREEN), and subsequently refactoring with tests remaining green.

Does test-driven development enforcement work with JavaScript and TypeScript projects?▼

Yes, test-driven development enforcement works with JavaScript and TypeScript projects, supporting Jest and Vitest tooling to automate pre-implementation checks across feature creation and refactoring stages.

Why should I block code implementation until tests fail in TDD?▼

You should block code implementation until tests fail in TDD because it ensures that tests drive every feature implementation, structuring feature work and improving reliability by preventing untested ad-hoc coding.

What's the best way to start TDD for a new feature?▼

The best way to start TDD for a new feature is to create a failing test for the intended feature, implement the minimum code to pass the test, and then refactor the code while keeping the tests green.