Skip to content
Back to skills

Uv Knowledge Patch

ASecurity

uv

  • 25 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 5, 2026
ai-agentspythonrustbackend

Works with

  • terminal

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill uv-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uv Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uv Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-uv-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-uv-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: uv-knowledge-patch
description: uv
version: "0.11.32"
license: MIT
metadata:
  author: Nevaberry
---


# uv Compatibility Guidance

Load this skill when working with uv interpreter selection, environments,
dependency resolution, lockfiles, workspaces, indexes, builds, or tools.
Use the topic references for complete guidance and version-specific behavior.
Preview features are identified beside their guidance.

## Reference index

| Reference | Topics |
| --- | --- |
| [Dependency resolution and lockfiles](references/dependency-resolution-and-lockfiles.md) | Prerelease policies, exclusions, constraints, hashes, lock validation, PEP 751, platform coverage, wheel variants, exports |
| [Indexes, authentication, and publishing](references/indexes-auth-and-publishing.md) | Index lookup and configuration, credentials, certificates, release cutoffs, proxy indexes, publishing |
| [Projects and workspaces](references/projects-and-workspaces.md) | Initialization, sources, dependency edits, workspace discovery and metadata, groups, scripts, subprocesses |
| [Python, environments, and platforms](references/python-environments-and-platforms.md) | Interpreter discovery, managed installs, patch upgrades, environment replacement and activation, Windows, Linux, containers |
| [Tooling and operations](references/tooling-and-operations.md) | Tools, type checking, formatting, audits, builds, archive validation, configuration, checks, caches, release compatibility |

## Breaking changes and deprecations

### Environment replacement and Python defaults

In 0.10, `uv venv` requires `--clear` or `UV_VENV_CLEAR=1` to remove an existing
environment in both interactive and unattended runs. Earlier replacement and
prompt behavior is detailed in the Python reference.

uv 0.13 defaults to Python 3.15 for unpinned installs and automatic downloads,
while still reusing compatible installed interpreters. Use `uv python pin 3.14`
to keep a project on Python 3.14.

A patch pin in `.python-version` disables transparent patch upgrades for the
project environment. Script environments honor exact managed Python patch pins.

### Packaged initialization

`uv init example` creates a packaged application without preview, with a
`uv_build` build system, source in `src/example`, and an `example` entry in
`[project.scripts]`. Use `uv init --no-package example` for the unpackaged layout.

Directory path dependencies and workspace members depended on by another member
are built and installed even without `[build-system]`, using
`setuptools.build_meta:__legacy__`. To install only a virtual dependency's
dependencies, set `package = false` on its path source or set
`[tool.uv] package = false` in its own `pyproject.toml`.

### Requirements and constraint files

Each occurrence of `--constraint`, `--override`, `--exclude`, or
`--build-constraint` takes one path, including paths with spaces. Repeat flags,
for example `-c a.txt -c 'b constraints.txt'`, or keep space-separated lists in
`UV_CONSTRAINT`, `UV_OVERRIDE`, `UV_EXCLUDE`, and `UV_BUILD_CONSTRAINT`.

uv rejects `-e` entries in constraints files included with `-c`. Put editable
requirements in a requirements file passed with `-r`, or pass them directly
with `--editable`.

A `--require-hashes` line in a requirements file enables hash checking in
`uv pip install` and `uv pip sync`. The directive in an included constraints
file requires hashes for the whole installation. `--no-require-hashes` and
`require-hashes = false` still verify supplied hashes.

### Prerelease policy and source overrides

The default `if-necessary` policy tries stable releases first, considering
prereleases when no stable candidate meets active constraints, including
transitive constraints. `if-necessary-or-explicit` is a deprecated alias.
`--prerelease-package` can set a policy for an individual dependency.

`--no-sources` requires a fresh resolution and conflicts with `--frozen`.
Use `--no-sources-package` to ignore one dependency's configured source while
keeping source overrides for the others.

### Certificates and trust changes

Use `--system-certs` in place of `--native-tls`, or `UV_SYSTEM_CERTS` in place
of `UV_NATIVE_TLS`. With system certificates enabled, uv delegates verification
to the platform; CA constraints and revocation policy may change accepted chains.

Empty `SSL_CERT_FILE` values are ignored. Nonempty `SSL_CERT_FILE` and
`SSL_CERT_DIR` overrides stay in effect even if unreadable or without valid
certificates. Supply valid certificates at the override path to restore
verification with that trust source.

uv 0.13.4 removes the affected eMudhra/emSign root from its bundled trust store.
uv 0.13.5 rejects chains containing the compromised intermediate keys and
provides updated managed CPython builds for 3.11 and later with patched pip and
`ensurepip`. After upgrading uv, run `uv python upgrade`, update affected patch
pins, and upgrade pip separately in existing virtual environments.

### Archives and build output

Source distributions must use `.tar.gz` or legacy `.zip`, including those in
existing lockfiles. ZIP entries must use stored, DEFLATE, or zstd compression.
uv rejects wheels with multiple `.dist-info` directories and wheels or source
distributions with mismatched package names.

