tdd-workflow

Enforce test-first development with failing tests before implementation in JavaScript/TypeScript projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces test-first development to prevent regressions and ensure features, fixes, and refactors are delivered with reliable automated tests and measurable coverage.

Core Features & Use Cases

  • Tests before code: Mandates writing failing tests first and implementing the minimal code to satisfy them.
  • Comprehensive coverage: Requires unit, integration, and E2E tests with an 80%+ coverage threshold and CI integration.
  • Mocking and resilience: Provides patterns for mocking Supabase, Redis, and OpenAI to keep tests deterministic and fast.
  • Use Case: Adopt when adding a new API endpoint, building UI components, fixing complex bugs, or introducing refactors that must remain safe.

Quick Start

Write failing tests that describe the user journey for the new feature, implement the minimal code to make the tests pass, then run coverage and ensure at least 80% combined 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 for new API endpoints and UI components?

Test-driven development for API endpoints and UI components is enforced by mandating failing tests be written before implementation, followed by writing minimal code to pass them. This ensures reliable automated test suites and prevents regressions.

What is the required test coverage threshold for JavaScript and TypeScript projects in CI pipelines?

The required test coverage threshold for JavaScript and TypeScript projects is 80% or higher combined coverage across unit, integration, and E2E tests. CI pipelines must run coverage checks to enforce this standard.

How do I mock external services like Supabase, Redis, and OpenAI in integration testing?

Mocking external services like Supabase, Redis, and OpenAI in integration testing requires using specific patterns to isolate dependencies. This keeps your tests deterministic, fast, and reliable by preventing external network calls.

Can I use Playwright for E2E testing when refactoring code?

Yes, you can use Playwright for E2E testing when refactoring code. The workflow requires comprehensive E2E tests alongside unit and integration tests to ensure refactors remain safe and maintain an 80%+ coverage threshold.

What is the best way to fix complex bugs using a test-first workflow?

The best way to fix complex bugs using a test-first workflow is to write a failing test that reproduces the exact bug, then implement the minimal code fix to make the test pass, ensuring the regression is permanently covered.

Do I need to write unit, integration, and E2E tests for every new feature?

Yes, you need unit, integration, and E2E tests for every new feature to meet the 80%+ combined coverage requirement. This comprehensive testing strategy ensures features are delivered with reliable automated tests and measurable coverage.