← 返回 Skills 市场
126
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install github-skill-updater
功能描述
检查并更新通过 GitHub git clone 安装的 OpenClaw skills。适用于用户提到“更新skill”“更新 skill”“检查 skill 是否有新版本”“GitHub 安装的 skill 有没更新”“帮我检查本地 skills 是否落后”“更新 git clone 装的 skill”“拉取...
使用说明 (SKILL.md)
GitHub Skill Updater
用于检查和更新“通过 GitHub git clone 安装”的 OpenClaw skills。
触发条件
当用户表达下面这类意图时,应触发这个 skill:
- 更新 skill
- 更新某个 GitHub 安装的 skill
- 检查 skill 是否有新版本
- 拉取某个 skill 的最新代码
- 看看 workspace 里的 skills 哪些落后了
- 批量更新 git clone 安装的 skills
适用范围
- 适用:
- skill 目录里保留
.git - skill 有
origin远端 - skill 在 branch 或精确 tag 上
- skill 目录里保留
- 不适用:
- 下载 zip 后手工拷贝的 skill
- 没有
.git的普通目录 - detached HEAD 且不在精确 tag 上的仓库
默认流程
- 先做检查,不直接更新。
- 发现
dirty、ahead、diverged时默认停止,向用户说明原因。 - 只有
update-available才执行更新。
推荐命令
如果当前目录就是 OpenClaw workspace 根目录,推荐直接用包装命令:
./skills/github-skill-updater/scripts/github-skill-updater check skills
更新单个 skill:
./skills/github-skill-updater/scripts/github-skill-updater update skills/\x3Cskill-name>
也可以直接调用 Python 主脚本:
python3 skills/github-skill-updater/scripts/manage_github_skill.py check skills
批量输出 JSON:
./skills/github-skill-updater/scripts/github-skill-updater check skills --json
输出解释
up-to-date: 已是最新update-available: 有可更新内容dirty: 有未提交改动,默认不更新ahead: 本地领先远端,默认不更新diverged: 本地与远端分叉,默认不更新unsupported: 目录不满足自动判断条件
实施要求
- 使用脚本
scripts/manage_github_skill.py - 更新前必须先执行检查
- branch 模式仅允许 fast-forward 更新
- tag 模式只切换到更新的 tag,不做强制重置
失败兜底
如果脚本返回 unsupported:
- 检查该 skill 是否真的是
git clone安装 - 确认目录里是否保留
.git - 确认是否存在
origin - 如无 git 元数据,只能手工重新安装或手工替换
安全使用建议
This skill appears to do exactly what it says: check local, git-cloned skills and optionally fast-forward or switch tags. Before running updates: (1) run the check mode (or use --json) to inspect which repos are out-of-date; (2) verify remote URLs are trusted (it will contact origins and use your git credentials); (3) ensure you have backups or can revert changes if an update breaks a skill; (4) prefer manual invocation for update operations unless you trust autonomous agent actions. If you want to limit risk, run only 'check' from the agent and perform updates yourself from a shell.
功能分析
Type: OpenClaw Skill
Name: github-skill-updater
Version: 1.0.0
The github-skill-updater skill is a utility designed to check and update OpenClaw skills installed via git clone. The core logic in manage_github_skill.py uses safe subprocess calls to execute standard git commands (fetch, pull, checkout) and includes safety checks to prevent overwriting local changes (dirty/diverged states). No evidence of data exfiltration, shell injection, or malicious prompt manipulation was found.
能力评估
Purpose & Capability
The name/description describe checking and updating git-cloned skills and the code (manage_github_skill.py) implements exactly that using git CLI calls. There are no unrelated env vars, binaries, or network endpoints declared.
Instruction Scope
SKILL.md and the script limit actions to detecting repo status and performing safe updates (fast-forward for branches, tag checkout). However, the runtime commands perform 'git fetch'/'git pull'/'git checkout' which will contact remotes and can modify local skill directories. This behavior is expected for its purpose but is destructive if used improperly, so users should review results before applying updates.
Install Mechanism
No install spec or remote downloads are present; the skill is instruction + local Python script. It does not fetch arbitrary code from unknown URLs during install, so install risk is low.
Credentials
The skill declares no required environment variables or secrets. Note: git network operations implicitly use the user's git credentials (SSH keys, credential helpers, or stored HTTPS credentials) when contacting origin; this is expected but worth being aware of.
Persistence & Privilege
always is false. The skill can be invoked autonomously (platform default). If invoked, it can run git operations that change local files. This matches its purpose but means you should be comfortable with an agent having the ability to update local skill repos.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github-skill-updater - 安装完成后,直接呼叫该 Skill 的名称或使用
/github-skill-updater触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of github-skill-updater.
- Provides a tool to check and update OpenClaw skills installed via GitHub git clone.
- Only supports skill directories with retained .git metadata and an origin remote.
- Handles update checks, notifies of local changes or divergence, and only updates if appropriate.
- Includes recommended commands for batch and single skill updates.
- Outputs reasons for not updating (dirty, ahead, diverged, unsupported) and provides fallback advice.
元数据
常见问题
GitHub Skill Updater 是什么?
检查并更新通过 GitHub git clone 安装的 OpenClaw skills。适用于用户提到“更新skill”“更新 skill”“检查 skill 是否有新版本”“GitHub 安装的 skill 有没更新”“帮我检查本地 skills 是否落后”“更新 git clone 装的 skill”“拉取... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 126 次。
如何安装 GitHub Skill Updater?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-skill-updater」即可一键安装,无需额外配置。
GitHub Skill Updater 是免费的吗?
是的,GitHub Skill Updater 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
GitHub Skill Updater 支持哪些平台?
GitHub Skill Updater 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitHub Skill Updater?
由 vicwang(@viccwang)开发并维护,当前版本 v1.0.0。
推荐 Skills