ai-sdk-7
Installation
SKILL.md
Vercel AI SDK v7 Development Guide
Use this skill for AI SDK 7-specific implementation, migrations, and agent
architecture. For AI SDK 6 projects, use ai-sdk-6. For unknown versions, use
ai-sdk first to inspect node_modules/ai/package.json and local docs.
First Checks
- Inspect
package.json, lockfiles, andnode_modules/ai/package.json. - Confirm the installed
aimajor version is 7 before applying this guide. - Search local docs first:
node_modules/ai/docs/andnode_modules/ai/src/. - In monorepos, check app/package workspaces such as
apps/*/node_modules/ai/andpackages/*/node_modules/ai/. - If local docs are missing or ambiguous, verify against
ai-sdk.devor the Vercel AI repository docs source before coding.
AI SDK 7 requires Node.js >=22 and AI SDK packages are ESM-only. Convert
require() imports to import syntax before chasing downstream type errors.