tdd-workflow

Enforce Test-Driven Development with Jest, Vitest, Playwright tests before code implementation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/filipas123/Claude-Code-PKC-v1 --skill tdd-workflow-filipas123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/filipas123/Claude-Code-PKC-v1/tree/main/skills/tdd-workflow
Command: npx skills add https://github.com/filipas123/Claude-Code-PKC-v1 --skill tdd-workflow-filipas123

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, leading to more robust, reliable, and maintainable software by enforcing comprehensive test coverage.

Core Features & Use Cases

  • Enforces TDD: Guides the development process by requiring tests to be written before code implementation.
  • Comprehensive Coverage: Mandates a minimum of 80% code coverage across unit, integration, and End-to-End (E2E) tests.
  • Structured Workflow: Provides clear steps for user journey definition, test case generation, implementation, and refactoring.
  • Use Case: When developing a new API endpoint, this Skill will guide you to first write tests for expected success and error scenarios, then implement the API logic, and finally verify coverage.

Quick Start

Activate the tdd-workflow skill to write new code, ensuring tests are created before implementation.

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 when writing new API endpoints?

To enforce Test-Driven Development, you must define user journeys and write tests for expected success and error scenarios before implementing the API logic. This structured workflow ensures robust code by validating requirements upfront.

What is the minimum code coverage required for unit, integration, and E2E tests?

The minimum code coverage required is 80% across unit, integration, and End-to-End (E2E) tests. This threshold ensures comprehensive validation of your software components and user journeys.

Does this TDD workflow support testing with Jest, Vitest, and Playwright?

Yes, this TDD workflow supports Jest, Vitest, and Playwright for testing frameworks. It utilizes these tools to guide test creation, implementation, and refactoring while maintaining the required 80% coverage.

How do I structure a TDD workflow for feature development and bug fixing?

You structure a TDD workflow by following clear steps: define user journeys, generate test cases, implement the feature or bug fix code, and finally refactor. This process mandates test creation before any code implementation.

Can I use this approach to guide refactoring while maintaining test coverage?

Yes, you can use this approach to guide refactoring while maintaining test coverage. It provides a structured workflow that ensures code improvements do not break existing unit, integration, or E2E tests.

Why write tests before code implementation during software development?

Writing tests before code implementation is required to achieve more robust, reliable, and maintainable software. This Test-Driven Development principle prevents regressions by ensuring all logic is validated against expected scenarios from the start.