tdd

Enforce a Test-Driven Development workflow for Next.js and TypeScript projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jovivaspo/base-agent-next-app --skill tdd-jovivaspo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/jovivaspo/base-agent-next-app/tree/main/skills/tdd
Command: npx skills add https://github.com/jovivaspo/base-agent-next-app --skill tdd-jovivaspo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow to ensure code quality, reduce bugs, and provide a safety net for refactoring.

Core Features & Use Cases

  • Mandatory TDD Cycle: Guides users through the Red-Green-Refactor cycle.
  • Stack-Specific Guidance: Provides tailored instructions for Next.js + TypeScript stacks using Vitest and React Testing Library.
  • Use Case: When developing a new feature for your Next.js application, use this Skill to ensure you write failing tests first, then the minimum code to pass, and finally refactor with confidence.

Quick Start

Follow the TDD cycle to implement the next piece of functionality.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I practice test-driven development in a Next.js and TypeScript project?

Test-driven development in a Next.js and TypeScript project is enforced by guiding you through the Red-Green-Refactor cycle using Vitest and React Testing Library to ensure code quality. You write failing tests first, implement the minimal code to pass, and then refactor.

What is the Red-Green-Refactor cycle for React testing?

The Red-Green-Refactor cycle is a TDD workflow where you first write a failing test, implement minimal code to make it pass, and then refactor safely. This approach reduces bugs and provides a safety net for future code changes.

How do I write accessible tests with React Testing Library and Vitest?

Writing accessible tests with React Testing Library involves prioritizing accessible testing library queries over other selectors. This Skill guides you to use these queries effectively while warning against common testing anti-patterns during the TDD workflow.

Does this TDD workflow support component triangulation in Next.js?

Yes, this TDD workflow supports component triangulation in Next.js by guiding you through the assessment, writing failing tests, minimal code implementation, and triangulation steps. It ensures rigorous testing using Vitest and TypeScript.

When should I use Vitest for TypeScript test-driven development?

You should use Vitest for TypeScript test-driven development when you need to enforce a rigorous TDD workflow and reduce bugs. It provides the testing framework necessary to guide you through writing failing tests and refactoring with confidence.