Skip to content
vercel avatar

Migrate Ai Sdk V6 To V7

vercel/aiOfficial

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers renamed APIs, prompt and instructions changes, lifecycle callbacks, telemetry moves, and multi-step result shape changes
  • Includes a stepwise workflow: inspect package.json and 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 finalStep final-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 -y

Installs 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

  1. Ensure the user has a clean backup or committed baseline before editing.
  2. Inspect package.json and lockfiles to identify installed ai, @ai-sdk/*, provider, UI, MCP, and telemetry packages.
  3. Upgrade AI SDK packages to latest versions, and add @ai-sdk/otel only if the project uses OpenTelemetry spans.
  4. Update runtime and module assumptions: Node.js must be >=22, and AI SDK packages are ESM-only. Replace require() imports with ESM imports and add "type": "module" or use .mjs where needed.
  5. 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 8

Similar to Migrate Ai Sdk V6 To V7

More AI Agents & LLM Apps