tdd

Guide test-first implementation of TypeScript features and bug fixes.

345|9|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/dmmulroy/skills --skill tdd-dmmulroy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/dmmulroy/skills/tree/main/tdd
Command: npx skills add https://github.com/dmmulroy/skills --skill tdd-dmmulroy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you build or fix TypeScript software by working test-first, so behavior is verified before implementation and regressions are caught early.

Core Features & Use Cases

  • Behavior-focused testing: Write integration-style tests against public interfaces instead of coupling to internals.
  • Red-green-refactor workflow: Add one test at a time, implement the minimum code, then refactor safely.
  • Guided planning: Clarifies the public interface, prioritizes behaviors, and encourages evidence-driven validation.
  • Use cases: Building a new feature, fixing a bug, or adding integration coverage for a critical path.

Quick Start

Use the tdd skill to plan and implement this feature test-first, starting with the most important public behavior.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement TypeScript features test-first?

To implement TypeScript features test-first, write integration-style tests against public interfaces, add one test at a time, write the minimum code to pass, then refactor safely after achieving green status. This incremental workflow verifies behavior before implementation and catches regressions early.

What is the red-green-refactor workflow in TypeScript testing?

The red-green-refactor workflow in TypeScript testing involves writing a failing test, implementing the minimum code to make it pass, and then refactoring safely. It requires behavior-focused testing against public interfaces rather than coupling tests to internal implementation details.

How do I design integration tests for critical paths in software projects?

Design integration tests for critical paths by testing against public interfaces, clarifying the expected behavior upfront, and prioritizing the most important public behaviors. This approach ensures evidence-driven validation and prevents regressions when building new features or fixing bugs.

Can I use test-driven development for fixing bugs in existing TypeScript projects?

Yes, you can use test-driven development for fixing bugs in TypeScript projects. Write a test that reproduces the bug against the public interface, implement the fix to reach green status, and refactor safely. This ensures the specific behavior is verified and prevents future regressions.

When should I refactor code during a TDD workflow?

You should refactor code during a TDD workflow only after achieving green status, meaning all tests pass. This constraint ensures you have verifiable behavior coverage before modifying internal implementation, allowing safe refactoring without breaking existing functionality.

Does test-driven development require testing private implementation details?

No, test-driven development here requires public-interface testing instead of coupling to internals. By writing integration-style tests against public behaviors, you maintain flexibility to refactor internal implementation details without breaking your test suite.