返回 Skill 列表
extension
分类: 开发与工程无需 API Key

check-version

通过比较本地与GitHub版本来检查bopen-tools插件是否为最新。在任何需要当前技能/代理定义的会话开始时使用此技能,当用户询问'一切是否都是最新的?'、'检查更新'、'我是否使用的是最新版本?'或者当你怀疑自上次安装以来技能可能已发生变化时。此外,当某个技能的行为与文档中描述的不同或指令引用了你不认识的功能时,也应主动使用此技能。整个过程在100毫秒内完成。

person作者: jakexiaohubgithub

Check Version

Fast plugin version check — compares installed version against GitHub in ~70ms.

Usage

bash <skill-path>/scripts/check-version.sh

Returns JSON:

{
  "plugin": "bopen-tools",
  "org": "b-open-io",
  "local_version": "1.0.82",
  "remote_version": "1.0.83",
  "status": "outdated",
  "message": "Update available: 1.0.82 -> 1.0.83. Run: claude plugin update bopen-tools@b-open-io"
}

Status Values

| Status | Meaning | Action | |---|---|---| | current | Installed version matches GitHub | No action needed | | outdated | Newer version available on GitHub | Tell user to run the update command in the message field | | ahead | Local is newer than GitHub (dev environment) | No action needed | | not_installed | Plugin not found in cache | Tell user to install the plugin | | check_failed | Couldn't reach GitHub | Network issue — not critical, continue working |

When to Check

  • At session start if you want to ensure you have latest agents/skills
  • When a skill's behavior doesn't match its documentation
  • When the user asks about updates
  • Before giving advice about agent capabilities (outdated definitions could mislead)

The check is fast enough (~70ms) to run without noticeable delay. If status is outdated, tell the user and suggest the update command, but don't block on it — continue working with what's installed.