/py-pit:uvfrom py-pit
Provides expert guidance for correct uv usage in Python projects, covering dependency management, environments, command execution, migration from pip/poetry/pip-tools, lockfile correctness, and uv anti-patterns.
Ships in py-pit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when working with Python projects that use or should use uv.
This skill ensures instructions follow uv-native workflows and avoids common mistakes when mixing Python packaging tools.
Apply this skill when the user:
uvDo not apply when:
Prefer this skill when the user:
uvpyproject.toml, uv.lock, or requirements.txtDo not prefer this skill when:
In a uv-managed workflow, never default to:
pip install ...python -m venv ...source .venv/bin/activatepoetry add ...poetry run ...uv pip install ... as the standard dependency workflowOnly use or mention those when the user explicitly asks for them, or when explaining migration/interoperability constraints.
If the repository already mixes workflows, call that out explicitly and recommend a single consistent path.
Provide correct, minimal uv-native workflows.
The skill should:
Do not recommend unrelated packages, frameworks, or project architecture.
uv is project-centric.
Projects are defined by:
pyproject.tomluv.lockWorkflows revolve around:
uv manages environments automatically.
Manual environment management should not be the default workflow.
Always follow these rules.
Correct:
uv add <package>
uv remove <package>
Avoid:
pip install <package>
uv pip install <package>
unless the user explicitly asks for pip compatibility.
Correct:
uv run pytest
uv run python script.py
uv run python -m module
Avoid defaulting to:
pytest
python script.py
when the project is uv-managed.
Do not center workflows around:
python -m venv
source .venv/bin/activate
Activation may exist but is not required for normal workflows.
Prefer execution through uv run.
Ephemeral execution:
uvx <tool>
Persistent installation:
uv tool install <tool>
Avoid recommending:
pip install <tool>
for global CLI usage.
Avoid mixing uv with:
If a repo mixes systems, identify it and recommend one consistent workflow.
Check for:
pyproject.tomluv.lockrequirements.txtDetect if the project is:
Identify the task category:
Return:
Do not redesign the repository unless requested.
Add dependencies:
uv add <package>
Remove dependencies:
uv remove <package>
Import existing dependency lists:
uv add -r requirements.txt
Do not recommend manual editing of dependency lists unless explicitly requested.
Generate/update lockfile:
uv lock
Synchronize environment:
uv sync
Most normal workflows do not require manual sync commands.
Run commands inside the project environment using:
uv run <command>
Examples:
uv run pytest
uv run python script.py
uv run python -m module
Install Python:
uv python install <version>
Pin project Python version:
uv python pin <version>
Temporary execution:
uvx <tool>
Persistent installation:
uv tool install <tool>
Identify existing dependency source (requirements.txt, poetry config, pip workflows).
Establish pyproject.toml as the canonical project definition.
Import dependencies:
uv add -r requirements.txt
Replace execution commands:
pytest -> uv run pytest python script.py -> uv run python script.py
Remove conflicting documentation.
Mixed installers (bad):
uv add fastapi
pip install sqlalchemy
pip-first workflow in uv project (bad):
pip install requests
Correct:
uv add requests
Manual venv workflow (bad):
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Preferred:
uv run <command>
pip compatibility misuse:
uv pip exists but should not be the default dependency workflow.
Before finishing an answer verify:
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (robhowley/py-pit-skills) — no native marketplace selected
npx claudepluginhub p/robhowley-py-pit16 skills in this plugin
/alembic-migrationsProduction-safe Alembic migration workflows for SQLAlchemy 2.x projects. Use this skill when adding Alembic, generating migrations, reviewing autogenerate diffs, fixing broken migrations, or establishing a safe schema evolution workflow in a Python backend./background-jobs-boundariesGuardrails for background work in FastAPI and Python services. Prevent misuse of in-process background execution (e.g. FastAPI BackgroundTasks)./click-cliDesign, generate, and improve Python CLIs using the Click library. Focus on idiomatic architecture, command groups, modular layouts, CLI UX conventions, and avoiding common Click anti-patterns./click-cli-linterAudit and improve existing Python Click CLIs by identifying architecture problems, anti-patterns, and CLI UX issues, then proposing minimal, high-value fixes./code-qualityOpinionated code health stack for Python repos using Ruff, pre-commit, and Markdown linting. Prefers consolidation over redundant tooling, preserves working repos unless migration is requested, and provides a simple adoption path for both new and existing projects./dockerize-serviceGenerate a local-development Docker Compose setup for an existing Python project. Produces a multi-stage Dockerfile, Compose file, env config, and dockerignore based on detected project signals.Other plugins' skills for the same job