tdd-workflow

Enforce test-driven development with tests before code and 80% coverage.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/devsepnine/hibi_ai --skill tdd-workflow-devsepnine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/devsepnine/hibi_ai/tree/main/src/skills/tdd-workflow
Command: npx skills add https://github.com/devsepnine/hibi_ai --skill tdd-workflow-devsepnine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing code without a safety net often leads to regressions and unclear requirements. This skill enforces test-driven development to ensure features are implemented with verified tests and measurable coverage.

Core Features & Use Cases

  • Enforces Test-Driven Development: require tests before code for every feature, bug fix, or refactor.
  • Supports Unit, Integration, and E2E testing: covers internal logic, API interactions, and end-to-end user workflows.
  • Provides a repeatable workflow: define user journeys, write tests, run them, implement code, and verify coverage.

Quick Start

Start by outlining a user journey for the feature, then write corresponding unit, integration, and end-to-end tests before implementing the feature.

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

Test-driven development is enforced by requiring tests before code implementation for features, bug fixes, and refactors. You start by outlining user journeys, writing unit, integration, and e2e tests, and then implementing the code to achieve 80%+ coverage.

What is the best way to structure TDD workflows for unit, integration, and e2e testing?

A structured TDD workflow defines user journeys first, writes corresponding tests, runs them, implements the feature code, and finally verifies coverage. This ensures internal logic, API interactions, and end-to-end user workflows are reliably tested.

Does this TDD workflow support both Vitest and Playwright?

Yes, the TDD workflow supports testing scenarios using Vitest and Playwright. It applies these frameworks to cover unit tests, integration tests, and end-to-end testing across new features, bug fixes, and API changes.

Can I use this workflow for API changes and bug fixes, not just new features?

Yes, the test-first workflow applies to writing new features, bug fixes, refactors, and API changes. It enforces defining tests first and verifying code reliability across all these development scenarios to prevent regressions.

Why define user journeys before writing tests in a test-first workflow?

Defining user journeys before writing tests provides a repeatable workflow structure. It clarifies requirements upfront, ensuring the unit, integration, and end-to-end tests accurately reflect desired user workflows before code implementation begins.

What overall test coverage is required when applying this TDD process?

The TDD process requires achieving 80% or higher overall test coverage. This measurable coverage threshold ensures features are implemented with verified tests, providing a safety net against regressions and unclear requirements.