tdd-workflow

Enforce Test-Driven Development for Python code with 80% test coverage.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures all Python code development adheres to Test-Driven Development (TDD) principles, guaranteeing comprehensive test coverage and robust code quality.

Core Features & Use Cases

  • Mandatory TDD: Enforces writing tests before implementation.
  • High Coverage: Requires a minimum of 80% test coverage across unit, integration, and E2E tests.
  • Structured Workflow: Guides developers through user story creation, test generation, implementation, and refactoring.
  • Use Case: When developing a new API endpoint, this Skill will guide you to write API tests first, then implement the endpoint logic, and finally verify that all edge cases and success paths are covered with tests exceeding 80% coverage.

Quick Start

Use the tdd-workflow skill to create a new feature following test-driven development principles.

Frequently Asked Questions about tdd-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce TDD in Python and ensure 80% test coverage?

To enforce TDD in Python, you must write tests before implementation and validate that unit, integration, and E2E tests achieve at least 80% coverage. This structured workflow mandates test generation first, then implementation, and finally refactoring to guarantee robust code quality.

What's the best way to guide a Python development workflow from user story to refactoring?

The best way to guide Python development is using a structured TDD workflow that transitions through user story creation, test generation, implementation, and refactoring. This process ensures edge cases and success paths are covered, mandating a minimum of 80% test coverage for robust code quality.

Can I use pytest and Playwright for Python E2E test coverage?

Yes, you can use pytest for testing frameworks and Playwright for E2E scenarios to enforce Test-Driven Development in Python. This combination supports validating unit, integration, and end-to-end tests to achieve the required 80% code coverage.

Does TDD workflow require writing tests before implementing API endpoints?

Yes, mandatory TDD requires writing tests before implementation. When developing a new API endpoint, you must write API tests first, implement the endpoint logic, and finally verify that all edge cases and success paths exceed 80% test coverage.

Why does my Python code need 80% test coverage across unit and integration tests?

Your Python code needs 80% test coverage to guarantee comprehensive test coverage and robust code quality. Enforcing this minimum threshold across unit, integration, and E2E tests ensures all edge cases and success paths are validated during development.

What are the limitations of enforcing TDD for Python code?

The primary limitation of enforcing TDD for Python code is the strict requirement to write tests before implementation and achieve a minimum of 80% test coverage. This mandatory workflow may slow down initial development speed for new API endpoints and features.