tdd-workflow

Enforce tests-first TDD workflows with Vitest and Playwright coverage thresholds.

Updated Jan 18, 2026
One-click install
npx skills add https://github.com/BenjaminRose805/react-basecamp --skill tdd-workflow-benjaminrose805
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/BenjaminRose805/react-basecamp/tree/main/.claude/skills/core/tdd-workflow
Command: npx skills add https://github.com/BenjaminRose805/react-basecamp --skill tdd-workflow-benjaminrose805

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces Test-Driven Development practices during software changes, ensuring tests are written before implementation and maintaining high-quality, maintainable code across features, fixes, and refactors.

Core Features & Use Cases

  • Tests-first discipline: enforces writing unit, integration, and end-to-end tests before code.
  • Quality thresholds: ensures coverage targets (70% lines, 60% branches) are met.
  • Workflow guidance: documents the Red-Green-Refactor cycle and common patterns for TDD.

Quick Start

To apply this skill, start by writing a failing unit test for a new function, then implement the minimal code to pass tests and iterate toward refactoring while preserving 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 tests-first workflow for Vitest and Playwright?

This skill enforces a tests-first workflow by requiring unit and end-to-end tests to be written before implementation, guiding you through the Red-Green-Refactor cycle using Vitest and Playwright.

What is the minimum code coverage required for TDD workflows?

The minimum code coverage required for TDD workflows is 70% line coverage and 60% branch coverage to ensure maintainable, high-quality code across features, fixes, and refactors.

Can I use TDD workflows for refactoring and bug fixes?

Yes, you can apply TDD workflows during refactoring and bug fixes. The skill enforces tests-first discipline across feature development, bug fixes, and refactors to maintain reliable code.

How do I start test-driven development with Vitest for a new feature?

To start test-driven development, write a failing unit test for a new function, implement the minimal code to pass the test, and iterate toward refactoring while preserving coverage thresholds.

Does this TDD workflow support end-to-end testing?

Yes, this TDD workflow supports end-to-end testing by enforcing tests-first discipline across unit, integration, and end-to-end tests using Playwright for the end-to-end testing scope.