Migrate Ai Sdk V6 To V7
Migrate AI SDK 6.x apps to 7.0 by walking the v6-to-v7 breaking-change checklist from the official guide.
- CCM score
- 75 of 100
- skills.sh installs
- 6.2K
- GitHub stars
- 28.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers renamed APIs, prompt and
instructionschanges, lifecycle callbacks, telemetry moves, and multi-step result shape changes - Includes a stepwise workflow: inspect
package.jsonand lockfiles, upgrade packages, switch to ESM with Node.js>=22, then typecheck and test - Enforces explicit choices where v7 alters behavior, such as all-steps usage versus
finalStepfinal-step-only data - Designed for upgrading Vercel AI SDK packages and fixing v7 migration errors in existing projects
Install
$ npx -y skills add vercel/ai --skill migrate-ai-sdk-v6-to-v7 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
AI SDK 6 to 7 Migration
Use content/docs/08-migration-guides/23-migration-guide-7-0.mdx from the AI SDK repo as the source of truth. This skill is the working checklist; read the guide for exact examples or when behavior is unclear.
Migration Workflow
- Ensure the user has a clean backup or committed baseline before editing.
- Inspect
package.jsonand lockfiles to identify installedai,@ai-sdk/*, provider, UI, MCP, and telemetry packages. - Upgrade AI SDK packages to latest versions, and add
@ai-sdk/otelonly if the project uses OpenTelemetry spans. - Update runtime and module assumptions: Node.js must be
>=22, and AI SDK packages are ESM-only. Replacerequire()imports with ESM imports and add"type": "module"or use.mjswhere needed. - Search for the v6 patterns below, migrate only the code that exists, then run typecheck and targeted tests.
Prefer behavior-preserving changes. When v7 changes semantics, decide whether the app wants the new all-steps behavior or the previous final-step-only behavior.
Core API Changes
Details
- Repository
- github.com/vercel/ai
- Category
- AI Agents & LLM Apps
- First seen
- Jul 14, 2026
Questions
What does the migrate-ai-sdk-v6-to-v7 skill do?
It migrates applications from AI SDK 6.x to AI SDK 7.0 and guides upgrades of Vercel AI SDK packages. It covers renamed APIs, prompt and system changes, telemetry moves, streaming helpers and result shape changes, using the AI SDK migration guide as its source of truth.
How do I install the AI SDK v6 to v7 migration skill?
Run npx -y skills add vercel/ai --skill migrate-ai-sdk-v6-to-v7 -y in your project. Once installed, the agent can walk through the v6 to v7 migration checklist on your codebase.
Which AI Agents & LLM Apps skills lead this one on Claude Marketplaces?
Within the AI Agents & LLM Apps category, the other top skills are microsoft-foundry, azure-ai and several google-agents-cli skills. This skill sets itself apart by focusing narrowly on upgrading existing AI SDK code from version 6 to version 7.
What should I check before running the v6 to v7 migration?
Make sure you have a clean backup or committed baseline first. The skill requires Node.js 22 or later, and AI SDK packages are ESM-only, so require() imports may need to be replaced with ESM imports.
More from vercel/ai
All 8Similar to Migrate Ai Sdk V6 To V7
More AI Agents & LLM Appsprompt-engineerjeffallan/claude-skills6.1K installsWrites, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use w
agentforce-generateforcedotcom/sf-skills6K installsBuild, modify, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, optimizes, or asks about .agent files or a
agentforce-architecture-analyzeforcedotcom/sf-skills5.9K installsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch
platform-custom-lightning-type-generateforcedotcom/sf-skills5.9K installsUse this skill when users need to create Custom Lightning Types (CLTs) for Einstein Agent actions or structured input/output schemas. Trigger when users mention
agentforce-observeforcedotcom/sf-skills5.8K installsAnalyze production Agentforce agent behavior using session traces and Data Cloud. TRIGGER when: user queries STDM session data or Data Cloud trace records; inve
cloudassistant-ui/skills5.4K installsSets up assistant-ui Cloud persistence and authorization with the assistant-cloud package and AssistantCloud client. Use when adding cross-session thread/messag