Agent skill

Python TDD With Uv

by spencerpauly in spencerpauly/awesome-cursor-skills

Test-driven development in Python using uv as the package manager.

CC0-1.0Auto-check passedTesting & QA

Install Python TDD With Uv

skills CLI
$ npx skills add spencerpauly/awesome-cursor-skills --skill python-tdd-with-uv -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install spencerpauly/awesome-cursor-skills python-tdd-with-uv --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/spencerpauly/awesome-cursor-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/python-tdd-with-uv .claude/skills/python-tdd-with-uv && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
python-tdd-with-uv
GitHub stars
842
Token cost
~732 tokens
SKILL.md length
189 words
Files
1
Skills in repo
57
Repo updated
First seen
Licence
CC0-1.0

At a glance

Test-driven development in Python using uv as the package manager.

  • Works in 4 steps: Check if uv is installed: uv --version → If the project doesn't have a… → Add pytest as a dev dependency → …
  • Tasks that involve Test-driven development
  • SKILL.md covers Setting Up the Project, TDD Workflow — Vertical Slicing, uv Essentials and References
  • Calls uv

What it does

Python TDD With Uv is an agent skill from spencerpauly/awesome-cursor-skills. Test-driven development in Python using uv as the package manager. Covers the red-green-refactor cycle, vertical slicing, and uv project setup.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test-driven development. It works with Python. The repository describes itself as: A curated list of awesome skills for Cursor. The licence is CC0-1.0.

When your agent uses it

  • Tasks that involve Test-driven development

Example prompts

  • “/python-tdd-with-uv”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Check if uv is installed: uv --version
  2. If the project doesn't have a pyproject.toml, initialize
  3. Add pytest as a dev dependency
  4. Confirm the test runner works

What it can do on your machine

Read from SKILL.md and the folder at commit 99cd265. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Python TDD With Uv loads about 732 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 189 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~732

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from spencerpauly/awesome-cursor-skills at commit 99cd265, republished under its CC0-1.0 licence (© spencerpauly). 189 words, ~732 tokens.

