tdd-workflow

Guide TDD workflows with Jest, Vitest, and Playwright tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Enforces TDD: Guides the development process by requiring tests to be written before implementation.
  • Comprehensive Testing: Mandates unit, integration, and E2E tests to cover all aspects of functionality.
  • Coverage Guarantee: Aims for a minimum of 80% code coverage, ensuring thorough validation.
  • Use Case: When developing a new API endpoint, this Skill will first prompt for tests that define the expected request/response and error handling, then guide the implementation to satisfy those tests, and finally verify coverage.

Quick Start

Use the tdd-workflow skill to implement the new user authentication feature, ensuring all tests pass with over 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 a Test-Driven Development workflow when writing new features?

To enforce a Test-Driven Development workflow, you write unit, integration, and E2E tests before implementation, guiding the code to satisfy those tests. This ensures robust application logic and validates expected request, response, and error handling behaviors.

How do I get at least 80% code coverage across unit and integration tests?

Achieving 80% code coverage requires mandating unit, integration, and end-to-end tests that cover all functionality aspects, including edge cases and error scenarios. You first define tests for expected behaviors, then implement code to satisfy them and verify coverage.

How do I mock external services like Supabase, Redis, and OpenAI in my tests?

Mocking external services like Supabase, Redis, and OpenAI involves utilizing specific testing patterns provided within the workflow. These patterns simulate external service interactions during unit and integration testing to isolate application logic and ensure rigorous validation.

Can I use Jest, Vitest, and Playwright together for end-to-end tests and unit tests?

Yes, you can use Jest, Vitest, and Playwright together for testing frameworks. The workflow utilizes these tools to comprehensively manage unit, integration, and end-to-end tests, ensuring thorough validation and high code coverage across your application.

What is the best way to write tests before implementation when fixing bugs or refactoring code?

The best way to write tests before implementation for bugs or refactoring is following a strict Test-Driven Development process. You first prompt for tests defining expected behaviors and error handling, then guide the implementation to satisfy those tests and verify coverage.