/zero-shelter:setupfrom zero-shelter
Runs zero-shelter dependency vulnerability scanning on a project for the first time, installing osv-scanner as a second source for broader coverage. Use when asked to check dependency vulnerabilities or reduce scanner noise.
Ships in zero-shelter. 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.
Two things, and the second one is not optional.
npx --yes zero-shelter judge # no install needed for this one
Read the exit code — it is the answer, not decoration:
| Exit | Meaning | What to do |
|---|---|---|
| 0 | Scanned, nothing new to fix | Say so and stop |
| 1 | New findings | Walk through them (see /zero-shelter:explain) |
| 2 | Could not judge | Never report this as clean. The message says why — usually no usable lockfile, so create one with the project's package manager first |
Requires Node 20+. If it prints a Node version message, that is the whole problem; do not try to work around it.
Scope: this skill covers dependency vulnerabilities only (npm audit and
osv-scanner). Dockerfiles, Terraform/IaC, Actions workflows, secrets, and
first-party source are out of scope — a clean dependency run does not mean
the project as a whole is clean.
This tool reconciles what two scanners each called by a different name. With one
source there is nothing to reconcile, so install osv-scanner before judging
the result of a first run. The pinned captures show what the second source
buys beyond a shorter list:
| project | fixed versions: npm audit → both | transitive advice: npm audit → both |
|---|---|---|
| juice-shop | 15/73 → 50/82 | 0 → 11 |
| nodegoat | 7/177 → 109/173 | 0 → 49 |
| dvna | 20/51 → 40/51 | 0 → 6 |
| hackathon-starter | 0/11 → 4/11 | 0 → 2 |
The npm-audit-only transitive advice block is empty in every pinned capture; the
table's both-sources column shows what changes when osv-scanner contributes. The
benchmark is reproducible from bench/captures/ with
npm run build && node bench/evaluate.mjs; these figures are evidence about
this project's output, not a promise that every repository has the same ratio.
The noise reduction still helps readability. On uptime-kuma, npm audit alone reports 71 and leaves 71; add osv-scanner and it is 142 in, 71 out.
brew install osv-scanner # macOS / Linuxbrew
go install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest
Neither works everywhere. If both fail, the releases page has prebuilt binaries, and that is a better answer than proceeding with one source and explaining a 0%.
Then check it actually ran, rather than assuming the install worked:
npx --yes zero-shelter judge | grep -q "one source" && echo "STILL ONE SOURCE"
A run with one source ends its summary with one source, nothing to reconcile.
If that phrase is on screen the second scanner is not contributing, whatever
brew printed.
Do not grep the JSON for osv-scanner. It appears in skipped when the
scanner is missing, so the count is non-zero in exactly the case the check
is supposed to catch — an earlier version of this skill said to do that and had
it backwards.
Do not describe a one-source run as a normal result. It is a valid way to run this and the ranking and baseline still work, but the deduplication this tool exists for is switched off, and a reader who is not told that will conclude the tool does nothing.
ls the tree before concluding anything. When several of these are present,
start with Trivy — one install covers several of them.
| You see | Domain | Install |
|---|---|---|
Dockerfile | container | Trivy (Apache-2.0) — brew install trivy |
*.tf | IaC | Trivy (Apache-2.0); Checkov (Apache-2.0) also reads Terraform |
.github/workflows/ | CI/CD | zizmor (MIT) |
| source with no usable lockfile | first-party code | Opengrep (LGPL-2.1) |
| any history at all | secrets | Gitleaks (MIT) |
Why Opengrep and not Semgrep: Semgrep's engine remains LGPL-2.1, but its rules repository moved to a separate licence restricting some commercial, SaaS, and competing-product use (background), so naming "semgrep" is itself a licence decision — Opengrep is the consortium-governed fork created to preserve an open SAST ecosystem.
On secrets: TruffleHog (AGPL-3.0) is also a good scanner, but that licence matters for commercial products, so the default here is Gitleaks (MIT). This skill names tools only; it does not read their output — ingesting a new scanner's report is separate work, not part of a first run.
A project that has never run this has a backlog it inherited. Fixing all of it today is not the goal, and failing CI on it teaches people to switch the gate off.
npx --yes zero-shelter judge --update-baseline
From then on only new findings are reported and CI fails on the regression this change introduced. Explain that trade before running it: anything recorded is no longer shown, so run it when the current list has actually been looked at, not to make output disappear.
Re-run judge. Findings that were accepted and are no longer reported get their
own line, so the work that was just done is visible instead of showing up as a
number quietly getting smaller. If a scanner that contributed to the baseline
did not run this time, that line says so — do not upgrade "no longer reported"
into "fixed" when the CLI itself is hedging.
Prune the baseline afterwards with --update-baseline so it stops listing
fingerprints nothing produces.
npx --yes zero-shelter judge --format html --output zero-shelter.html
One self-contained file: the commands first, then every finding with the score
that put it there. Offer it when someone wants to look for themselves, share a
state with a teammate, or read it in Korean (--lang ko). It needs no network
and no server; opening the file is enough.
npx --yes zero-shelter judge --record
npx --yes zero-shelter history
--record appends one line per run to .zero-shelter/history.jsonl; nothing is
recorded unless asked. history shows what appeared and what stopped being
reported between runs, and the html report grows a section once two runs exist.
Suggest --record when a project is going to be judged repeatedly — in CI, or
alongside a baseline. Do not turn it on silently: it writes a file into their
repository, and that is their decision.
Offer these; do not add them unasked.
CI — append to an existing workflow:
- run: npx zero-shelter judge --format sarif --output zero-shelter.sarif
continue-on-error: true
- uses: github/codeql-action/upload-sarif@6f5948dfacef28e207b48d0905cf90c03365536d # v3.37.9
with:
sarif_file: zero-shelter.sarif
Coding agent context — .claude/settings.json:
{
"hooks": {
"UserPromptSubmit": [
{ "hooks": [{ "type": "command", "command": "npx zero-shelter hook" }] }
]
}
}
The hook puts the current findings into the session so an agent does not add a dependency this project already has an unfixed advisory for. It never blocks a prompt and never fails.
--update-baseline without saying what it hides.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/baselineThe accepted listDecide what to accept into the baseline and what to fix, and keep the accepted list honest over time. Use when someone asks about the baseline, wants to silence findings, has a build failing on old findings, or asks what has already been accepted. Korean requests look like 베이스라인 정리해줘, 이건 일단 넘어가자, 예전 취약점 때문에 빌드가 깨져./ciPutting the judgement in CIWire zero-shelter into a project's CI so new dependency findings fail the build, without the inherited backlog failing it from day one. Use when someone asks to add a dependency or security gate to CI, gate pull requests on vulnerabilities, upload SARIF to the Security tab, or set up zero-shelter for a team. Korean requests look like: CI에 보안 게이트 붙여줘, 의존성 취약점 CI 연동, PR에서 취약점 막기./explainReading a runRead zero-shelter's output and explain what to fix first and why, or hand over an html report to look at. Use when someone asks what a zero-shelter run means, why a finding is ranked where it is, which vulnerability to fix first, or what to do about the ones left over. Korean requests look like: 이 결과 해석해줘, 뭐부터 고쳐야 해, 리포트 보여줘./fixFixing what the judgement foundApply the upgrades zero-shelter asked for and check they worked, including transitive findings a top-level install cannot reach. Use when someone wants dependency findings fixed, asks to resolve vulnerabilities, or says to do what the report says. Korean requests look like: 의존성 취약점 고쳐줘, 취약점 해결해줘, 리포트대로 조치해줘.Other plugins' skills for the same job
npx claudepluginhub zero-shelter/zero-shelter --plugin zero-shelter