tdd-workflow

Enforce Test-Driven Development with 80% code coverage across unit, integration, and E2E tests.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill tdd-workflow-andyhsutw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/AndyHsuTW/everything-llm-workspace/tree/main/.agents/skills/tdd-workflow
Command: npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill tdd-workflow-andyhsutw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) process to ensure high-quality, well-tested code with comprehensive coverage across unit, integration, and E2E tests.

Core Features & Use Cases

  • Mandatory Tests First: Guarantees tests are written before implementation.
  • 80%+ Coverage: Enforces a minimum code coverage threshold.
  • Multi-Type Testing: Supports unit, integration, and E2E testing strategies.
  • Use Case: When developing a new API endpoint, this skill will guide you to write tests for its functionality, error handling, and integration with the database before writing the endpoint code itself, ensuring robustness from the start.

Quick Start

Activate this skill to begin developing new features by writing tests first.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I ensure my unit tests and integration tests meet an 80% code coverage threshold?

To ensure unit tests and integration tests meet an 80% code coverage threshold, you can enforce a Test-Driven Development workflow that mandates writing tests before implementation and verifying coverage during refactoring.

What is the best way to write tests before code for a new API endpoint?

The best way to write tests before code for a new API endpoint is using a Test-Driven Development process: write tests for functionality, error handling, and database integration first, then implement the minimal logic to pass them.

Does this TDD workflow support e2e tests with Playwright and Supabase?

Yes, this TDD workflow supports e2e tests with Playwright and Supabase, offering multi-type testing strategies and mocking patterns for common frameworks to ensure comprehensive end-to-end coverage.

How do I refactor code safely after writing minimal logic to pass tests?

To refactor code safely after writing minimal logic to pass tests, follow a TDD workflow that guides you through verifying existing tests and maintaining a minimum 80% code coverage threshold during the refactoring phase.

Can I use this testing approach for both unit and end-to-end testing strategies?

Yes, you can use this testing approach for both unit and end-to-end testing strategies, as it enforces multi-type testing across unit, integration, and E2E tests while guiding you through various testing patterns.