tdd-workflow

Enforce Test-Driven Development with tests before code and 80% coverage.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures all code development adheres to Test-Driven Development (TDD) principles, guaranteeing high test coverage and robust software quality.

Core Features & Use Cases

  • Mandatory Tests First: Enforces writing tests before implementation.
  • Comprehensive Coverage: Requires a minimum of 80% coverage across unit, integration, and E2E tests.
  • Structured Workflow: Guides developers through user journeys, test case generation, implementation, and refactoring.
  • Use Case: When starting a new feature, use this skill to guide the process from defining user stories to ensuring all tests pass with high coverage before merging.

Quick Start

Use the tdd-workflow skill to guide the development of a new feature, ensuring tests are written before code and achieve 80%+ coverage.

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 practices for a new feature?

You can enforce Test-Driven Development by mandating test creation before code implementation. This structured workflow guides you through defining user journeys, generating test cases, writing passing code, and refactoring to guarantee robust software quality.

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

The minimum code coverage required for TDD is 80% across unit, integration, and end-to-end tests. This threshold ensures comprehensive coverage is met before merging any new feature into your codebase.

How do I write E2E tests using Playwright within a TDD workflow?

To write E2E tests using Playwright within a TDD workflow, you define user journeys first, generate test cases, implement the passing code, and verify coverage. This ensures end-to-end tests validate actual user stories before implementation.

Can I use Jest for unit testing while following a test-first development workflow?

Yes, you can use Jest for unit testing while following a test-first development workflow. The process supports verifying coverage and passing tests using Jest, Playwright, and other testing frameworks throughout the implementation and refactoring stages.

What's the best way to structure a TDD workflow from user stories to passing tests?

The best way to structure a TDD workflow is to start by defining user stories and user journeys. You then generate test cases, write the minimum code to pass, refactor, and verify that 80% code coverage is achieved across all test suites.

Do I need to write unit tests before code implementation for every new feature?

Yes, you need to write unit tests before code implementation for every new feature. This mandatory tests-first approach enforces Test-Driven Development principles, ensuring high test coverage and robust software quality before any code is merged.