tdd-workflow

Enforce Test-Driven Development with Jest and Playwright for 80% code coverage.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/yzlin/supa-opencode --skill tdd-workflow-yzlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/yzlin/supa-opencode/tree/main/skills/tdd-workflow
Command: npx skills add https://github.com/yzlin/supa-opencode --skill tdd-workflow-yzlin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Mandatory Tests First: Guides users to write failing tests before writing any implementation code.
  • Comprehensive Coverage: Enforces minimum 80% coverage across unit, integration, and E2E tests.
  • Use Case: When developing a new user authentication module, this Skill will guide you through writing tests for login, logout, and password reset scenarios before you write the actual authentication logic, ensuring all cases are handled.

Quick Start

Use the tdd-workflow skill to write tests for the new user registration feature.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I start test-driven development for a new software module?

To start test-driven development, you write failing tests for all predefined scenarios and edge cases before writing any implementation code. The tdd-workflow methodology mandates writing tests first to ensure your code is built to pass strict validation criteria.

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

The minimum code coverage required for unit and integration testing is 80%. This Skill enforces this threshold across unit, integration, and end-to-end tests to guarantee high code quality and reliability while covering edge cases.

Does this TDD workflow support E2E testing with Playwright and Jest?

Yes, this TDD workflow supports E2E testing with Playwright and Jest. It provides detailed guidance on test case generation, implementation, and refactoring using these industry-standard tools, along with coverage reporting to verify your testing thresholds.

What's the best way to enforce strict TDD rules during software development?

The best way to enforce strict TDD rules is by mandating a tests-first approach and minimum 80% code coverage. This Skill automates that enforcement, guiding you through writing failing tests, implementing code, and refactoring while verifying all edge cases and error scenarios are handled.

When should I not use a strict test-driven development methodology?

You should not use strict test-driven development when rapid prototyping without test constraints is required. Because this methodology mandates 80% coverage and tests-first implementation, it may slow down initial feature exploration where code is expected to be thrown away quickly.