groove-admin-update
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- groove:managed — do not edit; changes will be overwritten by groove update -->
<!-- groove:managed — 请勿编辑;更改将被groove update覆盖 -->
groove-admin-update
groove-admin-update
Outcome
执行结果
All pending migrations are applied to the user's local groove state in version order. reflects the current installed groove version.
.groove/index.md所有待处理的迁移将按版本顺序应用到用户的本地groove状态。将反映当前已安装的groove版本。
.groove/index.mdAcceptance Criteria
验收标准
- in
groove-version:matches.groove/index.mdinversion:after updateskills/groove/SKILL.md - Each pending migration was applied in order
- updated after each successful migration (partial progress is recoverable)
groove-version: - If already up to date, reports clearly and exits
- Source-of-truth check: "up to date" is only reported when the installed skill version equals the latest GitHub release; if the add step left an older version on disk (e.g. cached or default branch), the user is warned and told how to fix it
- 更新后,中的
.groove/index.md与groove-version:中的skills/groove/SKILL.md匹配version: - 每个待处理的迁移均按顺序应用
- 每次成功迁移后更新(部分进度可恢复)
groove-version: - 若已是最新版本,清晰提示并退出
- 数据源真实性检查:仅当已安装的技能版本与GitHub最新版本一致时,才提示“已是最新版本”;若添加步骤在磁盘上留下了旧版本(如缓存或默认分支版本),则向用户发出警告并告知修复方法
Steps
操作步骤
- Run — pulls latest groove skill files and refreshes the lock entry (more reliable than
npx skills add andreadellacorte/groove --yeswhich requires a pre-populated folder hash). Note: the CLI may install a cached or default-branch copy rather than the latest release tag; step 4 verifies against GitHub.npx skills update- After this step, re-read this SKILL.md () from disk before continuing — the skill refresh may have updated the update command itself, and the remainder of these steps must reflect the latest version
skills/groove-admin-update/SKILL.md
- After this step, re-read this SKILL.md (
- Read from
groove-version:— if key absent, assume.groove/index.mdand write it0.1.0 - Read installed version from in
version:skills/groove/SKILL.md - Verify against latest release: Fetch (tag_name, strip leading
https://api.github.com/repos/andreadellacorte/groove/releases/latest). If the request succeeds, compare installed with latest using semver. If installed is less than latest: do not report "up to date" even if local and installed match; instead report: "Installed skill is v<installed> but latest release is v<latest>. The add step may have used a cached or default-branch copy. Run:vthen runnpx skills add andreadellacorte/groove@v<latest> --yesagain." and exit. If the API call fails (network, rate limit), continue without this check./groove-admin-update - If local and installed versions match: report "groove is up to date (v<version>)" and exit
- Read — parse the migration table
skills/groove/migrations/index.md - Filter rows where > local version AND
To<= installed version, in table order — theTofield is informational only and does not gate executionFrom - If no migrations found but versions differ: update in
groove-version:directly to the installed version and report "no state migrations needed — version bumped to v<version>".groove/index.md - For each pending migration:
a. Report "Applying <from> → <to>: <description>"
b. Read and execute the migration file
c. Update in
groove-version:to the.groove/index.mdversion d. Report "✓ <from> → <to> applied"To - Report summary: N migrations applied, now at v<version>
- 运行— 拉取最新的groove技能文件并刷新锁定条目(比
npx skills add andreadellacorte/groove --yes更可靠,后者需要预先填充的文件夹哈希)。注意:CLI可能安装缓存或默认分支副本而非最新发布标签;步骤4会针对GitHub进行验证。npx skills update- 完成此步骤后,继续前请从磁盘重新读取本SKILL.md() — 技能刷新可能已更新了更新命令本身,后续步骤必须反映最新版本
skills/groove-admin-update/SKILL.md
- 完成此步骤后,继续前请从磁盘重新读取本SKILL.md(
- 从读取
.groove/index.md— 若该键不存在,则默认设为groove-version:并写入0.1.0 - 从中的
skills/groove/SKILL.md读取已安装版本version: - 与最新版本验证:获取(tag_name,去除开头的
https://api.github.com/repos/andreadellacorte/groove/releases/latest)。若请求成功,使用semver比较已安装版本与最新版本。若已安装版本低于最新版本:即使本地版本与已安装版本匹配,也不要提示“已是最新版本”;而是提示:“已安装技能版本为v<installed>,但最新发布版本为v<latest>。添加步骤可能使用了缓存或默认分支副本。请运行:v,然后再次运行npx skills add andreadellacorte/groove@v<latest> --yes。” 并退出。若API调用失败(网络问题、速率限制),则跳过此检查继续执行。/groove-admin-update - 若本地版本与已安装版本匹配:提示“groove已是最新版本(v<version>)”并退出
- 读取— 解析迁移表
skills/groove/migrations/index.md - 按表中顺序筛选出> 本地版本 且
To<= 已安装版本的行 —To字段仅作信息展示,不影响执行From - 若未找到迁移但版本不同:直接将中的
.groove/index.md更新为已安装版本,并提示“无需状态迁移 — 版本已升级至v<version>”groove-version: - 针对每个待处理的迁移:
a. 提示“正在应用 <from> → <to>: <description>”
b. 读取并执行迁移文件
c. 将中的
.groove/index.md更新为groove-version:版本 d. 提示“✓ <from> → <to> 已应用”To - 提示总结:已应用N个迁移,当前版本为v<version>
Constraints
约束条件
- Source of truth for "latest" is GitHub releases — can leave an older version on disk (cached clone, default branch). Comparing only
npx skills addwith installed.groove/index.mdcan falsely report "up to date". Step 4 must verify installed vsSKILL.mdand warn when they differ.releases/latest - Never skip a migration — apply every matching migration in table order even if does not match local version exactly
From - Update after each individual migration, not only at the end
groove-version: - If a migration fails: stop, report the failure and current version, do not continue
- Do not modify skill files — handles that; this command only migrates local state
npx skills update - Local state includes: config keys, memory directory structure, AGENTS.md sections
.groove/index.md - Each migration file is idempotent — if re-run after partial failure, it should be safe
- “最新版本”的数据源为GitHub发布版本 — 可能在磁盘上留下旧版本(缓存克隆、默认分支)。仅对比
npx skills add与已安装的.groove/index.md可能会错误提示“已是最新版本”。步骤4必须验证已安装版本与SKILL.md,若不一致则发出警告。releases/latest - 不得跳过任何迁移 — 即使与本地版本不完全匹配,也需按表中顺序应用所有匹配的迁移
From - 每次单独迁移完成后更新,而非仅在最后更新
groove-version: - 若迁移失败:停止执行,报告失败信息及当前版本,不再继续
- 请勿修改技能文件 — 会处理该操作;此命令仅迁移本地状态
npx skills update - 本地状态包括:配置项、内存目录结构、AGENTS.md章节
.groove/index.md - 每个迁移文件需具备幂等性 — 若在部分失败后重新运行,需保证安全