Introduction¶
In environments like Cursor and Claude Code, Skills often involve scripts, network requests, and file read/write operations. A single skillhub install command or dragging in a .zip file from the community could cause an Agent to execute instructions found in SKILL.md. Manually reviewing every SKILL.md and scripts/ directory is impractical, and it is difficult to maintain consistency between “install then use” and “review then use.”
Here we introduce SkillScan: once installed into the current Agent’s skills directory, it triggers a scan when the Agent installs, loads, or evaluates a Skill, providing blocking strategies for high-risk and critical risks.
What is this¶
SkillScan is a security protection Skill designed for Skill packages. The official description states: it automatically detects security risks in installed and newly added Skills, and blocks them before high-risk or critical risks cause damage to the environment.
Its coordinates on SkillHub are @user_0db42586/skillscan. The current page version is v1.1.5-2, categorized under it-ops-security, with a source of community and published by user_0db42586. The tags indicate requires_api_key=false, meaning installing this Skill itself does not depend on an additional API Key. The Skill implementation is written in scripts/scanner.py, and the documentation states support for Windows, macOS, and Linux.
Core Functions¶
Based on the SkillHub introduction and SKILL.md description, the verifiable capabilities include:
- Trigger on Install and Load: Runs a scan when a Skill is being installed, loaded, added, evaluated, or when the user asks “is this safe?”; it also covers common paths such as downloading from a hub, pasting
SKILL.md, or uploading a.zip. - First-time Full Scan: On first load, if
scripts/.first_run_donedoes not exist, it guides the execution offirst-runto perform a scan on existing Skills. - Tiered Handling: Scan results are distinguished by exit codes—
SAFE/UNKNOWNallows continuation;LOW/MEDIUMrequires a warning and confirmation;HIGH/CRITICALshould block usage and display details. - Scanning Order Rules:
.zipfiles are scanned before installation, and installation is blocked if the scan fails; directory forms are scanned after files are written to disk; remote installations via clawhub, skillhub,npx skills add, etc., should be scanned immediately after installation. - Optional Cloud Analysis: The scanner accesses interfaces on
https://skillscan.tokauth.com(cache query, upload, polling results) to complete the detection process; the update source can be customized via the environment variableSKILL_SCANNER_UPDATE_URL. - Auto-update: The documentation states that it automatically checks for updates daily, and
scanner.py upgradecan also be executed manually.
Installation and Enablement¶
The installation method provided on the SkillHub page is: instruct the Agent to install @user_0db42586/skillscan following the SkillHub Installation Documentation.
If the skillhub CLI is already available on the local machine, the --dir flag must be used during installation to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. Common path examples from the documentation:
# Check CLI
command -v skillhub && skillhub --version
# If not installed (Full installation, including default Skills)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# Example: Install SkillScan to Cursor directory
skillhub install user_0db42586/skillscan --dir ~/.cursor/skills/
Claude Code can use ~/.claude/skills/; Codex can use ~/.codex/skills/ or .agents/skills/ under the project. Please refer to your current client’s documentation for specifics.
On first load, SKILL.md requires appending a “Skill Security” rule to the workspace or user-level SOUL.md, so that the emphasis on “scan before install” remains even when SkillScan is not actively loaded. When uninstalling SkillScan, this paragraph should be deleted to keep the configuration clean.
Typical Usage¶
The scanning logic is provided by scripts/scanner.py. Execute it under the Skill directory (replace <skill_scanner_dir> with the local SkillScan installation path):
# After first installation: Scan all installed Skills and write .first_run_done
python <skill_scanner_dir>/scripts/scanner.py first-run
# Scan a single package (directory or .zip)
python <skill_scanner_dir>/scripts/scanner.py scan /path/to/skill-or.zip
# Scan all Skills installed in the current environment
python <skill_scanner_dir>/scripts/scanner.py scan-all
# Manually check for and upgrade SkillScan itself
python <skill_scanner_dir>/scripts/scanner.py upgrade
The Agent’s behavior should align with the exit codes: 0 continue; 1 prompt user for confirmation; 2 block usage and explain the reason; 3 scan failed, may retry. The documentation requires not generating report files within the Skill directory.
Cloud interfaces (for understanding scanning dependencies, not a manual call list):
| Step | Method | Path |
|---|---|---|
| Cache Query | GET | /oapi/v1/skill-scan/search?dir_sha256=<dir_sha256> |
| Upload | POST | /oapi/v1/skill-scan/upload |
| Poll Results | GET | /oapi/v1/skill-scan/result?task_no=<task_no> (approx. every 20s, max length 180s) |
Use Cases and Considerations¶
Who it is for: Teams or individuals who frequently introduce third-party Skills from SkillHub, GitHub, or compressed packages; those who want to write “pre-install scanning” into the Agent workflow rather than occasional manual spot checks.
Constraints to accept before use:
- Scanning depends on external networks and
skillscan.tokauth.com; availability in offline or network-restricted environments needs to be evaluated independently. - The first run modifies
SOUL.md. If you do not wish for the Agent to persist such policies, you need to be aware of this before installation and clean it up upon uninstallation as per the documentation. - Auto-update silently pulls new versions; if there are compliance requirements for the update source, review should be combined with
SKILL_SCANNER_UPDATE_URLand intranet strategies. - SkillHub page data (as of data capture): Rating 100000, Downloads 8606, Installs 16; being a community source means maintenance rhythm and audit conclusions need to be tracked independently. Do not equate “blocking HIGH/CRITICAL” with “zero risk.”
Conclusion¶
SkillScan consolidates security actions in the Skill installation chain into repeatable scanning and exit code strategies, aligned with the distribution of @user_0db42586/skillscan on SkillHub. If you want to add a gatekeeper to your existing Agent, you can start with the official page and installation documentation, and use first-run to scan existing Skills after installation.
Official Address: https://api.skillhub.cn/user_0db42586/skillscan
SkillHub Page: https://www.skillhub.cn/skills/user_0db42586/skillscan