Problem
Today update detection only works for skills that exist in the SkillHub/ClawHub marketplace. Skills installed from GitHub, npm, or zip have no update path, and users are not notified when a newer version is available.
Goals
- Implement a generic "remote version resolver" per
sourceType:
github: fetch latest release tag or default branch commit via GitHub API / HTTP.
npm: query npm registry for latest dist-tag.
skillhub/clawhub: use existing marketplace API.
zip/local: mark as "no upstream".
- Add a background job (e.g., on app launch + once per day) that checks installed skills for updates and emits a notification/badge.
- UI: "Updates" tab or filter showing skills with available updates.
- Upgrade flow:
- Show current → new version and source-specific changelog if available.
- If local skill is dirty, prompt to backup/overwrite/cancel.
- Re-run security scan before install.
- Support "update all" with progress dialog and cancel.
Acceptance Criteria
问题
目前只有 SkillHub/ClawHub marketplace 中的 skill 能检测更新。从 GitHub、npm 或 zip 安装的 skill 没有更新路径,用户也不知道有新版本可用。
目标
- 按
sourceType 实现通用的"远程版本解析器":
github:通过 GitHub API / HTTP 获取 latest release tag 或默认分支 commit。
npm:查询 npm registry 的 latest dist-tag。
skillhub/clawhub:复用现有 marketplace API。
zip/local:标记为"无上游"。
- 增加后台任务(例如应用启动 + 每天一次),检查已安装 skill 的更新并展示通知/角标。
- UI:增加 "Updates" 标签页或筛选器,列出可更新的 skill。
- 升级流程:
- 展示当前版本 → 新版本,来源支持的 changelog 也一并展示。
- 如果本地 skill 是 dirty 状态,提示备份/覆盖/取消。
- 升级前重新执行安全扫描。
- 支持"全部升级",带进度弹窗和取消按钮。
验收标准
Problem
Today update detection only works for skills that exist in the SkillHub/ClawHub marketplace. Skills installed from GitHub, npm, or zip have no update path, and users are not notified when a newer version is available.
Goals
sourceType:github: fetch latest release tag or default branch commit via GitHub API / HTTP.npm: query npm registry forlatestdist-tag.skillhub/clawhub: use existing marketplace API.zip/local: mark as "no upstream".Acceptance Criteria
checkForUpdates()resolves latest version for GitHub and npm sources.问题
目前只有 SkillHub/ClawHub marketplace 中的 skill 能检测更新。从 GitHub、npm 或 zip 安装的 skill 没有更新路径,用户也不知道有新版本可用。
目标
sourceType实现通用的"远程版本解析器":github:通过 GitHub API / HTTP 获取 latest release tag 或默认分支 commit。npm:查询 npm registry 的latestdist-tag。skillhub/clawhub:复用现有 marketplace API。zip/local:标记为"无上游"。验收标准
checkForUpdates()能解析 GitHub 和 npm 来源的最新版本。