Agent Skills: uv — Policy

Use when working with Astral's uv — the fast Python package and project manager replacing pip, pipx, pyenv, poetry, and virtualenv. Activates for project initialization, dependency management, PEP 723 inline scripts, virtual environments, Python version management, workspace and monorepo configuration, tool installation via uvx, building and publishing packages, Docker and CI/CD integration, package index configuration, SBOM export, and migrating from pip, poetry, pipx, pyenv, or conda.

UncategorizedID: Jamie-BitFlight/claude_skills/uv

Install this agent skill to your local

pnpm dlx add-skill https://github.com/Jamie-BitFlight/claude_skills/tree/HEAD/plugins/python-engineering/skills/uv

Skill Files

Browse the full folder contents for uv.

Download Skill

Loading file tree…

plugins/python-engineering/skills/uv/SKILL.md

Skill Metadata

Name
uv
Description
Use when working with uv — this skill's uv policy and required overrides to Astral's official guidance. Pair with `astral:uv` (if installed) for general usage.

uv — Policy

Precedence: this policy (below) > astral:uv (if installed) / live docs.astral.sh for command syntax, migration tables, and general usage (not duplicated here).

Policy

  • Follow python-engineering:standards-for-python-development for shared architecture, typing, testing, and CLI rules.
  • Use uv add / uv sync / uv run for all Python work — never uv pip install, uv venv, or source .venv/bin/activate. A uv.lock-managed project with PEP 723 scripts never needs the pip-compatible lane Astral documents.
  • PEP 723 script shebang: #!/usr/bin/env -S uv run --quiet --script. Never add --active — it breaks PEP 723 isolation by resolving into an ambient VIRTUAL_ENV instead of an isolated ephemeral one.
  • Use text mode ('r'/'w') with tomlkit, never binary mode ('rb'/'wb') — binary mode returns bytes, which tomlkit cannot parse or write.

External Resources (if astral:uv isn't installed)