Skip to content
Back to skills

Python Uv

ASecurity

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

  • 248 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 10, 2026
developmentpythonbash

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add Mindrally/skills --skill python-uv --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Uv?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Uv
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mindrally-python-uv/badge)](https://www.skillsdirectory.com/skills/mindrally-python-uv)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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:

```bash
uv add <package>
uv remove <package>
uv sync
```

## Script Management

Execute scripts with proper dependency handling:

```bash
uv run script.py
```

### Manual Inline Metadata Configuration

Scripts can specify dependencies via comment blocks:

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

### CLI-Based Script Dependencies

```bash
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.