manage-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstall Skill
安装技能
Install skills into OpenClaw using the CLI (vercel-labs/skills).
npx skills使用 CLI将技能安装到OpenClaw中(项目地址:vercel-labs/skills)。
npx skillsInstall Command
安装命令
bash
npx skills add <source> --skill <name> -g -y --copyRequired flags for OpenClaw:
- /
-g: Install to user-level (--global)~/.openclaw/skills/ - /
-y: Skip prompts--yes - : Copy files — symlinks break when the temp clone is deleted
--copy
Optional flags:
- : Target only OpenClaw (skip other agents). Use when you only need the skill here.
-a openclaw - /
--list: List available skills without installing-l - : Install all skills to all agents without prompts
--all - : Deep recursive search when skills aren't in standard locations
--full-depth
bash
npx skills add <source> --skill <name> -g -y --copyOpenClaw必填参数:
- /
-g: 安装到用户级目录(--global)~/.openclaw/skills/ - /
-y: 跳过确认提示--yes - : 复制文件——临时克隆目录删除后符号链接会失效
--copy
可选参数:
- : 仅针对OpenClaw(跳过其他Agent)。当仅需在此处安装技能时使用。
-a openclaw - /
--list: 列出可用技能但不安装-l - : 无提示地将所有技能安装到所有Agent
--all - : 当技能不在标准位置时进行深度递归搜索
--full-depth
Source Formats
源格式
Always use a remote source (GitHub/GitLab). Local paths produce a broken hash in , which means will never detect changes. Remote sources get a real content hash and update correctly.
skills-lock.jsonnpx skills updatebash
undefined请始终使用远程源(GitHub/GitLab)。 本地路径会在中生成无效哈希,导致永远无法检测到变更。远程源会生成真实内容哈希,确保更新正常进行。
skills-lock.jsonnpx skills updatebash
undefinedGitHub shorthand (clones default branch)
GitHub简写形式(克隆默认分支)
npx skills add owner/repo
npx skills add owner/repo
Full GitHub URL
完整GitHub URL
npx skills add https://github.com/owner/repo
npx skills add https://github.com/owner/repo
Specific branch via tree URL
通过tree URL指定特定分支
npx skills add https://github.com/owner/repo/tree/branch-name
npx skills add https://github.com/owner/repo/tree/branch-name
Specific branch + subpath
特定分支+子路径
Skill filter (find skill named "foo" in default branch)
技能筛选(在默认分支中查找名为“foo”的技能)
npx skills add owner/repo@foo
npx skills add owner/repo@foo
GitLab
GitLab
npx skills add https://gitlab.com/org/repo
**⚠️ Do NOT use local paths** (`npx skills add ./path`) — the lock file hash will be empty and updates will silently fail.
**⚠️ `owner/repo@thing` is a skill name filter, NOT a branch ref.** To target a non-default branch, use the full tree URL: `https://github.com/owner/repo/tree/branch-name`
The CLI clones the repo's **default branch**. If the default branch doesn't have the skill, use the tree URL.npx skills add https://gitlab.com/org/repo
**⚠️ 请勿使用本地路径**(`npx skills add ./path`)——锁文件哈希会为空,更新将静默失败。
**⚠️ `owner/repo@thing`是技能名称筛选器,而非分支引用。** 若要指定非默认分支,请使用完整tree URL:`https://github.com/owner/repo/tree/branch-name`
CLI会克隆仓库的**默认分支**。如果默认分支中没有目标技能,请使用tree URL。Skill Discovery
技能发现
The CLI scans these locations for files with valid YAML frontmatter ( + ):
SKILL.mdnamedescription- Root directory, ,
skills/,.openclaw/skills/,.agents/skills/, and 25+ other agent dirs.claude/skills/ - or
.claude-plugin/marketplace.jsonif presentplugin.json - Recursive fallback if no standard locations match
If a skill isn't found: Check that its SKILL.md has valid YAML frontmatter with and fields. Without both, the skill is invisible.
namedescriptionCLI会在以下位置扫描带有有效YAML前置元数据(包含和字段)的文件:
namedescriptionSKILL.md- 根目录、、
skills/、.openclaw/skills/、.agents/skills/以及其他25+个Agent目录.claude/skills/ - 若存在或
.claude-plugin/marketplace.json文件plugin.json - 若标准位置未匹配到,则进行递归回退搜索
若未找到技能: 检查其SKILL.md文件是否包含带有和字段的有效YAML前置元数据。缺少其中任意一个字段,技能都将无法被识别。
namedescriptionPost-Install Checklist
安装后检查清单
-
Verify copy (not symlink):bash
ls -la ~/.openclaw/skills/<name>/SKILL.mdIf symlink → reinstall with.--copy -
Restart gateway so OpenClaw loads the new skill: Use the gateway restart tool.
-
验证是否为复制(而非符号链接):bash
ls -la ~/.openclaw/skills/<name>/SKILL.md如果是符号链接→使用参数重新安装。--copy -
重启网关使OpenClaw加载新技能: 使用网关重启工具。
Other Commands
其他命令
bash
undefinedbash
undefinedList installed skills
列出已安装技能
npx skills list # or: npx skills ls
npx skills ls -g # global only
npx skills list # 或:npx skills ls
npx skills ls -g # 仅列出全局安装的技能
Search for skills
搜索技能
npx skills find [query]
npx skills find [query]
Check for updates
检查更新
npx skills check
npx skills check
Update all installed skills
更新所有已安装技能
npx skills update
npx skills update
Remove a skill
移除技能
npx skills remove <name> -g -y
npx skills remove <name> -g -y
Create new skill template
创建新技能模板
npx skills init [name]
undefinednpx skills init [name]
undefinedUpdating an Installed Skill
更新已安装技能
bash
npx skills update -gOr remove and reinstall:
bash
npx skills remove <name> -g -y
npx skills add <source> --skill <name> -g -y --copyThen restart the gateway.
bash
npx skills update -g或者先移除再重新安装:
bash
npx skills remove <name> -g -y
npx skills add <source> --skill <name> -g -y --copy然后重启网关。
Troubleshooting
故障排查
- "No matching skills found": SKILL.md missing or lacks /
namefrontmatterdescription - Wrong branch cloned: Use — not
https://github.com/owner/repo/tree/branchowner/repo@branch - Skill not in available_skills: Restart the gateway
- Permission errors: Check write access to
~/.openclaw/skills/
- “未找到匹配技能”:SKILL.md文件缺失或缺少/
name前置元数据description - 克隆了错误分支:使用——而非
https://github.com/owner/repo/tree/branchowner/repo@branch - 技能不在available_skills中:重启网关
- 权限错误:检查对目录的写入权限
~/.openclaw/skills/
Reference
参考链接
- Skills directory: skills.sh
- Agent Skills spec: agentskills.io
- OpenClaw skills docs: docs.openclaw.ai/tools/skills
- Skills官网:skills.sh
- Agent Skills规范:agentskills.io
- OpenClaw技能文档:docs.openclaw.ai/tools/skills