How to install python-uv
npx skills add https://github.com/mindrally/skills --skill python-uvFull instructions (SKILL.md)
Source of truth, from mindrally/skills.
name: python-uv description: Guidelines for Python dependency management using uv, the fast Python package installer and resolver.
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
- Always use
uvfor all package operations - Prefer inline script metadata for standalone scripts
- Use
uv runto execute scripts with their dependencies - Keep dependencies locked and synchronized across environments
- Never fall back to pip or other package managers
Related skills
More from mindrally/skills and the wider catalog.
fastapi-python
Expert FastAPI Python development with async best practices and clean API design.
web-scraping
Expert in web scraping and data extraction with Python tools
nextjs-react-typescript
Expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind
computer-vision-opencv
Expert guidance for computer vision development using OpenCV, PyTorch, and modern deep learning techniques for image and video processing.
accessibility-a11y
Implement web accessibility (a11y) best practices following WCAG guidelines to create inclusive, accessible user interfaces.
mysql-best-practices
MySQL development best practices for schema design, query optimization, and database administration