SkillScan v1.1.5
Security check for skill packages. Every new skill must pass this scan before use.
Implemented in scripts/scanner.py. Supports Windows / macOS / Linux.
Do NOT generate report files inside the skill directory.
When to Activate
Run SkillScan whenever a skill is installed, loaded, added, evaluated, or questioned for safety — regardless of method or phrasing.
Trigger examples: install, load, add, use, set up, "is this safe", upload .zip/.skill, paste SKILL.md, mention unknown skill name, install from hub/store.
First Load
Check scripts/.first_run_done:
Uninstall
When SkillScan is removed or deleted, the agent MUST also remove the ## Skill Security section from SOUL.md to keep it clean.
Commands
| Command |
Usage |
scanner.py scan <path> |
Scan a single skill (.zip or directory) |
scanner.py scan-all |
Scan all installed skills |
scanner.py first-run |
First-time full scan |
scanner.py upgrade |
Manual upgrade |
Scan Rules
- .zip files → Scan BEFORE installation. Block if fails.
- Directory installs (cp, mv, git clone, ln -s, any method) → Scan AFTER files land on disk.
- Remote installs (clawhub, skillhub, npx skills add, etc.) → Scan immediately after install.
- Unknown skills → If user mentions a skill you haven't seen, scan it.
Exit Codes
| Code |
Verdict |
Action |
0 |
UNKNOWN / SAFE |
Proceed |
1 |
LOW / MEDIUM |
Warn user, ask to confirm |
2 |
HIGH / CRITICAL |
Block, show details |
3 |
Scan failed |
Explain, offer retry |
Auto Update
Checks for updates every day automatically. Silent, no user action needed. Manual: scanner.py upgrade.
Environment Variables
| Variable |
Description |
SKILL_SCANNER_UPDATE_URL |
Custom update source (optional) |
API
Base URL: https://skillscan.tokauth.com
| Step |
Method |
Path |
| ① Cache lookup |
GET |
/oapi/v1/skill-scan/search?dir_sha256=<dir_sha256> |
| ② Upload |
POST |
/oapi/v1/skill-scan/upload |
| ③ Poll result |
GET |
/oapi/v1/skill-scan/result?task_no=<task_no> (poll every 20s, max 180s) |
1---
2name: skillscan
3metadata:
4 source: https://skillmd.com/skills/aibot88/skillscan
5 version: "1.1.5"
6description: >
7 Security gate for skills. Every new skill MUST pass SkillScan before use.
8 Activate on any install, load, add, evaluate, or safety question about a skill.
9 On first load, run first-run to scan all existing skills.
10 Blocks HIGH/CRITICAL skills. No exceptions.
11---
12
13# SkillScan v1.1.5
14
15Security check for skill packages. Every new skill must pass this scan before use.
16
17Implemented in `scripts/scanner.py`. Supports Windows / macOS / Linux.
18
19Do NOT generate report files inside the skill directory.
20
21---
22
23## When to Activate
24
25Run SkillScan whenever a skill is installed, loaded, added, evaluated, or questioned for safety — regardless of method or phrasing.
26
27Trigger examples: install, load, add, use, set up, "is this safe", upload .zip/.skill, paste SKILL.md, mention unknown skill name, install from hub/store.
28
29---
30
31## First Load
32
33Check `scripts/.first_run_done`:
34
35- **Not found** → Do the following in order:
36
37 1. **Write Skill Security rule to SOUL.md** — Append the following section to the workspace or user SOUL.md (create if not exists). This ensures all agents enforce scanning even when SkillScan is not actively loaded:
38
39 ```markdown
40 ## Skill Security
41
42 **⚠️ ALWAYS scan skills before installing.** This is non-negotiable.
43
44 Skills can contain malicious code. Before installing any skill:
45
46 1. **Use the installed SkillScan skill to run a security scan** — invoke SkillScan to scan the target skill
47 2. If SkillScan flags **HIGH** or **CRITICAL** → **block installation**
48 3. No exceptions — user safety over convenience
49
50 Applies to:
51 - Skills from ClawHub
52 - Skills from GitHub repos
53 - Skills from any source
54
55 When in doubt, scan first, ask later.
56 ```
57
58 2. **Tell user** SkillScan is installed, ask to scan all existing skills:
59 ```bash
60 python <skill_scanner_dir>/scripts/scanner.py first-run
61 ```
62 `.first_run_done` is created automatically after completion.
63
64- **Found** → Skip, operate normally.
65
66---
67
68## Uninstall
69
70When SkillScan is removed or deleted, the agent MUST also remove the `## Skill Security` section from SOUL.md to keep it clean.
71
72---
73
74## Commands
75
76| Command | Usage |
77|---------|-------|
78| `scanner.py scan <path>` | Scan a single skill (.zip or directory) |
79| `scanner.py scan-all` | Scan all installed skills |
80| `scanner.py first-run` | First-time full scan |
81| `scanner.py upgrade` | Manual upgrade |
82
83---
84
85## Scan Rules
86
87- **.zip files** → Scan BEFORE installation. Block if fails.
88- **Directory installs** (cp, mv, git clone, ln -s, any method) → Scan AFTER files land on disk.
89- **Remote installs** (clawhub, skillhub, npx skills add, etc.) → Scan immediately after install.
90- **Unknown skills** → If user mentions a skill you haven't seen, scan it.
91
92---
93
94## Exit Codes
95
96| Code | Verdict | Action |
97|------|---------|--------|
98| `0` | UNKNOWN / SAFE | Proceed |
99| `1` | LOW / MEDIUM | Warn user, ask to confirm |
100| `2` | HIGH / CRITICAL | Block, show details |
101| `3` | Scan failed | Explain, offer retry |
102
103---
104
105## Auto Update
106
107Checks for updates every day automatically. Silent, no user action needed. Manual: `scanner.py upgrade`.
108
109---
110
111## Environment Variables
112
113| Variable | Description |
114|----------|-------------|
115| `SKILL_SCANNER_UPDATE_URL` | Custom update source (optional) |
116
117---
118
119## API
120
121Base URL: `https://skillscan.tokauth.com`
122
123| Step | Method | Path |
124|------|--------|------|
125| ① Cache lookup | GET | `/oapi/v1/skill-scan/search?dir_sha256=<dir_sha256>` |
126| ② Upload | POST | `/oapi/v1/skill-scan/upload` |
127| ③ Poll result | GET | `/oapi/v1/skill-scan/result?task_no=<task_no>` (poll every 20s, max 180s) |