📦 OpenClaw Skill 安装完全指南

2026年了,如果你还在手动复制粘贴 Skill 文件,那你真的需要看看这篇指南。三种安装方式,总有一种适合你的懒人需求。

📋 目录

🎯 什么是 OpenClaw Skill?

Skill 是 OpenClaw Agent 的能力扩展包。就像手机 App 一样,给 Agent 装上不同的 Skill,它就能干不同的活。ClawHub 上有 71,000+ 个 Skill,覆盖了从内容生成到代码审计的各种场景。

Skill 的核心组成

🚀 方式一:ClawHub 一键安装(推荐)

最简单的方式,一行命令搞定:

# 搜索 Skill openclaw skills search "web scraper" # 安装 Skill openclaw skills install camofox-web-scraper # 安装指定版本 openclaw skills install camofox-web-scraper@2.1.0 # 查看已安装 openclaw skills list
💡 ClawHub Skill 自动经过 VirusTotal + 静态分析 + NVIDIA SkillSpector 三重安全扫描,安全有保障。

ClawHub API 直接调用

# 搜索热门 Skill curl "https://clawhub.ai/api/v1/skills?q=seo&sort=popular&limit=10" # 获取 Skill 详情 curl "https://clawhub.ai/api/v1/skills/camofox-web-scraper" # 下载 Skill 包 curl -L "https://clawhub.ai/api/v1/skills/camofox-web-scraper/download" -o skill.tar.gz

📂 方式二:GitHub 仓库安装

有些 Skill 还没上架 ClawHub,或者你想用最新开发版:

# 从 GitHub 安装 openclaw skills install --from-github user/repo # 从 GitHub 安装指定分支 openclaw skills install --from-github user/repo@dev-branch # 手动 clone + 安装 git clone https://github.com/user/repo.git ~/.openclaw/skills/my-skill openclaw skills refresh

Skill 仓库结构要求

my-skill/ ├── SKILL.md # 必需:Skill 定义文件 ├── scripts/ # 可选:脚本目录 │ └── main.sh ├── templates/ # 可选:模板目录 │ └── output.html ├── package.json # 可选:元数据 └── README.md # 可选:说明文档

🛠️ 方式三:本地开发安装

自己写 Skill 的开发者看这里:

# 创建 Skill 目录 mkdir -p ~/.openclaw/skills/my-custom-skill # 创建 SKILL.md cat > ~/.openclaw/skills/my-custom-skill/SKILL.md << 'EOF' # My Custom Skill ## 触发条件 当用户要求执行 XXX 任务时触发 ## 执行步骤 1. 分析用户需求 2. 调用相关工具 3. 输出结果 EOF # 刷新 Skill 列表 openclaw skills refresh

📦 Skill 管理与更新

# 列出所有已安装 Skill openclaw skills list # 更新单个 Skill openclaw skills update camofox-web-scraper # 更新所有 Skill openclaw skills update --all # 卸载 Skill openclaw skills uninstall camofox-web-scraper # 健康检查 openclaw skills check

🔧 常见问题排查

Q: 安装后 Skill 不生效?

尝试刷新 Skill 列表:openclaw skills refresh。如果还不行,重启 Gateway:openclaw gateway restart

Q: 安装时报网络错误?

检查网络连接,或使用代理:export HTTPS_PROXY=http://proxy:port

Q: Skill 版本冲突?

使用 openclaw skills check 检测冲突,然后 openclaw skills update --all 统一更新。