从源直接安装技能的最快方式。
npx clawhub@latest install skill-vetter
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 skill-vetter。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
Skill Vetter 是 AI 智能体开发者和用户的核心安全层。它提供了一个标准化的框架来评估第三方扩展,确保没有恶意代码进入您的工作空间。通过系统地检查红线问题(如未经授权的网络调用、凭据访问和混淆代码),该工具可以保护您的数据和系统完整性。
将此协议集成到您的工作流程中,可确保您部署的任何 Openclaw Skills 都经过彻底的安全检查。它将安装社区贡献工具的风险过程转化为结构化、安全优先的工作流,强调了安全是智能体生态系统中不可逾越的底线。
Skill Vetter 协议依赖于标准的命令行工具,如 curl 和 jq 进行仓库分析。要开始审核托管在 GitHub 上的 Openclaw Skills,您可以使用以下调查命令:
# 检查仓库元数据和活跃度
curl -s "https://api.github.com/repos/OWNER/REPO" | jq '{stars: .stargazers_count, forks: .forks_count, updated: .updated_at}'
# 列出特定技能目录下的所有文件
curl -s "https://api.github.com/repos/OWNER/REPO/contents/skills/SKILL_NAME" | jq '.[].name'
# 获取并手动检查 SKILL.md 定义文件
curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/skills/SKILL_NAME/SKILL.md"
Skill Vetter 将发现结果整理成结构化报告,以确保不同 Openclaw Skills 之间的一致性。架构包括:
| 属性 | 描述 |
|---|---|
| 指标 | 定量数据,包括星数、更新频率和审查的文件。 |
| 红线 | 审查过程中发现的关键安全违规或可疑代码模式列表。 |
| 权限 | 文件、网络和 CLI 命令请求访问的详细列表。 |
| 风险等级 | 定性评级:低(备注/天气)、中(浏览器/API)、高(凭证)或极端(Root 权限)。 |
| 结论 | 最终建议:安全安装、谨慎安装或禁止安装。 |
name: skill-vetter
version: 1.0.0
description: Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
Security-first vetting protocol for AI agent skills. Never install a skill without vetting it first.
Questions to answer:
- [ ] Where did this skill come from?
- [ ] Is the author known/reputable?
- [ ] How many downloads/stars does it have?
- [ ] When was it last updated?
- [ ] Are there reviews from other agents?
Read ALL files in the skill. Check for these RED FLAGS:
?? REJECT IMMEDIATELY IF YOU SEE:
─────────────────────────────────────────
? curl/wget to unknown URLs
? Sends data to external servers
? Requests credentials/tokens/API keys
? Reads ~/.ssh, ~/.aws, ~/.config without clear reason
? Accesses MEMORY.md, USER.md, SOUL.md, IDENTITY.md
? Uses base64 decode on anything
? Uses eval() or exec() with external input
? Modifies system files outside workspace
? Installs packages without listing them
? Network calls to IPs instead of domains
? Obfuscated code (compressed, encoded, minified)
? Requests elevated/sudo permissions
? Accesses browser cookies/sessions
? Touches credential files
─────────────────────────────────────────
Evaluate:
- [ ] What files does it need to read?
- [ ] What files does it need to write?
- [ ] What commands does it run?
- [ ] Does it need network access? To where?
- [ ] Is the scope minimal for its stated purpose?
| Risk Level | Examples | Action |
|---|---|---|
| ?? LOW | Notes, weather, formatting | Basic review, install OK |
| ?? MEDIUM | File ops, browser, APIs | Full code review required |
| ?? HIGH | Credentials, trading, system | Human approval required |
| ? EXTREME | Security configs, root access | Do NOT install |
After vetting, produce this report:
SKILL VETTING REPORT
═══════════════════════════════════════
Skill: [name]
Source: [ClawdHub / GitHub / other]
Author: [username]
Version: [version]
───────────────────────────────────────
METRICS:
? Downloads/Stars: [count]
? Last Updated: [date]
? Files Reviewed: [count]
───────────────────────────────────────
RED FLAGS: [None / List them]
PERMISSIONS NEEDED:
? Files: [list or "None"]
? Network: [list or "None"]
? Commands: [list or "None"]
───────────────────────────────────────
RISK LEVEL: [?? LOW / ?? MEDIUM / ?? HIGH / ? EXTREME]
VERDICT: [? SAFE TO INSTALL / ?? INSTALL WITH CAUTION / ? DO NOT INSTALL]
NOTES: [Any observations]
═══════════════════════════════════════
For GitHub-hosted skills:
# Check repo stats
curl -s "https://api.github.com/repos/OWNER/REPO" | jq '{stars: .stargazers_count, forks: .forks_count, updated: .updated_at}'
# List skill files
curl -s "https://api.github.com/repos/OWNER/REPO/contents/skills/SKILL_NAME" | jq '.[].name'
# Fetch and review SKILL.md
curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/skills/SKILL_NAME/SKILL.md"
Paranoia is a feature. ????