Claude-skill-registry astral-uv
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/astral-uv" ~/.claude/skills/majiayu000-claude-skill-registry-astral-uv && rm -rf "$T"
manifest:
skills/data/astral-uv/SKILL.mdsource content
Astral UV
UV is an extremely fast Python package installer and resolver written in Rust.
Quick Reference
| Task | Command |
|---|---|
| Create venv | |
| Install package | |
| Add dependency | |
| Run script | |
| Sync dependencies | |
| Init project | |
Project Management
Initialize a new project:
uv init my-project cd my-project
Add dependencies (updates pyproject.toml automatically):
uv add requests httpx uv add --dev pytest ruff
Sync environment with lockfile:
uv sync
Running Code
Run scripts without manual venv activation:
uv run python script.py uv run pytest uv run ruff check .
Run with inline dependencies:
uv run --with requests script.py
Virtual Environments
uv venv # Create .venv uv venv --python 3.12 # Specific Python version
pip Interface
Drop-in pip replacement (10-100x faster):
uv pip install requests uv pip install -r requirements.txt uv pip compile requirements.in -o requirements.txt
Python Version Management
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
- Prefer
overuv add
for project dependenciesuv pip install - Use
instead of activating venvs manuallyuv run - Commit
to version controluv.lock - Use
in CI for reproducible buildsuv sync --frozen - Add dev dependencies with
uv add --dev