Enforces a uv-only Python workflow in every directory, not just uv projects. Use whenever Python is about to be run, a Python package installed, or a Python tool invoked — all of it goes through `uv run`, `uv add`, `uv run --with`, or `uvx` instead of `python`, `pip`, or `pipx`.
Ships in uv. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
While this plugin is enabled, uv is the single entry point for all
Python operations in every directory, whether or not the directory is a uv project. Follow these
rules strictly:
Always use uv run instead of calling python or python3 directly:
# correct
uv run python script.py
uv run pytest
uv run mypy src/
# wrong — never do this
python script.py
python3 script.py
Use uv add to add packages. Never use pip install, even through uv run pip install:
# correct
uv add requests
uv add --dev pytest
# wrong
pip install requests
uv run pip install requests
uv pip install requests
uv add only works inside a uv project (one with a pyproject.toml). Outside one, use
uv run --with <pkg> ..., inline script metadata (see below), or uvx <tool>:
uv run --with requests script.py
uvx ruff check .
uv run script.py # Run a script
uv run script.py arg1 arg2 # With arguments
uv run --python 3.10 script.py # Specific Python version
echo 'print("hi")' | uv run - # From stdin
In a project directory, skip installing the project when running a standalone script:
uv run --no-project script.py
__pycache__)Use the AST parser instead of python -m py_compile:
uv run python -m ast script.py >/dev/null
uv run --with requests script.py
uv run --with 'requests>2,<3' script.py
uv run --with requests --with rich script.py
Declare dependencies directly in the script:
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests
from rich import print
Then just: uv run script.py
uv init --script example.py --python 3.12 # Create script with metadata
uv add --script example.py requests rich # Add dependencies
uv lock --script example.py # Creates example.py.lock
# /// script
# dependencies = ["requests"]
# [tool.uv]
# exclude-newer = "2023-10-16T00:00:00Z"
# ///
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = ["httpx"]
# ///
import httpx
print(httpx.get("https://example.com"))
chmod +x myscript
./myscript
Use uvx (or uv tool run) for one-off tool invocations instead of pipx or global installs:
uvx ruff check .
uvx black --check .
What SKILL.md sets; muted values are Claude Code's defaults
/uv:uvfrom uv
npx claudepluginhub rishubil/skills --plugin uvOther plugins' skills for the same job