/package-manager-development:package-manager-ux-ecosystems-and-governancefrom package-manager-development
Covers package manager performance (parallel fetching, caching, lockfile fast paths), CLI UX, cross-ecosystem comparison (npm/pnpm/yarn, pip/uv, Cargo, Go modules, Maven, NuGet, apt/dnf, Nix), and governance (registry as infrastructure, deprecation, yanking, name disputes, takedowns, regulation).
Ships in package-manager-development. 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.
Part 4 of 5 of the Package Manager Development reference (plugin
package-manager-development), covering §11–§14. Sibling skills:package-manager-versioning-and-resolution(§0–§4),package-manager-registries-and-installation(§5–§7),package-manager-supply-chain-and-workspaces(§8–§10),package-manager-reference(§15–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Verified August 2026. See §17 →
package-manager-referencefor the currency snapshot and what goes stale first.
How to read this. Reference, not tutorial. Sections are independent. Three markers:
- [DURABLE] — computer science, or a lesson every ecosystem has independently learned. Does not expire.
- [ECOSYSTEM] — specific to npm, PyPI, crates.io, Go, etc. Verify against that ecosystem's current docs.
- [CONTESTED] — the ecosystems have made genuinely different, defensible choices, or the practitioners disagree. Both cases given.
⚠️ GOTCHA boxes mark the design mistakes that produce unreproducible builds, wedged caches, exponential resolutions, or supply-chain compromise.
The framing that organizes everything below: a package manager is a distributed systems problem wearing a CLI. It is a cache-coherency problem, a constraint-solving problem, a trust-and-identity problem, and a compatibility-contract problem, all of which happen to be invoked by typing
install. Every serious difficulty in this document is one of those four, and treating it as "just downloading files" is the root of most bad designs.
[DURABLE] The rough cost order, for a cold install:
network metadata round-trips ≫ artifact download > decompression > linking ≫ solving
The corollary: most package managers that are "slow" are network-bound and serially-bound, not CPU-bound. uv, Bun, and pnpm's speed comes overwhelmingly from attacking the first two.
The techniques that actually matter:
package-manager-versioning-and-resolution).package-manager-registries-and-installation makes this safe) with a global store shared
across projects.install on an up-to-date project should be near-instant.⚠️ On benchmarks. Published package-manager benchmarks (the widely-circulated 2026 npm/pnpm/Yarn/Bun comparisons showing e.g. sub-second cold installs for Bun versus ~14 s for npm on a 50-dependency project) are single-machine, single-project, and highly sensitive to cache state, network, and dependency shape. The direction is reliable; the multipliers are not. Benchmark your own workload before making an architectural claim.
[DURABLE] A resolver's error message is its most-used feature after install. Compare:
BAD: ERROR: Could not find a version that satisfies the requirement foo
BAD: error: failed to select a version for `foo`
GOOD: Because myapp depends on foo ^1.0.0 and bar ^3.0.0,
and every version of foo requires bar ^2.0.0,
version solving failed.
Try: relaxing myapp's constraint on bar, or upgrading foo to 2.x
which requires bar ^3.0.0.
The second form requires the resolver to retain its derivation (§3.3 → package-manager-versioning-and-resolution). Design for that
from the start — it cannot be bolted on to a resolver that discards its reasoning.
--dry-run that actually works — possible only if resolution is separable (§0.1 → package-manager-versioning-and-resolution).why / explain — "why is this package in my tree?" is the single most-requested
diagnostic. npm ls, cargo tree -i, go mod why, pnpm why.--json) for every command, from day one.| npm | pip / uv | Cargo | Go modules | Maven | apt/dnf | Nix | |
|---|---|---|---|---|---|---|---|
| Manifest | package.json | pyproject.toml | Cargo.toml | go.mod | pom.xml | control/spec | .nix |
| Lockfile | package-lock.json | uv.lock / pylock.toml | Cargo.lock | go.sum (hashes; go.mod pins) | none native | none | flake.lock |
| Resolution | backtracking, npm semantics | pip: backtracking; uv: PubGrub + forking | backtracking (PubGrub designated as replacement) | MVS | nearest-wins mediation | SAT (libsolv) | none — exact inputs |
| Ranges | yes | yes | yes | no | yes | yes | n/a |
| Multiple versions | yes | no | yes (semver-incompatible) | yes (via /vN import paths) | no | no | yes (by hash) |
| Layout | hoisted/isolated/PnP | flat venv | compiler --extern | module cache | classpath | system-wide | content-addressed store |
| Install-time code | yes (scripts) | wheels: no; sdists: yes | build.rs | no | plugins | maintainer scripts | sandboxed builds |
| Namespacing | flat + @scope | flat | flat | domain-derived | reverse-DNS | flat | flat |
| Provenance | Sigstore/SLSA, GA | PEP 740 attestations | trusted publishing GA; signing proposed | sum.golang.org (integrity, not provenance) | PGP; Sigstore emerging | distro signing | hashes |
| Signature model | keyless (Sigstore) | keyless (Sigstore) | — | transparency log | PGP web-of-trust | distro keyring | — |
Reading this table is the fastest way to see that there are no universal answers, only consistent trade-off sets. Go trades expressiveness for determinism at every single row. npm trades strictness for compatibility. Nix trades familiarity for correctness.
[DURABLE] Once an ecosystem depends on you, you cannot go down and you cannot break compatibility. Design for: read-path availability via CDN (the registry API being down should not stop installs of already-known versions), mirrorability, an incremental change feed, and a documented disaster-recovery story. PyPI's reliance on donated CDN capacity (Fastly) is typical and worth understanding as a structural fact about how these are funded.
package-manager-registries-and-installation) — and the very narrow circumstances for actual removal
(malware, secrets, illegal content).The EU Cyber Resilience Act makes vulnerability handling a legal duty for anyone shipping products with digital elements into the EU — reporting obligations begin 11 September 2026, full obligations 11 December 2027. Practical consequences for this domain:
npm sbom --sbom-format cyclonedx) and to make provenance verifiable.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/package-manager-referenceUse when reviewing a package manager or registry design for known anti-patterns, weighing contested questions (MVS vs constraint solving, multiple versions coexisting, hoisted vs isolated vs PnP, lockfiles for libraries, one standard lockfile format, whether SemVer is worth it, package manager as build tool, cooldowns vs patch latency, vendoring), checking whether an ecosystem or tooling claim is still current (snapshot verified August 2026), finding the foundational writing and primary sources, or needing the build-it-in-order checklist, diagnostic first moves, and numbers. Companion to the other package-manager-development skills./package-manager-registries-and-installationUse when building or operating a package registry or the install side of a client. Covers the registry API surface, immutability as the single most important property, mutable-release poisoning, namespacing and name allocation, the content-addressed store, the layout problem's four answers (flat, nested, isolated, PnP), multiple versions coexisting, runtime resolution as part of the design, and publishing and authentication — the evolution from API tokens to trusted publishing with OIDC, provenance and attestations, Sigstore, and SLSA./package-manager-supply-chain-and-workspacesUse when hardening a package ecosystem against supply-chain attacks or designing build and monorepo features. Covers the 2025–2026 npm worm era, the attack taxonomy (typosquatting, dependency confusion, account takeover, install-time malware), registry-side controls worth building, client-side controls including install cooldowns, lifecycle scripts — the problem, why they exist and how ecosystems escaped them, running them safely — binary distribution design, workspaces, non-registry dependencies (git, path, URL), and overrides./package-manager-versioning-and-resolutionUse when designing or debugging the core of a package manager: the anatomy every package manager shares (the router for the whole package-manager-development reference), semantic versioning and what it really promises, the version-scheme decision and constraint syntax, what belongs in a manifest vs a lockfile, dependency resolution stated formally (NP-complete), the algorithm families, PubGrub and why it won, MVS as the radical simplification, escape hatches when there is no solution, making resolution fast, and lockfile design — what it must contain, the properties that matter, whether libraries should commit lockfiles, and the Python standardization story.npx claudepluginhub the-vibey-project/vibey --plugin package-manager-development