All skills
lexler avatar

/using-uv

@83aee6a
by Lada Kesselerlexler/skill-factory238 stars
61

Python package and project management with UV. Use when creating Python scripts, initializing projects, or managing dependencies.

Use this Skill: https://skilld.dev/gh/lexler/skill-factory/using-uv

This session only. Nothing lands on disk.

SKILL.md

≈35 tokens always: the name and description. ≈325 when used: this file. ≈1.6k more on demand in 2 files.

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: SKILL.md on GitHub

1 warning6d4 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill provides comprehensive instructions and reference material for using the UV Python package manager. It teaches the agent how to initialize projects, manage dependencies, and execute scripts. While these capabilities allow the agent to download and run code, they are presented as standard tool usage patterns for Python development.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

Signed by skilld at 83aee6a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 8 months ago

README badge

README badge for lexler/skill-factory/using-uv