← 返回
未分类

SkillScan

SkillScan 是skill的安全防护措施。它可以自动检测已安装和新添加skill中的安全风险,并在高危/严重风险对您的环境造成损害之前将其拦截。
TokAuth
未分类 community v1.1.5-2 3 版本 100000 Key: 无需
★ 0
Stars
📥 1,042
下载
💾 16
安装
3
版本
#latest

概述

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:

  • Not found → Do the following in order:
  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:

```markdown

## Skill Security

⚠️ ALWAYS scan skills before installing. This is non-negotiable.

Skills can contain malicious code. Before installing any skill:

  1. Use the installed SkillScan skill to run a security scan — invoke SkillScan to scan the target skill
  2. If SkillScan flags HIGH or CRITICALblock installation
  3. No exceptions — user safety over convenience

Applies to:

  • Skills from ClawHub
  • Skills from GitHub repos
  • Skills from any source

When in doubt, scan first, ask later.

```

  1. Tell user SkillScan is installed, ask to scan all existing skills:

```bash

python /scripts/scanner.py first-run

```

.first_run_done is created automatically after completion.

  • Found → Skip, operate normally.

Uninstall

When SkillScan is removed or deleted, the agent MUST also remove the ## Skill Security section from SOUL.md to keep it clean.


Commands

CommandUsage
----------------
scanner.py scan Scan a single skill (.zip or directory)
scanner.py scan-allScan all installed skills
scanner.py first-runFirst-time full scan
scanner.py upgradeManual 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

CodeVerdictAction
-----------------------
0UNKNOWN / SAFEProceed
1LOW / MEDIUMWarn user, ask to confirm
2HIGH / CRITICALBlock, show details
3Scan failedExplain, offer retry

Auto Update

Checks for updates every day automatically. Silent, no user action needed. Manual: scanner.py upgrade.


Environment Variables

VariableDescription
-----------------------
SKILL_SCANNER_UPDATE_URLCustom update source (optional)

API

Base URL: https://skillscan.tokauth.com

StepMethodPath
--------------------
① Cache lookupGET/oapi/v1/skill-scan/search?dir_sha256=
② UploadPOST/oapi/v1/skill-scan/upload
③ Poll resultGET/oapi/v1/skill-scan/result?task_no= (poll every 20s, max 180s)

版本历史

共 2 个版本

  • v1.1.5-2 添加描述 当前
    2026-04-08 09:12 安全 安全
  • v1.1.5-1 Initial release
    2026-04-07 20:02 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,791
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,506
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,120