tdd-workflow

Enforces test-driven development with Jest, Vitest, and Playwright across feature, bug fix, and refactoring workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The tdd-workflow skill ensures that new features, bug fixes, and refactors follow a disciplined test-driven development process, reducing regressions and speeding delivery.

Core Features & Use Cases

  • Enforce the red-green-refactor cycle for every change
  • Provide templates for unit, integration, and end-to-end tests
  • Include examples and checklists to guide developers through TDD

Quick Start

Activate the TDD workflow when starting a new feature: write tests first, then implement code to satisfy them, run the full test suite, and iterate until coverage goals are met.

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 across new features and refactors?

Test-driven development is enforced by strictly following the red-green-refactor cycle for every code change. You must write tests first, implement code to satisfy them, run the full test suite, and iterate until achieving 80%+ coverage.

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

Yes, this TDD workflow supports both unit and end-to-end tests. It provides specific templates and examples for unit and integration testing using Jest or Vitest, alongside end-to-end testing workflows utilizing Playwright.

What's the best way to start the red-green-refactor cycle for a bug fix?

The best way to start the red-green-refactor cycle for a bug fix is to activate the TDD workflow immediately. Write a failing test that reproduces the bug, implement the minimal code to pass it, and then refactor while maintaining 80%+ coverage.

Can I use this test-driven development process with Vitest and Playwright?

Yes, you can use this test-driven development process with Vitest and Playwright. The workflow explicitly supports writing unit tests with Jest or Vitest and managing end-to-end tests using Playwright across your development cycle.

Why should I write tests first when doing software refactoring?

Writing tests first during refactoring ensures you follow a disciplined test-driven development process. This practice reduces regressions and speeds delivery by verifying existing behavior remains intact before you modify the underlying implementation.

How do I achieve 80% test coverage during test-driven development?

To achieve 80% test coverage during test-driven development, write tests first and then implement code to satisfy them. Run the full test suite repeatedly and iterate on your implementation until the coverage goals are met.