install-skills

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Install Skills

安装技能

Manage skills using the
npx skills
CLI. All commands use
npx --yes
(skip npx install prompt) and
-a openclaw -y
(target OpenClaw, skip confirmation).
使用
npx skills
CLI管理技能。所有命令均使用
npx --yes
(跳过npx安装提示)和
-a openclaw -y
(目标为OpenClaw,跳过确认)。

Install scope: project vs global

安装范围:项目级 vs 全局级

  • Project (default): installs to workspace. Skills work but are not tracked for
    check
    /
    update
    .
  • Global (
    --global
    ): installs to
    ~/.agents/skills/
    and creates a lock file. Enables
    check
    /
    update
    .
Use
--global
for skills that should be kept up to date. Use project scope for experiments.
  • 项目级(默认):安装到工作区。技能可正常使用,但不被追踪以支持
    check
    /
    update
    操作。
  • 全局级
    --global
    ):安装到
    ~/.agents/skills/
    并创建锁定文件。支持
    check
    /
    update
    操作。
对于需要保持更新的技能,使用
--global
选项。实验性技能可使用项目级安装。

List skills in a repo

列出代码仓库中的技能

Always list before installing an unfamiliar repo:
bash
npx --yes skills add owner/repo --list -a openclaw -y
在安装不熟悉的仓库中的技能前,务必先列出所有技能:
bash
npx --yes skills add owner/repo --list -a openclaw -y

Install a skill

安装技能

bash
undefined
bash
undefined

Project scope (no update tracking)

项目级(无更新追踪)

npx --yes skills add owner/repo --skill <skill-name> -a openclaw -y
npx --yes skills add owner/repo --skill <skill-name> -a openclaw -y

Global scope (enables check/update)

全局级(支持检查/更新)

npx --yes skills add owner/repo --skill <skill-name> -a openclaw -y --global

Install one skill at a time unless explicitly asked to install multiple.
npx --yes skills add owner/repo --skill <skill-name> -a openclaw -y --global

除非明确要求安装多个技能,否则一次仅安装一个技能。

Source formats

源格式

bash
undefined
bash
undefined

GitHub shorthand (preferred)

GitHub简写格式(推荐)

npx --yes skills add owner/repo --skill <name> -a openclaw -y
npx --yes skills add owner/repo --skill <name> -a openclaw -y

Full GitHub URL

完整GitHub URL

npx --yes skills add https://github.com/owner/repo --skill <name> -a openclaw -y
npx --yes skills add https://github.com/owner/repo --skill <name> -a openclaw -y

Direct path to a specific skill in a repo

指向仓库中特定技能的直接路径

Local path

本地路径

npx --yes skills add ./my-local-skills --skill <name> -a openclaw -y
undefined
npx --yes skills add ./my-local-skills --skill <name> -a openclaw -y
undefined

Install all skills from a repo

安装仓库中的所有技能

bash
npx --yes skills add owner/repo --skill '*' -a openclaw -y
bash
npx --yes skills add owner/repo --skill '*' -a openclaw -y

Verify installed skills

验证已安装技能

bash
npx --yes skills list -a openclaw
npx --yes skills list -a openclaw --global
bash
npx --yes skills list -a openclaw
npx --yes skills list -a openclaw --global

Find skills

查找技能

Search the skills directory by keyword:
bash
npx --yes skills find <query>
通过关键词搜索技能目录:
bash
npx --yes skills find <query>

Remove a skill

移除技能

bash
npx --yes skills remove <skill-name> -a openclaw -y
npx --yes skills remove <skill-name> -a openclaw -y --global
bash
npx --yes skills remove <skill-name> -a openclaw -y
npx --yes skills remove <skill-name> -a openclaw -y --global

Check for updates and update

检查更新并更新技能

Requires skills to have been installed with
--global
:
bash
npx --yes skills check
npx --yes skills update
要求技能已通过
--global
选项安装:
bash
npx --yes skills check
npx --yes skills update

Defaults

默认规则

  • Prefer GitHub shorthand
    owner/repo
    over full URLs.
  • --list
    before installing an unfamiliar repo.
  • One skill at a time unless asked otherwise.
  • Always
    -a openclaw -y
    for deterministic, non-interactive installs.
  • Use
    --global
    when the user wants skills kept up to date.
  • 优先使用GitHub简写格式
    owner/repo
    而非完整URL。
  • 安装不熟悉的仓库中的技能前,先使用
    --list
    列出技能。
  • 除非另有要求,否则一次仅安装一个技能。
  • 始终使用
    -a openclaw -y
    以实现确定性、非交互式安装。
  • 当用户希望技能保持更新时,使用
    --global
    选项。