skills/python/managing-python-with-uv/SKILL.md
Manage Python projects and standalone scripts with uv, including setup, dependencies, execution, quality gates, locking, builds, and release preparation. Use for `uv run`, `uv add`, inline script metadata, packaging, or an explicitly requested publish workflow.
npx skillsauth add narumiruna/agent-skills managing-python-with-uvInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the repository's existing Python and verification choices first; use uv for dependency and execution operations unless a documented repository command wraps them.
pyproject.toml, lockfile, shared package, or local imports define an environment.--no-project only when the invocation must ignore the surrounding project and does not import its code.pyproject.toml, lockfiles, repository instructions, and existing tools.uv init. Add or remove dependencies with uv add and uv remove; use uv sync to reconcile declared state.uv run or the repository's documented wrapper.uv run script.py when no extra dependency is needed.uv run --with <dependency> script.py for disposable dependencies.uv init --script and uv add --script when dependencies or Python requirements should travel with a reusable script.--no-project before the script name when isolation is intentional.references/scripts.md only for inline metadata, stdin, shebang, locking, alternate indexes, or platform-specific patterns.Use verification in this order: documented aggregate gate; the repository's configured hook runner; individual uv run ... commands when no aggregate gate exists or when narrowing a failure. Do not introduce or switch tools solely to run checks. Read references/quality.md for fallback patterns.
For release preparation:
uv build --no-sources so local source overrides cannot leak.Publishing is a separate external write. Do not run uv publish based only on a request to build, package, prepare, or release. Require authorization for the exact package/version, repository or index, and artifacts; use secret-safe credentials and verify the resulting release. Read references/packaging.md for the authorized publish path.
pip install to mutate a uv-managed project.pyproject.toml merely to run a one-file script.--no-project when local project imports are required.--with as ephemeral; encode dependencies when reuse or reproducibility matters.development
Score or compare one or more agent skills across trigger clarity, workflow actionability, safety boundaries, verification rigor, incremental knowledge value, and leanness. Use only when the user explicitly asks for ratings, numerical quality scores, rubric-based scorecards, or scored comparisons; use creating-agent-skills for unscored reviews or revisions.
development
Assess or improve an existing codebase's architecture when the user asks about module boundaries, coupling, scattered ownership, testability, change locality, deep modules, seams, or behavior-preserving structural refactoring. Use for cross-module design rather than ordinary diff review or a confirmed edge-case bug fix.
development
Perform read-only security audits, vulnerability assessments, or threat-focused reviews of diffs, pull requests, code paths, or explicitly scoped repositories when security is the primary objective or acceptance criterion. Use reviewing-code for ordinary review with baseline security coverage and hardening-code-paths for fixing confirmed findings.
development
Run iterative multi-reviewer panels over a code diff, verify their findings, apply explicitly authorized fixes, and re-review the updated change until it passes or reaches a stopping condition. Use when the user asks for a panel loop, multi-model code-review consensus, or a review-fix-re-review cycle.