---
name: "Python TDD with uv SKILL.md (red-green-refactor, one failing test)"
description: "Use when a Python change must follow red-green-refactor with uv and one failing test."
---

# Python TDD with uv SKILL.md (red-green-refactor, one failing test)

## When
Use when writing or fixing Python and a uv-based TDD skill is installed.

## Stop
One failing test first. Never skip the red step.

## Steps
1. `uv --version`
2. If no pyproject.toml: `uv init`
3. `uv add --dev pytest pytest-cov`
4. `uv run pytest --co`

## Load
python-tdd-with-uv SKILL.md. uv. Tests.
