uv-priority for Openclaw

A mandatory skill for AI agents that replaces traditional pip and python commands with the high-performance uv package manager.

marcoracer
v1.2.0
Feb 25, 2026
0
1.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install uv-priority

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install uv-priority using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is uv-priority?

uv-priority is a robust skill designed to modernize Python development by enforcing the use of uv, the extremely fast Python package and toolchain manager. This skill ensures that AI coding agents never default to slower legacy tools like pip or direct python execution. Instead, it mandates a workflow where every action is wrapped in uv run or uvx, providing developers with instant environment setup and lightning-fast dependency resolution.

By integrating this into Openclaw Skills, developers can maintain cleaner projects where external tools like linters are isolated from project dependencies, and internal tools run with the exact context required. This approach reduces environment-related errors and significantly speeds up CI/CD pipelines and local development cycles.

uv-priority Use Cases

  • Transitioning legacy projects from pip and requirements.txt to uv-based management
  • Running dbt models and tests with guaranteed environment consistency
  • Executing code quality tools like ruff and black without manual environment activation
  • Developing microservices with FastAPI or Flask using isolated virtual environments
  • Standardizing Python execution across a team of developers using Openclaw Skills

How uv-priority Works

  1. Detects any Python-related intent, such as installing a package or running a script.
  2. Evaluates the context to decide between uv run (for project-dependent code) and uvx (for isolated tools).
  3. Substitutes legacy commands like python script.py with the optimized uv run python script.py.
  4. Manages the underlying virtual environment automatically, creating or updating it as dependencies change.
  5. Enforces consistency by checking if the project already uses specific uv patterns.

uv-priority Setup

To use this skill, ensure uv is installed and accessible in your system PATH.

# Universal installation of uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Verify installation
uv --version

Once uv is installed, the uv-priority logic within Openclaw Skills will handle the command wrapping and dependency management automatically.

uv-priority Data Schema & Taxonomy

The skill interacts with and generates the following data structures:

Component Format Purpose
Dependency Manifest pyproject.toml Defines project requirements and tool configurations.
Lockfile uv.lock Provides a deterministic, content-addressed record of all dependencies.
Environment .venv/ A standard virtual environment directory optimized for uv usage.
CLI Commands String Dynamically generated commands wrapping existing logic in uv or uvx.

uv-priority Advanced Features

  • Intelligent selection between uv run and uvx based on module import requirements
  • Support for specific tool versions using the package@version syntax
  • Project consistency enforcement that respects existing uv patterns over defaults
  • Seamless handling of requirements.txt for backwards compatibility via uv pip
  • Integration with complex Python stacks including dbt, pytest, and various linters within Openclaw Skills

SKILL.md


Loading

Related Openclaw Skills

Featured*