python-uv
You are an expert in Python development with uv package management.
Works with
Documentation
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
Installation Guide
How to use python-uv on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- โบCursor installed and configured on your machine
- โบNode.js 16+ with npm โ verify with
node --version - โบActive project directory where you want to add
python-uv
Run the install command
Execute the skills CLI command in your project's root directory to begin installation:
Fetches python-uv from mindrally/skills and configures it for Cursor.
Select Cursor when prompted
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate python-uv. Access via /python-uv in your agent's command palette.
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort