Dev & Engineering ✓ Microsoft · Official anthropic-sdksdk-migrationdependency-upgradestypescriptapi-compatibilitynpm

Anthropic SDK Upgrade Assistant

Upgrade Anthropic SDK packages methodically while checking API changes, compilation, and Claude-focused tests.

FollowSkills review · FSRS-2.0
Not recommended
43/ 100 5-point scale 2.2 / 5
Trust11 / 25 · 2.2/5

The skill identifies the Anthropic SDK packages and describes the upgrade workflow, with no evidence of malware, credential theft, or covert exfiltration. However, it instructs the agent to run npm install, modify code, remove a fixed temporary directory, and create a commit without requiring user confirmation or documenting data flows, rollback, or recovery after failure, so points are deducted.

Reliability7 / 20 · 1.8/5

The workflow covers version review, type diffs, compilation, tests, and documentation, and the repository contains related CI and version-sync tests. However, the skill itself has no executable tests, assumes specific paths and files, uses an unspecified latest version, and lacks handling or diagnostic feedback for invalid input, network failures, and command failures; the static ceiling therefore applies.

Adaptability8 / 15 · 2.7/5

Triggers, audience, and Anthropic SDK upgrade scenarios are clearly stated with several examples. Boundaries for non-fit cases, target-version constraints, permission scope, and Chinese-language guidance are absent, and GitHub release-note reachability from mainland China is not addressed, so the score is moderate.

Convention8 / 15 · 2.7/5

The skill has a readable stepwise structure with package descriptions, an output format, troubleshooting guidance, command examples, and limitation hints. Repository evidence supplies an MIT license, Microsoft provenance, and maintenance signals, but the skill lacks its own version, changelog, explicit maintainer responsibility, or clear update path; prerequisites and rollback guidance are also incomplete.

Effectiveness6 / 15 · 2.0/5

The process could support SDK upgrades, API-difference analysis, compilation repair, and test verification, with a relatively clear report format. However, the target version is unspecified, the default is effectively latest, the process depends on external release notes, and it requires committing changes; outcomes still need human review, so static evidence supports only a limited score.

Verifiability3 / 10 · 1.5/5

The supplied repository files provide dependency versions, relevant source paths, test commands, and limited CI evidence. There is no skill-specific test, execution record, or completed upgrade result, and no commands were executed in this review, so the key path is not independently reproducible.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e
Before you use it
  • Upgrading to “latest” may introduce unassessed breaking changes; define the target version and obtain confirmation before changes or commits.
  • npm install and GitHub release-note review depend on external services; record resolved versions, lockfile changes, and recovery steps.
  • Confirm ownership of /tmp/anthropic-sdk-old before rm -rf and prefer a recoverable cleanup approach.
  • The skill does not explain whether sensitive source, environment variables, or SDK request data are sent to external services.
See the full review method →

What it does & when to use it

This skill is for developers upgrading @anthropic-ai/sdk or @anthropic-ai/claude-agent-sdk. It starts by checking installed versions and release notes, then consolidates version changes and inspects the public type surface. After installation, it guides compilation and Claude-related unit tests, followed by documentation and commit updates when needed. Its instructions are tailored to the Claude agent implementation in the vscode-copilot-chat project, making it a fit for controlled SDK migrations rather than a general dependency updater.

Reads current SDK versions from package.json and reviews the two Anthropic SDK release pages; organizes release changes into features, bug fixes, and breaking changes; updates both packages with npm install; snapshots .d.ts files into /tmp/anthropic-sdk-old before installation and uses diff afterward to identify new exports, parameters, signature changes, removals or renames, and deprecations; uses grep to cross-reference affected APIs with Claude agent code; runs npm run compile and Claude-related unit tests; and guides documentation updates, temporary-file cleanup, and a detailed upgrade commit message.

  1. A vscode-copilot-chat maintainer is moving @anthropic-ai/sdk to a newer release and needs a review of breaking API changes.
  2. A team using Claude Agent SDK needs to migrate between versions and consolidate all intervening release notes by category.
  3. An engineer is facing type errors after an SDK upgrade and needs to inspect exports, interfaces, signatures, and declaration-file changes.
  4. A reviewer needs to assess whether an SDK update affects session handling, message streaming, tools, hooks, or permission handlers.
  5. A project maintainer needs a post-upgrade compile and Claude test pass together with a commit message documenting versions and migration work.

Pros & cons

Pros
  • Covers version review, release-note consolidation, declaration-file diffs, usage cross-referencing, compilation, tests, and commit documentation.
  • Separates findings into Critical, Important, and Nice to Have impact levels.
  • Focuses on session, streaming, tool, hook, and permission-related Claude agent APIs.
  • Provides concrete shell commands for creating a pre-upgrade snapshot and reviewing API-surface diffs.
