grey-haven-tdd-typescript

TypeScript/JavaScript Test-Driven Development with Vitest, strict red-green-refactor methodology, React component testing, and comprehensive coverage patterns. Use when implementing TypeScript features with TDD, writing Vitest tests, testing React components, developing with test-first approach, or when user mentions 'TypeScript TDD', 'Vitest', 'React testing', 'JavaScript TDD', 'red-green-refactor', 'TypeScript unit tests', or 'test-driven TypeScript'.

⭐15stars🔀2forks📁View on GitHub🕐Updated Dec 27, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill enables expert-level TypeScript and JavaScript development through a strict Test-Driven Development (TDD) methodology. By leveraging the Vitest framework and the red-green-refactor cycle, it helps developers ensure high code quality, robust React component behavior, and comprehensive test coverage from the first line of code.

Use Cases

  • Implementing new TypeScript features using a test-first approach to ensure logic correctness and prevent regressions.
  • Developing and validating React components with Vitest to verify UI interactions, props, and state management.
  • Refactoring complex JavaScript logic by following the red-green-refactor workflow to improve code maintainability without breaking functionality.
  • Establishing high-coverage unit testing patterns for enterprise-grade web applications to meet strict quality standards.
namegrey-haven-tdd-typescript
description"TypeScript/JavaScript Test-Driven Development with Vitest, strict red-green-refactor methodology, React component testing, and comprehensive coverage patterns. Use when implementing TypeScript features with TDD, writing Vitest tests, testing React components, developing with test-first approach, or when user mentions 'TypeScript TDD', 'Vitest', 'React testing', 'JavaScript TDD', 'red-green-refactor', 'TypeScript unit tests', or 'test-driven TypeScript'."
# v2.0.43Skills to auto-load for subagents spawned from this skill
# v2.0.74Restrict tools available when this skill is active

TDD TypeScript Skill

Expert TypeScript/JavaScript TDD implementation using strict red-green-refactor methodology with Vitest testing framework.

Description

Implement features by writing failing tests first, minimal code to pass, then refactoring. Comprehensive TypeScript/React TDD patterns.

What's Included

  • Examples: TDD cycles, React component TDD, utility function TDD
  • Reference: Red-green-refactor patterns, Vitest best practices
  • Templates: Test templates, implementation workflows

Use When

  • Implementing TypeScript features with TDD
  • React component development
  • Ensuring high test coverage
  • tdd-typescript-implementer

Skill Version: 1.0