uv-priority
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.
Why use this skill?
Optimize Python project workflows with the uv-priority skill for OpenClaw. Ensure faster, safer dependency management and command execution using uv and uvx.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/marcoracer/uv-priorityWhat This Skill Does
The uv-priority skill is an essential infrastructure utility for OpenClaw that enforces the use of the uv Python package manager and runner. By overriding default Python execution behavior, it ensures that every Python-related task, command, or script execution happens within the correct, isolated environment. It effectively replaces outdated workflows involving pip, python, and python3 with high-performance, deterministic uv commands, significantly reducing dependency conflicts and environment issues.
Installation
To integrate this skill into your environment, use the following command:
clawhub install openclaw/skills/skills/marcoracer/uv-priority
Once installed, OpenClaw will automatically prioritize uv for all environment-related operations.
Use Cases
- Project Development: Automatically executes testing suites, linting tools, and build scripts using
uv run, ensuring that the local project virtual environment is strictly respected. - Dependency Management: Replaces dangerous
pip installcommands withuv addto ensure the project lockfile is always up to date and consistent. - Quick Tooling: Utilizes
uvxfor the rapid, ephemeral execution of development utilities (like formatters or security scanners) without modifying local project dependencies. - CI/CD Workflows: Streamlines local automated tasks by maintaining a single, unified interface for package management and script execution.
Example Prompts
- "Run the test suite for this project using pytest and make sure the environment is correct."
- "I need to lint the code using ruff; can you run that for me?"
- "Add the requests library to my current project dependencies using uv."
Tips & Limitations
- Rule of Thumb: Always ask yourself if the tool you are running is part of the project's dependency tree. If it is (e.g., pytest), use
uv run. If it is an external utility you need just once (e.g., a specific linter version), useuvx. - Performance:
uvis significantly faster than standardpiporvenvcreation. You will notice faster startup times when switching between tasks. - Limitations: This skill assumes the project has a valid
pyproject.tomlfile. If no project environment is detected,uv runmay default to the system Python or prompt for initialization. Always ensure you are in the correct directory before triggering commands.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-marcoracer-uv-priority": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution