Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计提醒

uv-priority紫外线优先

Agent Skill

uv-priority 用于辅助 Python 项目开发、测试和数据处理,适合在 OpenClaw 中需要阅读 Python 代码、运行测试或整理脚本流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

19,578

周安装

824

GitHub Stars

公开资料未说明

下载量

6,856
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install uv-priority

简介

优先使用 uv 工具链替代 pip 进行 Python 包管理与脚本执行。

  • 适用于项目依赖安装、测试运行(如 pytest)及 CI/CD 流程优化。
  • 自动拦截 python、dbt 等命令并转发至 uv,提升构建速度与缓存命中率。
  • 安装命令为 openclaw skills install uv-priority,需预先安装 uv 命令行工具。
  • 若环境中存在多个 Python 版本,请确保 uv 路径正确且无冲突。

SKILL.md

name
uv-priority
description
Prioritize uv over pip for all Python package management and execution. When running ANY Python command or CLI tool (python, dbt, pytest, etc.), MUST wrap with uv run.
license
MIT
metadata
always
true
emoji
homepage
https://github.com/marcoracer/uv-priority
os
[darwin, linux, windows]
tags
[python, uv, pip, package-management, dbt]
requires
anyBins
[uv]

UV Priority

CRITICAL: Always Wrap Python Commands with uv or uvx

This is a mandatory skill for all Python-related tasks. When the user mentions Python, dbt, or ANY Python package, you MUST:

  1. NEVER run Python commands directly (python, python3, dbt, pytest, etc.)
  2. ALWAYS wrap them with uv run or uvx
  3. NEVER install packages with pip install
  4. ALWAYS use uv add or uv pip install

uv run vs uvx: When to Use Each

CommandWhen to UseExample
uv run <tool>Ferramenta do projeto - precisa importar seus módulos, usada regularmenteuv run pytest tests/
uvx <tool>Utilitário externo - usa Python como runtime, mas não é parte do seu appuvx ruff check .

Quick Decision Guide

Preciso rodar uma ferramenta Python?
├─ A ferramenta precisa importar meus módulos do projeto?
│  └─ SIM → uv run <comando>
└─ A ferramenta só analisa/transforma código externo?
   └─ SIM → uvx <comando>

Use uvx for External Tools

uvx creates a temporary, isolated environment. Use it for tools that:

  • Analyze code without importing project modules (linters, formatters, type checkers)
  • Are one-off utilities not tied to your project
  • Shouldn't pollute your project's dependencies
uvx ruff check .          # Linter - analisa sintaxe, não importa seus módulos
uvx black .               # Formatter - manipula texto, não importa seus módulos
uvx mypy .                # Type checker - analisa tipos, não precisa rodar seu código
uvx isort .               # Organizador de imports - só lê arquivos
uvx ruff@latest check .   # Use specific version

Use uv run for Project Tools

uv run uses your project's existing virtual environment. Use it for tools that:

  • Need to import your project modules
  • Are part of your development workflow with project dependencies
  • Run tests or your application
uv run pytest tests/      # Test runner - precisa importar seus módulos
uv run python main.py     # Sua aplicação
uv run python -m myapp.cli  # CLI do seu app
uv run dbt run            # dbt com suas transformações do projeto

Rule of Consistency

If the project already uses uv run for a specific tool, continue using it.
  • If you see uv run ruff check . in the project, don't change to uvx
  • If the user specified uv run pytest, maintain the pattern
  • Project consistency takes precedence over the "ideal rule"

Why? Changing from uv run to uvx (or vice-versa) mid-project can:

  • Break scripts/CI that expect the specific command
  • Confuse other developers
  • Create unnecessary inconsistency

Command Translation Rules

