تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

uv-priority

بواسطة marcoracer

Health & Fitness
406التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Prioritize uv over pip for all Python package management and execution.

الوصف

ما الذي تفعله هذه المهارة

A skill that enforces uv as the sole Python package manager and command runner. It replaces pip, python, and CLI tool invocations with uv equivalents, distinguishing between uv run for project-integrated tools and uvx for isolated external utilities.

uv is significantly faster than pip and handles virtual environments, dependency resolution, and script execution in a single tool without requiring manual venv activation.

متى تستخدمها

  • Running pytest without activating a virtualenv manually
  • Installing a dbt adapter without using pip
  • Linting code with ruff in a temporary isolated environment
  • Setting up a new Python project with uv venv instead of venv
  • Replacing a requirements.txt install step in a dev workflow

مثال على سير العمل

الإدخال

User asks: run my tests and check code style

الوكيل
  1. 1

    Identify pytest as a project tool that imports application modules

  2. 2

    Run tests with uv run pytest tests/

  3. 3

    Identify ruff as an external linter that does not need project modules

  4. 4

    Run linter with uvx ruff check .

  5. 5

    Report results to user

الإخراج

Test results from uv run pytest and lint output from uvx ruff check, both executed without direct python or pip invocations

المتطلبات

  • uv binary installed on the system

التثبيت

clawhub install marcoracer/uv-priority

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط