/vlt:dss-queryfrom vlt
Explains and composes vlt Dependency Selector Syntax (DSS) queries — CSS-selector-like strings for filtering packages in a dependency graph, including Socket-powered security auditing.
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.
Read when SKILL.md points to them.
Run DSS queries via vlt query '<selector>'.
Be concise, but teach one thing. Give the query first, then a one-line explanation. No long preambles, no exhaustive alternatives — but don't dead-end either: close with a short Examples tail of 1–2 adjacent queries (one step broader, narrower, or a sibling concept). Users learn DSS through adjacent examples, and each answer is a chance to build that intuition cheaply. Keep the tail bare — a query plus a few-word label, no surrounding prose; the whole answer should still read in seconds.
Two more rules:
:root
anchors the match (starts it) at your project root", "> (direct
deps only)". Never a terminology lecture, just the aside.Example answer shape:
vlt query ':root > :outdated(major)'Direct dependencies with a newer major version available.
Examples:
vlt query ':root > :outdated'— any newer version, not just majorvlt query ':outdated(major)'— whole graph, not just directAdd
--view=jsonfor machine-readable output. More: https://docs.vlt.io/client/selectors
> child), so #x > * selects x's
dependencies, not its dependents. The rule transfers; the fix alone
doesn't.vlt query '<selector>'
(always single-quote the selector in the shell). Output format:
--view=human|json|mermaid|svg|png|count — defaults to human (json
when piped).:not()).Build left to right, in this order — each step is optional:
:root (top level), :workspace,
:project, #pkg-name, or nothing (whole graph).> direct deps, (space)
anything beneath, ~ siblings. Skip to filter the anchor itself.[license=MIT]), state (:dev), functional (:outdated(major)),
negation (:not(...)).:has(> #x) (dependents of x), not #x > * (dependencies of x).Worked example — "prod deps of my workspaces with a copyleft license":
:workspace (anchor) + > (direct) + :prod:license(copyleft)
(filters) → vlt query ':workspace > :prod:license(copyleft)'
| Piece | Meaning | Example |
|---|---|---|
[name=foo] / #foo | match by package.json field / name shortcut | [version^=2], #react |
> | direct dependency | :root > * |
(space) | any transitive dependency | :root [name=js-tokens] |
~ | sibling (shares a parent) | [name=react] ~ * |
:root :project :workspace | graph anchors | :workspace > :dev |
:prod :dev :optional :peer | dependency type | :dev:outdated |
:has() :not() :is() | structural filters | :has(> :cve(*)) |
:outdated() :semver() :type() | functional filters | :outdated(major) |
:malware :cve() :license() | security (Socket data, network call) | :license(copyleft) |
, | OR — union of selectors | :dev, :optional |
Chaining without spaces is AND: :workspace:private = workspace AND
private.
vlt query ':root > *' # direct dependencies
vlt query ':workspace' # select all workspaces
vlt query ':root > :outdated' # outdated direct deps
vlt query '[name=react] *' # everything react pulls in
vlt query ':has(> #react)' # packages that directly depend on react
vlt query ':dev:eval' # dev deps using eval()
vlt query ':malware, :cve(*)' # malware or any CVE
DSS's sharpest feature: nodes are enriched with Socket insight data, so the dependency graph doubles as a security scanner. Selectors group into four families — compose them with anchors and combinators like any other filter:
| Family | Selectors | Ask |
|---|---|---|
| Threats | :malware :squat :obfuscated :suspicious | is anything actively hostile? |
| Vulnerabilities | :vuln(critical) :cve(CVE-…) :cve(*) :cwe(CWE-79) :severity(">=medium") | known CVEs / vulns, filter by severity |
| Capabilities | :eval :network :fs :shell :env | what can this code do? |
| Hygiene | :abandoned :unmaintained :deprecated :score("<=0.5", "maintenance") | will this rot on us? |
Audit recipes:
vlt query ':malware, :vuln(critical), :squat, :obfuscated' # supply-chain sweep
vlt query ':workspace > :prod:severity(">=high")' # release blockers
vlt query ':dev:shell, :dev:network' # dev deps that spawn/phone home
All of these fetch Socket data over the network — expect latency on first run.
:workspace matches workspaces declared in vlt.json — yarn/pnpm/
bun-style workspace configs aren't read unless mirrored there.:license(x) takes a category (copyleft, unlicensed, none,
…), never a license ID — for a specific license use the attribute
form [license=MIT].:missing matches edges (declarations), not nodes — no package
output.[name^="@vltpkg"].Selector-by-selector detail (all pseudo-classes, security insights, operators): see REFERENCE.md.
Canonical docs — deep-link the section that matches the query (verified anchors; don't invent others):
| Query topic | Link |
|---|---|
| syntax, composition, anything structural | https://docs.vlt.io/client/selectors |
| malware / typosquats / obfuscation | https://docs.vlt.io/client/security#malware-detection |
| CVEs / CWEs / severity | https://docs.vlt.io/client/security#vulnerability-detection |
capabilities (:eval :network :fs …) | https://docs.vlt.io/client/security#behavioral-security-risks |
| license compliance | https://docs.vlt.io/client/security#license-compliance |
| security scores | https://docs.vlt.io/client/security#security-scoring |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dss, dependency-selector, vlt, package-filtering, security-audit
Generated from the plugin's indexed repository (vltpkg/vltpkg) — no native marketplace selected
npx claudepluginhub p/vltpkg-vlt3 skills in this plugin
/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./vlt-registry-migrationMoves a JavaScript repository (single package or monorepo) onto a vlt.io registry. Routes installs through the account's npm mirror and private `main` registry, handles the lockfile, and sets up auth for npm, pnpm, yarn, bun, deno and the vlt CLI on laptops, CI, Vercel and coding-agent sandboxes. Use when the user wants to switch a repo or pipeline to registry.vlt.io, set up vlt.io tokens, or fix 401s or missing auth after switching.Other plugins' skills for the same job