vercel avatar

Ai Sdk

This is your go-to when building anything AI-powered with the Vercel AI SDK. It covers chat interfaces, streaming responses, tool calling, structured output, and agent loops across any LLM provider. The skill auto-activates when you're working in API routes, importing from the ai package, or when you mention streaming generation in your prompt. It also catches outdated patterns like useChat with the old api prop or generateObject calls and guides you to the v6 equivalents. Honestly, if you're not using the AI SDK's abstractions and instead importing OpenAI or Anthropic directly, this skill will nudge you toward the gateway pattern with better observability and failover.

skills.sh installs
544
GitHub stars
183
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel/vercel-plugin --skill ai-sdk --agent claude-code

Installs into .claude/skills of the current project.

Files

What the AI SDK Is

The AI SDK by Vercel (the ai package on npm) is a TypeScript toolkit for building AI applications. It provides a unified API across model providers for text generation, structured output, tool calling, agents, embeddings, and framework UI integrations.

Critical: Do Not Trust Your Own Memory

Whatever you remember about the AI SDK is likely outdated. The SDK changes frequently across versions - APIs are renamed, removed, and added. Your training data almost certainly contains obsolete APIs, deprecated patterns, and model IDs that no longer exist. UI hooks like useChat are among the most frequently changed APIs, so be especially careful with client code.

Never write AI SDK code from memory. Always verify every API, option, and pattern against the documentation and source code for the version that is actually installed in the project.

Use the Bundled, Version-Matched Docs

The ai package ships its full documentation and source code inside node_modules. These always match the installed version, so trust them over anything you remember.

Sponsors

Details

Repository
github.com/vercel/vercel-plugin
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel/vercel-plugin

All 25
1sanity-io avatarcreate-agent-with-sanity-contextsanity-io/agent-contextcreate agent with sanity context512skills.sh installs
2aradotso avatarcodesight-ai-contextaradotso/trending-skillscodesight ai context504skills.sh installs
3sickn33 avatarprompt-engineering-patternssickn33/antigravity-awesome-skillsprompt engineering patterns442skills.sh installs
4jaganpro avatarsf-ai-agentforce-gridjaganpro/sf-skillssf ai agentforce grid435skills.sh installs
5vercel avatarai-gatewayvercel/vercel-pluginai gateway423skills.sh installs
6secondsky avatarmcp-managementsecondsky/claude-skillsManage MCP servers - discover, analyze, execute tools/prompts/resources. Use for MCP integrations, capability discovery, tool filtering, programmatic execution,393skills.sh installs