tdd-workflow

Enforce test-driven development with failing tests, implementation, and 80% coverage verification.

Updated Nov 17, 2025
One-click install
npx skills add https://github.com/itou-daiki/easy_stat_edu --skill tdd-workflow-itou-daiki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/itou-daiki/easy_stat_edu/tree/main/.agent/skills/tdd-workflow
Command: npx skills add https://github.com/itou-daiki/easy_stat_edu --skill tdd-workflow-itou-daiki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill promotes reliable software delivery by ensuring tests guide design and by maintaining high coverage across unit, integration, and end-to-end tests.

Core Features & Use Cases

  • Enforces writing tests before code for new features, bug fixes, and refactors.
  • Tracks and validates test coverage to meet the 80%+ threshold across all test levels.
  • Provides a practical workflow from writing tests, implementing code, to refactoring and verification.

Quick Start

Write failing tests for a new feature, implement the minimal code to pass them, then refactor while preserving at least 80% overall 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 a TDD workflow with unit, integration, and e2e tests?

Enforce a TDD workflow by writing failing tests first, implementing minimal code to pass them, then refactoring while validating a minimum 80% coverage threshold across unit, integration, and e2e tests.

How do I maintain 80% test coverage during refactoring and bug fixes?

Maintain 80% test coverage during refactoring by running the verification workflow step immediately after implementation, ensuring all existing unit, integration, and end-to-end tests still pass before finalizing code changes.

What is the best way to write failing tests before implementing API endpoints?

The best way to write failing tests for API endpoints is to define expected integration and end-to-end behaviors upfront using your testing framework, establish the 80% coverage baseline, and then implement the API logic to satisfy those tests.

Can I use Playwright for e2e testing within a strict test-driven development workflow?

Yes, you can use Playwright for e2e testing within a TDD workflow by writing Playwright failing tests first to define user interaction scenarios, then implementing the feature code to pass them while maintaining the required coverage.

Does test-driven development work for both new features and component development?

Test-driven development works for both new features and component development by requiring you to write failing tests before implementation, ensuring all code paths meet the strict 80% coverage threshold across all test levels.

When should I not use a strict 80% test coverage TDD workflow?

You should not use a strict 80% test coverage TDD workflow for rapid prototyping or exploratory coding where immediate functional output is prioritized over comprehensive unit, integration, and e2e test validation.