Standardize Python development using UV - a fast, unified package and project manager. Use when creating Python projects, managing dependencies, setting up virtual environments, installing Python versions, or optimizing Python workflows. Replaces pip, virtualenv, pyenv, poetry, and pipx with a single 10-100x faster tool.
View on GitHubrobanderson/claude-my-skills
uv-python-manager
uv-python-manager/skills/uv-python-manager/SKILL.md
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/robanderson/claude-my-skills/blob/main/uv-python-manager/skills/uv-python-manager/SKILL.md -a claude-code --skill uv-python-managerInstallation paths:
.claude/skills/uv-python-manager/# uv-python-manager UV is the modern standard for Python package and project management in 2025, delivering 10-100x speed improvements while unifying pip, virtualenv, pyenv, poetry, and pipx into a single Rust-based tool. ## When to Use This Skill Use this skill when: - Creating new Python projects - Managing dependencies and lockfiles - Setting up virtual environments - Installing or switching Python versions - Building or publishing packages - Optimizing CI/CD pipelines - Migrating from pip, poetry, or other tools - Creating portable Python scripts - Working with Docker containers ## Core Principles 1. **Project-first workflow**: Use `uv init` and `uv add` instead of manual configuration 2. **Lock file discipline**: Always commit `uv.lock` for reproducibility 3. **Universal execution**: Use `uv run` instead of manual environment activation 4. **Version pinning**: Use `.python-version` for team consistency 5. **Fast by default**: Leverage caching and parallel operations (8-100x faster than pip) ## Quick Start ### Installing UV ```bash # macOS/Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows PowerShell powershell -c "irm https://astral.sh/uv/install.ps1 | iex" # Update UV uv self update ``` ### Creating a New Project ```bash # Initialize project (creates pyproject.toml, .python-version, .gitignore) uv init my-project cd my-project # Add dependencies uv add requests fastapi pandas # Add development dependencies uv add --dev pytest ruff mypy # Add to custom groups uv add --group docs sphinx uv add --group test pytest-cov # Run code (auto-syncs environment) uv run python main.py uv run pytest ``` ## Essential Commands Reference ### Project Lifecycle ```bash uv init [name] # Create new project with structure uv add <package> # Add dependency (updates pyproject.toml + uv.lock) uv add --dev <package> # Add development dependency uv add --group <name> <pkg> # Add to custom dependency group uv remove <package>