writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
uv-package-managerComprehensive 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.
Independent GitHub snapshot · Automated classification · Original documentation governs
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
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.
Load this skill when:
uv lock, uv sync --frozen)uv python pin 3.14)uv run to execute scripts without environment activationThe python-dev skill covers: uv init, uv add, basic virtual environment setup. Load THIS skill for everything beyond that.
| 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> |
Load resources/implementation-playbook.md for:
# 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
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
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- run: uv sync --frozen