Uv python

From yv1ing/Z3r0 · View interactive version

Uv python is an AI agent skill from the GitHub repository yv1ing/Z3r0. Use uv for missing Python dependencies, task-scoped virtual environments, temporary execution, and non-preinstalled Python tools.

How to use this skill

Skill file

uv-python

Use uv for missing Python dependencies, task-scoped virtual environments, temporary execution, and Python tools that are not already preinstalled. The image is configured to prefer the existing /usr/bin/python3 and to avoid uv-managed Python downloads.

Skill loading required

Before using uv to run or install a tool, load the dedicated skill for that tool when one exists. Do not use uvx, uv run --with, or uv tool install to recreate pwntools, checksec, or any other tool already listed by sandbox-shell.

Help first

Before constructing commands, use installed help as the source of truth:

uv --help
uv tool --help
uv pip --help

Usage rules

Common workflows

Create an isolated task environment:

uv venv --python /usr/bin/python3 .venv
uv pip install --python .venv/bin/python requests

Run one-off Python with a temporary dependency:

if python3 -c 'import requests' 2>/dev/null; then
  python3 script.py
else
  uv run --python /usr/bin/python3 --with requests python script.py
fi

Run a temporary CLI tool without installing it globally, only when it is not already bundled:

command -v ruff >/dev/null || uvx --python /usr/bin/python3 ruff --help

Install a persistent Python CLI tool only when it is absent and meant to stay available for repeated task use:

command -v <tool> >/dev/null || uv tool install --python /usr/bin/python3 --no-python-downloads <tool>

Output

Report the uv command used, virtual environment or tool path, installed packages, and any reproducibility notes.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.