Agent skill

astral-uv

Fast Python package and project management using Astral's uv. Use when installing packages, managing virtual environments, running Python scripts, or initializing Python projects. Triggers on: pyproject.toml, requirements.txt, Python dependency discussions, virtual environment setup.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/ianphil/my-skills/tree/main/astral-uv

SKILL.md

Astral UV

UV is an extremely fast Python package installer and resolver written in Rust.

Quick Reference

Task Command
Create venv uv venv
Install package uv pip install <pkg>
Add dependency uv add <pkg>
Run script uv run <script.py>
Sync dependencies uv sync
Init project uv init

Project Management

Initialize a new project:

bash
uv init my-project
cd my-project

Add dependencies (updates pyproject.toml automatically):

bash
uv add requests httpx
uv add --dev pytest ruff

Sync environment with lockfile:

bash
uv sync

Running Code

Run scripts without manual venv activation:

bash
uv run python script.py
uv run pytest
uv run ruff check .

Run with inline dependencies:

bash
uv run --with requests script.py

Virtual Environments

bash
uv venv                    # Create .venv
uv venv --python 3.12      # Specific Python version

pip Interface

Drop-in pip replacement (10-100x faster):

bash
uv pip install requests
uv pip install -r requirements.txt
uv pip compile requirements.in -o requirements.txt

Python Version Management

bash
uv python install 3.12     # Install Python version
uv python list             # Show available versions
uv python pin 3.12         # Pin version for project

Best Practices

  1. Prefer uv add over uv pip install for project dependencies
  2. Use uv run instead of activating venvs manually
  3. Commit uv.lock to version control
  4. Use uv sync --frozen in CI for reproducible builds
  5. Add dev dependencies with uv add --dev

Expand your agent's capabilities with these related and highly-rated skills.

ianphil/my-skills

commit

This skill should be used when the user asks to "commit changes", "push my code", "commit and push", "save my work", or wants to stage all changes and push to remote.

0 0
Explore
ianphil/my-skills

prime-feat

This skill should be used when the user asks to "load feature context", "resume feature work", "prime feature N", "continue feature N", or wants to load all planning artifacts for a specific feature number.

0 0
Explore
ianphil/my-skills

implement-agents

This skill should be used when the user asks to "implement in parallel", "run phases concurrently", "parallel implement", "implement-agents phase X phase Y", or wants to orchestrate multiple agents running /implement simultaneously.

0 0
Explore
ianphil/my-skills

code-walkthrough

Generate structured, hallucination-proof code walkthroughs using Showboat. Use when the user asks to "walk me through this code", "explain this codebase", "create a walkthrough", "document how this works", "give me a tour of this repo", or wants a readable narrative document that explains code with real verified snippets. Also triggers on "showboat", "linear walkthrough", or "code documentation". Not for quick code questions — this produces a full markdown document.

0 0
Explore
ianphil/my-skills

ainotes

This skill should be used when the user asks to "consolidate notes", "summarize ainotes", "clean up notes", "ainotes", or wants to consolidate accumulated agent observations into a compact summary.

0 0
Explore
ianphil/my-skills

implement

This skill should be used when the user asks to "implement phase N", "implement task T001", "do TDD for phase", "implement T001-T009", or wants to execute tasks following strict TDD red-green-refactor workflow.

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results