tdd-workflow

Enforce test-driven development workflows with 80%+ coverage targets.

41|8|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/codelably/harmony-claude-code --skill tdd-workflow-codelably
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/codelably/harmony-claude-code/tree/main/docs/zh-TW/skills/tdd-workflow
Command: npx skills add https://github.com/codelably/harmony-claude-code --skill tdd-workflow-codelably

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

測試驅動開發工作流程確保開發過程遵循 TDD 原則,並追求高覆蓋率,降低回歸風險,提升程式碼品質與維護性。

Core Features & Use Cases

  • 先寫測試再寫程式碼,確保需求被正式驗證。
  • 覆蓋單元、整合與 E2E 測試,達成 80% 以上覆蓋率。
  • 提供分步指南:撰寫使用者旅程、產生測試案例、執行測試、實作與重構、驗證覆蓋率、最佳實踐與持續測試。

Quick Start

以實作第一個測試案例為例,請先撰寫一個針對新功能的單元測試,再逐步實作以達成 80%+ 覆蓋率。

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 my codebase?

To enforce test-driven development, you must define a workflow that starts with writing tests, progresses through implementation to reach 80%+ coverage across unit, integration, and E2E tests. This ensures requirements are formally verified before code is written.

What is the best way to maintain high test coverage during refactoring?

Maintaining high test coverage during refactoring requires an explicit workflow that verifies coverage targets after implementation. You should execute unit, integration, and E2E tests continuously to ensure coverage remains above 80%.

Does TDD workflow support both frontend and backend testing?

Yes, test-driven development workflows are applicable to frontend, backend, API, and library code. The process covers unit, integration, and end-to-end testing workflows across these environments to enforce software quality.

How do I start writing tests for a new feature using TDD?

To start writing tests for a new feature using TDD, first write a unit test against the new functionality. Then progressively implement the code and generate test cases until you achieve 80%+ coverage across unit, integration, and E2E tests.

When do I need to write E2E tests in a TDD workflow?

You need to write E2E tests in a TDD workflow when covering end-to-end user journeys. The workflow requires defining user journeys, generating test cases, and executing them to validate the entire system before implementation.