Token导航 LogoToken导航

Agent Skill · 开发

uv(紫外线)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

uv 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 18,808。

总安装 315周安装 13GitHub Stars 19下载 103核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:uv(紫外线)
来源仓库:https://github.com/untitled-data-company/data-skills
仓库路径:skills/uv
安装命令:
npx skills add https://github.com/untitled-data-company/data-skills --skill uv
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/untitled-data-company/data-skills --skill uv

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实。涉及敏感数据或导出文件时,应先确认权限和脱敏边界。

uv 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/uv

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/untitled-data-company/data-skills --skill uv;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

uv 怎么安装?

在终端执行 npx skills add https://github.com/untitled-data-company/data-skills --skill uv。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

uv 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

uv 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

uv 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

uv 用的人多吗?

公开数据是累计安装 315 次,近一周安装 13 次,下载 103 次,GitHub 19 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

uv 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
uv

紫外线 · 本页

31519需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

uv Package Manager

Prefer uv over pip/poetry for Python dependency and project management. Use the workflow below and choose the right mode (project, script, or tool).

Mode Decision

User needs to...
│
├─ Repo uses poetry / pipenv / conda (poetry.lock, Pipfile, environment.yml)
│  → Ask: "This repo uses [poetry/pipenv/conda]. Do you want to switch to uv?"
│  → If yes: prefer the migrate-to-uv tool (uvx migrate-to-uv in project root) to convert metadata and lockfile; then uv sync. Remove legacy files only after user confirms.
│  → If no: do not use uv for project management; use the existing tool or uv pip only if appropriate.
│
├─ Repo has requirements.txt (no pyproject.toml)
│  → Ask: "This repo uses requirements.txt. Do you want to convert to uv (pyproject.toml + uv.lock)?"
│  → If yes: guide conversion (uv init, uv add from requirements, then uv sync)
│  → If no: use Pip-Compatible workflow (uv pip)
│
├─ Manage a project (pyproject.toml, lockfile, team repo)
│  → Use PROJECT workflow (uv init, uv add, uv sync, uv run)
│
├─ Run a single script with dependencies
│  → Use SCRIPT workflow (uv add --script, uv run <script>)
│
├─ Run a one-off CLI tool (no project)
│  → Use uvx: uvx <package> [args] or uv tool install <package>
│
└─ User declined conversion; existing pip/requirements workflow
   → Use uv pip (uv venv, uv pip sync, uv pip compile)

Project Workflow

Use for apps, libraries, or any repo with pyproject.toml.

New project

uv init [project-name]
cd [project-name]
uv add <package> [package2...]
uv sync
uv run python main.py
# or: uv run <any command>

Existing project (already has pyproject.toml)

uv sync                    # install from lockfile (or resolve and lock)
uv add <package>           # add dependency, update lockfile and env
uv remove <package>       # remove dependency
uv run <command>          # run in project venv (creates .venv if needed)
uv lock                   # refresh lockfile only

Pin Python version (optional)

uv python pin 3.11        # writes .python-version
uv python install 3.11    # ensure that version is available

Rules:

  • Use uv add for project dependencies; avoid editing pyproject.toml by hand for deps when uv can do it.
  • After changing dependencies, run uv sync (or rely on uv add/uv remove which update the env).
  • Run project commands via uv run so the correct venv and env are used; do not assume pip install or manual activate.
  • When creating a new project, ensure .venv is in .gitignore (uv init usually adds it; add it if missing).
  • Treat uv.lock as a mandatory source-controlled artifact: commit it so all environments and CI use the same dependency versions; the lockfile is universal (one file for Windows, macOS, Linux).

Script Workflow

For a single Python file that needs packages (no full project).

  1. Add inline script metadata (or use uv add --script to add deps to the file):
# /// script
# requires-python = ">=3.10"
# dependencies = ["requests"]
# ///
import requests
print(requests.get("https://example.com"))
  1. Add deps from CLI (updates the script file):
uv add --script example.py requests
  1. Run with uv (creates an ephemeral env if needed):
uv run example.py

For executable scripts that run without typing uv run, use a shebang (PEP 723):

#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = ["requests"]
# ///

Rules:

  • Use uv add --script <file> to declare dependencies for that script.
  • Use uv run <script>.py to run it; do not tell the user to pip install first.
  • For portability, scripts can use shebang #!/usr/bin/env -S uv run --script.

Tools (one-off CLI from PyPI)

Run without installing globally:

uvx <package> [args]
# e.g. uvx ruff check .
# e.g. uvx pycowsay "hello"

Install the tool for repeated use:

uv tool install <package>
# e.g. uv tool install ruff

Rules:

  • Prefer uvx for one-off runs; use uv tool install when the user will call the tool often.

Repos Using requirements.txt

