uv-usage

Guide uv Python package manager workflows for dependencies and PEP 723 scripts.

2|2|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/liatrio-labs/ai-prompts --skill uv-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv-usage
Source: https://github.com/liatrio-labs/ai-prompts/tree/main/skills/uv-usage
Command: npx skills add https://github.com/liatrio-labs/ai-prompts --skill uv-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear, actionable guidance for using uv, a fast, unified Python package manager, simplifying project initialization, dependency management, and script execution.

Core Features & Use Cases

  • Project Initialization: Quickly set up new Python projects with uv init.
  • Dependency Management: Add, sync, and lock project dependencies using uv add and uv sync.
  • Inline Dependencies (PEP 723): Easily manage dependencies for standalone Python scripts.
  • Pip-Compatible Commands: Utilize familiar pip commands like uv pip install and uv pip compile.
  • Python Version Management: Control Python versions within your environment using uv python.

Quick Start

Use the uv-usage skill to add the 'requests' package to the current project.

Frequently Asked Questions about uv-usage

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

FAQPage Schema
How do I manage Python dependencies using the uv package manager?

You can manage Python dependencies using uv by running `uv add` to include new packages and `uv sync` to lock and synchronize your project environment with the specified packages.

What is PEP 723 inline script metadata and how does uv support it?

PEP 723 inline script metadata allows declaring dependencies directly within standalone Python scripts. uv supports this by reading the metadata and automatically resolving the required packages when you run the script.

Can I use standard pip commands with uv for legacy Python projects?

Yes, uv supports pip-compatible commands such as `uv pip install` and `uv pip compile`, allowing you to manage legacy Python projects using familiar pip workflows within the uv environment.

How do I initialize a new Python project and set up the environment with uv?

To initialize a new Python project with uv, run the `uv init` command to generate the base project structure, then use `uv add` to include dependencies and `uv sync` to create the virtual environment.

How do I specify and manage Python versions for my uv project environment?

You can specify and manage Python versions for your uv project environment by using the `uv python` command, which controls and pins the specific Python interpreter version used during dependency resolution and execution.