tdd-workflow

Enforce test-driven development across code changes with unit, integration, and E2E tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a test-driven development workflow to ensure code is thoroughly tested from the outset, reducing regressions and improving maintainability.

Core Features & Use Cases

  • Enforces writing tests before implementation for new features, bug fixes, and refactors.
  • Supports unit, integration, and end-to-end testing with clear guidance and patterns.
  • Includes example workflows and test structures to help teams adopt consistent TDD patterns.

Quick Start

Begin by drafting a user journey, write a failing unit test, implement code to pass it, and iteratively expand coverage to meet the 80% threshold.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce a test-driven development workflow for TypeScript projects?

Enforcing test-driven development for TypeScript involves writing failing unit tests before implementation, then iteratively coding to pass them. This skill applies TDD patterns to new features, bug fixes, and refactors to reduce regressions and improve maintainability.

What's the best way to structure unit, integration, and E2E tests in a TDD workflow?

The best way to structure tests in a TDD workflow is to follow consistent patterns for unit, integration, and E2E tests. This skill provides structured test templates and step-by-step workflows to guide teams through drafting user journeys and expanding coverage to meet an 80% threshold.

Can I use Playwright for end-to-end testing with a TDD approach?

Yes, you can use Playwright for end-to-end testing within a TDD approach. This skill supports E2E testing guidance alongside unit and integration tests, applying structured patterns to ensure code changes are thoroughly validated across all testing layers.

When should I write tests before implementation during refactoring?

You should write tests before implementation during refactoring to prevent regressions and maintain code integrity. This skill enforces TDD across code changes, requiring you to draft failing tests first and then implement code to pass them before expanding coverage.