tdd

Enforce a test-driven development workflow for Python projects with pytest.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fernando-fernandez3/claude-code-resources --skill tdd-fernando-fernandez3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/fernando-fernandez3/claude-code-resources/tree/main/my-config/skills/tdd
Command: npx skills add https://github.com/fernando-fernandez3/claude-code-resources --skill tdd-fernando-fernandez3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a test-driven development workflow for Python projects, ensuring tests guide implementation and reducing regressions.

Core Features & Use Cases

  • RED/GREEN/REFACTOR cycle integrated into your workflow to prevent untested code.
  • Automated test scaffolding and guidance for pytest-based projects.
  • Use Case: When adding a new feature or refactoring, start by writing failing tests, then implement minimal code to pass them.

Quick Start

Run the TDD flow: write a failing test, observe failure, implement code to pass, and refactor while keeping tests green.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce a test-driven development workflow for Python?

To enforce test-driven development for Python, use this Skill to guide the RED-GREEN-REFACTOR cycle. It ensures you write failing tests first, implement minimal code to pass them, and refactor while keeping tests green to reduce regressions.

What is the best way to start writing unit tests before implementation?

The best way to start writing unit tests before implementation is through automated test scaffolding. This Skill provides guidance for pytest-based projects, helping you create failing tests first and then driving feature development from those test failures.

Can I use pytest for test-driven development during refactoring?

Yes, you can use pytest for test-driven development during refactoring. This Skill supports pytest-based execution and applies the RED-GREEN-REFACTOR cycle to guide developers in maintaining high code quality while modifying existing Python code.

Does test-driven development work for both bug fixes and new features in Python?

Test-driven development works for both bug fixes and new features in Python. This Skill applies the workflow across feature development and refactoring, ensuring you write tests first to guide implementation and prevent untested code from causing regressions.

Why should I write failing tests before implementing Python code?

You should write failing tests before implementing Python code to ensure tests guide your implementation and reduce regressions. This approach enforces a test-driven development workflow where minimal code is written specifically to pass the initial failing tests.