Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

python-uv

FreeNo executable scriptsNot checked

Guidelines for Python dependency management using uv, the fast Python package installer and resolver.

Mindrallyby Mindrally★ 323 GitHub stars

About this skill

Python Package Management with uv

You are an expert in Python development with uv package management.

Core Directive

All Python dependencies must be installed, synchronized, and locked using uv.

Never use pip, pip-tools, or poetry directly for dependency management.

Dependency Management Commands

For standard projects:

uv add <package>
uv remove <package>
uv sync

Script Management

Execute scripts with proper dependency handling:

uv run script.py

Manual Inline Metadata Configuration

Scripts can specify dependencies via comment blocks:

# /// script
# requires-python = ">=3.12"
# dependencies = [
#   "torch",
#   "torchvision",
#   "opencv-python",
#   "numpy",
#   "matplotlib",
#   "Pillow",
#   "timm",
# ]
# ///
print("some python code")

CLI-Based Script Dependencies

uv add package-name --script script.py
uv remove package-name --script script.py
uv sync --script script.py

Key Principles

  1. Always use uv for all package operations
  2. Prefer inline script metadata for standalone scripts
  3. Use uv run to execute scripts with their dependencies
  4. Keep dependencies locked and synchronized across environments
  5. Never fall back to pip or other package managers

Install python-uv in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the python-uv skill do?

Guidelines for Python dependency management using uv, the fast Python package installer and resolver.

How do I install the python-uv skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the python-uv skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare python-uv with