tdd

Guide JavaScript and TypeScript development through the RED-GREEN-REFACTOR cycle.

4|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/ProfPowell/vanilla-breeze --skill tdd-profpowell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/ProfPowell/vanilla-breeze/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/ProfPowell/vanilla-breeze --skill tdd-profpowell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a test-first development workflow, ensuring code is robust, maintainable, and meets requirements before implementation.

Core Features & Use Cases

  • Test-Driven Development: Guides users through the RED -> GREEN -> REFACTOR cycle.
  • Automated Activation: Triggers automatically when new JavaScript/TypeScript files are created in designated directories.
  • Mode Flexibility: Offers 'Advisory' mode for guidance and 'Strict' mode to enforce test creation.
  • Use Case: When creating a new utility function in src/utils/, this Skill will prompt you to write a failing test in test/utils/ before you write any implementation code.

Quick Start

Use the tdd skill to help you write a failing test for a new JavaScript file.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce test-driven development when writing JavaScript and TypeScript files?

You can enforce test-driven development for JavaScript and TypeScript by using a workflow that guides you through the RED, GREEN, and REFACTOR cycle, prompting you to write failing tests before implementation code.

Can I automatically trigger TDD workflows when creating new source files?

Yes, test-driven development workflows can auto-activate when new JavaScript or TypeScript files are created in designated source directories, prompting you to write a corresponding failing test immediately.

What is the difference between advisory and strict modes for test-first coding?

Advisory mode provides guidance for writing tests first, while strict mode actively enforces test creation, ensuring you must write a failing test before proceeding with any implementation code.

Does this test-first development approach work with my existing testing frameworks?

Yes, this test-driven development workflow composes with various testing frameworks, integrating pre-flight and completion checks to maintain a robust development cycle for your JavaScript and TypeScript projects.

How do I write a failing test before implementing a new utility function?

To write a failing test first, create a new JavaScript file in your source directory, then let the workflow prompt you to write a failing test in your test directory before you write any implementation logic.