
Python Uv
This enforces strict uv-only dependency management for Python projects, which means no pip, no poetry, just uv commands for everything. It covers the basics like uv add and uv remove, but the interesting part is how it handles standalone scripts with inline dependency metadata using those triple-slash comment blocks. If you're already bought into uv or want Claude to stop suggesting pip install commands, this will keep things consistent. The script management approach is clean, letting you either embed dependencies directly in your Python files or manage them via CLI flags. It's opinionated by design, so if you need flexibility between package managers, look elsewhere.
- skills.sh installs
- 992
- GitHub stars
- 302
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mindrally/skills --skill python-uv --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/mindrally/skills
- Category
- Python
- First seen
- Jun 3, 2026
More from mindrally/skills
All 240- Sequelize983
- Pixi Js976
- React976
- Nestjs Clean Typescript974
- Deep Learning972
- Security Best Practices967
- Django Python965
- Gcp Development965
- Java Spring Development959
- Flutter953
- Unity946
- Storybook944
- Drupal Development943
- Laravel Development939
- Supabase936
- Design Systems932
- Shopify Theme Development Guidelines925
- Wordpress922
- Scikit Learn Best Practices917
- Mongodb Development916
- Game Development914
- Pandas Best Practices914
- Astro912
- Bash Scripting906