sanand0/scripts/uv-uvx

Claude Code and agent skill by sanand0/scripts

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Tips on using uv and uvx (Python build tools) effectively with GitHub, Torch, etc.

Install

npx vskill@latest install sanand0/scripts/uv-uvx

SKILL.md

Running from GitHub

You can run uvx --from "git+https://github.com/owner/repo.git@main" your-tool directly without cloning a repo.

You can specify a git repo as an inline script dependency directly in a .py file when running with uv

python
# /// script
# dependencies = ["git+https://github.com/owner/repo.git"]
# ///

To import static assets, use data-files to install them into the environment and read them using sys.prefix:

toml
# pyproject.toml
[build-system]
requires = ["setuptools>=69"]
build-backend = "setuptools.build_meta"
[project]
name = "your-project"
version = "0.1.0"
requires-python = ">=3.12"
# exposes the CLI entry point for your tool
[project.scripts]
your-tool = "main:main"
# packages the single root script
[tool.setuptools]
py-modules = ["main"]
# installs static.txt into the environment root
[tool.setuptools.data-files]
"." = ["static.txt"]
python
# main.py
from pathlib import Path
import sys
def main():
path = Path(sys.prefix) / "static.txt"
print(path.read_text())
if __name__ == "__main__":
main()

This is the smallest practical proof of concept, not the most robust packaging pattern. For larger projects, prefer a real package plus importlib.resources.

Tips

  • Adding a [dependency-groups] section to pyproject.toml with dev = ["pytest"] ensures that pytest is automatically installed by uv because `dev` is a default group.
  • uv run --python 3.14 --isolated --with-editable '.[test]' pytest runs pytest on a local project with a specific Python version.
  • uv run supports --extra for extra packages
  • uv run can run _any_ command, not just Python scripts, e.g. uv run npx or uv run bash. It's the same as npx or bash except it activates the venv and loads .env.
  • UV_TORCH_BACKEND=auto uv pip install torch torchvision torchaudio installs the most appropriate PyTorch version.
  • uv supports:
  • pylock.toml, the new lock file standard PEP 0751
  • --env-file multiple times, allowing layered secrets
  • --exclude-newer installs versions before a specific date
  • --overrides overrides versions a package specifies
  • --constraints limits the version of the package

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sanand0/scripts/uv-uvx/badge)](https://verified-skill.com/skills/sanand0/scripts/uv-uvx)

Something wrong with this skill or its page? Tell us.