Download SKILL.mdSave it as .claude/skills/python-tdd-with-uv/SKILL.md (or your agent's skills folder).
name
python-tdd-with-uv
description
Test-driven development in Python using uv as the package manager. Covers the red-green-refactor cycle, vertical slicing, and uv project setup.
user-invocable
true

Python TDD with uv

Write Python code test-first using uv for fast dependency and environment management.

Setting Up the Project

  1. Check if uv is installed: uv --version
  2. If the project doesn't have a pyproject.toml, initialize:
    bash
    uv init
  3. Add pytest as a dev dependency:
    bash
    uv add --dev pytest pytest-cov
  4. Confirm the test runner works:
    bash
    uv run pytest --co

TDD Workflow — Vertical Slicing

Work in small cycles. Never write more than one failing test at a time.

Planning Phase

Before writing code, answer:

  1. What interface changes are needed? (functions, classes, APIs)
  2. Which behaviors matter most? (prioritize critical paths)
  3. Can we design for testability? (inject dependencies, avoid global state)
The Cycle
RED   → Write ONE failing test for the next behavior
GREEN → Write the MINIMUM code to make it pass
REFACTOR → Clean up without changing behavior
REPEAT

Rules:

  • Never write implementation before a failing test exists
  • Never write more than one failing test at a time
  • Run uv run pytest after every change
  • Tests must assert observable behavior, not implementation details
  • Mocks should only be used at system boundaries (I/O, network, clock)
Test File Structure
python
# tests/test_<module>.py

class TestFeatureName:
    """Group related behaviors."""

    def test_does_expected_thing_when_given_input(self):
        result = function_under_test(input_value)
        assert result == expected

    def test_raises_when_given_invalid_input(self):
        with pytest.raises(ValueError):
            function_under_test(bad_input)
Running Tests
bash
uv run pytest                      # all tests
uv run pytest tests/test_foo.py    # single file
uv run pytest -k "test_name"       # by name pattern
uv run pytest --cov=src            # with coverage
uv run pytest -x                   # stop on first failure

uv Essentials

bash
uv add <package>           # add dependency
uv add --dev <package>     # add dev dependency
uv remove <package>        # remove dependency
uv sync                    # sync environment from lockfile
uv run <command>           # run in managed environment
uv lock                    # regenerate lockfile
  • Always use uv run to execute commands — never activate venvs manually
  • Commit both pyproject.toml and uv.lock

References

© spencerpauly, CC0-1.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in resources/python-tdd-with-uv of spencerpauly/awesome-cursor-skills.

Open the folder on GitHubat commit 99cd265

Compare with similar skills

Python TDD With Uv next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Python TDD With Uv compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python TDD With Uv this skillspencerpauly/awesome-cursor-skills842—~732Automated safety check: PassCC0-1.0
Wobbling Ty Constraint Orderastral-sh/ruff50k—~838Automated safety check: PassMIT
Test Designjjjkkkjjj/Matft147—~2kAutomated safety check: PassBSD-3-Clause
Implement Widgetcryptomilk/hass-eink-dashboard116—~4.8kAutomated safety check: PassApache-2.0
Python Testingaffaan-m/ECC275k6 repos~4.7kAutomated safety check: PassMIT
Python Testingaffaan-m/ECC275k3 repos~4.2kAutomated safety check: PassMIT

Similar skills

  • Official

    A skill your agent uses when a user asks to wobble ty constraint ordering, check constraint-set or TDD ordering determinism, test reversed constraint/typevar IDs, or investigate nondeterministic ty…

    50k GitHub stars~838 tokensUpdated today
    Testing & QAAuto-check passed
  • Test Design

    jjjkkkjjj/Matft

    Procedure for designing and writing Matft's XCTest cases with high coverage — boundary values, dtypes, memory layouts, NaN/inf, empty arrays, broadcasting, platform differences, performance and…

    147 GitHub stars~2k tokensUpdated 11 days ago
    Testing & QAAuto-check passed
  • Implement Widget

    cryptomilk/hass-eink-dashboard

    Implement a widget's SVG template and Python context builder.

    116 GitHub stars~4.8k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Python Testing

    affaan-m/ECC

    Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.

    275k GitHub starsUsed in 6 repos~4.7k tokens
    Testing & QAAuto-check passed
  • Python Testing

    affaan-m/ECC

    使用pytest的Python测试策略,包括TDD方法、夹具、模拟、参数化和覆盖率要求. An agent skill from affaan-m/ECC.

    275k GitHub starsUsed in 3 repos~4.2k tokens
    Testing & QAAuto-check passed
  • Agent-Core Python Testing

    openJiuwen-ai/agent-core

    Pytest patterns for the agent-core codebase: a red-green-refactor workflow, conftest fixtures, custom marks, monkeypatch and patch mocking, and async tests.

    442 GitHub stars~2.3k tokensUpdated today
    Testing & QAAuto-check passed

More from spencerpauly/awesome-cursor-skills

All 57 skills in this repo
  • Babysitting PR

    spencerpauly/awesome-cursor-skills

    Monitor a pull request for CI failures, review comments, and merge conflicts — then fix them automatically.

    842 GitHub stars~930 tokensUpdated 2 mo ago
    Auto-check passed
  • Best Of N Solving

    spencerpauly/awesome-cursor-skills

    Solve a hard problem by trying multiple approaches in parallel using isolated git worktrees.

    842 GitHub stars~698 tokensUpdated 2 mo ago
    Auto-check passed
  • Grinding Until Pass

    spencerpauly/awesome-cursor-skills

    Keep iterating on code changes until the tests pass, the build succeeds, or linting is clean.

    842 GitHub stars~796 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel CI Triage

    spencerpauly/awesome-cursor-skills

    When GitHub Actions fails, fetch failing job logs and assign each failing job to a separate subagent that fixes its slice of the problem in parallel.

    842 GitHub stars~793 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel Exploring

    spencerpauly/awesome-cursor-skills

    Explore a large codebase in parallel by launching multiple explore subagents that each investigate a different area simultaneously.

    842 GitHub stars~787 tokensUpdated 2 mo ago
    Auto-check: notes
  • Profiling Performance

    spencerpauly/awesome-cursor-skills

    Profile a running web application's CPU performance using Cursor's built-in browser profiler.

    842 GitHub stars~686 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Python TDD With Uv

What does Python TDD With Uv do?

Test-driven development in Python using uv as the package manager. Python TDD With Uv is an agent skill from spencerpauly/awesome-cursor-skills. Test-driven development in Python using uv as the package manager.

When should I use Python TDD With Uv?

Python TDD With Uv fits situations like: tasks that involve Test-driven development.

How do I install Python TDD With Uv in Claude Code?

Run `npx skills add spencerpauly/awesome-cursor-skills --skill python-tdd-with-uv -a claude-code`. Or copy the skill folder (resources/python-tdd-with-uv in spencerpauly/awesome-cursor-skills) into .claude/skills/python-tdd-with-uv in your project. Claude Code loads it when a task matches its description.

How do I install Python TDD With Uv in Codex?

Run `npx skills add spencerpauly/awesome-cursor-skills --skill python-tdd-with-uv -a codex`. Or copy the skill folder (resources/python-tdd-with-uv in spencerpauly/awesome-cursor-skills) into .agents/skills/python-tdd-with-uv in your project. Codex loads it when a task matches its description.

Can I use Python TDD With Uv in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spencerpauly/awesome-cursor-skills --skill python-tdd-with-uv -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-tdd-with-uv, .gemini/skills/python-tdd-with-uv, .github/skills/python-tdd-with-uv and .opencode/skills/python-tdd-with-uv in your project.

What does Python TDD With Uv need to run?

Going by SKILL.md and its folder, Python TDD With Uv needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Python TDD With Uv access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Python TDD With Uv safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Python TDD With Uv use?

Python TDD With Uv is published under the CC0-1.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Python TDD With Uv use?

About 732 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Python TDD With Uv?

Skills that share tags, products or a category with Python TDD With Uv: Wobbling Ty Constraint Order (astral-sh/ruff, 50k stars), Test Design (jjjkkkjjj/Matft, 147 stars), Implement Widget (cryptomilk/hass-eink-dashboard, 116 stars) and Python Testing (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python TDD With Uv?

spencerpauly (a GitHub user) maintains it in spencerpauly/awesome-cursor-skills, which has 842 GitHub stars. The repository holds 57 skills in this directory. The repository was last updated on August 2, 2026.

Source: spencerpauly/awesome-cursor-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.