using-uv

UV is a fast Python package manager. Two modes:

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "using-uv" with this command: npx skills add lexler/skill-factory/lexler-skill-factory-using-uv

UV

UV is a fast Python package manager. Two modes:

Scripts vs Projects

Use scripts when:

  • Single .py file

  • Quick utility, one-off task

  • No shared dependencies across files

Use projects when:

  • Multiple files, modules, or packages

  • Team collaboration

  • Need reproducible environments

  • Building a library or application

Scripts

Standalone Python files with inline dependencies (PEP 723).

#!/usr/bin/env -S uv run --script

/// script

requires-python = ">=3.12"

dependencies = ["requests", "rich"]

///

import requests from rich import print

Run: uv run script.py

See references/scripts.md for full guide.

Projects

Structured Python with pyproject.toml and lockfile.

uv init myproject cd myproject uv add requests uv run python main.py

Key files:

  • pyproject.toml

  • metadata and dependencies

  • uv.lock

  • exact versions for reproducibility

  • .python-version

  • Python version

See references/projects.md for full guide.

Common Patterns

uv run pytest # Run in project env uv add --dev pytest # Dev dependency uvx ruff check . # One-off tool execution uv run --with rich script.py # Script with ad-hoc dep

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

hexagonal-architecture

No summary provided by upstream source.

Repository SourceNeeds Review
General

ai-patterns

No summary provided by upstream source.

Repository SourceNeeds Review
General

nullables

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-worktrees

No summary provided by upstream source.

Repository SourceNeeds Review