uv

Manage Python dependencies and sync environments for uv projects.

5|3|Updated Jun 18, 2024
One-click install
npx skills add https://github.com/Unique-AG/ai --skill uv-unique-ag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv
Source: https://github.com/Unique-AG/ai/tree/main/.claude/skills/uv
Command: npx skills add https://github.com/Unique-AG/ai --skill uv-unique-ag

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

uv provides deterministic Python dependency management and clean environment handling to prevent drift between pyproject.toml and the lock file.

Core Features & Use Cases

  • Add, update, and remove dependencies in pyproject.toml and uv.lock in a single step.
  • Sync the environment to exactly match uv.lock, ensuring reproducible installs.
  • Run commands inside the project's virtual environment without manual activation, and initialise new projects with minimal setup.

Quick Start

Run uv init to scaffold a new uv-managed project and create pyproject.toml and uv.lock.

Frequently Asked Questions about uv

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

FAQPage Schema
How do I sync my Python virtual environment to exactly match the lockfile?

To sync your Python virtual environment to match the lockfile, the environment is updated to exactly match uv.lock. This ensures reproducible installs by aligning your project's active dependencies with the locked versions.

What is the best way to add and update Python dependencies in pyproject.toml?

Adding and updating Python dependencies in pyproject.toml is best handled by modifying both pyproject.toml and uv.lock in a single step. This prevents configuration drift by keeping dependency declarations and locked versions synchronized.

Can I run commands inside a Python project's virtual environment without manual activation?

Yes, you can run commands inside a Python project's virtual environment without manual activation. Commands are executed directly within the isolated uv-managed environment, bypassing the need to manually source activation scripts.

How do I initialise a new Python project with minimal setup?

Initialising a new Python project with minimal setup involves running a scaffolding command to generate pyproject.toml and uv.lock. This creates a clean, deterministic foundation for managing your project's dependencies from the start.

Why does dependency drift occur between pyproject.toml and the lockfile?

Dependency drift between pyproject.toml and the lockfile occurs when declared dependencies are modified without synchronizing the locked versions. Applying deterministic dependency management regenerates locks and syncs the environment to prevent this mismatch.