/01
Terminal
Run the first scan with Node 20+ and a readable lockfile.
npx zero-shelter judge
zero—shelterIn practice
Carry the same judgement from a first local scan into CI and your coding agent.
/01
Run the first scan with Node 20+ and a readable lockfile.
npx zero-shelter judge/02
Record the inherited backlog, upload SARIF, and fail on new findings.
npx zero-shelter judge --format sarif/03
Give an agent the same findings and safe remediation context before it edits dependencies.
npx zero-shelter hookStart with one run
Review the initial backlog. Record it only when it is understood; later runs focus on what changed.
A readable lockfile is required. No scanner report is exit 2, not a clean pass.
Store inherited findings once; an expiry or new finding keeps the work visible.
Write SARIF for GitHub Code Scanning and use the judgement result to fail on new findings.
Agent route
The hook adds the current judgement and commands to the session. It never blocks or rewrites a prompt and stays quiet on errors.
Install five presentation-only skills for setup, explanation, fixes, baseline, and CI.
{
"hooks": {
"UserPromptSubmit": [
{ "hooks": [{ "type": "command", "command": "npx zero-shelter hook" }] }
]
}
}
Read the hook contract
One result, many readers
Text is for people, JSON for tools, SARIF for GitHub, and HTML for a shareable local report. Use --explain when the score needs an argument.