tdd-workflow

Enforce Test-Driven Development with tests written before code and 80%+ coverage.

6|Updated Mar 25, 2023
One-click install
npx skills add https://github.com/songkg7/dotfiles --skill tdd-workflow-songkg7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/songkg7/dotfiles/tree/main/dot_claude/skills/tdd-workflow
Command: npx skills add https://github.com/songkg7/dotfiles --skill tdd-workflow-songkg7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers to adopt Test-Driven Development (TDD) and maintain 80%+ test coverage across unit, integration, and E2E tests, reducing bugs and regression risk.

Core Features & Use Cases

  • TDD Enforcement: Ensures tests are written before code to establish a verifiable specification.
  • Comprehensive Coverage: Encourages 80%+ coverage across unit, integration, and end-to-end tests with clear criteria.
  • Workflow Guidance: Provides step-by-step patterns for writing user journeys, generating tests, running them, and refactoring with confidence.

Quick Start

Use the tdd-workflow skill to structure a new feature's tests before implementing the code it covers.

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 a new feature?

To enforce test-driven development, define failing tests and expected outcomes before writing any implementation code. This establishes a verifiable specification that guides feature development, bug fixes, and refactoring.

What is the best way to maintain 80%+ test coverage across unit, integration, and e2e tests?

Maintaining 80%+ test coverage requires structured workflow guidance that generates tests, runs them deterministically, and verifies coverage across unit, integration, and e2e tests to reduce bugs and regression risk.

Can I use a tdd workflow for refactoring existing code?

Yes, you can use a tdd workflow for refactoring existing code. It provides step-by-step patterns to run user journey tests and refactor with confidence by ensuring deterministic testing workflows are established beforehand.

Does test-driven development work for both bug fixes and feature development?

Test-driven development works for both bug fixes and feature development. It ensures code is written only after defining failing tests, applying a consistent workflow across unit, integration, and e2e tests.

How do I write deterministic tests before implementing the code?

Writing deterministic tests requires defining expected outcomes and documenting test generation steps before implementation. This workflow ensures tests act as a verifiable specification across all test types.

What are the limitations of enforcing test-first development workflows?

Enforcing test-first development requires strict adherence to defining failing tests before coding. It demands deterministic testing workflows and documented generation steps to successfully reach 80%+ coverage across all test types.