tdd-workflow

Guide development with Test-Driven principles and verify coverage using Bun and Playwright.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ninyawee/dotfiles --skill tdd-workflow-ninyawee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/ninyawee/dotfiles/tree/main/dot_claude/skills/tdd-workflow
Command: npx skills add https://github.com/ninyawee/dotfiles --skill tdd-workflow-ninyawee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) process to ensure high-quality, well-tested code, reducing bugs and improving maintainability.

Core Features & Use Cases

  • Enforces TDD: Guides developers to write tests before writing implementation code.
  • Comprehensive Coverage: Mandates 80%+ test coverage across unit, integration, and E2E tests.
  • Structured Workflow: Provides clear steps for writing user journeys, generating tests, implementing code, and verifying coverage.
  • Use Case: When developing a new API endpoint, use this Skill to first define the expected request/response and error scenarios with tests, then write the minimal code to satisfy those tests, ensuring robustness.

Quick Start

Use the tdd-workflow skill to guide the development of a new feature, ensuring tests are written first and 80%+ coverage is achieved.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce test-driven development for unit, integration, and E2E tests?

You can enforce test-driven development by following a structured workflow that mandates writing tests before implementation, covering unit, integration, and E2E tests to achieve a minimum of 80% code coverage.

What is the best way to achieve 80% code coverage using Bun and Playwright?

The best way to achieve 80% code coverage is by using a TDD workflow that guides you through writing user journeys, generating tests with tools like Bun and Playwright, implementing minimal logic, and verifying coverage.

How do I write tests before code when developing a new API endpoint?

To write tests before code for a new API endpoint, define the expected request, response, and error scenarios first. Then, write the minimal implementation logic required to satisfy those tests and ensure robustness.

Does this TDD workflow support both end-to-end and unit testing?

Yes, this TDD workflow supports end-to-end and unit testing. It provides a structured process for writing comprehensive tests across unit, integration, and E2E levels using tools like Bun and Playwright.

How does a structured TDD process improve code maintainability?

A structured TDD process improves code maintainability by enforcing rigorous testing before implementation. This approach reduces bugs and ensures high-quality, well-tested code throughout the development lifecycle.