tdd-workflow

Automate test-driven development workflows from user stories to green tests.

26|Updated Apr 13, 2017
One-click install
npx skills add https://github.com/thesimonho/dotfiles --skill tdd-workflow-thesimonho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/thesimonho/dotfiles/tree/main/AI/skills/tdd-workflow
Command: npx skills add https://github.com/thesimonho/dotfiles --skill tdd-workflow-thesimonho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Proactively enforce test-driven development to ensure code is thoroughly tested during feature work, bug fixes, and refactors.

Core Features & Use Cases

  • Tests-first discipline: write tests before code to guide implementation.
  • Coverage focus: target 80%+ across unit, integration, and E2E tests, with emphasis on critical paths and error handling.
  • Clear workflow: define user journeys, write failing tests, implement minimal code, then verify and refactor.

Quick Start

Follow the TDD workflow: describe a feature, write failing tests first, implement minimal code, then verify 80%+ coverage and refactor.

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 work and refactoring?

To enforce test-driven development, the workflow guides you from user stories to writing failing tests first, implementing minimal code, and then verifying execution. This ensures code is thoroughly tested from the start during features, bug fixes, and refactors.

What is the best way to achieve 80%+ code coverage across unit, integration, and E2E tests?

Achieving 80%+ code coverage requires targeting critical paths and error handling across unit, integration, and end-to-end tests. The workflow focuses on coverage by guiding you to write failing tests first, implement minimal code, then verify and refactor.

How does a tests-first workflow handle bug fixes and new feature implementation?

A tests-first workflow handles bug fixes and features by defining user journeys, writing failing tests, and implementing minimal code to pass them. This structured test generation process ensures deterministic execution and thorough code validation before deployment.

Can I use this TDD workflow for both unit tests and end-to-end tests?

Yes, you can use this TDD workflow for unit, integration, and end-to-end tests. It applies test-driven development across projects to satisfy requirements for structured test generation and deterministic execution, targeting 80%+ coverage throughout.

When do I need to write failing tests before implementing code?

You need to write failing tests before implementing code whenever you are developing features, fixing bugs, or refactoring. This test-driven discipline proactively ensures thorough testing, guiding implementation from initial user stories to green tests.

Why does test-driven development focus on minimal code implementation?

Test-driven development focuses on minimal code implementation to ensure the code strictly satisfies the failing tests written beforehand. This approach maintains 80%+ coverage, emphasizes critical paths, and simplifies the subsequent verification and refactoring phases.