skillspector
Skill0 starsChanged 4 months agoMITView on GitHub
Scan an AI agent skill for security vulnerabilities and malicious patterns before installing or trusting it. Use when the user wants to vet, audit, or security-check a skill — triggers include "scan this skill", "is this skill safe", "check this skill for malware", "audit a skill before I install it", "vet this agent skill", or pointing at a SKILL.md / skill directory / skill repo URL and asking whether it's safe. Runs NVIDIA SkillSpector via a local Docker image. Do NOT use for scanning general application source code, container images, or dependencies — this is specifically for agent skills.
- Reads credentials
- Deletes or force-pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- brenorb/freedom-skillstheir own version, first seen Oct 27, 2026
- Lucioway/way-stacktheir own version, first seen Aug 31, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- brenorb/freedom-skills★ 20same name
- Lucioway/way-stack★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- commit-pushSkill
- design-modeSkill
- md2pdfSkill
- overnight-parkSkill
- overnightSkill
- rename-to-dirSkill
- screenshotSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
If that directory is gone, re-clone: git clone https://github.com/NVIDIA/skillspector.git.
- Distinctive: line 36
If the file is gone, recreate it (have the user paste the key.
- Distinctive: line 72
When the user wants a saved report (mount a writable dir):
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SkillSpector — AI Skill Security Scanner
Wraps NVIDIA SkillSpector (skillspector:latest Docker image) to scan agent skills for vulnerabilities, malicious patterns, and CVEs. Two-stage: fast static pattern + YARA matching, then an LLM semantic pass that reduces false positives. Default to LLM mode — the static-only pass over-flags brutally (see Gotchas); the LLM pass returns reasoned findings.
Configure
Set SKILLSPECTOR_REPO in your shell profile — the local clone of
NVIDIA/skillspector:
export SKILLSPECTOR_REPO="$HOME/src/skillspector"Prerequisites (check first, fix if missing)
- Docker running —
docker version --format '{{.Server.Version}}'. If it fails, tell the user to start Docker Desktop. - Image exists —
docker image inspect skillspector:latest >/dev/null 2>&1. If missing, build it:
If that directory is gone, re-clone:cd "$SKILLSPECTOR_REPO" && docker build -t skillspector .git clone https://github.com/NVIDIA/skillspector.git. - API key for the LLM pass — a persistent, git-ignored env file holds the Anthropic credentials:
Confirm it's usable, else fall back to"$SKILLSPECTOR_REPO"/.env (SKILLSPECTOR_PROVIDER=anthropic + ANTHROPIC_API_KEY, chmod 600)--no-llm:
If the file is gone, recreate it (have the user paste the key; never echo it into the chat/transcript).ENVF="$SKILLSPECTOR_REPO"/.env test -s "$ENVF" && grep -q 'ANTHROPIC_API_KEY=sk-' "$ENVF" && echo "LLM ready" || echo "no key -> use --no-llm"
Running a scan
The image mounts the current directory as /scan and the entrypoint is skillspector. Target paths are relative to the mounted dir. --env-file supplies the provider + key, enabling the LLM pass. JSON output is easiest to triage programmatically.
Local skill directory or SKILL.md (default, LLM mode) — mount the parent dir, pass the relative path:
docker run --rm -v "$HOME/.claude/skills:/scan" \
--env-file "$SKILLSPECTOR_REPO"/.env \
skillspector scan ./SKILLNAME/ --format json$PARENT_DIR is the parent of whatever you scan; for installed skills it's $HOME/.claude/skills.
Remote skill repo (vet before install) — no mount needed:
docker run --rm --env-file "$SKILLSPECTOR_REPO"/.env \
skillspector scan https://github.com/user/some-skill --format jsonZip archive:
docker run --rm -v "$PARENT_DIR:/scan" \
--env-file "$SKILLSPECTOR_REPO"/.env \
skillspector scan ./some-skill.zip --format jsonStatic-only fallback
Drop --env-file and add --no-llm when the .env is missing/empty or the LLM analyzer crashes on a skill (see Gotchas). Triage the static findings manually — they're noisy:
docker run --rm -v "$HOME/.claude/skills:/scan" skillspector scan ./SKILLNAME/ --no-llmMachine-readable output
When the user wants a saved report (mount a writable dir):
docker run --rm -v "$PARENT_DIR:/scan" skillspector scan ./SKILLNAME/ --format sarif --output report.sarif
# --format also accepts: json, markdown, text (default)Interpreting results
SkillSpector prints an overall Severity and Recommendation (SAFE / CAUTION / UNSAFE), then per-finding rows with severity, rule ID, location (file:line), and a confidence %.
- Static-only mode is noisy. Pattern/YARA rules flag legit skills — e.g. a doc that mentions
shell=True,rm -rf, cron, or credential handling. Low-confidence (<60%) findings on documentation/reference files are usually false positives. - Weight by confidence + location. A HIGH finding at 85%+ inside an executable script (
.sh,.py) matters far more than the same rule firing in a markdown reference. - Real red flags: info-stealer / credential-exfil patterns in executable code, network calls to unexpected hosts, obfuscated/encoded payloads, persistence mechanisms (cron, startup hooks) in code rather than prose.
- Read the code before relaying any real-looking finding. Both passes overstate. The LLM flags data flows ("untrusted transcript → shell-command generator") that sound like RCE but often don't execute — the output is captured and returned as text. Open the cited
file:line, trace whether attacker-controlled input is actually executed vs just stored/returned, and report ground truth — not the scanner's severity verbatim. - Always report: the overall recommendation, then a short triaged list — genuine concerns vs likely-false-positives, each verified against the code — and a clear verdict on whether it's safe to install. Don't just dump the raw table.
Gotchas
- LLM analyzer crashes on binary blobs. A skill shipping compressed/binary data (e.g.
*.json.gz) can make the LLM emit structured output that fails SkillSpector's pydantic schema:Error: ... validation error for MetaAnalyzerResult ... impact Field requiredorfindings ... Input should be a valid list. Retry once; if it fails again, fall back to--no-llmfor that skill. - Static mode over-flags. Any
subprocess.run([...])(even array-arg, no shell), env-var read,urlopen/urllibfetch, or browser-cookie access trips HIGH rules in legit skills. Binary files produce garbage matches (random bytes matchingrm). Treat static HIGH as "look here," not "guilty." - Legit-but-powerful capabilities read as CRITICAL. Browser-automation skills (cookie/session access, screen record), skills that shell out to
claude/gh, or yt-dlp--cookies-from-browserwill score high. Not bugs — inherent. The real question is whether you trust the source, not the rule hit.
Notes
- The
skillspectorzsh function in~/.zshrcdoes the same thing interactively (mounts$PWD, auto-passes the key if set). This skill is for when Claude runs the scan and triages the output. - Rebuild the image after pulling repo updates:
cd "$SKILLSPECTOR_REPO" && git pull && docker build -t skillspector .
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

