/vlt:vlt-registry-migrationfrom vlt
Migrates JavaScript repos (single or monorepo) to a vlt.io registry, routing installs through npm mirror and private main registry, handling lockfiles and auth for npm, pnpm, yarn, bun, deno, and vlt CLI across laptops, CI, Vercel, and sandboxes.
Ships in vlt. 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.
Docs index: llms.txt. Every docs page
is Markdown at its URL + .md; read the linked page before editing
config. Examples use the account slug acme; replace it with the
user's.
packageManager unless the user agrees.@acme.packageManager, lockfile); Turborepo?
(see Known limitations).Each account has two registries:
https://registry.vlt.io/acme/npm/: npm mirror. Make it the default
registry. Always needs a token, even for public packages.https://registry.vlt.io/acme/main/: the account's own packages.
Map the scope to it.No private packages and no account wanted (e.g. an open-source repo)?
Point the default registry at the shared
https://registry.vlt.io/upstream/npm/ instead: read-only, no token,
and any token sent is ignored. It is the vlt CLI's zero-config default
(its built-in registries.npm), so vlt itself needs no registry
config for it. Usage limits apply: it suits open-source and low-volume
installs; for unlimited usage and private packages, recommend an
account's npm mirror. Skip the account slug in step 1 and the scope
routing in step 2, but still set the default registry. Skip the auth
setup in steps 4 and 5; see
Public npm Mirror. If
the repo publishes to npm, check its publish workflow first: with the
mirror as the default, npm publish targets the read-only mirror.
Keep https://registry.npmjs.org/ as the publish registry
(publishConfig.registry in package.json, or --registry on the
publish command); for a scoped package an @scope:registry mapping
wins over both, so leave it unset or point it at npm too
(publishing with npm).
Confirm script changes with the user.
Accounts (sign up,
tokens):
invite each developer, who logs in (or creates a personal token). CI,
Vercel and each agent sandbox get their own package:read service
token, created by an owner or admin (add package:write only to
publish).
Commit the routing (auth is step 4):
| Tool | File | Default → mirror | @acme → main |
|---|---|---|---|
| npm, pnpm, deno | .npmrc | registry= | @acme:registry= |
| yarn 2+ | .yarnrc.yml | npmRegistryServer | npmScopes.acme.npmRegistryServer |
| bun | bunfig.toml | [install] registry | [install.scopes] acme |
| vlt | vlt.json | registry + registries.npm (built in: public mirror) | scoped-registries "@acme" |
Full config: vlt, npm, pnpm, yarn, bun, deno.
npmScopes keys drop the @; Classic 1.x uses .npmrc.vlt.json with vlt config set (vlt guide).
vlt setup acme only writes the npm / main aliases to user
config.registry in pnpm-workspace.yaml for
installs: keep registry and @acme:registry in .npmrc
(pnpm config set … --location=project writes it).
pnpm-workspace.yaml can't hold auth either.package-lock.json; npm install fetches its
registry.npmjs.org entries from the mirror (other hosts aren't
rewritten).pnpm-lock.yaml (no tarball URLs); pnpm install.vlt-lock.json still fetches from the old registry
(#1579):
rm -rf vlt-lock.json node_modules && vlt install. A lockfile made
on the built-in default (the public mirror) records no
registries.npm, so it passes vlt ci with the account mirror
configured but keeps fetching tarballs from the public mirror until
regenerated.yarn.lock / bun.lock / deno.lock
per their guide.Only the vlt CLI reads VLT_TOKEN itself. Other tools see the secret
only through an auth line that references it, so setting the secret
alone sends no credentials.
| Tool | Auth from | Token reference in committed project file |
|---|---|---|
| vlt | keychain or env vars (below) | n/a, .npmrc not read |
| npm, npx | .npmrc | expanded |
| pnpm | pnpm login, ~/.npmrc, or pnpm_config_… env var | ignored (11.5.3+) |
| yarn | .yarnrc.yml (Classic: .npmrc) | expanded |
| bun | bunfig.toml ($VLT_TOKEN) or .npmrc | expanded |
| deno | .npmrc | expanded |
| Vercel builds | .npmrc written from NPM_RC | see step 5 |
VLT_TOKEN where
committed files reference it; pnpm: pnpm login --registry=<url>
per registry URL (--scope=@acme for main); vlt:
vlt setup acme.${VLT_TOKEN} ($VLT_TOKEN in bunfig.toml; yarn also
npmAlwaysAuth: true). npm, bun and deno send an unset var
literally, which fails like a bad token.env "pnpm_config_//registry.vlt.io/acme/npm/:_authToken=$VLT_TOKEN" pnpm install --frozen-lockfile
(pnpm 11.6.0+; one var per registry URL);//registry.vlt.io/acme/npm/:_authToken=${VLT_TOKEN} and the same
main line to user-level ~/.npmrc with a quoted heredoc
(<<'EOF' keeps ${VLT_TOKEN} literal; pnpm expands it there);PNPM_CONFIG_NPMRC_AUTH_FILE=<auth file outside the repo>.VLT_TOKEN_<registry URL, trailing / dropped, each run of non-alphanumerics → _>,
e.g. VLT_TOKEN_https_registry_vlt_io_acme_npm and
VLT_TOKEN_https_registry_vlt_io_acme_main. See
Authentication.Details: CI & automation.
VLT_TOKEN in the job env (plus pnpm / vlt auth from step
4); install with the frozen-lockfile flag.VLT_TOKEN. Set NPM_RC (not NPM_TOKEN) to the routing
and auth lines with a package:read service token, and keep a
registry.npmjs.org line: Vercel installs its runtimes from it. Set
multi-line values with the Vercel CLI.package:write, or from GitHub Actions
trusted publishing
(installs still need VLT_TOKEN). A personal token fails with
EOTP."packageManager": "vlt@…" fails with
Invalid packageManager field, and turbo requires packageManager
or devEngines.packageManager (seen on turbo 2.10). In Turborepo
repos keep npm, pnpm, yarn or bun as packageManager and use the
vlt registry through that tool's config
(#1851).npm config get registry / pnpm config get registry print the
mirror. pnpm < 11.10 still installs from npmjs.org if registry is
only in pnpm-workspace.yaml, even when this passes: move it to
.npmrc.vlt ping checks the default registry and registries aliases (not
scoped-registries). Read its output: it exits 0 even when a ping
fails.401.| Symptom | Cause |
|---|---|
401 / No authorization header was set | token not reaching the tool (step 4): pnpm ${VLT_TOKEN} in a project .npmrc, or secret unset in that job |
EOTP when publishing from CI | personal token; use a service token, or trusted publishing from GitHub Actions |
vlt still fetches from registry.npmjs.org | kept vlt-lock.json (step 3) |
pnpm 12 no version found for the latest tag on the mirror | mirror bug on pnpm 12: pnpm guide pins [email protected] (confirm first) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/dss-queryExplain and compose vlt Dependency Selector Syntax (DSS) queries — CSS-selector-like strings for filtering packages in a dependency graph, including Socket-powered security auditing. Use when the user asks about DSS, `vlt query`, dependency selectors, wants to find/filter packages (e.g. "find outdated deps", "select all workspaces"), or wants to security-audit dependencies ("which packages have CVEs", "check for malware/typosquats", "what can run shell commands or hit the network")./vlt-cliMap of the vlt CLI for coding agents. Covers how to install, add, remove and update dependencies, run scripts and package bins, configure registries (installs work with no config through vlt's public npm mirror, publishing needs a configured registry), work with vlt.json and vlt-lock.json, and pass Dependency Selector Syntax (DSS) queries to commands. Use when the user wants to use vlt in a project, add or update a dependency with vlt, fix "Missing registry configuration" (ECONFIG), set up registries or tokens for vlt, publish or stage a package (`vlt stage`), set up trusted publishing (`vlt trust`), work with vlt workspaces, ship an agent skill from a package, install vlt's agent skills in a project, or asks which vlt command or flag does something or what `vlr` and `vlx` are.Generated from the plugin's indexed repository (vltpkg/vltpkg) — no native marketplace selected
npx claudepluginhub p/vltpkg-vltOther plugins' skills for the same job