When the repo has requirements.txt (and no pyproject.toml):

  1. Ask the user: "This repo uses requirements.txt. Do you want to convert to uv (pyproject.toml + uv.lock)?"
  2. If yes: Guide conversion: uv init, then uv add -r requirements.txt (or, if you have requirements.in and locked requirements.txt, uv add -r requirements.in -c requirements.txt to preserve versions), then uv sync. Optionally remove or keep requirements.txt per user preference.
  3. If no: Use the Pip-Compatible workflow below (no conversion).

Do not convert to uv without asking when the repo currently uses only requirements.txt.

Pip-Compatible Workflow

For repos that still use requirements.txt or pip (and user did not want conversion):

uv venv                           # create .venv
uv pip sync requirements.txt      # install from locked requirements
uv pip compile requirements.in -o requirements.txt  # compile/lock

Use uv pip instead of pip for the same commands when you want speed and better resolution.

CI and Docker

When the user asks about uv in CI (e.g. GitHub Actions) or uv in Docker, advise using the patterns below and point to references/docker-and-ci.md for full detail.

CI (e.g. GitHub Actions):

  • Install uv with the official astral-sh/setup-uv action; use cache keyed by uv.lock and pyproject.toml.
  • Run uv sync --locked so the job fails if the lockfile is out of sync (no silent deploy of untested deps).
  • Optionally run uv cache prune --ci at end of job to keep cache lean.

Docker:

  • Use a multi-stage build: builder stage with ghcr.io/astral-sh/uv, copy only uv.lock and pyproject.toml first, run uv sync (or equivalent), then copy .venv and app code into a slim runtime image (no uv/Rust in final image).
  • Set UV_COMPILE_BYTECODE=1 and UV_LINK_MODE=copy in the build stage; use --no-editable when syncing so the final image doesn’t depend on source.
  • Run the container as a non-root user when possible.

For step-by-step Dockerfiles and CI workflow examples, see references/docker-and-ci.md.

IDE Setup (Use uv.venv)

After uv creates or uses a project .venv, automatically try to configure the IDE to use that interpreter so run/debug and IntelliSense use the same environment.

  1. Target: Workspace settings (project-scoped, shareable): .vscode/settings.json
  2. Setting: python.defaultInterpreterPath pointing at the project’s .venv:

- Linux/macOS: "${workspaceFolder}/.venv/bin/python" - Windows: "${workspaceFolder}/.venv/Scripts/python.exe"

  1. Behavior: If .vscode/settings.json exists, read it, add or update only python.defaultInterpreterPath, then write back. If it doesn’t exist, create .vscode/ and the file with this setting. Preserve all other keys.
  2. When: After uv init, uv sync, or conversion from requirements.txt that creates/updates .venv.

Rules:

  • Use workspace settings (.vscode/settings.json), not user settings, so the choice is per-project and can be committed.
  • Do not overwrite or remove other settings in the file.
  • If the workspace already has a Python interpreter selected, still add/update this key so the project’s .venv is the default.

Automation and Agent Behavior

  1. New Python project: Run uv init (or uv init <name>), then uv add for initial deps, then uv sync. Suggest uv run for run/test commands.
  2. Add dependency: Use uv add <package>. For dev/optional: uv add --dev <package>.
  3. Run something: Use uv run <command> in a project; uv run script.py for scripts; uvx <tool> for one-off tools.
  4. No manual venv activate: Prefer uv run so the agent and user don’t depend on source.venv/bin/activate.
  5. Lockfile: Commit uv.lock; treat it as mandatory for parity. After pull or after editing deps, run uv sync. In CI, use uv sync --locked so the job fails if the lockfile is out of sync with pyproject.toml.
  6. Detecting uv: If pyproject.toml exists and there is no poetry/pipenv/conda (no poetry.lock, Pipfile, environment.yml), assume uv is allowed and suggest uv commands. If the user said "use uv", always prefer uv over pip/poetry. If poetry/pipenv/conda is present, ask before switching to uv (see Mode Decision).
  7. requirements.txt only: If the repo has requirements.txt but no pyproject.toml, ask whether the user wants to convert to uv before converting or using uv pip.
  8. IDE interpreter: After uv creates or syncs .venv, try to set the workspace Python interpreter by adding or updating python.defaultInterpreterPath in .vscode/settings.json (see IDE Setup above).

Common Commands Reference

TaskCommand
New projectuv init [name]
Add dependencyuv add <pkg>
Add dev dependencyuv add --dev <pkg>
Remove dependencyuv remove <pkg>
Install from lockuv sync
Update lockfileuv lock
Run in projectuv run <cmd>
Run scriptuv run script.py
Run CLI tool onceuvx <pkg> [args]
Install tooluv tool install <pkg>
Create venvuv venv
Pin Pythonuv python pin 3.11
Install Pythonuv python install 3.11

Additional Resources

平台分布

Codex

38.21%
按下载量换算39

Claude

31.88%
按下载量换算33

Cursor

17.93%
按下载量换算18

Gemini CLI

9.81%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills