帮助开发者升级 Anthropic SDK、迁移版本并解决相关依赖与类型问题。
该技能材料显示其为纯提示词型、开源来源关联到 GitHub 仓库,未声明需要密钥或固定远程端点,整体风险较低。其描述涉及升级依赖与查看发布说明,但从已知材料看未直接包含可执行工具权限,因此更接近文档/流程指导类技能。
材料明确写明无需密钥或环境变量,未见要求提供 API token、账号凭证或其他敏感认证信息。
系统检查项标记为 prompt-only,且未声明远程端点;README 仅提到可参考 GitHub Releases 页面,未显示该技能自身具备数据外发能力。
从客观检查项看这是纯提示词技能,不是可执行 MCP 工具;文档中虽出现 npm install 等命令示例,但这是升级说明内容,不等于该技能自动执行本机代码。
未见声明可读取、写入或枚举本地文件/系统资源;对 package.json、类型定义和临时目录的提及属于操作建议,材料未证明该技能实际拥有数据访问权限。
来源指向 GitHub 且标记为开源,这是积极信号;但仓库信息与技能名称的对应关系不够清晰,社区采用为 0 star、许可证未声明、维护状态未知,存在一定来源与维护可验证性不足。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "anthropic-sdk-upgrader" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/extensions/copilot/.agents/skills/anthropic-sdk-upgrader/SKILL.md 2. 保存为 ~/.claude/skills/anthropic-sdk-upgrader/SKILL.md 3. 装好后重载技能,告诉我可以用了
请帮我把项目中的 @anthropic-ai/sdk 升级到最新稳定版,检查破坏性变更,更新代码示例,并列出需要修改的依赖与类型定义。
一份升级方案,包含版本变更说明、代码修改建议、依赖更新列表与注意事项。
我正在使用旧版 @anthropic-ai/claude-agent-sdk,请帮我迁移到最新版,说明 API 差异,重写初始化与调用示例,并指出可能的兼容性问题。
一份迁移指南,包含新旧 API 对照、示例重写和兼容性风险说明。
升级 Anthropic 相关包后出现依赖冲突和 TypeScript 类型报错,请分析可能原因,给出逐步排查方案,并提供可行的修复建议。
一份问题诊断与修复建议,涵盖冲突来源、排查步骤和推荐解决方案。
You are an expert at upgrading Anthropic SDK packages in the vscode-copilot-chat project.
| Package | Description |
|---|---|
@anthropic-ai/claude-agent-sdk | Official Claude Agent SDK - provides the core agent runtime, tools, hooks, sessions, and message streaming |
@anthropic-ai/sdk | Anthropic API SDK - provides base types, API client, and message structures used by the agent SDK |
Follow these steps exactly:
Before upgrading, review the current versions in package.json and check the release notes:
Create a consolidated summary of changes between the current version and the target version. Group changes by category, not by individual version:
Summary Format:
### `@anthropic-ai/package-name` (oldVersion → newVersion)
#### Features
- **Category:** Description of new feature or capability
#### Bug Fixes
- Description of what was fixed
#### Breaking Changes
- **Old API → New API**: Description of what changed and how to migrate
How to Create the Summary:
Categorize changes by impact level:
Critical (Must Address Before Merge):
Important (Should Address):
Nice to Have (Can Address Later):
# Update to latest
npm install @anthropic-ai/claude-agent-sdk @anthropic-ai/sdk
After updating, diff the old and new type definitions to detect API changes that may not cause compilation errors but are important to know about (new parameters, new functions, deprecated APIs, etc.).
Steps:
Snapshot before upgrading: Before running npm install in step 4, copy the current type definitions to a temp directory:
mkdir -p /tmp/anthropic-sdk-old
cp -r node_modules/@anthropic-ai/sdk/*.d.ts node_modules/@anthropic-ai/sdk/resources/*.d.ts /tmp/anthropic-sdk-old/ 2>/dev/null
cp -r node_modules/@anthropic-ai/claude-agent-sdk/*.d.ts /tmp/anthropic-sdk-old/ 2>/dev/null
Important: This snapshot must be taken before step 4's
npm install.
Diff the type definitions: After npm install, compare the old and new .d.ts files:
# Diff the Anthropic SDK types
for f in node_modules/@anthropic-ai/sdk/*.d.ts node_modules/@anthropic-ai/sdk/resources/*.d.ts; do
base=$(basename "$f")
if [ -f "/tmp/anthropic-sdk-old/$base" ]; then
diff -u "/tmp/anthropic-sdk-old/$base" "$f"
else
echo "+++ NEW FILE: $f"
fi
done
# Diff the Agent SDK types
for f in node_modules/@anthropic-ai/claude-agent-sdk/*.d.ts; do
base=$(basename "$f")
if [ -f "/tmp/anthropic-sdk-old/$base" ]; then
diff -u "/tmp/anthropic-sdk-old/$base" "$f"
else
…
运行聊天性能基准与内存泄漏检查,定位聊天界面回归和性能问题。
帮助用户更新 GitHub Copilot 的 CLI 或 SDK 到较新版本。
帮助开发者定位并读取 Code OSS 开发构建日志,快速排查运行与扩展问题。
为 AI 编码助手生成或更新聊天定制配置文件,统一协作与开发体验
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
将当前会话分支的修改合并回基础分支,便于整合开发成果。
帮助你构建、调试并优化 Claude API 与 Anthropic SDK 应用
通过 Anthropic API 调用 Claude,完成消息生成、计费预估与批量处理。
帮助开发者高效检索并获取 Anthropic 与 Claude 文档、API说明和示例
通过检索 Anthropic 文档主题与内容,帮助快速获取 Claude 开发参考信息。
帮助用户为各类 AI 工具编写精准提示词,减少试错并保留完整上下文。
将其他 AI 编码助手的技能规范转换为 Amplifier 原生 SKILL.md 文件