tdd-enforcer

Enforce TDD workflows with red-green-refactor cycles and coverage thresholds.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Barnhardt-Enterprises-Inc/quetrex-plugin --skill tdd-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-enforcer
Source: https://github.com/Barnhardt-Enterprises-Inc/quetrex-plugin/tree/main/templates/skills/tdd-enforcer
Command: npx skills add https://github.com/Barnhardt-Enterprises-Inc/quetrex-plugin --skill tdd-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often skip Test-Driven Development (TDD), leading to bugs, poor test coverage, and untestable code. This Skill enforces a strict TDD workflow, ensuring tests are written first, follow best practices, and maintain high quality, ultimately reducing debugging time and improving code reliability.

Core Features & Use Cases

  • Enforced TDD Workflow: Guides you step-by-step through the Red-Green-Refactor cycle, making TDD a natural part of your development process.
  • AAA Pattern Compliance: Ensures all tests are structured using Arrange, Act, Assert for clarity, readability, and maintainability.
  • Coverage & Quality Standards: Sets clear thresholds for code coverage (e.g., 75%+ overall, 90%+ business logic) and promotes quality test design, ensuring comprehensive validation.
  • Use Case: When implementing a new user registration feature, activate this Skill. It will guide you to write failing tests for email validation and password hashing first, then implement the minimal code to make them pass, and finally refactor, ensuring a robust and well-tested outcome.

Quick Start

I am implementing a new user registration feature. Guide me through the TDD process, starting with writing tests for email validation.

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 across my codebase?

Test-driven development enforces writing tests first, then implementing code to pass them. This Skill guides you through the red-green-refactor cycle for unit, integration, and UI tests, ensuring consistent TDD practices across feature development, bug fixes, and refactoring with minimum coverage thresholds (75%+ overall, 90%+ business logic).

What's the best way to structure tests using the AAA pattern?

The AAA pattern structures tests into three phases: Arrange (set up test data), Act (execute the code), and Assert (verify results). This Skill enforces AAA compliance across all tests, improving clarity and maintainability while ensuring explicit test naming and fail-fast verification.

How do I set code coverage requirements for different parts of my application?

Code coverage thresholds ensure comprehensive testing across layers. This Skill enforces tiered minimums: 75%+ overall coverage, 90%+ for business logic in services, 90%+ for utilities, 60%+ for UI components, plus essential end-to-end tests for critical user flows.

Can I use TDD for API routes and end-to-end testing?

Yes. This Skill covers API routes and end-to-end test coverage for critical user flows alongside unit and integration testing. It enforces the TDD workflow across all testing scopes to ensure quality and reduce debugging time.

What happens if my code doesn't meet the coverage thresholds?

The Skill enforces minimum coverage standards and fails fast when thresholds aren't met, preventing incomplete or untested code from progressing. This ensures tests maintain quality and catch bugs before they reach production.