AGENT SKILL

update

Update ion-repo - the ion-repo tool of the machine and its plugins, then the open repo (ion repo update, on a branch merged right away into develop). Use when the user asks to update ion-repo, or accepts the update offered at session start.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 3
Forks
3

01 前言 Front Matter

name
update
description
Update ion-repo - the ion-repo tool of the machine and its plugins, then the open repo (ion repo update, on a branch merged right away into develop). Use when the user asks to update ion-repo, or accepts the update offered at session start.
argument-hint
[tool|repo]

03 SKILL.md 正文

Scope: $ARGUMENTS; tool alone, repo alone, otherwise both, the tool first. <hook> stands for python3 "${CLAUDE_PLUGIN_ROOT}/hooks/session_start.py", <reminders> for python3 "${CLAUDE_PLUGIN_ROOT}/hooks/reminders.py" (answers to ion-repo's questions). Talk to the user in their language.

Tool

  1. <hook> tool prints up to date, or the command that updates the installed tool (from PyPI or GitHub: uv tool install --force ion-repo==… or …git+…@<tag>, preceded by uv tool uninstall kiln when the tool still has its oldest name, and replacing kiln-cli when it is still that one, then ion-repo's marketplace and the ion-repo plugin installed for every repo of the machine; a tool installed from an ion-repo checkout is replaced by the release, since only a release updates a repo). On the beta channel (ion repo set channel=beta), the tool is ion-repo's develop instead: the checkout of the code directory installed editable (uv tool install --force --editable <code_dir>/ion-repo, read live, nothing to update after a merge), otherwise GitHub's develop; ion repo update then takes the template at that commit. Run it as is; if it fails (no network), stop and say why.
  2. <reminders> yes tool, then tell the user to type /reload-plugins: the plugin's skills and hooks only change on reload.

Repo

  1. The open repo is generated by ion-repo (.copier-answers.yml at its root, _src_path towards antoine-tena/ion-repo) or adopted (a charter without Copier answers: ion repo update then converts ion-repo's 0.3 names and moves the reusable workflows to the last release); otherwise say so and stop.
  2. Branch chore/ion-repo-update in a worktree (skill /repo:worktree), then ion repo update in that worktree: template, compatible dependencies, checks.
  3. Conflict markers (<<<<<<< before updating): stop, show the files, propose a resolution. Failing checks: say so, do not merge.
  4. Review the diff, commit in batches of 10 files at most (chore: ion repo update, a title of 50 characters at most), then merge into develop (skill /repo:merge), without a pull request nor an approval to wait for.
  5. <reminders> yes "<root of the repo>".
  6. Right after the merge, what ion-repo cannot guess: when the releases crossed ask for it, ion repo update opened a 🔴 ticket Finish the ion-repo update to vX.Y.Z in docs/backlog/backlog.md (it says its ID), one box per action. Do it now with the user: ask for what only they know (their own GitHub login, a choice; never another member's: each one does theirs in their own session), make the changes on a branch, then close the ticket (/repo:backlog done <repo>#T-NN); a box they put off stays open in the ticket.

Sum up

In the repo plugin's debrief format (output-styles/debrief.md): the tool's version and the template's release, before → after, among its points; what is left of the Finish the ion-repo update ticket under ◆ To do.

04 同仓库更多 Skills