Skip to content
Skills Library
Programming · Learning & explanation

uv-package-manager

/uv-package-manager

Comprehensive uv workflows for Python 3.14 — virtual environments, lockfiles, Python version pinning, monorepo workspaces, Docker integration, CI/CD caching, and migration from pip/Poetry/pip-tools. Use when working with uv beyond basic uv add/uv init.

Licence
MIT
Last repository change
30.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Comprehensive uv workflows for Python 3.14 — virtual environments, lockfiles, Python version pinning, monorepo workspaces, Docker integration, CI/CD caching, and migration from pip/Poetry/pip-tools. Use when working with uv beyond basic uv add/uv init.

Original author description

Comprehensive uv workflows for Python 3.14 — virtual environments, lockfiles, Python version pinning, monorepo workspaces, Docker integration, CI/CD caching, and migration from pip/Poetry/pip-tools. Use when working with uv beyond basic uv add/uv init.

How it works

  1. Iron Law
  2. When to Use
  3. Quick Reference
  4. Reference File
  5. Key Patterns Summary
  6. Docker Pattern (summary — full pattern in playbook)
  7. CI Pattern (summary — full pattern in playbook)
Original SKILL.md headings · 88 lines, 455 words
SKILL.md preview
---
name: uv-package-manager
description: Comprehensive uv workflows for Python 3.14 — virtual environments, lockfiles, Python version pinning, monorepo workspaces, Docker integration, CI/CD caching, and migration from pip/Poetry/pip-tools. Use when working with uv beyond basic uv add/uv init.
allowed-tools: Read, Write, Edit, Bash
metadata:
  triggers: uv package manager, uv lock, uv sync, uv python, uv workspace, uv Docker, uv CI, uv cache, migrate from pip to uv, migrate from poetry to uv, uv monorepo, uv lockfile, uv run
  related-skills: python-dev, python-packaging, docker
  domain: backend
  role: specialist
  scope: tooling
  output-format: code
last-reviewed: "2026-03-14"
---

## Iron Law

**ALWAYS USE `uv sync --frozen` IN CI AND DOCKER — never `uv sync` without --frozen in reproducible environments; without it, dependency resolution runs fresh and can pick up different versions**

# uv Package Manager

Deep reference for uv — the ultra-fast Python package manager written in Rust. The workspace uses uv as its primary Python package manager. This skill covers everything beyond the 4 basic commands in `python-dev`.

## When to Use

Load this skill when:
- Setting up lockfile workflows (`uv lock`, `uv sync --frozen`)
- Managing Python version pinning (`uv python pin 3.14`)
- Configuring Docker builds with uv cache mounts
- Setting up GitHub Actions CI with uv dependency caching
- Working in a monorepo with multiple Python packages
- Migrating an existing project from pip, Poetry, or pip-tools
- Using `uv run` to execute scripts without environment activation

The `python-dev` skill covers: `uv init`, `uv add`, basic virtual environment setup. Load THIS skill for everything beyond that.

## Quick Reference

| Task | Command |
|------|---------|
| Create lockfile | `uv lock` |
| Install from lockfile (CI) | `uv sync --frozen` |
| Pin Python version | `uv python pin 3.14` |
| Run without activating | `uv run python script.py` |
| Run tests | `uv run pytest` |
| Upgrade all deps | `uv lock --upgrade` |
| Check outdated | `uv tree --outdated` |
| Remove package | `uv remove <pkg>` |

## Reference File

Load `resources/implementation-playbook.md` for:
- 22 patterns covering all uv workflows
- Virtual environment management (create, activate, uv run)
- Python version management
- Lockfile workflows for reproducible builds
- Monorepo workspace configuration
- Docker multi-stage builds with uv cache mounts
- GitHub Actions CI with uv caching
- Migration guides from pip, Poetry, pip-tools (command-by-command)
- Performance optimization (global cache, parallel install, offline mode)
- Pre-commit hooks and VS Code integration

## Key Patterns Summary

```bash
# New project (from python-dev)
uv init my-service && cd my-service
uv add fastapi uvicorn pydantic pydantic-settings
uv add --dev pytest pytest-asyncio httpx ruff mypy

# Lockfile (add to CI and Docker)
uv lock                          # Generate/update uv.lock
uv sync --frozen                 # Install exact versions from lock

# Python version
uv python pin 3.14               # Write .python-version file
uv python install 3.14           # Install that version

# Run without activating venv
uv run pytest                    # Run pytest
uv run uvicorn src.main:app      # Run server
```

## Docker Pattern (summary — full pattern in playbook)

```dockerfile
FROM python:3.14-slim AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN --mount=type=cache,target=/root/.cache/uv \
    uv sync --frozen --no-dev
```

## CI Pattern (summary — full pattern in playbook)

```yaml
- uses: astral-sh/setup-uv@v4
  with:
    enable-cache: true
- run: uv sync --frozen
```
Files in this package (2)
  • SKILL.md 4 KB
  • resources/implementation-playbook.md 16 KB

Versions

RepositoryScoreLicence
This page · kumaran-is/claude-code-onboarding100MIT
rootcastleco/rei-skills100MIT
rmyndharis/antigravity-skills100MIT
wshobson/agents100MIT
AutumnsGrove/Lattice100AGPL-3.0

Database snapshot: 13.11.2026 · package version 2851c3f760cb (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pip
    Expert Python pip package manager assistance covering requirements.txt, wheels, virtual environments, constraints, and pip-tools. Use when installing, locking, and managing Python dependencies.
  • 100uv
    Installs Python packages, creates virtual environments, locks dependencies and manages Python versions with one fast command-line tool that replaces pip, pip-tools, pipx, poetry, pyenv and virtualenv. Use when a user asks to set up a Python project, add or upgrade a dependency,…
  • 100configure-package-management
    Package managers: uv (Python), bun (TypeScript). Use when setting up uv or bun, migrating from pip/npm/yarn/poetry/pipenv, or resolving lockfile conflicts.
  • 100uv-workspaces
    Manage multi-package Python projects with uv workspaces. Use when the user mentions uv workspaces, Python monorepo, shared lockfiles, or member dependencies.
  • 100poetry
    Manage Python projects with Poetry. Use when a user asks to manage Python dependencies, create virtual environments, publish packages to PyPI, handle dependency resolution, or set up a Python project structure.
  • 100modern-python
    Configures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry/mypy/black.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.