Update this machine to the newest ai-toolkit: fast-forward the checkout, show what changed, then run /setup-toolkit. Run from the ai-toolkit repo, usually when the session-start reminder announced a release.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Update Toolkit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/notitial-update-toolkit)
---
description: "Update this machine to the newest ai-toolkit: fast-forward the checkout, show what changed, then run /setup-toolkit. Run from the ai-toolkit repo, usually when the session-start reminder announced a release."
disable-model-invocation: true
---
# Update Toolkit
The install is the live checkout (ADR 0014), so an update is a fast-forward pull plus `/setup-toolkit`. This skill does both and shows what changed in between. It changes nothing when a check fails.
Git calls go through the git MCP tools with `path` set to this checkout (the folder three levels above this skill). The pull is `git_pull` with `fastForwardOnly: true` and no branch or remote, the one form `hooks/protected-paths-guard.sh` lets through.
## Steps
1. **Note the old version.** `git_tag` list, then the highest plain version tag (`vX.Y.Z`) that `HEAD` contains: for each candidate from the highest down, `git_log` with `branch: "HEAD..<tag>"` and `maxCount: 1` must be empty (a fetch can bring newer tags that `HEAD` does not have yet). None qualifies: no old tag. Then `git_log` with `maxCount: 1`: the old `HEAD` sha.
2. **Check.** `git_status`: the branch must be `main`, with no changes and no untracked files. `git_fetch` with `tags: true`, then `git_log` of `origin/main..HEAD` (the `branch` parameter takes the range): it must be empty, since a local commit means a fast-forward is impossible. `git_log` of `HEAD..origin/main` is what the pull brings: if it is empty too, say "ai-toolkit is already up to date." and stop. Any other failure ends the skill with the refusal below.
3. **Pull:** `git_pull` as above. If it fails, the refusal below.
4. **Show what changed.** The new version: the highest plain version tag `HEAD` contains, found as in step 1. Then `git_log` with `branch: "<old sha>..HEAD"`, `oneline: true`, `maxCount: 20`: the titles, newest first.
5. **Run `/setup-toolkit`** with the Skill tool and let it finish, including its questions to the user.
6. **Close.** Your last message is only the closing below, nothing after it. Pick the closing by how `/setup-toolkit` ended: the stopped one whenever it stopped early, failed or was declined, the others only when it finished.
## The closing
The last message is two or three lines and no more. Nothing follows it, not a summary and not an offer.
If `/setup-toolkit` ended with a command block for the user to run (it always holds the settings copy when a settings file was staged):
```
Updated ai-toolkit <old> -> <new>.
Last step: run the command block shown above.
```
Otherwise:
```
Updated ai-toolkit <old> -> <new>. Setup done.
```
If `/setup-toolkit` stopped before it finished (a missing prerequisite, a failed check, a stop the user declined), the checkout has already moved, so say that and not "done":
```
Pulled ai-toolkit <old> -> <new>, but /setup-toolkit did not finish: <reason>.
Fix that, then run /setup-toolkit.
```
With no old tag, `<old>` is `none`. A refusal (step 2 or 3) is one line saying what blocked it and one line saying what to do, for example `Not updated: the checkout has uncommitted changes.` and `Commit or stash them, then run /update-toolkit again.` A refusal and the stopped closing never end on a success line.