python-tdd-with-uv

Standardize Python TDD workflows using uv and pytest.

672|104|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/spencerpauly/awesome-cursor-skills --skill python-tdd-with-uv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-tdd-with-uv
Source: https://github.com/spencerpauly/awesome-cursor-skills/tree/main/resources/python-tdd-with-uv
Command: npx skills add https://github.com/spencerpauly/awesome-cursor-skills --skill python-tdd-with-uv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of starting and maintaining Python test-driven development by combining fast environment management with a strict red-green-refactor workflow.

Core Features & Use Cases

  • Sets up a Python project with uv and installs the testing tools needed for TDD.
  • Encourages vertical slicing so you implement one behavior at a time and keep feedback loops short.
  • Fits new project bootstrapping, feature delivery, bug fixes, and refactoring where tests should guide every change.

Quick Start

Ask the AI to set up the Python project with uv, add pytest as a development dependency, and write one failing test for the next behavior.

Frequently Asked Questions about python-tdd-with-uv

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

FAQPage Schema
How do I set up a Python project for test-driven development with uv?

Set up a Python TDD project with uv by initializing the environment, adding pytest as a development dependency, and writing one failing test at a time to establish a red-green-refactor workflow.

What is the red-green-refactor workflow in Python testing?

The red-green-refactor workflow in Python testing requires writing one failing test first, implementing the minimum code to pass it, and then refactoring while keeping behavior observable and incremental.

Can I use pytest with uv for test-driven development?

Yes, you can use pytest with uv for test-driven development by adding pytest as a development dependency and running uv-managed commands to execute tests that assert outcomes rather than implementation details.

Does test-driven development work for refactoring existing Python code?

Test-driven development works for refactoring Python code by keeping behavior observable and incremental, ensuring tests guide every change and assert outcomes rather than implementation details throughout the process.

What is the best way to fix bugs using TDD in Python?

The best way to fix bugs using TDD in Python is to write a failing test that reproduces the bug, implement the fix to turn it green, and refactor with uv-managed commands to maintain short feedback loops.

Why should I assert outcomes rather than implementation details in pytest?

Asserting outcomes rather than implementation details in pytest keeps your tests resilient during refactoring, ensuring behavior stays observable and incremental without breaking tests when internal code structure changes.