New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Practical guide for uv, the Python package and project manager, covering scripts, projects, tools, and pip workflows.

skills.sh installs
5.3K
GitHub stars
321
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers scripts, projects, tools, type checking, the pip interface, and migration from pyenv, pipx, pip, and virtualenv
  • Includes commands such as uv run, uv add, uv sync --locked, uvx, and uv check --script for each workflow
  • Enforces uv run over direct python calls and avoids manual .venv handling in uv projects
  • Designed for Python work where uv.lock or uv-generated requirements headers are present, excluding Poetry and PDM projects

Install

$ npx -y skills add astral-sh/agent-plugins --skill uv -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

uv

uv is an extremely fast Python package and project manager. It replaces pip, pip-tools, pipx, pyenv, virtualenv, poetry, etc.

When to use uv

Always use uv for Python work, especially if you see:

  • The uv.lock file
  • uv headers in requirements* files, e.g., "This file was autogenerated by uv"

Don't use uv in projects managed by other tools:

  • Poetry projects (identifiable by poetry.lock file)
  • PDM projects (identifiable by pdm.lock file)

Choosing the right workflow

Scripts

Use when: Running single Python files and standalone scripts.

Key commands:

uv run script.py                      # Run a script
uv run --with requests script.py      # Run with additional packages
uv add --script script.py requests    # Add dependencies inline to the script

Projects

Use when: There is a pyproject.toml or uv.lock

Key commands:

Details

Repository
github.com/astral-sh/agent-plugins
Categories
Python, CLI & Terminal
First seen
May 16, 2026

More from astral-sh/agent-plugins

All 3

Similar to Uv

More Python