# SkillSpector: safety check for skills before you install (NVIDIA/SkillSpector) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-02 against commit d7338f5 (version 2.12.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/nvidia/skillspector/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
Before you add a new skill to your AI assistant, it checks whether the skill is safe. A scanner looks for known risky patterns, then your assistant reads the source itself. You get one of three verdicts: approve, caution or reject, with the evidence behind it.

## Who it is for
- You download skills from GitHub or a marketplace and want to know if one is safe to install
- You want to check a skill you already use: what it reads, what it sends out, what it runs
- You want a short written review you can read, not a raw scan dump
- Not for: You need protection while a skill runs: the scanner only reads files and does not contain a skill you install anyway
- Not for: You don't want to set up a separate Python tool: without it the skill falls back to a manual review with lower confidence

## What it is
- Kind: knowledge, scripts, command
- License: Apache-2.0
- Repository: https://github.com/NVIDIA/SkillSpector

## What it does
- Treats the skill under review as untrusted: never runs its scripts, uses read-only commands to look at it
- Runs the SkillSpector static scan first (no AI calls) and reads its JSON report: score, severity, rule IDs, files and lines
- Reads the skill's own files: the skill text, scripts, dependency files, MCP settings and every file behind a HIGH or CRITICAL finding
- Second, independent check by the assistant: does the code do only what the description promises, what leaves the machine, does it hide actions or try to persist
- Combines both into APPROVE, CAUTION or REJECT; the score sets a default posture, not the verdict
- If SkillSpector is not installed, says so and does a manual review only
- Never cuts: never downgrade an unexplained HIGH or CRITICAL finding because of reputation, score or package name; never run the target skill's scripts; never install tools silently
- Level APPROVE: No HIGH or CRITICAL findings, nothing sensitive unexplained, source matches the stated purpose
- Level CAUTION: Sensitive behaviour exists but is documented, necessary, bounded and under your control
- Level REJECT: Malicious or deceptive behaviour, unexplained HIGH or CRITICAL findings, hidden prompt injection, credential theft, persistence or a mismatch with the description

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| skill-inspector | plain language ("Is this skill safe to install?"); switches on by itself for questions about a skill's safety | no | Checks a skill before you install it and gives a verdict with evidence |
| /skillspector (OpenCode command) | /skillspector <path or link> | no | Runs the scanner on a skill from inside OpenCode |

### skill-inspector
- Asks for: A local skill folder, a downloaded zip, or a link to a repository
- Asks for: Optional: whether you want the paid AI analysis stage (off unless you ask)
- Gives: Verdict: APPROVE, CAUTION or REJECT, with a short meaning
- Gives: Risk line: score out of 100, severity and SkillSpector's recommendation
- Gives: Install posture in one sentence
- Gives: Bottom line in 2 to 3 sentences
- Gives: Signal overview: static scan, assistant review, sensitive surface
- Gives: Key evidence table: rule, severity, file and line, judgment
- Gives: Diagnosis and numbered guardrails
- Say: "Is the skill in ./downloads/some-skill safe to install?"

### /skillspector (OpenCode command)
- Asks for: A path, zip, Git link or skill file to scan
- Gives: The SkillSpector report, as JSON by default
- Say: "/skillspector ./my-skill"

## Know before installing
- The skill is a guide for your assistant; the actual scanner is a separate Python tool (skillspector) you install yourself. Without it you get a manual review only.
- On its own the scanner sends file contents to an AI provider by default; the skill always adds --no-llm unless you ask. Run it by hand with --no-llm to keep contents local.
- Even a static scan sends the skill's declared package names and versions to OSV.dev to look up known vulnerabilities; offline it falls back to a small built-in list.
- If you allow AI analysis through your Claude, Gemini or OpenCode login, each AI call starts a separate agent session billed to your own plan; the skill tells the assistant to ask first.
- It flags risks before install; it does not isolate or contain a skill you choose to install anyway.
- Its known limits: other languages, text inside images, compiled or encrypted code, and behaviour that only shows when code runs.

