tdd-workflow

Enforce a TDD workflow with 80% code coverage across test types.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/ihj04982/my-cursor-settings --skill tdd-workflow-ihj04982
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/ihj04982/my-cursor-settings/tree/main/skills/tdd-workflow
Command: npx skills add https://github.com/ihj04982/my-cursor-settings --skill tdd-workflow-ihj04982

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures all code development adheres to Test-Driven Development (TDD) principles, guaranteeing high test coverage and robust software quality.

Core Features & Use Cases

  • Mandatory TDD: Enforces writing tests before implementation.
  • Comprehensive Coverage: Requires 80%+ coverage across unit, integration, and E2E tests.
  • Workflow Guidance: Provides steps for the TDD cycle (RED-GREEN-REFACTOR).
  • Use Case: When starting a new feature, activate this skill to guide you through writing tests first, implementing the code, and verifying coverage, ensuring the feature is well-tested from the start.

Quick Start

Activate this skill to begin writing new code following the test-driven development process.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce a test-driven development workflow for new features?

To enforce a test-driven development workflow, you mandate writing tests before implementation and follow the RED-GREEN-REFACTOR cycle. This process ensures features are well-tested from the start by guiding you to write tests first, implement code, and verify coverage.

What is the minimum code coverage required for unit, integration, and E2E tests?

The minimum code coverage required for unit, integration, and E2E tests is 80%. Enforcing this threshold across all test types guarantees high test coverage and robust software quality throughout the development process.

How do I apply the RED-GREEN-REFACTOR cycle when writing code?

To apply the RED-GREEN-REFACTOR cycle, you first write a failing test (RED), implement the minimum code to pass it (GREEN), and then clean up the code without changing behavior (REFACTOR). This cycle guides structured test-driven development.

What are the best strategies for mocking dependencies during integration testing?

Strategies for mocking dependencies during integration testing include isolating the components under test by replacing external calls with controlled substitutes. This test-driven approach provides patterns for various test types to ensure accurate verification without side effects.

When do I need to write E2E tests versus unit tests in TDD?

You need to write E2E tests versus unit tests in TDD when validating complete user workflows against isolated component logic. This test-driven approach requires comprehensive coverage across unit, integration, and end-to-end tests to ensure robust software quality.

Does test-driven development work for refactoring existing code bases?

Test-driven development works for refactoring existing code bases by using the REFACTOR stage to clean up code while ensuring existing tests remain green. This approach maintains high code coverage and robust software quality during structural improvements.