uv-package-manager

Manage Python dependencies, virtual environments, and project workflows using the uv package manager.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill uv-package-manager-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv-package-manager
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/uv-package-manager
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill uv-package-manager-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Slow Python package installation, fragmented tooling across pip, pip-tools, and poetry, and inconsistent dependency resolution make Python project setup tedious and error-prone. This Skill provides guidance for using uv, a Rust-based package manager that handles installation, virtual environments, Python versions, and lockfiles in one tool. ## Core Features & Use Cases - Dependency Management: Add, remove, upgrade, and lock Python packages with uv add, uv remove, and uv lock commands. - Virtual Environments & Python Versions: Create venvs, install Python interpreters, and pin project Python versions without separate tools. - Reproducible Builds: Generate uv.lock files, export requirements.txt, and use frozen installs for consistent CI/CD and Docker builds. - Use Case: When starting a new FastAPI project, use uv init to scaffold the project, uv add to install fastapi and uvicorn, and uv run pytest to execute tests without manually activating a virtual environment. ## Quick Start Ask the AI to initialize a new Python project with uv, add your required dependencies, and set up a reproducible lockfile.

Frequently Asked Questions about uv-package-manager

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

FAQPage Schema
How do I install Python packages with uv?

Use uv add to install packages and record them in pyproject.toml, or uv pip install for pip-compatible workflows. Running uv sync installs all dependencies from your lockfile into a virtual environment automatically.

How to create a virtual environment with uv?

Run uv venv to create a virtual environment in the current directory, optionally specifying a Python version with uv venv --python 3.12. You can then use uv run to execute commands without manually activating the environment.

uv vs pip: what is the difference?

uv is a Rust-based package installer that runs 10-100x faster than pip and includes a better dependency resolver. It also combines virtual environment management, Python installation, and lockfile support that pip does not provide natively.

Can I migrate from poetry or pip-tools to uv?

Yes, uv reads existing pyproject.toml files including poetry-style configuration, so you can run uv sync directly. For pip-tools workflows, replace pip-compile with uv lock and pip-sync with uv sync --frozen.

Does uv support lockfiles for reproducible builds?

Yes, uv lock generates a uv.lock file pinning exact dependency versions. Use uv sync --frozen in CI or Docker to install exactly those versions, and uv export to produce a requirements.txt with hashes.

Why is my uv lockfile out of sync with pyproject.toml?

The lockfile becomes stale when dependencies in pyproject.toml change without relocking. Run uv lock --upgrade to regenerate it, or uv lock --check to verify whether the lockfile matches your project configuration.