Agent skill
uv
how to run python files and mangage dependencies using UV package manager (pip replacement)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/uv-yonichechik-claude-code-config
SKILL.md
You are working with a Python project that uses UV package manager. UV is a fast package manager serving as a drop-in replacement for pip, pip-tools, and virtualenv.
Core Commands
Project Setup
uv sync # Install all default AND dev dependencies from pyproject.toml
Running Commands
uv run python script.py # Run Python with project dependencies
Adding Dependencies
uv add package-name # Add to [project.dependencies]
uv add --dev package-name # Add to [dependency-groups.dev]
CRITICAL: Anti-Patterns
NEVER use bare python
# FORBIDDEN:
python ...
python3 ...
INSTEAD: Always use uv run python ...
NEVER use pip
# FORBIDDEN:
uv pip ...
pip ...
python -m pip ...
uv run python -m pip ...
INSTEAD: Use uv add and uv sync
Instructions
When working with Python files in this project:
- Always use
uv run pythoninstead of barepythoncommands - Install dependencies with
uv add, never withpip - Sync dependencies with
uv syncafter modifying pyproject.toml - Run scripts and tools through
uv runto ensure correct environment
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?