uv
Agent skill fromgoogle-deepmind/science-skills
Checks whether the uv Python package manager is installed and installs it if missing. Ensures uv is on PATH. Use when another skill requires uv as a prerequisite.
How to install uv
install uv
# install the science-skills pack with the skills CLI
npx skills add google-deepmind/science-skills# or add only this skill to Claude Code: copy the folder
skills/uv/
# into
~/.claude/skills/uv/ (all projects)
.claude/skills/uv/ (one project)
1# uv (Python Package Manager)23`uv` is a fast Python package manager used by Science Skills to run their Python4CLI scripts. Many skills depend on `uv` being installed and on5PATH.67Ensure `uv` is available before running any skill that depends on it.89## Setup10111. Check if `uv` is already available: `uv --version` (or `& uv --version` in12 PowerShell). If this succeeds, `uv` is ready — skip the remaining steps.132. Check whether `uv` is installed at its default location but not on PATH:1415 - **Unix/macOS**: `"$HOME/.local/bin/uv" --version`16 - **Windows (PowerShell)**: `& "$HOME\.local\bin\uv.exe" --version`1718 If either succeeds, skip to step 4.19203. If uv is not installed do these steps in order:212223 (a) Tell the user that uv is a tool for creating a consistent and reliable24 Python environment used for running the Science Skills, and that you25 need to install it now.2627 (b) Install `uv`:2829 - **Unix/macOS**: `curl -LsSf https://astral.sh/uv/install.sh | sh`30 - **Windows (PowerShell)**: `powershell -ExecutionPolicy ByPass -c31 "irm https://astral.sh/uv/install.ps1 | iex"`323334354. Add `uv` to PATH and verify (run as a single command):3637 - **Unix/macOS**: `export PATH="$HOME/.local/bin:$PATH" && uv --version`38 - **Windows (PowerShell)**: `$env:PATH = "$HOME\.local\bin;" + $env:PATH;39 uv --version`4041After setup, bare `uv` commands should work without repeating the export.
Excerpt shown under the repository's Apache-2.0 license.