Limitations
  • Its scope is limited to two Anthropic SDK packages rather than general dependency upgrades.
  • The instructions target vscode-copilot-chat and name project-specific source paths, so other projects may require adaptation.
  • No standalone installation command, automation script, or fixed SDK target version is provided.
  • The workflow requires GitHub release-note access plus shell, filesystem, npm, compilation, and test commands; the source does not document testing on other environments.

How to install

The skill is located at extensions/copilot/.agents/skills/anthropic-sdk-upgrader/SKILL.md in the microsoft/vscode repository. The supplied material does not document a standalone installation command for other clients; it is one of 61 skills bundled in the repository. If the repository is available locally, read the SKILL.md at that path.

How to use

In a client that supports Agent Skills, make a request such as “Upgrade the Anthropic SDK to the latest version” or “Help me migrate to the latest claude-agent-sdk.” The documented workflow then operates around vscode-copilot-chat: inspect versions and release notes, run npm install, compare declaration files, check affected usage, and run npm run compile plus npm run test:unit -- --testPathPattern="agents/claude". The source does not document additional configuration for running it outside that project.

FAQ

Does the skill choose and install a fixed SDK version automatically?
No. It requires checking the current versions and release notes, and it documents npm install @anthropic-ai/claude-agent-sdk @anthropic-ai/sdk for updating to the latest versions. No fixed target version is specified.
Why snapshot the .d.ts files before upgrading?
The snapshot enables a comparison between old and new type definitions, exposing new parameters, exports, signature changes, removals, and deprecations that may not produce compilation errors.
Can it upgrade any JavaScript or TypeScript dependency?
That is not supported by the supplied evidence. The instructions explicitly target @anthropic-ai/claude-agent-sdk and @anthropic-ai/sdk and are organized around Claude agent code in vscode-copilot-chat.
What does it check when an upgrade fails?
The workflow includes compilation checks, Claude-related unit tests, and troubleshooting guidance for type errors, session loading, hook registration, and tool execution failures.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

Dev & Engineering ✓ Microsoft · Official

Copilot Chat OpenTelemetry Instrumentation

A repository-specific guide for consistent OpenTelemetry instrumentation in Copilot Chat.

Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

Design & Frontend ✓ Microsoft · Official

VS Code Design Philosophy

Turn vague UI discomfort into concrete fixes using shared values, principles, and design moves.

Dev & Engineering ✓ Microsoft · Official

Agent Host E2E Test Assistant

Maintain VS Code Agent Host end-to-end tests with strict replay fixtures.

Dev & Engineering ✓ Microsoft · Official

VS Code Integrated Browser Architecture

A practical architecture guide for safely changing VS Code's cross-process integrated browser.

Dev & Engineering ✓ Microsoft · Official

VS Code Agents Window Sessions

Safely implement and repair VS Code Agents window features.

Dev & Engineering ✓ Microsoft · Official

Commit Assistant

Creates repository-style commit messages and safely commits code changes.

Dev & Engineering ✓ Microsoft · Official

Agent Host Log Investigator

Trace session, transport, and host failures in Agent Host debug exports.

Dev & Engineering ✓ Microsoft · Official

VS Code Unit Test Runner

Run VS Code repository unit tests by file, test name, or compiled-output glob.

Dev & Engineering ✓ Microsoft · Official

VS Code Agent Customization Assistant

Create, repair, and troubleshoot VS Code Agent customization files and their loading behavior.

Dev & Engineering ✓ Microsoft · Official

Code OSS Launch & Debug

Launch a built-from-source VS Code with isolated profiles, Playwright control, and multi-process debugging ports.

Dev & Engineering ✓ Microsoft · Official

VS Code Accessibility Development Guide

A practical specification for accessible interactive features in VS Code.

Design & Frontend ✓ Microsoft · Official

VS Code CSS Layout Standards

Build reliable VS Code-style CSS layouts and text truncation behavior

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Performance Lab

Benchmark chat rendering and detect memory growth across VS Code builds.

Dev & Engineering ✓ Microsoft · Official

Component Fixtures for Screenshot Testing

Create stable, theme-aware VS Code component fixtures for isolated screenshot testing.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Assistant

Run, filter, and debug VS Code end-to-end smoke tests.

Dev & Engineering ✓ Microsoft · Official

VS Code Crash Dump Symbolicator

Turn native VS Code crash dumps into readable backtraces with method names.

Dev & Engineering ✓ Microsoft · Official

Local VS Code Web Workbench

Validate VS Code workbench and Agents window changes in a local vscode.dev instance.

Dev & Engineering ✓ Microsoft · Official

Feedback Action

Reads current-session feedback and applies the requested code changes.

Related skills