tdd-workflow

Guide developers through the RED-GREEN-REFACTOR cycle with 80% test coverage.

4|3|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/cacr92/WeReply --skill tdd-workflow-cacr92
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/cacr92/WeReply/tree/main/.cursor/skills/tdd-workflow
Command: npx skills add https://github.com/cacr92/WeReply --skill tdd-workflow-cacr92

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, ensuring all new code is well-tested and robust, preventing regressions and improving maintainability.

Core Features & Use Cases

  • Mandatory Testing: Enforces an 80% minimum test coverage for all new features, bug fixes, and refactors.
  • RED-GREEN-REFACTOR Cycle: Guides developers through the TDD cycle with clear steps and examples.
  • Use Case: Before writing any new code for a feature, use this Skill to define the tests first, ensuring the functionality meets requirements and is verifiable.

Quick Start

Follow the TDD workflow to implement the new user story, starting with writing failing tests.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
What is the RED-GREEN-REFACTOR cycle in Test-Driven Development?

The RED-GREEN-REFACTOR cycle in Test-Driven Development involves writing failing tests first, implementing the minimum code to pass them, and then refactoring. This Skill guides you through these steps to ensure robust code.

How do I enforce a minimum test coverage threshold for TypeScript and Rust code changes?

To enforce test coverage for TypeScript and Rust, this Skill mandates an 80% minimum threshold for all new features, bug fixes, and refactors. It guides you through writing unit and integration tests to meet this requirement.

Can I use this TDD workflow for both unit and integration testing?

Yes, you can use this TDD workflow for both unit and integration testing. It provides detailed steps within the RED-GREEN-REFACTOR cycle to ensure all new functionality meets requirements and is verifiable across testing levels.

How do I start implementing a new user story using Test-Driven Development?

To start implementing a new user story using Test-Driven Development, follow the TDD workflow by defining the failing tests first. This ensures the functionality meets requirements and is verifiable before writing the actual code.

Why should I write failing tests before writing any new code for a feature?

You should write failing tests before writing new code to prevent regressions and improve maintainability. This Test-Driven Development approach ensures the functionality meets requirements and is verifiable before implementation.