vercel-labs avatar

Ai Sdk

Gives Claude the full Vercel AI SDK documentation so it can build streaming chat interfaces, tool calling flows, and agent loops without guessing at outdated APIs. Ships with React hooks like useChat and useCompletion, plus provider integrations for OpenAI, Anthropic, and Google. The skill emphasizes looking up docs locally from node_modules rather than relying on training data, which is smart since this library moves fast. Covers structured output, embeddings, and the newer ToolLoopAgent patterns. If you're wiring up AI features in a Next.js or SvelteKit app and tired of fighting type errors or deprecated methods, this keeps Claude current with what actually works.

skills.sh installs
2.2K
GitHub stars
25.5K
last updated
Jul 14, 2026

Install

$ npx -y skills add vercel-labs/ai --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/ai
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
May 16, 2026
1patternsdev avatarai-ui-patternspatternsdev/skillsTeaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user exper2.2Kskills.sh installs
2anthropics avatarbuild-zoom-virtual-agentanthropics/knowledge-work-pluginsReference skill for Zoom Virtual Agent. Use after routing to a virtual-agent workflow when implementing web embeds, Android or iOS wrapper integrations, knowled2.1Kskills.sh installs
3aradotso avataragency-agents-ai-specialistsaradotso/trending-skillsagency agents ai specialists2Kskills.sh installs
4vercel avatardevelop-ai-functions-examplevercel/aiDevelop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support, demonstra1.9Kskills.sh installs
5affaan-m avataragent-architecture-auditaffaan-m/everything-claude-codeagent architecture audit1.7Kskills.sh installs
6ruvnet avataragent-workflowruvnet/rufloAgent skill for workflow - invoke with $agent-workflow1.4Kskills.sh installs