NEVER run thisALWAYS run this instead
python script.pyuv run python script.py
python -c "import..."uv run python -c "import..."
python -m moduleuv run python -m module
python3 script.pyuv run python3 script.py
dbt --versionuv run dbt --version
dbt runuv run dbt run
dbt debuguv run dbt debug
dbt depsuv run dbt deps
pytestuv run pytest (imports project modules) or uvx pytest (one-off)
pytest tests/uv run pytest tests/ (imports project modules) or uvx pytest tests/ (one-off)
black .uvx black . (preferred - external tool) or uv run black . (if already in project)
ruff check .uvx ruff check . (preferred - external tool) or uv run ruff check . (if already in project)
mypy .uvx mypy . (preferred - external tool) or uv run mypy . (if already in project)
pip install <package>uv add <package>
pip install -r requirements.txtuv pip install -r requirements.txt
pip listuv pip list
pip freezeuv pip freeze

When to Use

Use when:

  • Installing ANY Python package or dependency (for ANY Python app: web apps, scripts, data processing, dbt, ML, etc.)
  • Setting up Python projects (web apps like Flask/Django/FastAPI, data science, ML, automation, dbt, etc.)
  • Installing dependencies for ANY Python-based application
  • Creating virtual environments
  • Running Python scripts
  • Running tests (pytest, unittest, etc.)
  • Using dbt commands (dbt-core, dbt-snowflake, etc.)
  • ANY task involving Python packages or dependencies

Command Substitutions (MANDATORY)

NEVER use these pip commands. ALWAYS use the uv equivalent:

NEVER use pipALWAYS use uv
pip install <package>uv add <package>
pip install -r requirements.txtuv pip install -r requirements.txt
pip listuv pip list
pip freezeuv pip freeze

Popular Python Tools with CLI

These are commonly installed Python packages that have CLI commands. When installing or running them, always use uv:

ToolInstall with uvRun with uv (project)Run with uvx (external)
dbt (dbt-core)uv add dbt-snowflake (or dbt-postgres)uv run dbt <command>-
pytestuv add pytestuv run pytest (imports project modules)uvx pytest (one-off)
black (formatter)uv add blackuv run black (if in project)uvx black . (preferred)
ruff (linter)uv add ruffuv run ruff (if in project)uvx ruff check . (preferred)
mypy (type checker)uv add mypyuv run mypy (if in project)uvx mypy . (preferred)
flake8 (linter)uv add flake8uv run flake8uvx flake8
pylint (linter)uv add pylintuv run pylintuvx pylint
isort (import sorter)uv add isortuv run isortuvx isort .
poetry (dependency manager)uv add poetryuv run poetryuvx poetry
pipenv (dependency manager)uv add pipenvuv run pipenvuvx pipenv
cookiecutter (project templates)uv add cookiecutteruv run cookiecutteruvx cookiecutter
httpie (HTTP client)uv add httpieuv run httpuvx http
mycli (MySQL CLI)uv add mycliuv run mycliuvx mycli
pgcli (PostgreSQL CLI)uv add pgcliuv run pgcliuvx pgcli

Note: For linters, formatters, and type checkers, uvx is preferred (doesn't pollute project dependencies). For tools that need to import your project modules (like pytest with your app code), use uv run.

Running Any Python Package CLI

For ANY Python package with a CLI command:

# Option 1: Run as external tool (preferred for linters, formatters, one-off tools)
uvx <cli-command>

# Option 2: Install and run within project environment
uv add <package>
uv run <cli-command>

# Option 3: Run with specific version
uvx <package>@version <cli-command>

Environment and Scripts

NEVER use pipALWAYS use uv
python -m venv .venvuv venv
python script.pyuv run script.py
python -m moduleuv run python -m module
python -m pip installuv add
python -m pip listuv pip list

Priority

uv (with uv run or uvx) is the ONLY option for Python package management and execution.

Execution priority:

  1. uv run <command> - for tools that need project dependencies
  2. uvx <command> - for external tools that don't need project modules

Only consider pip as a fallback if:

  1. The user explicitly requests pip
  2. uv is not available on the system
  3. You receive explicit confirmation from the user

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70.26%
按下载量换算4,817

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install uv-priority 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills