typescript-test-driven-development

Translate epic specs into a red-green-refactor TDD workflow for TypeScript/React UI.

2|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/luminos-accessibility/luminos --skill typescript-test-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-test-driven-development
Source: https://github.com/luminos-accessibility/luminos/tree/main/.claude/skills/typescript-test-driven-development
Command: npx skills add https://github.com/luminos-accessibility/luminos --skill typescript-test-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Type-safe TypeScript/React UI implementations in Luminos are guided by a rigorous test-driven workflow that anchors development to explicit specifications, preventing drift from requirements.

Core Features & Use Cases

  • Red-Green-Refactor workflow: write failing tests to define acceptance criteria before implementation, then implement minimally and refactor.
  • Spec-driven development across epics: map epic docs (HIGH_LEVEL_PLAN.md, STORY.md, DESIGN.md) into concrete subtasks with tests that validate behavior.
  • Accessibility-focused testing: integrate unit, component, and accessibility tests to ensure WCAG-aligned UI.

Quick Start

Start by identifying a TS/React UI subtask, write red tests for the expected behavior, implement the minimal code to pass, and progressively refactor while keeping tests green.

Frequently Asked Questions about typescript-test-driven-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply test-driven development to TypeScript and React UI tasks?

Test-driven development for TypeScript and React UI tasks involves writing failing tests to define acceptance criteria, implementing minimal code to pass, and refactoring while keeping tests green. This approach enforces test-first learning and explicit validation.

What's the best way to structure TDD workflows for React components?

Structuring TDD workflows for React components requires mapping epic documents into concrete subtasks with tests. You apply red-green-refactor cycles across these subtasks, integrating unit, component, and accessibility tests to validate behavior.

How does spec-driven development work with TypeScript UI implementations?

Spec-driven development with TypeScript UI implementations anchors coding to explicit specifications, preventing drift from requirements. It translates high-level plans and design docs into structured tasks consumed through test validations.

Can I integrate accessibility checks into my Vitest testing workflow?

Yes, you can integrate accessibility checks into your Vitest testing workflow. The TDD process includes unit, component, and accessibility tests to ensure WCAG-aligned UI, validating accessibility alongside functional behavior during red-green cycles.

Do I need Zod schemas for TypeScript test-driven development?

Zod schemas are used within this TypeScript TDD workflow to enforce type safety and validation. They guide the implementation of minimal code during the green phase, ensuring data structures align with explicit acceptance criteria.

When should I not use strict TDD for React UI development?

Strict TDD for React UI development may not suit contexts lacking clear epic specs or acceptance criteria. Without structured task documents like high-level plans and design files, the red-green-refactor cycle cannot effectively anchor implementation to requirements.