check-sdk-updates
Skill515 starsChanged 7 months agoMITView on GitHub
Check whether Claude Code, Claude Agent SDK, and Codex SDK have new versions on npm. Use when the user asks to check for SDK/CLI updates, e.g. "check sdk updates", "check claude code update", "有沒有更新", "檢查 SDK 版本".
- Installs packages
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read the dependencies block of package.json and extract the current declared range for each of:
- Distinctive: line 17
Run the following command (single Bash call) to fetch latest versions in parallel:
- Very specific: line 45
Look for a CHANGELOG.md inside node_modules/<pkg>/ (already-installed copy reflects the *current* version, but its history section may …
- Very specific: line 54
After the per-package analysis, suggest the exact npm install command to bump them, e.g.:
- Very specific: line 62
Use npm view (not npm outdated) so the check works without touching the lockfile or node_modules.
- Very specific: line 63
If npm view fails (offline / registry error), report which package failed and stop.
- Distinctive: line 64
Keep the output short — table + suggested install line is enough.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Check SDK Updates
Compare the versions of @anthropic-ai/claude-code, @anthropic-ai/claude-agent-sdk, and @openai/codex-sdk declared in package.json against the latest published version on npm.
Steps
- Read the
dependenciesblock ofpackage.jsonand extract the current declared range for each of:@anthropic-ai/claude-code@anthropic-ai/claude-agent-sdk@openai/codex-sdk
- Run the following command (single Bash call) to fetch latest versions in parallel:
Map the three lines of output back to the three packages in the order requested.npm view @anthropic-ai/claude-code version & \ npm view @anthropic-ai/claude-agent-sdk version & \ npm view @openai/codex-sdk version & \ wait For each package, compare the declared version (strip leading
^/~) with the latest. Report a compact table:Package Current Latest Status @anthropic-ai/claude-code 2.1.119 2.1.120 ⬆ update @anthropic-ai/claude-agent-sdk 0.2.119 0.2.119 ✓ up to date @openai/codex-sdk 0.125.0 0.126.0 ⬆ updateFor each outdated package, analyze the gap between current and latest so the user can decide how to implement the update. For each one:
a. Get the list of versions in between with:
npm view <pkg> versions --jsonFilter to versions strictly greater than current and ≤ latest. Note the count and span (patch / minor / major bumps).
b. Try to fetch release notes / changelog. Try in this order, stop at the first that works:
npm view <pkg> repository.url→ if it points to a GitHub repo, usegh release list -R <owner/repo> --limit 30andgh release view <tag> -R <owner/repo>for the relevant tags.- Look for a
CHANGELOG.mdinsidenode_modules/<pkg>/(already-installed copy reflects the current version, but its history section may still cover newer versions if upstream backfills). - Fall back to:
npm view <pkg>@<latest> --jsonand read thedescription/homepagefields, thenWebFetchthe homepage's changelog/releases page.
c. Summarise per package in 2–4 bullets:
- Number of versions skipped (e.g. "5 patch releases, 1 minor")
- Any breaking changes or notable API/CLI changes
- Any items that touch the parts of our codebase that consume this SDK (e.g.
electron/claude-agent-manager.ts,electron/codex-agent-manager.ts,electron/openai-agent-manager.ts) - Risk assessment: low / medium / high, with one-line justification
- After the per-package analysis, suggest the exact
npm installcommand to bump them, e.g.:
Group low-risk bumps together; call out any high-risk bump as needing a separate, careful update. Do NOT run the install — only suggest it. Wait for the user's confirmation before installing.npm install @anthropic-ai/claude-code@latest @openai/codex-sdk@latest
Notes
- Use
npm view(notnpm outdated) so the check works without touching the lockfile or node_modules. - If
npm viewfails (offline / registry error), report which package failed and stop. - Keep the output short — table + suggested install line is enough.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

