Skip to main content

uv-global

Provision and use a global uv environment for ad hoc Python scripts.

소스 정보

저장소
Kernel8901/ai-agent-skills-classification
최근 소스 활동
2026년 4월 4일 15:26
감지된 SKILL.md 언어
영어
스타
6
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
uv-global
description
Provision and use a global uv environment for ad hoc Python scripts.
metadata
{"openclaw":{"always":true,"emoji":"🦞","homepage":"https://github.com/guoqiao/skills/blob/main/uv-global/uv-global/SKILL.md","os":["darwin","linux"],"tags":["python","uv","global","venv"],"requires":{"anyBins":"[Truncated]"}}}
# UV Global Create and reuse a global `uv` environment at `~/.uv-global` so you can install Python dependencies for quick, ad hoc scripts without polluting the system interpreter. Lightning-fast setup that keeps one shared virtual environment ready for temporary tasks. Use this skill when the user needs Python packages (data processing, scraping, etc.) that are not preinstalled and a full project-specific environment would be overkill. Skip this if the user explicitly wants system Python or a project-local venv. ## Requirements `uv` available. If missing, you need either `brew` (macOS) or `curl` to install it. ## Installation ```bash bash ${baseDir}/uv-global.sh ``` The script will: - install `uv` via `brew` (macOS/Linux) or the official `curl` installer if `uv` is absent - create a global uv project at `~/.uv-global` - create a virtual environment with common packages in `~/.uv-global/.venv` Optionally prepend the venv bin to your `PATH` so `python` defaults to the global env: ``` export PATH=~/.uv-global/.venv/bin:$PATH ``` ## Usage For any quick Python script that needs extra dependencies: ```bash # install required packages into the global env uv --project ~/.uv-global add <pkg0> <pkg1> ... # write your code touch script.py # run your script using the global env uv --project ~/.uv-global run script.py ``` Tips: - Keep scripts anywhere; the `--project ~/.uv-global` flag ensures they run with the global env. - Inspect installed packages with `uv --project ~/.uv-global pip list`. - If a task grows into a real project, switch to a project-local venv instead of this global one.
GitHub에서 보기