tdd

Automate red-green-refactor TDD cycles for Bun-based TypeScript projects.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/grant-vine/wunderkind --skill tdd-grant-vine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/grant-vine/wunderkind/tree/main/skills/tdd
Command: npx skills add https://github.com/grant-vine/wunderkind --skill tdd-grant-vine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates test-driven development cycles for Wunderkind TypeScript code, ensuring changes are validated with observable behavior and regression coverage.

Core Features & Use Cases

  • Red-green-refactor loops to drive changes with failing tests first
  • Regression test scaffolding and targeted unit tests for touched code
  • Public-behavior verification to prevent regressions in external APIs
  • TypeScript strict-mode and Bun-based test workflow alignment

Quick Start

Initiate a TDD cycle by selecting a changed module and instructing Wunderkind to start a red-green-refactor loop with its unit tests.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I automate test-driven development cycles in a Bun TypeScript project?

You can automate test-driven development in a Bun TypeScript project by applying red-green-refactor loops to drive feature changes with failing tests first. This workflow ensures changes are validated with observable behavior and regression coverage.

What is the best way to add regression test coverage for touched code in TypeScript?

The best way to add regression test coverage for touched TypeScript code is by scaffolding targeted unit tests within colocated test files. This verifies public behavior and prevents regressions in external APIs during refactoring.

Do I need strict TypeScript flags enabled to run unit tests with Bun?

Yes, you need strict TypeScript flags enabled to run unit tests with Bun using this workflow. The test-driven development process aligns specifically with TypeScript strict-mode and the Bun test runner to ensure reproducible results.

How does red-green-refactor testing work for vertical slices in TypeScript?

Red-green-refactor testing for vertical slices works by writing a failing unit test for a public interface, implementing the minimum code to pass it, then refactoring. This emphasizes public-behavior verification over internal implementation details.

Can I repair existing features using test-driven development with Bun?

Yes, you can repair existing features using test-driven development with Bun by initiating a red-green-refactor loop on a changed module. This applies regression coverage and public-behavior testing to ensure the repair is validated.

Why should I test public behavior instead of internal implementation details in unit tests?

Testing public behavior instead of internal implementation details in unit tests prevents regressions in external APIs. This approach ensures reproducible results by focusing on observable behavior rather than brittle internal state assertions.