## Install (official commands)
- Command-line tool (any system with Python 3.12+ and uv): `uv tool install git+https://github.com/NVIDIA/skillspector.git` — Installs the skillspector command the skill calls. Update later with uv tool update skillspector. Docker is also supported (build the image from the repo's Dockerfile).
- The skill-inspector skill (Claude Code, Codex and other skill readers): The repo gives no install steps for this skill. Copy the folder skills/skill-inspector into your assistant's skills folder (for example .claude/skills/). Needs the command-line tool above for the scan step. Remove: `delete the skill-inspector folder`.
- Claude Code (as an MCP tool): `uv tool install --force 'skillspector[mcp] @ git+https://github.com/NVIDIA/skillspector.git'` && `claude mcp add skillspector -- skillspector mcp` — Gives the assistant a scan_skill tool. It runs with AI analysis on by default (use_llm=true). The author notes an open startup hang on the stdio path (issue #199).
- OpenCode: `cp -r /path/to/SkillSpector/.opencode /path/to/my-project/` — Adds a skillspector_scan tool and the /skillspector command; skillspector must be on PATH or set SKILLSPECTOR_BIN. Remove: `Delete the copied .opencode/tools/skillspector_scan.* and .opencode/commands/skillspector.md files.`.
- Pi: `cd /path/to/SkillSpector` && `uv sync` && `pi install /path/to/SkillSpector` — Then /reload in Pi. Remove: `pi remove /path/to/SkillSpector`.

## What runs on the user's machine
- Code on the machine: yes (the SkillSpector tool you install separately (the skill-inspector skill itself is one markdown file))
- Network: yes
- skill-inspector at work: Tells the assistant to run skillspector scan with --no-llm and write the JSON report to /tmp/skill-inspector-report.json, then read the target with read-only commands (find, rg, sed, jq, file, git diff). For a link, it clones or downloads the target into a temporary folder first.
- Every scan: Static checks only read files: regex patterns, Python syntax-tree checks and YARA rules. The scanned skill is never run.
- Every scan (also with --no-llm): Sends the declared dependency names and versions to api.osv.dev in one batch query; offline it uses a bundled fallback list.
- Scanning a URL, zip or Git link: Downloads or clones it (capped at 100 MiB, at most 10,000 zip entries).
- AI analysis on (the tool's default unless --no-llm): Sends analyzer-eligible file contents to the provider you set in SKILLSPECTOR_PROVIDER (OpenAI, Anthropic, Bedrock, NVIDIA Build, Gemini, Azure, Ollama, local agent logins and others).
- skillspector mcp: A local MCP server with one scan_skill tool. The HTTP mode has no login and binds to loopback only; over HTTP it refuses local paths.
- --mcp-registry mode: Can read the public MCP registry at registry.modelcontextprotocol.io.
- Install: No hooks. The skill folder is text only; the command-line tool pulls in its Python dependencies (LangGraph, LangChain, OpenAI and Anthropic clients, boto3, yara-python and others).

## Settings
- `SKILLSPECTOR_PROVIDER`: AI provider for the optional analysis stage (openai, anthropic, bedrock, nv_build, gemini, ollama, azure_openai, openai_compatible, claude_cli, gemini_cli, opencode_cli, ...)
- `SKILLSPECTOR_MODEL`: Override the provider's default model
- `SKILLSPECTOR_BIN`: Path to the skillspector binary for the OpenCode and Pi extensions
- `SKILLSPECTOR_MAX_WORKFLOW_SECONDS`: Deadline for one scan (default 600)
- `SKILLSPECTOR_OUTPUT_LANGUAGE`: Language for human-readable AI finding text

## Examples (from the pack's own files)
- The skill-inspector report layout: output format defined in skills/skill-inspector/SKILL.md
- A SkillSpector terminal report (author's sample): output format defined in README.md

## Author's numbers (as reported, not run by AgentGid)
- 71 vulnerability patterns across 17 categories. Source: NVIDIA/SkillSpector/README.md
- In a 31,132-skill research subset, 26.1% of skills contain vulnerabilities and 5.2% show likely malicious intent (From the paper the README cites (Agent Skills in the Wild, 2026); 42,447 skills collected, 31,132 analyzed). Source: NVIDIA/SkillSpector/README.md
- Skills with executable scripts are 2.12x more likely to be vulnerable. Source: NVIDIA/SkillSpector/README.md

## Steps only the person can do
- Approve installing the skillspector command-line tool (Python 3.12+ via uv); the skill tells the assistant not to install it silently (README.md (Installation)) Then: The assistant runs the static scan with --no-llm and writes the review
- Only for AI analysis, choose a provider and set its key or CLI login (for example NVIDIA_INFERENCE_KEY, OPENAI_API_KEY, or claude auth login) (README.md (LLM providers and environment variables)) Then: The assistant runs the scan with AI analysis after you ask for it
- Agree to each AI scan that uses a local agent login (claude_cli, gemini_cli, opencode_cli), since every call is billed to your own plan (skills/skill-inspector/SKILL.md (Operating Rules)) Then: The assistant runs one such scan at a time

## Mistakes to avoid
- Not: Run skillspector scan by hand without --no-llm and assume nothing leaves the machine. Instead: Add --no-llm for a local static scan, or set SKILLSPECTOR_PROVIDER on purpose when you want AI analysis. Why: AI analysis is on by default in the command-line tool and sends file contents to the provider
- Not: Call the MCP scan_skill tool and expect a static-only scan. Instead: Pass use_llm=false when the skill's contents must stay local, and check llm_used / scan_mode in the result. Why: The MCP tool defaults to use_llm=true
- Not: Treat a low score as an approval. Instead: Read the source around each finding and combine both lines into APPROVE, CAUTION or REJECT. Why: A low score can miss semantic risk; the score is a posture, not the verdict
- Not: Install a skill flagged CAUTION and rely on SkillSpector to contain it. Instead: Decide before install; isolate the skill yourself if you still want it. Why: The tool only scans; it does not sandbox anything
- Not: Pick codex_cli as the AI provider. Instead: Use an HTTP API provider or another supported CLI provider (claude_cli, gemini_cli, opencode_cli). Why: The codex_cli provider is registered but refuses to run

## What leaves the machine
- Package names and versions the scanned skill declares → api.osv.dev (OSV.dev vulnerability database), Every scan, also with --no-llm, when the network is reachable. Opt out: No switch in the docs; offline it falls back to a bundled list
- File contents of the scanned skill (analyzer-eligible files, DSSE payloads and signing metadata) → The provider set in SKILLSPECTOR_PROVIDER (default nv_build, build.nvidia.com), When AI analysis is on (the tool's default; the skill-inspector skill keeps it off unless you ask). Opt out: --no-llm on the command line, use_llm=false in the MCP tool
- Request for the public MCP server list → registry.modelcontextprotocol.io, Only in --mcp-registry mode. Opt out: Do not use --mcp-registry

## Lines in the pack aimed at agents (ask the person first)
- "If the user provides a URL, clone or download it into a temporary directory before review." (skills/skill-inspector/SKILL.md): The download is code the skill marks untrusted; keep it in an empty temporary folder and never run anything from it
- "cp -r /path/to/SkillSpector/.opencode /path/to/my-project/" (docs/OPENCODE_EXTENSION.md): This adds a tool to the project that runs a local binary; ask the person before copying it into their project

## May I use it like this?
- commercial-app: yes (Apache-2.0: keep the license and notices)
- redistribute-files: conditions (Give recipients a copy of the Apache-2.0 license and mark files you changed)
- client-work: yes (Apache-2.0 allows use in work for others)

## Which one to pick
- If You want a verdict on one skill with a written review by your assistant on top of a local static scan: skill:NVIDIA/SkillSpector
- If You want a scanner that covers AI agents and MCP servers as well as agent skills: skill:snyk/agent-scan
- If You want another dedicated scanner for agent skills to compare results: skill:cisco-ai-defense/skill-scanner
- If You need a full AI red-teaming platform (agent, MCP, infrastructure scans and jailbreak evaluation): skill:Tencent/AI-Infra-Guard

## Works well with
- tool:uv: The README installs the skillspector command with uv tool install
- agent:claude-code: Registers as an MCP server with claude mcp add, and reads the skill-inspector skill
- agent:opencode: Ships an OpenCode tool and the /skillspector command
- agent:pi: Ships a Pi extension installed with pi install

## Works in and needs
- Works in Claude Code: MCP server
- Works in Codex CLI, Gemini CLI: MCP server
- Works in OpenCode: extension (tool + /skillspector command)
- Works in Pi: extension
- Works in Any agent with a skills folder: skills folder (skills/skill-inspector
- Needs Python 3.12 to 3.14: The skillspector command-line tool
- Needs uv: Quick install of the command-line tool
- Needs An AI provider key or CLI login: Only for the optional AI analysis stage

## How to tell it works
Install the tool and the skill, then ask your assistant "Is this skill safe to install?" and point it at a skill folder. It works when you get a Skill Inspector report with a verdict line (APPROVE, CAUTION or REJECT) and a risk score out of 100; if the tool is missing, the report says no scan ran.

## Related
- NVIDIA/skills

## Safety
Install the tool only from github.com/NVIDIA/skillspector. Leave AI analysis off (--no-llm) when the skill you check should not leave your machine; even then, package names go to OSV.dev. The repo ships deliberately malicious sample skills under tests/fixtures for its own tests: do not install them.
