vercel avatar

Ai Sdk

vercel/aiOfficial

This is the official documentation skill for Vercel's AI SDK, and it's genuinely comprehensive. You get coverage of the core APIs like generateText, streamText, and embed, plus the React hooks (useChat, useCompletion) that make building chat interfaces straightforward. The skill explicitly warns you that your training data is outdated, which is refreshing honesty. It covers agent patterns, RAG systems, and structured output across multiple providers including OpenAI, Anthropic, and Google. The type safety story is solid with InferAgentUIMessage for end-to-end typing. If you're building anything AI-powered in the Next.js ecosystem, this saves you from constantly switching to browser docs.

skills.sh installs
69.4K
GitHub stars
27.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel/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/ai
Categories
Frontend Development, DevOps & CI/CD, AI & Agent Building, Cloud & Infrastructure

More from vercel/ai

All 8
1msmps avataropentuimsmps/opentui-skillOpenTUI skill for building terminal user interfaces with the Core, React, or Solid APIs. Use for any TUI task including components, layout, keyboard and keymap 64.5Kskills.sh installs
2expo avatarbuilding-native-uiexpo/skillsBuild beautiful, native-feeling Expo screens. Covers Apple HIG styling, semantic colors, native controls, SF Symbols, media, animations, visual effects, gradien58.1Kskills.sh installs
3clerk avatarclerk-custom-uiclerk/skillsCustom authentication flows and component appearance - hooks (useSignIn, useSignUp), themes, colors, fonts, CSS. Use for custom sign-in/sign-up flows, appearanc57.4Kskills.sh installs
4nextlevelbuilder avatarbrandnextlevelbuilder/ui-ux-pro-max-skillBrand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand co47.4Kskills.sh installs
5wshobson avatarbrand-landingpagewshobson/agentsBrand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page39.9Kskills.sh installs
6googlechrome avatarmodern-web-guidancegooglechrome/modern-web-guidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly 38.8Kskills.sh installs