skills/uv/SKILL.md
Install and use uv — the fast Python package and project manager. Use when: user needs to install uv, manage Python versions, create virtual environments, install packages/tools, run Python scripts with inline deps, or set up any Python-based skill that requires uv. uv is the standard Python tool manager for this OpenClaw installation.
npx skillsauth add openxjarvis/openclaw-python uvInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
uv is a fast, all-in-one Python tool manager (replaces pip, pip-tools, pipx, pyenv, virtualenv). It is required by many OpenClaw skills that run Python scripts or install Python CLI tools.
uv --version
curl -LsSf https://astral.sh/uv/install.sh | sh
After install, reload PATH:
source ~/.bashrc 2>/dev/null || source ~/.zshrc 2>/dev/null || export PATH="$HOME/.cargo/bin:$PATH"
brew install uv
pip install uv
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Verify install:
uv --version
uv tool install)Use for tools that expose a command-line binary (nano-pdf, ruff, etc.):
# Install a tool globally (available system-wide)
uv tool install nano-pdf
uv tool install ruff
uv tool install httpie
# Install a specific version
uv tool install nano-pdf==0.3.1
# List installed tools
uv tool list
# Upgrade a tool
uv tool upgrade nano-pdf
# Uninstall a tool
uv tool uninstall nano-pdf
uv pip install)Drop-in replacement for pip install, uses the active virtual environment:
# Install a package
uv pip install requests
uv pip install "python-pptx>=0.6.23"
# Install from requirements file
uv pip install -r requirements.txt
# Install current project in editable mode
uv pip install -e .
# Show installed package info
uv pip show requests
# List all installed packages
uv pip list
# Uninstall
uv pip uninstall requests
uv run)Run a Python script without manually activating a venv. Handles dependencies automatically:
# Run a script directly
uv run script.py
# Run with extra packages (inline, no venv needed)
uv run --with requests script.py
uv run --with "requests>=2.28" --with pillow script.py
# Run a module
uv run -m http.server 8080
# Run with a specific Python version
uv run --python 3.12 script.py
For scripts with inline dependency metadata (PEP 723):
# /// script
# requires-python = ">=3.11"
# dependencies = ["requests", "pillow"]
# ///
import requests
...
uv run script.py # auto-installs requests and pillow
# Install a specific Python version
uv python install 3.12
uv python install 3.11 3.12 3.13
# List installed Python versions
uv python list
# Pin Python version for current project
uv python pin 3.12
# Create a virtual environment
uv venv # creates .venv in current dir
uv venv myenv # custom name
uv venv --python 3.12 # specific Python version
# Activate (standard shell activation)
source .venv/bin/activate # macOS/Linux
.venv\Scripts\activate # Windows
# Install packages into the venv
uv pip install requests
uv sync / uv add)For projects with pyproject.toml:
# Sync all dependencies from lockfile
uv sync
# Add a dependency
uv add requests
uv add "fastapi>=0.100"
# Add a dev dependency
uv add --dev pytest
# Remove a dependency
uv remove requests
# Lock without installing
uv lock
uv run {skillDir}/scripts/my_script.py --arg value
uv tool install nano-pdf
nano-pdf ...
uv run --with httpx --with rich python3 -c "
import httpx, rich
r = httpx.get('https://api.github.com')
rich.print(r.json())
"
uv: command not found after install:
# Add uv to PATH manually
export PATH="$HOME/.cargo/bin:$PATH" # curl install default location
export PATH="$HOME/.local/bin:$PATH" # some Linux distros
# Then add to shell profile permanently:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc
uv tool install binary not found after install:
# uv tool binaries live in:
uv tool dir --bin # shows the bin directory
# Ensure it's in PATH:
export PATH="$(uv tool dir --bin):$PATH"
Permission error on Linux:
# Run with user install (no sudo needed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# uv always installs to user space (~/.cargo/bin), never needs sudo
Slow install / behind proxy:
UV_HTTP_TIMEOUT=120 uv tool install nano-pdf
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
development
Spreadsheet operations: open, read, edit, create .xlsx/.xlsm/.csv/.tsv files. Use for financial models, data tables, formula-based spreadsheets, data cleaning, charting, or any Excel file task. Triggers on: any .xlsx/.csv filename, 'spreadsheet', 'Excel', 'workbook'. Use openpyxl for formulas/formatting, pandas for data analysis.
development
Test local web applications using Playwright. Use when: testing a running web app, checking UI behavior, automating browser interactions, verifying HTML artifacts, or doing visual regression checks.
tools
Search the web for information and fetch URL content. Use when user asks to search for recent information, look up websites, fetch web page content, or find online resources. No external tools required — uses built-in web_search and web_fetch capabilities.