/zero-shelter:cifrom zero-shelter
Wires zero-shelter into CI to gate pull requests on new dependency vulnerabilities without failing on inherited backlog. Supports SARIF upload to GitHub Security tab.
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.
npm audit in the pipelineIt is the obvious two-word answer, and it is the one that gets switched off.
npm audit fails on everything a project has ever accumulated, so the first run
on a real repository is red for reasons nobody introduced today, and within a
fortnight someone adds || true. It also has no memory: it cannot tell a
finding that appeared in this pull request from one that has been there for two
years.
Use it if the project genuinely has no backlog and wants nothing else. Anything past that — a baseline, a second scanner reconciled with the first, findings in the Security tab, a report someone can open — is what this is for.
The point is the ratchet: the build fails on what this change introduced, not on the backlog the project inherited. Skip the baseline and the job is red from day one, which is how a security check gets switched off in week two.
1. Record the backlog first.
npx --yes zero-shelter judge --update-baseline
Show the findings before running it. Anything recorded stops being reported, and
that is a decision about risk, not a setup step. If several look fixable today,
offer /zero-shelter:fix first so they are fixed rather than accepted.
2. Commit .zero-shelter/baseline.json. Without it in the repository, CI has
nothing to compare against and reports the whole backlog on every run.
3. Then add the workflow.
The repository ships one at examples/github-action.yml. Copy it rather than
writing a new one — it already handles the pieces that are easy to get wrong.
Keep the SHAs when you copy it. Tags are mutable, so a tag can change what the
workflow runs without leaving a diff in the repository. The version comments
make the pins readable when it is time to update them.
- 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
continue-on-error is deliberate: the upload step has to run even when the
judgement failed, or the findings never reach the Security tab. The job still
fails afterwards, because the exit code is checked in a later step.
Uploading SARIF needs permissions: security-events: write. Without it the
upload fails with a permissions error that reads like an authentication problem.
The contract is the exit code, and it is the same everywhere. It is frozen —
docs/STABILITY.md says so, along with what else is
and is not safe to depend on below 1.0:
| Code | Meaning |
|---|---|
| 0 | Nothing new |
| 1 | New findings — fail the build |
| 2 | Could not judge. Never treat this as a pass |
A plain npx zero-shelter judge in a script step is a complete integration.
Two things worth adding when the platform allows:
--format html --output zero-shelter.html as a build artifact, so someone can
look at a failed run instead of reading log output--record, if the project keeps a history, so the trend survives across runs.
It writes to .zero-shelter/history.jsonl, which means the job needs somewhere
to put it — an artifact, or a commit on a schedule, not on every PRosv-scanner is what makes cross-source reconciliation possible, and most of
the deduplication comes from it. In CI, pin it and check the download:
- run: |
curl -sSfL -o osv-scanner \
https://github.com/google/osv-scanner/releases/download/v2.5.0/osv-scanner_linux_amd64
echo "edcfc41d257db36148f065055655fe3fcfc434b0b423ea67468a84c207524e0c osv-scanner" | sha256sum -c -
chmod +x osv-scanner && echo "$PWD" >> "$GITHUB_PATH"
Check the checksum for the version you pin; the one above is v2.5.0 linux/amd64. Pulling an unverified binary into a pipeline that exists to check supply chains is not a detail to wave through.
Run the job's command locally and read the exit code. A workflow that has never
been run is a guess, and the failure mode people hit is 2 on a project whose
lockfile CI never generated.
--update-baseline to the CI job. A baseline that re-records
itself on every run accepts every new finding automatically, which removes the
only thing this job does.continue-on-error on the judge step itself..zero-shelter/history.jsonl from a pull-request job; every PR
would fight over the same file.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub zero-shelter/zero-shelter --plugin zero-shelter5 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 베이스라인 정리해줘, 이건 일단 넘어가자, 예전 취약점 때문에 빌드가 깨져./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: 의존성 취약점 고쳐줘, 취약점 해결해줘, 리포트대로 조치해줘./setupFirst runRun zero-shelter on this project for the first time and wire it in. Use when someone asks to check dependency vulnerabilities, cut down scanner noise, or install zero-shelter. Korean requests look like: 의존성 취약점 점검해줘, 보안 스캔 돌려줘, zero-shelter 설치.