tdd-workflow

Enforce test-driven development with a guided write-test-run-implement-refactor workflow.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/espensev/ai-skills --skill tdd-workflow-espensev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/espensev/ai-skills/tree/main/gemini-skills/skills/tdd-workflow
Command: npx skills add https://github.com/espensev/ai-skills --skill tdd-workflow-espensev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps software teams enforce test-driven development by providing structured guidelines and a repeatable workflow to ensure tests are written before code, increasing quality and maintainability across features, bugs, and refactors.

Core Features & Use Cases

  • Define user journeys and generate comprehensive test suites for unit, integration, and end-to-end tests.
  • Guide implementation with a step-by-step workflow: write tests first, run tests, implement code, refactor, and verify coverage.
  • Support Playwright-based E2E testing patterns and best practices for reliable QA pipelines.

Quick Start

Write a user journey and corresponding tests first, then implement code to pass those tests, and finally refactor for clarity.

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 feature development and refactoring?

Enforce test-driven development by applying a structured workflow that requires writing tests before implementation. This approach guides you to define user journeys, run tests, write code, and refactor, ensuring comprehensive coverage across features, bugs, and refactors.

What is the step-by-step workflow for writing tests before implementation?

The workflow for writing tests before implementation involves a guided sequence: define user journeys and write tests first, run the tests, implement the code to pass those tests, and finally refactor for clarity while verifying coverage.

Does this TDD workflow support Playwright for end-to-end testing?

Yes, the TDD workflow supports Playwright for end-to-end testing. It incorporates Playwright-based E2E testing patterns and best practices to ensure reliable QA pipelines alongside your unit and integration tests.

Can I use this to generate unit, integration, and end-to-end tests together?

Yes, you can use this to generate unit, integration, and end-to-end tests together. It enables you to define user journeys and generate a comprehensive test suite that covers multiple test types within a single guided workflow.

What level of test coverage should I target when using a TDD workflow?

When using a TDD workflow, you should target 80% or higher test coverage. The process includes guardrails and verification steps to ensure your codebase maintains rigorous quality and maintainability standards across all testing types.

Why write tests before code when fixing bugs or building features?

Write tests before code when fixing bugs or building features to increase quality and maintainability. This structured approach ensures your implementation is guided by comprehensive test suites, preventing regressions and clarifying requirements upfront.