Use uv run for project commands to avoid environment drift.
Keep dependency and lockfile changes explicit and reviewed.
Confirm with user before adding/upgrading dependencies.
Common Pitfalls
Running tools outside uv can select the wrong interpreter.
Assuming system Python version matches project constraints.
Mixing ad-hoc pip workflows with managed uv project flows.
Output Interpretation
uv sync reports dependency resolution and installation updates.
uv run failures usually point to tool/code issues, not uv itself.
uv pip commands remain broadly pip-compatible.
Why It Matters For Agents
Dramatically reduces dependency setup time.
Provides a consistent execution wrapper for deterministic automation.
Repo Conventions
Python workflows in this repository are uv-managed.
Run lint, type checks, and tests for behavior changes before completion.
Trigger Examples
Should trigger: "Install deps and run the pytest suite."
Should trigger: "Run ruff and pyright in the project environment."
Should not trigger: "Open an interactive fuzzy selector in terminal."
1---2name: tool-uv-23description: tool-uv4---5# tool-uv67## When To Use89- Manage Python environments and dependencies quickly.10- Run project commands in the correct managed environment.11- Bootstrap, lint, test, and typecheck Python workflows.1213## Trusted Commands1415```bash16uv venv17uv pip install requests18uv pip install -r requirements.txt19uv pip compile requirements.in -o requirements.txt20uv run --with requests script.py21uv init my-project22uv add requests23uv sync24uv run pytest tests/25uv run pyright .26```2728## Safe Defaults2930- Use `uv run` for project commands to avoid environment drift.31- Keep dependency and lockfile changes explicit and reviewed.32- Confirm with user before adding/upgrading dependencies.3334## Common Pitfalls3536- Running tools outside uv can select the wrong interpreter.37- Assuming system Python version matches project constraints.38- Mixing ad-hoc pip workflows with managed uv project flows.3940## Output Interpretation4142- `uv sync` reports dependency resolution and installation updates.43- `uv run` failures usually point to tool/code issues, not uv itself.44- `uv pip` commands remain broadly pip-compatible.4546## Why It Matters For Agents4748- Dramatically reduces dependency setup time.49- Provides a consistent execution wrapper for deterministic automation.5051## Repo Conventions5253- Python workflows in this repository are uv-managed.54- Run lint, type checks, and tests for behavior changes before completion.5556## Trigger Examples5758- Should trigger: "Install deps and run the pytest suite."59- Should trigger: "Run ruff and pyright in the project environment."60- Should not trigger: "Open an interactive fuzzy selector in terminal."
Run npx skillmds@latest add niksavis/tool-uv-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
tool-uv It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
niksavis (@niksavis) published this skill. Their other Agent Skills are listed on their SkillMD profile.