This is your go-to when you're building anything AI-powered with the Vercel AI SDK. It handles chat interfaces, streaming responses, tool calling, structured output, agents, and pretty much every LLM provider out there. The validation rules are genuinely helpful, catching outdated patterns like deprecated agent APIs and old streaming methods, plus it'll nudge you away from direct OpenAI or Anthropic SDK usage toward the unified AI Gateway approach. It auto-activates when it detects AI SDK imports or finds files in common chat API routes. If you're doing anything beyond basic OpenAI API calls, especially streaming to a UI or building multi-step agents, this covers the modern patterns.

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

Install

$ npx -y skills add vercel-labs/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-labs/vercel-plugin
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/vercel-plugin

All 32
1aradotso avataropengame-agentic-game-creationaradotso/trending-skillsopengame agentic game creation268skills.sh installs
2aradotso avatarcairn-ai-pentestaradotso/trending-skillscairn ai pentest265skills.sh installs
3vercel-labs avatarai-gatewayvercel-labs/vercel-pluginai gateway260skills.sh installs
4aradotso avatarcrabtrap-llm-proxyaradotso/trending-skillscrabtrap llm proxy257skills.sh installs
5bobmatnyc avataranthropic-sdkbobmatnyc/claude-mpm-skillsOfficial Anthropic SDK for Claude AI with chat, streaming, function calling, and vision capabilities254skills.sh installs
6mastepanoski avatarowasp-ai-testingmastepanoski/claude-skillsAI trustworthiness testing using OWASP AI Testing Guide v1. Execute 32 test cases across 4 layers (Application, Model, Infrastructure, Data) with practical payl245skills.sh installs