uv-package-manager

Manages Python dependencies, virtual environments, and lockfiles using the uv package manager.

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/MaiconGambini/opencode-harness-guide --skill uv-package-manager-maicongambini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv-package-manager
Source: https://github.com/MaiconGambini/opencode-harness-guide/tree/main/skills/uv-package-manager
Command: npx skills add https://github.com/MaiconGambini/opencode-harness-guide --skill uv-package-manager-maicongambini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow Python dependency installation, manual virtual environment setup, and inconsistent builds across machines waste developer time. This Skill guides the use of uv, a Rust-based package installer and resolver, to handle Python project setup, dependency resolution, and reproducible builds significantly faster than pip. ## Core Features & Use Cases - Dependency Management: Add, remove, upgrade, and lock Python packages with uv add, uv lock, and uv sync for reproducible installs via uv.lock. - Environment & Python Version Control: Create virtual environments, pin Python versions, and run commands without manual activation using uv venv, uv python pin, and uv run. - CI/CD and Docker Integration: Speed up pipelines with frozen lockfile installs, global caching, and multi-stage Docker builds. - Use Case: Migrating a project from pip and requirements.txt? Run uv init and uv add -r requirements.txt to convert the project, generate a lockfile, and cut install times from tens of seconds to a few seconds. ## Quick Start Ask the assistant to initialize a new Python project with uv, add FastAPI and pytest as dependencies, and generate a lockfile for reproducible installs.

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 dependencies faster than pip?

Use uv, a Rust-based package installer that runs 10-100x faster than pip. Run `uv add requests pandas` to add packages to pyproject.toml, or `uv pip install -r requirements.txt` for pip-compatible installs.

How do I migrate from pip and requirements.txt to uv?

Run `uv init` in your project directory, then `uv add -r requirements.txt` to import existing dependencies into pyproject.toml. Generate a lockfile with `uv lock` and install with `uv sync`.

What is the difference between uv, poetry, and pip-tools?

uv is significantly faster than all three and acts as a drop-in pip replacement. Unlike poetry it is less opinionated, and unlike pip-tools it combines locking and syncing into `uv lock` and `uv sync --frozen`.

Does uv support reproducible builds with lockfiles?

Yes. uv generates a uv.lock file with `uv lock`, and `uv sync --frozen` installs exact locked versions. You can also export to requirements.txt with hashes using `uv export --format requirements-txt --hash`.

Can uv manage multiple Python versions?

Yes. Install versions with `uv python install 3.12`, list them with `uv python list`, and pin a project version with `uv python pin 3.12`, which writes a .python-version file.

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

The lockfile becomes stale after dependencies change in pyproject.toml. Regenerate it with `uv lock --upgrade`, or check consistency with `uv lock --check` before running `uv sync`.