/uv-features:uv-pep723from uv-features
Guide writing self-contained Python scripts with PEP 723 inline dependency metadata. Use when writing scripts that use uv, or for "uv run", "uv run --with".
Ships in uv-features. 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.
| Situation | Approach |
|---|---|
| Project dependencies are sufficient | uv run script.py — no PEP 723 needed |
| Needs extra deps + throwaway or rarely-run | PEP 723 inline metadata in the script |
| Temporarily try a package (debugging, etc.) | uv run --with pkg script.py |
| Core workflow script (CI, deploy, build) | Add deps to pyproject.toml, not PEP 723 |
Use PEP 723 to keep pyproject.toml clean by not adding dependencies that most workflows don't need.
Always include a shebang and PEP 723 metadata block at the top:
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# "rich",
# ]
# ///
import requests
from rich.pretty import pprint
resp = requests.get("https://example.com/api")
pprint(resp.json())
After chmod +x, the script is directly executable. uv resolves and installs dependencies automatically.
If more detail is needed, consult: https://docs.astral.sh/uv/guides/scripts/#using-a-shebang-to-create-an-executable-file
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
npx claudepluginhub pokutuna/claude-plugins --plugin uv-features