New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Guidelines that require uv for all Python dependency work, blocking pip, pip-tools, and poetry.

skills.sh installs
1K
GitHub stars
306
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers project dependency workflows: adding, removing, syncing, and running scripts with uv add, uv remove, uv sync, and uv run
  • Includes inline script metadata via # /// script blocks and --script flags for per-file dependency declarations
  • Enforces locked, synchronized environments and bans direct use of pip, pip-tools, or poetry for dependency management
  • Designed for Python projects and standalone scripts that need reproducible dependency handling

Install

$ npx -y skills add mindrally/skills --skill python-uv -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/mindrally/skills
Category
Python
First seen
Jun 3, 2026

More from mindrally/skills

All 240

Similar to Python Uv

More Python