Agent skill · software engineering · vercel
ai-sdk
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
Why this skill is useful
Provides specific commands and patterns for using the Vercel AI SDK that the AI wouldn't reliably generate on its own.
What it needs
Requires ai installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 26,057 stars on the source repository.
What this skill does
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. Repository: https://github.com/vercel/ai Documentation: https://ai-sdk.dev/docs 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 nodemodules. These always match the installed version, so trust them over anything you remember. 1. Ensure ai is installed. If nodemodules/ai/ does not exist, install only the ai package using the project's package manager (e.g. pnpm add ai). Install provider packages (e.g. @ai-sdk/openai) and framework packages (e.g. @ai-sdk/react) later, when the task requires them. 2. Read and grep the bundled docs at nodemodules/ai/docs/ and the source at nodemodules/ai/src/. 3. Provider and framework packages bundle their own docs at nodemodules/@ai-sdk/<name>/docs/. 4. If something isn't in the bundled docs, search https://ai-sdk.dev/docs. You can append .md to any docs page URL to get its markdown, and search via https://ai-sdk.dev/api/search-docs?q=yourquery. 5. If you cannot find support for an answer in the docs or source, say so explicitly — do not guess. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills vercel/use-ai-sdk