uv 0.13 stabilizes `tar-codec` with stricter validation and potentially different
sdist bytes and hashes. Set `UV_LEGACY_TAR_BACKEND=1` for archives requiring the
legacy reader. uv 0.13.1 restores support for sdists with hard links or
full-length tar user or group names.

`uv build --clear` rejects output directories containing the source project or
input source distribution, including through symlinks. When building from the
project directory, choose a directory such as `dist/` inside the project.

## Resolution, locking, and installation

### Freshness checks and planned changes

`uv lock --check` and `uv sync --check` return `1` for a stale lockfile or
environment; `2` denotes an error. In preview, canonical lockfile formatting
is enforced by `uv lock --check` and commands using `--locked`.
Use `uv --preview lock --refresh` to rewrite the file.

`uv pip install --check` and `uv pip sync --check` report planned changes without
modifying the environment. Both support `--output-format json` with `--check`
and `--dry-run`.

```sh
uv pip sync --check --output-format json requirements.txt
```

### PEP 751 inputs and exports

Use `pylock.toml` or `pylock.<name>.toml`. `uv export` and `uv pip compile` infer
the format from the output filename; pip-interface commands reject arbitrary
`.toml` names as requirements files. The name segment must be nonempty and
there can be only one between `pylock` and `toml`.

```sh
uv pip compile requirements.in -o pylock.app.toml
uv pip sync pylock.app.toml
```

Exported PEP 751 locks include supported environment restrictions, which
`uv pip install` and `uv pip sync` enforce. See the lockfile reference for
artifact, package, hash, and Python-version validation.

### Release cutoffs and build dependencies

`exclude-newer` accepts relative durations and per-package opt-outs. Changing
the cutoff keeps locked versions that still qualify; use `--upgrade` or
`--upgrade-package` to request eligible upgrades. Distributions uploaded after
the cutoff are omitted from lockfiles and generated requirements hashes.

`extra-build-dependencies` is stable in 0.10. `match-runtime = true` selects the
runtime-resolved version for an isolated build and requires static package
metadata. An object entry with its own version specifier must explicitly set
`match-runtime = false`.

In preview, `--require-build-hashes` requires hashes for direct and transitive
build requirements. `build-constraint-dependencies` entries can carry hashes
to verify downloaded build dependencies.

## Projects, scripts, and workspaces

`uv add` treats a subdirectory added from within a workspace as a member by
default. Use `uv add --no-workspace ./example-lib` to add it as a path dependency.
New member paths recorded by `uv init` and `uv add` are literals, including
directory names containing glob characters.

Commands run from a member can select root dependency groups. When syncing or
exporting a selected member, request root groups explicitly to include them.
Frozen sync uses each selected member's recorded default groups.

Options accepting `--with-requirements` or `--requirements` can read PEP 723
script dependencies. Inline scripts need an existing script lockfile for
`--locked` and `--frozen`. `uv run --isolated` leaves `uv.lock` untouched from
0.8.7 onward.

### Preview workspace metadata and frozen commands

`uv workspace metadata` is read-only by default; `--sync` allows changes.
`--quiet` preserves JSON on standard output while suppressing diagnostics.
Pass `--output-version` to request the schema version your consumer expects.

```sh
uv --preview workspace metadata --output-version "$SCHEMA_VERSION"
```

Enable `frozen-lockfile` to use `uv sync`, `uv export`, `uv tree`, and
`uv workspace metadata` with `--frozen` and only `uv.lock`. This enables
dependency-only container layers before copying project sources.

```sh
uv sync --preview-features frozen-lockfile --frozen --no-install-local
```

## Indexes and tool workflows

The default `first-index` strategy stops on HTTP 401 or 403, with a built-in
403 exception for `pytorch.org` indexes. Configure `ignore-error-codes` for
an index whose missing packages return an otherwise terminal status.

Subprocess keyring credentials are looked up by index URL. An index with
`authenticate = "always"` uses `keyring --mode creds` with the subprocess
provider and fails if uv cannot obtain a password.

`uvx foo` requires the distribution or one of its dependencies to provide
`foo`. Explicit `--from` allows a command from `PATH` in the tool environment.

### Preview checks and audits

`uv check` runs ty and uses its locked version when available. `--script` is
required for script checking; `--no-sync` still allows lockfile updates.
`--fix` applies automatic fixes. Set `TY` or `RUFF` to a binary path for
`uv check` or `uv format`, respectively.

`uv audit` checks dependencies against OSV and supports JSON and SARIF.
`uv tool audit` audits one or all installed tools. Both error in offline mode.
The tooling reference details group selection, advisory suppression, report
matching, malware checks, and tool lock upgrades.

Files in this skill

  • SKILL.md9.3 KB
  • coverage.json619 B
  • references/dependency-resolution-and-lockfiles.md3.9 KB
  • references/indexes-auth-and-publishing.md2.7 KB
  • references/projects-and-workspaces.md3.9 KB
  • references/python-environments-and-platforms.md3.9 KB
  • references/tooling-and-operations.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.