tdd-enforcer

Block feature implementation until failing tests are written.

226|55|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/Miosa-osa/canopy --skill tdd-enforcer-miosa-osa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-enforcer
Source: https://github.com/Miosa-osa/canopy/tree/main/library/skills/development/tdd
Command: npx skills add https://github.com/Miosa-osa/canopy --skill tdd-enforcer-miosa-osa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces Test-Driven Development discipline by ensuring that feature work starts from tests and follows a RED-GREEN-REFACTOR cycle, preventing ad-hoc implementations.

Core Features & Use Cases

  • Enforces disciplined development workflows that require failing tests before implementation.
  • Validates pre-implementation checks, blocking conditions, and quality gates to maintain code quality.
  • Guides teams through structured workflows across new feature development, refactoring, and maintenance tasks.

Quick Start

Before coding, write a failing test, implement the minimum code to pass, and 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-first development workflows for new features?

TDD discipline is enforced by blocking feature implementation without tests, requiring teams to write failing tests first and then guiding them through structured RED-GREEN-REFACTOR cycles across the codebase.

What is the RED-GREEN-REFACTOR cycle and how does it guide coding?

The RED-GREEN-REFACTOR cycle is a Test-Driven Development process where you write a failing test, implement the minimum code to pass, and then refactor while keeping tests green to maintain code quality.

Can I use TDD enforcement for refactoring and maintenance tasks?

Yes, TDD enforcement can be used for refactoring and maintenance tasks, guiding teams through structured workflows and quality gates to ensure code quality is maintained during modifications.

Does the TDD enforcement workflow detect testing frameworks automatically?

Yes, the TDD enforcement workflow includes framework detection to detail test-first policies, ensuring that pre-implementation checks and blocking conditions integrate properly with your existing environment.

What are the limitations of blocking feature implementation without tests?

A limitation of blocking feature implementation without tests is that it prevents ad-hoc implementations, requiring strict adherence to quality gates and pre-implementation checks which may slow down rapid prototyping.