tdd-workflow

Enforce a Test-Driven Development workflow with 80% test coverage.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill tdd-workflow-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skills/tdd-workflow
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill tdd-workflow-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill ensures code quality and reliability by enforcing a strict Test-Driven Development (TDD) process, guaranteeing high test coverage and robust solutions.

Core Features & Use Cases

  • Enforces TDD: Mandates writing tests before implementation.
  • Comprehensive Coverage: Requires 80%+ coverage across unit, integration, and E2E tests.
  • Use Case: When developing a new user authentication module, use this skill to first write tests for registration, login, and password reset, then implement the code to pass those tests.

Quick Start

Activate the tdd-workflow skill to begin writing tests for your new feature.

Frequently Asked Questions about tdd-workflow

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

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

To implement test-driven development, you write unit, integration, and e2e tests before writing the implementation code. This workflow enforces that process, requiring a minimum of 80% code coverage across all test types to ensure reliability.

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

The minimum code coverage required is 80% across unit, integration, and end-to-end tests. This threshold ensures comprehensive validation of edge cases and error scenarios before implementation code is accepted.

How do I write tests first for a user authentication module?

Writing tests first for an authentication module involves creating tests for registration, login, and password reset before any code exists. You then develop the module strictly to pass these predefined unit and integration tests.

Can I use this test-driven development workflow with different testing frameworks?

Yes, this test-driven development workflow supports various testing frameworks and patterns for different code types. It adapts to your chosen environment to enforce the test-first cycle and achieve 80% coverage.

Does test-driven development help with code refactoring and edge cases?

Test-driven development significantly improves code refactoring by mandating tests for edge cases and error scenarios upfront. Achieving over 80% coverage ensures your refactoring efforts do not break existing functionality.

Why should I write e2e tests before writing implementation code?

Writing e2e tests before implementation code ensures your application meets end-to-end requirements from the start. This test-driven approach validates complete user flows and error scenarios, guaranteeing high reliability before shipping.