Python package and project management with UV. Use when creating Python scripts, initializing projects, or managing dependencies.
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
UV is a fast Python package manager. Two modes:
Use scripts when:
Use projects when:
Standalone Python files with inline dependencies (PEP 723).
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = ["requests", "rich"]
# ///
import requests
from rich import printRun: uv run script.py
See references/scripts.md for full guide.
Structured Python with pyproject.toml and lockfile.
uv init myproject
cd myproject
uv add requests
uv run python main.pyKey files:
pyproject.toml - metadata and dependenciesuv.lock - exact versions for reproducibility.python-version - Python versionSee references/projects.md for full guide.
uv run pytest # Run in project env
uv add --dev pytest # Dev dependency
uvx ruff check . # One-off tool execution
uv run --with rich script.py # Script with ad-hoc depsaski/arnesto
752f690
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.