dependency-skill

maneeshanif's avatarfrom maneeshanif

Manage Python dependencies using uv package manager. Use when installing, adding, removing, or updating packages. Always prefer uv over pip.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 7, 2025

When & Why to Use This Skill

This Claude skill provides a comprehensive interface for managing Python dependencies using the high-performance uv package manager. It streamlines project initialization, package installation, and environment synchronization, offering a faster and more reliable alternative to traditional pip workflows to ensure reproducible builds and optimized development environments.

Use Cases

  • Project Initialization: Quickly set up new Python projects with standardized configurations and automated dependency tracking using 'uv init'.
  • Dependency Management: Efficiently add, remove, or update production and development libraries with lightning-fast resolution speeds compared to standard tools.
  • Environment Synchronization: Ensure consistent development environments across different machines by syncing installations directly from the uv.lock file.
  • Isolated Script Execution: Run Python modules and testing suites like pytest within managed environments to prevent version conflicts and dependency hell.
  • Automated Upgrades: Maintain project security and performance by easily upgrading all dependencies to their latest compatible versions with a single command.
namedependency-skill
descriptionManage Python dependencies using uv package manager. Use when installing, adding, removing, or updating packages. Always prefer uv over pip.
allowed-toolsBash, Read

Dependency Skill

Purpose

Manage Python dependencies efficiently using the uv package manager.

Instructions

Initialize a new project

uv init

Add production dependencies

uv add typer rich textual pydantic tinydb questionary pyfiglet python-dateutil

Add development dependencies

uv add --dev pytest pytest-cov black ruff mypy

Sync dependencies (install from lock file)

uv sync

Run scripts

uv run python -m package_name.main
uv run pytest

Update dependencies

uv lock --upgrade
uv sync

Remove a dependency

uv remove package-name

Common Dependency Sets

Todo App Dependencies

# Core
uv add typer rich textual pydantic tinydb questionary pyfiglet python-dateutil

# Development
uv add --dev pytest pytest-cov black ruff

Web App Dependencies

uv add fastapi uvicorn sqlmodel httpx

Examples

Full project setup

# Initialize
uv init

# Add all dependencies at once
uv add typer[all] rich textual pydantic tinydb questionary pyfiglet python-dateutil

# Add dev dependencies
uv add --dev pytest pytest-cov

# Sync to install
uv sync

# Verify installation
uv run python -c "import rich; print(rich.__version__)"

Best Practices

  • Always use uv instead of pip for modern Python projects
  • Lock dependencies with uv.lock for reproducibility
  • Separate dev dependencies from production
  • Run commands with uv run to ensure correct environment
  • Update dependencies regularly with uv lock --upgrade