Fast dependency management and build tool for Python projects.

Install

mkdir -p .claude/skills/uv-openhands && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18055" && unzip -o skill.zip -d .claude/skills/uv-openhands && rm skill.zip

Installs to .claude/skills/uv-openhands

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

If the project uses uv, use this skill. Use this skill to create/manage Python projects and environments with `uv`, add/remove dependencies, sync a project from `uv.lock`, and run commands in the project environment.
216 charsno explicit “when” trigger
Beginner

Key capabilities

  • Initialize new Python projects
  • Add and remove project dependencies
  • Lock and synchronize project dependencies
  • Run commands within the project environment
  • Install dependencies from requirements.txt

How it works

The `uv` skill manages Python project dependencies and virtual environments, using `uv.lock` for reproducible installs and `pyproject.toml` for dependency declarations.

Inputs & outputs

You give it
uv add requests
You get back
The 'requests' package is added to `pyproject.toml` and `uv.lock` is updated.

When to use uv

  • Create virtual environment
  • Sync python dependencies
  • Add package to project
  • Initialize python project

About this skill

uv (Python)

Use uv as the default tool for Python dependency + environment management when the repo has uv.lock, mentions uv in its docs/Makefile, or already uses a .venv created by uv.

Quick decision rules

  • If the repo has uv.lock and pyproject.toml: treat it as a uv-managed project.
  • If the repo has only requirements.txt: you can still use uv pip for fast installs.
  • Prefer project commands (uv add/remove/sync/run/lock) over raw pip unless the repo explicitly uses uv pip.

Installation (if needed)

Prefer a packaged install method when available. If you use the official installer, review it first (avoid blindly piping into a shell) and follow the latest instructions in the official docs.

# macOS/Linux (official installer)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell, official installer)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Common operations

Initialize a new project

uv init
# or
uv init my-project

Create / use a virtual environment

uv venv  # creates .venv

# If you need a specific version, match the project's declared requirement
# (e.g., pyproject.toml / CI config), not an arbitrary latest version.
uv venv --python 3.x

# optional activation (not required for uv commands)
source .venv/bin/activate  # macOS/Linux
# .venv\\Scripts\\activate   # Windows

Add / remove dependencies (updates pyproject.toml and uv.lock)

uv add requests
uv add 'requests==2.31.0'
uv add -r requirements.txt

uv remove requests

Lock + sync (reproducible installs)

uv lock   # (re)generate uv.lock
uv sync   # create/update .venv to match uv.lock

If you pulled new changes and uv.lock changed, run uv sync.

Run commands inside the project environment

uv run python -m pytest -q
uv run python main.py
uv run ruff check .

Using uv as a fast pip replacement (requirements workflows)

uv venv
uv pip install -r requirements.txt
uv pip freeze
uv pip list

Notes / pitfalls

  • uv will usually auto-detect and use .venv in the project root.
  • In CI/containers you may see uv pip install --system, but prefer virtualenvs for local dev.
  • If a command mutates deps, prefer uv add/remove/lock/sync so uv.lock stays correct.

When not to use it

  • When the project does not use `uv` or `uv.lock`
  • When needing to use raw `pip` commands for dependency management in a `uv`-managed project

Limitations

  • The skill is intended for projects that use `uv`.
  • Prefer project commands over raw `pip` for `uv`-managed projects.

How it compares

This tool provides a modern, fast approach to Python dependency management and environment creation, offering an alternative to traditional `pip` and `venv` workflows.

Compared to similar skills

uv side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
uv (this skill)03moReviewBeginner
dev25moReviewAdvanced
autogluon-conda-upgrade06moReviewIntermediate
pre-release12moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

dev

atopile

LLM-focused workflow for working in this repo: compile Zig, run the orchestrated test runner, consume test-report.json/html artifacts, and discover/debug ConfigFlags.

28

autogluon-conda-upgrade

autogluon

Automate AutoGluon conda-forge feedstock version upgrades. Use when the user wants to upgrade AutoGluon to a new version in conda-forge, create PRs for AutoGluon conda feedstocks, or update autogluon.common, autogluon.core, autogluon.features, autogluon.tabular, autogluon.multimodal, autogluon.timeseries, or autogluon meta-package feedstocks.

02

pre-release

ZhuoZhuoCrayon

Automates release preparation for throttled-py. Triggers when user message contains: - "release vX.Y.Z" with a GitHub release draft URL - "release vX.Y.Z" followed by changelog content Tasks: update version numbers, sync CHANGELOG_EN.rst and CHANGELOG.rst, run dependency sync.

11

emitter-package-update

Azure

Automate bumping typespec-python version in emitter-package.json for the Azure SDK for Python repository. Use this skill when the user wants to update @azure-tools/typespec-python to the latest version, create a PR for the version bump, or manage emitter-package.json updates.

10

klingai-ci-integration

jeremylongshore

Execute integrate Kling AI video generation into CI/CD pipelines. Use when automating video content generation in build pipelines. Trigger with phrases like 'klingai ci', 'kling ai github actions', 'klingai automation', 'automated video generation'.

01

uv

julianobarbosa

Guide for using uv - an extremely fast Python package and project manager written in Rust. Use when installing Python, managing virtual environments, adding dependencies, running scripts, building packages, or working with pyproject.toml. Replaces pip, pip-tools, pipx, poetry, pyenv, twine, and virt

00

Search skills

Search the agent skills registry