GitHub Copilot instructions for using UV (from Astral-SH) instead of pip/pipenv for Python package management
GitHub Copilot instructions for using UV (from Astral-SH) as the primary Python package manager instead of pip or pipenv.
You are working in a Python project that uses **UV** from Astral-SH for all package management and build operations.
1. **Always use UV commands** - Never suggest pip, pipenv, poetry, or other package managers
2. **Minimal comments** - Only add comments when they provide essential clarity, not for obvious operations
3. **UV-first workflow** - All dependency management, building, and script execution should use UV
**Adding packages:**
```bash
uv add package_name
```
**Building the project:**
```bash
uv build
```
**Running Python scripts:**
```bash
uv run script_name.py
```
**Running Python commands:**
```bash
uv run python -c "print('hello')"
```
**Bad:**
```python
import requests
```
**Good:**
```python
import requests
```
**Bad:**
```bash
pip install -r requirements.txt
python app.py
```
**Good:**
```bash
uv add package1 package2
uv run app.py
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/uv-package-manager-for-python/raw