Installing an agent skill is usually a one-line decision. This guide is about turning it into a two-step one: scan, then install.
We use SkillSpector, NVIDIA's open-source scanner, because it runs locally, needs no account, and gives a result you can act on in under a minute per skill. Where it stops being useful, we say so.
Step 1: install the scanner
You need uv, the Python package manager. If you do not have it, install it from astral.sh first.
uv tool install git+https://github.com/nvidia/skillspector.git
If you would rather build from source:
git clone https://github.com/NVIDIA/SkillSpector.git
cd SkillSpector
uv venv .venv && source .venv/bin/activate
make install
Check that it works with skillspector --help. Static scanning needs no API key, no account and no network beyond the dependency lookup, so you can run this on a locked-down machine.
Step 2: point it at the thing
The scanner takes more input types than you probably expect:
skillspector scan ./my-skill/ # a folder you already downloaded
skillspector scan ./SKILL.md # a single instruction file
skillspector scan https://github.com/user/my-skill # a repository you are considering
skillspector scan ./my-skill.zip # an archive
Scanning a repository URL before you clone it is the more useful habit, because it puts the check upstream of the install rather than after it.
If you want to inspect a whole directory of installed skills at once, loop over the folders:
for d in ~/.claude/skills/*/; do echo "== $d"; skillspector scan "$d" --no-llm; done
Step 3: understand what the two stages do
The default run is static analysis: pattern matching over files, permission declarations, dangerous API calls, dependency versions and agent-specific risk categories. NVIDIA's documentation lists 68 patterns across 17 categories — prompt injection, data exfiltration, privilege escalation, supply-chain issues, excessive agency, memory poisoning, tool misuse, MCP tool poisoning and others.
The optional second stage sends the skill to a language model and asks it to compare stated behaviour with actual behaviour. That catches description-behaviour mismatches, vague triggers and subtle policy problems that a pattern list cannot see.
To enable it, configure a provider:
export SKILLSPECTOR_PROVIDER=openai
export OPENAI_API_KEY=sk-...
Local models work too, as do CLI providers that reuse an existing login. To stay static:
skillspector scan ./my-skill/ --no-llm
Practical advice: run static first, always. Add the semantic pass only for skills you are genuinely considering, because it costs tokens and time per scan.
Step 4: read the finding, not just the number
The output gives a 0–100 risk score, a severity label and a safe_to_install recommendation. The score is for sorting; the findings are for deciding.
What each finding type should prompt:
A critical or high severity finding means do not install it until the issue is fixed or you have deliberately accepted it. There is no "probably fine" at this level.
A hidden instruction or tool-poisoning finding means the skill contains content designed not to be noticed. Remove it or do not install; there is no configuration that makes this safe.
An under-declared capability means the skill does more than its description says — reading files it never mentioned, reaching a host it did not list. Either the author updates the permissions or you drop it.
A known-vulnerable dependency is usually fixable: upgrade, or pin a version that is patched.
A description-behaviour mismatch is the judgement call. Sometimes it is sloppy writing; sometimes it is the whole point of the attack. Read the diff between what the README promises and what the code does.
Step 5: choose an output format that fits
Terminal output is fine for one-off checks. For anything repeatable, use machine-readable output:
skillspector scan ./my-skill/ --format json --output report.json
skillspector scan ./my-skill/ --format sarif --output report.sarif
SARIF matters if you have any code-scanning pipeline: the results land next to your other security findings instead of in a terminal scrollback nobody reads.
What the tool will not do
It will not catch a skill written specifically to evade its patterns. Static rules are a known list; a careful attacker reads the same list.
It will not keep watching. A clean result describes one commit at one moment. If the skill updates itself from a repository, your scan has an expiry date — pin the version, or re-run the check after updates.
It will not judge intent. A skill that reads your browser storage for a legitimate reason and one that reads it to exfiltrate credentials can produce similar findings. That is what the semantic stage is for, and why it is imperfect.
It will not tell you whether the author is trustworthy. Provenance is a separate question, and the answer usually comes from the repository's history and issue tracker rather than from a scanner.
A routine worth keeping
Scan before install. Read the finding, not only the score. Pin the version. Keep a list of what you installed and where it came from.
Four habits, fifteen minutes, and the difference between a skill you chose and one that chose you.


