tdd-workflow

Enforce TDD workflows with 80%+ coverage across unit, integration, and Playwright E2E tests.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/aquarius-wing/polymarket-dev-tools --skill tdd-workflow-aquarius-wing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/aquarius-wing/polymarket-dev-tools/tree/main/.cursor/skills/tdd-workflow
Command: npx skills add https://github.com/aquarius-wing/polymarket-dev-tools --skill tdd-workflow-aquarius-wing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures development follows Test-Driven Development (TDD), enforcing 80%+ test coverage across unit, integration, and E2E tests during feature work, bug fixes, or refactors.

Core Features & Use Cases

  • TDD-first workflow across unit, integration, and E2E tests
  • Minimum 80% test coverage with edge cases and failure scenarios
  • Step-by-step playbook: define user journeys, generate tests, fail fast, implement, refactor, and verify coverage
  • E2E testing guidance using Playwright for browser-based end-to-end flows

Quick Start

Begin by writing a user journey and corresponding tests, run the suite to fail, implement minimal code to satisfy tests, then iterate until 80%+ coverage is achieved.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce TDD practices across feature work and bug fixes?

Enforce TDD by writing tests before implementation, categorizing into unit, integration, and E2E tests, and maintaining 80%+ coverage. Follow a step-by-step playbook defining journeys, generating tests, failing fast, implementing, refactoring, and verifying coverage.

What is the best way to structure unit, integration, and E2E tests using Vitest and Playwright?

Structure tests by using Vitest for unit and integration testing, and Playwright for E2E testing. Define user journeys first, generate corresponding tests across these categories, then implement minimal code to satisfy them.

Does TDD require a specific minimum test coverage threshold?

Yes, TDD requires a minimum 80% test coverage threshold. This includes edge-case coverage and clear failure handling to ensure guardrails are maintained across all unit, integration, and E2E test suites.

How do I start a TDD workflow when creating new API endpoints or components?

Start the TDD workflow by defining a user journey and writing corresponding tests. Run the suite to fail fast, implement minimal code to satisfy the tests, then iterate until 80%+ coverage is achieved.

When should I not use an 80% coverage TDD workflow?

The 80% coverage TDD workflow is explicitly designed for creating features, fixing bugs, refactoring, adding API endpoints, or creating components. It may not be suitable for exploratory prototyping or throwaway scripts where strict coverage guardrails are unnecessary.

Why does TDD workflow require writing tests before implementation?

Writing tests before implementation ensures the test suite fails fast initially, guiding developers to write minimal code that satisfies the tests. This enforces the TDD practice and maintains strict edge-case coverage and failure handling throughout development.