tdd-workflow

Guide the RED-GREEN-REFACTOR cycle for TDD with 80%+ test coverage.

4|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Cor-Incorporated/claude-code-skills --skill tdd-workflow-cor-incorporated
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/Cor-Incorporated/claude-code-skills/tree/main/skills/tdd-workflow
Command: npx skills add https://github.com/Cor-Incorporated/claude-code-skills --skill tdd-workflow-cor-incorporated

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enforces test-driven development practices, ensuring 80%+ test coverage across unit, integration, and E2E tests, guiding the RED-GREEN-REFACTOR cycle for new features, bug fixes, and refactoring.

Core Features & Use Cases

  • Test-Driven Development: Encourages writing tests first, implementing to pass, and refactoring.
  • Test Coverage: Ensures 80%+ coverage across all test types.
  • Use Case: For developers looking to implement TDD practices and ensure comprehensive test coverage in their projects.

Quick Start

Implement TDD for your project by activating the tdd-workflow skill and following the RED-GREEN-REFACTOR cycle.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce test-driven development and maintain 80%+ test coverage in my project?

To enforce test-driven development, you need a workflow that guides the RED-GREEN-REFACTOR cycle. This requires writing tests first, implementing code to pass, and refactoring while maintaining 80%+ test coverage across unit, integration, and E2E tests.

What is the RED-GREEN-REFACTOR cycle for software testing?

The RED-GREEN-REFACTOR cycle is a test-driven development process where you write a failing test first (RED), implement the code to pass it (GREEN), and then refactor the implementation while maintaining 80%+ test coverage.

How do I apply TDD to bug fixes and refactoring existing code?

To apply TDD to bug fixes and refactoring, you write tests first that capture the expected behavior or reproduce the bug. You then implement fixes or refactor the code to pass these tests while ensuring 80%+ test coverage is maintained.

Can I use this test-driven development workflow for unit, integration, and E2E tests?

Yes, this test-driven development workflow applies to unit, integration, and E2E tests. It guides the RED-GREEN-REFACTOR cycle to ensure comprehensive 80%+ test coverage across all these test types for new features and bug fixes.

What is the best way to start writing tests before implementation for new features?

The best way to start writing tests before implementation for new features is to activate a TDD workflow. This enforces the RED-GREEN-REFACTOR cycle, ensuring you write the test first, implement the code to pass, and refactor while maintaining 80%+ coverage.