anth-upgrade-migration
Skill by jeremylongshore
Guides upgrades of the Anthropic Python and TypeScript SDKs and migration from Text Completions to the Messages API. It is for developers moving existing Claude API code to newer SDK versions.
Install anth-upgrade-migration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anth-upgrade-migration ~/.claude/skills/anth-upgrade-migrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anth-upgrade-migration ~/.gemini/antigravity-cli/skills/anth-upgrade-migrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install anth-upgrade-migration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill walks through upgrading the Anthropic SDK and migrating between Claude API versions. It covers checking current and latest SDK versions, creating an upgrade branch, installing the new SDK, and reviewing breaking changes. It includes before and after code for the Text Completions to Messages API change, streaming changes, and the TypeScript import path change.
The skill also covers pinning the anthropic-version header, running tests and a live verification call, and rolling back to a previous version. Its instructions call for a sandbox workspace with synthetic fixtures, redacted receipts, and a canary rollout. It is aimed at developers maintaining code that calls the Claude API through the official SDKs.
Written from the project's SKILL.md and checked against it.
What it can do
- Check versionsShows the installed and latest available Python and TypeScript SDK versions.
- Upgrade SDKGives pip and npm commands to upgrade the anthropic or @anthropic-ai/sdk package.
- Review breaking changesLists key breaking changes by SDK version, with old and new code examples.
- Migrate to Messages APIMaps Text Completions calls and fields to their Messages API equivalents.
- Pin API version headerShows how to set the anthropic-version and anthropic-beta headers.
- Run verificationProvides test commands and a small live Messages API call to confirm the upgrade.
- Roll backDescribes pinning the previous SDK version and restoring the prior lockfile.
What you need
- Python or Node.js with pip or npm
- Git
- Anthropic API credentials kept in a secret manager
- An approved sandbox workspace for migration tests
Try asking
- Upgrade my Python project to the latest anthropic SDK and check the version.
- Migrate this client.completions.create call to the Messages API.
- Write a rollback plan that pins the previous anthropic SDK version.
Good to know
- Production credentials must not be used for migration tests.
- The skill is a guide and process checklist, not an automated migration tool.
- Compatibility must be checked against official release notes, not package versions alone.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/anth-upgrade-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Bash(pip:*)Bash(git:*)
Alternatives to anth-upgrade-migration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
anth-upgrade-migration: common questions
What does this skill migrate?
It covers moving from the Text Completions API to the Messages API, along with SDK upgrades for Python and TypeScript.
Can I use production keys to test the upgrade?
No. The source says production credentials must not be used for migration tests, and synthetic prompts should run in an approved sandbox.
How do I undo an SDK upgrade?
Pin the previous SDK version with pip or npm, or restore the prior package.json and lockfile from git.
How do I install anth-upgrade-migration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is anth-upgrade-migration free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is anth-upgrade-migration safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to anth-upgrade-migration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
