tdd-workflow

Enforce test-driven development with at least 80% coverage using Jest, Vitest, and Playwright.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/JGcode3675/gcs-os --skill tdd-workflow-jgcode3675
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/JGcode3675/gcs-os/tree/main/home/james/claude-config/skills/tdd-workflow
Command: npx skills add https://github.com/JGcode3675/gcs-os --skill tdd-workflow-jgcode3675

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often skip writing tests or have insufficient coverage, leading to bugs, regressions, and fragile codebases. This skill provides a disciplined TDD workflow to ensure reliable, well‑tested software.

Core Features & Use Cases

  • Tests before code: Write failing tests first, then implement functionality.
  • Coverage enforcement: Require at least 80 % combined unit, integration, and E2E coverage.
  • Structured workflow: From user journey definition through test generation, implementation, refactoring, and coverage verification.
  • Tooling guidance: Includes patterns for Jest/Vitest unit tests, API integration tests, and Playwright E2E tests, plus mocking strategies and CI/CD integration.
  • Use cases: New feature development, bug fixing, and refactoring in JavaScript/TypeScript projects.

Quick Start

Describe a user journey and let the skill generate the corresponding test cases to begin development.

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 and ensure 80% test coverage in TypeScript?

To enforce a TDD workflow and achieve 80% test coverage in TypeScript, you write failing tests first, then implement functionality, and finally verify coverage using Jest or Vitest for unit and integration tests, plus Playwright for E2E tests.

What is the best way to structure unit, integration, and E2E tests for JavaScript applications?

The best way to structure tests for JavaScript applications is to follow a structured workflow from user journey definition through test generation, implementation, and refactoring, utilizing Jest or Vitest for unit and integration tests, and Playwright for E2E tests.

Does this TDD workflow work with both Jest and Vitest for unit and integration testing?

Yes, this TDD workflow works with both Jest and Vitest for unit and integration testing, providing tooling guidance and mocking strategies for JavaScript and TypeScript applications to achieve at least 80% overall coverage.

Can I use Playwright for E2E testing when applying test-driven development to new features?

Yes, you can use Playwright for E2E testing when applying test-driven development to new features, ensuring comprehensive coverage alongside unit and integration tests to prevent bugs and regressions in your codebase.

When should I apply a test-driven development workflow during refactoring?

You should apply a test-driven development workflow during refactoring, bug fixing, and new feature development to ensure reliable, well-tested software by writing failing tests first and verifying at least 80% combined coverage.

How do I generate test cases from a user journey definition in test-driven development?

To generate test cases from a user journey definition in test-driven development, you describe the user journey and let the skill generate the corresponding test cases to begin implementation, ensuring tests precede code functionality.