Install OpenClaw skills from clawhub.ai ZIP files with automatic detection, validation, and Gateway updates.
# Install from a specific ZIP file
python3 scripts/skill_install.py my-skill.zip
# Search for ZIP files in current directory
python3 scripts/skill_install.py
# List all installed skills
python3 scripts/skill_install.py --list
# Show help
python3 scripts/skill_install.py --help
The script expects skills to have the following structure:
skill-name.zip
├── SKILL.md # Required: Skill metadata and documentation
├── _meta.json # Required: Additional metadata
├── scripts/ # Optional: Python/Node scripts
│ └── *.py/*.mjs
├── references/ # Optional: Reference documentation
└── README.md # Optional: Extended documentation
# List all ZIP files in current directory
python3 scripts/skill_install.py
# Output:
# Found 3 ZIP files:
# 1. github-skill.zip
# 2. weather-skill.zip
# 3. notion-skill.zip
#
# Select a file (1-3) or 'q' to quit: 1
#
# Installing: github-skill.zip
# ...
python3 scripts/skill_install.py github-skill.zip
# Output:
# ============================================================
# 📦 OpenClaw Skill Installer
# ============================================================
#
# 🔍 正在搜索 OpenClaw 安装位置...
# ✅ 找到 OpenClaw: /home/user/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw
#
# 📂 正在解析 ZIP 文件...
# ✅ 找到 SKILL.md
# ✅ Skill 名称: github
# ✅ Skill 描述: GitHub operations via gh CLI
#
# 🔍 检查是否已安装...
# ℹ️ Skill 'github' 未安装
#
# 📦 正在安装 skill...
# ✅ 安装成功!
#
# 🔄 正在重启 Gateway...
# ✅ Gateway 已重启
#
# 🎉 安装完成!
# Skill 路径: /home/user/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/skills/github
#
# 现在可以在 OpenClaw 中使用 'github' skill 了!
python3 scripts/skill_install.py --list
# Output:
# ============================================================
# 📋 已安装的 Skills
# ============================================================
#
# 1. github
# 📁 文件夹: github
# 📝 描述: GitHub operations via gh CLI
# 📍 路径: /home/user/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/skills/github
#
# 2. weather
# 📁 文件夹: weather
# 📝 描述: Get current weather and forecasts
# 📍 路径: /home/user/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/skills/weather
#
# ...
Error: ❌ 未找到 OpenClaw 安装位置
npm install -g openclawError: ❌ ZIP 文件不存在
Error: ❌ ZIP 文件不包含 SKILL.md
Error: ⚠️ Skill 已存在
Error: ❌ Gateway 重启失败
openclaw daemon restartIf the script cannot find OpenClaw automatically, you can modify the OPENCLAW_PATH variable in the script:
OPENCLAW_PATH = "/custom/path/to/openclaw"
To restart Gateway manually, comment out the restart call:
# restart_gateway(openclaw_root)
If you encounter permission errors:
# Fix permissions
chmod 755 ~/.nvm/versions/node/*/lib/node_modules/openclaw/skills
After installation, if the skill doesn't appear:
```bash
openclaw daemon restart
```
```bash
openclaw logs --follow
```
```bash
ls -la ~/.nvm/versions/node/*/lib/node_modules/openclaw/skills/your-skill/
```
Initial Release
Features:
Enhancements:
Bug Fixes:
Known Issues:
~/.nvm/versions/node/*/lib/node_modules/openclaw/usr/local/lib/node_modules/openclaw/opt/node_modules/openclaw/skills// --list to verify skills before installation共 1 个版本