Software DevelopmentOfficial · vercel

Ai Sdk skill for Claude

The ai sdk skills by vercel: Answer questions about the AI SDK and help build AI-powered features.

When Claude uses it

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".

Ai Sdk SKILL.md

A preview of the skill file from vercel/ai.

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.

  1. Ensure ai is installed. Check node_modules/ai/ or locate the workspace package in a monorepo that depends on ai (e.g. apps/<name>/node_modules/ai/). If ai is not installed anywhere in the project, install only the ai package into the target package using the project's package manager (e.g. pnpm add ai --filter <pkg> or npm install 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 node_modules/ai/docs/ (or <package>/node_modules/ai/docs/) and the source at node_modules/ai/src/.
  3. Provider and framework packages bundle their own docs at node_modules/@ai-sdk/<name>/docs/ (or <package>/node_modules/@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=your_query.
  5. If you cannot find support for an answer in the docs or source, say so explicitly — do not guess.

AI Gateway: The Fastest Way to Start

Read the full SKILL.md on GitHub →

How to install the ai sdk skills

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit vercel/ai/skills/use-ai-sdk#main ~/.claude/skills/use-ai-sdk

Codex

npx degit vercel/ai/skills/use-ai-sdk#main ~/.codex/skills/use-ai-sdk

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What is the ai sdk skills?

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".

+How do I install the vercel ai sdk skills?

Copy the skill folder into ~/.claude/skills/use-ai-sdk, for example with "npx degit vercel/ai/skills/use-ai-sdk#main ~/.claude/skills/use-ai-sdk". Claude Code loads it automatically and uses it when a task matches.

+Does Ai Sdk work with ChatGPT or Codex?

Yes. Ai Sdk uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/use-ai-sdk. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Ai Sdk free?

Ai Sdk is published on GitHub by vercel. The repository does not declare a license, so check with the author before reusing it.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Claude Handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    mattpocock/skills★ 327k
  5. Setup

    Use for /autoresearch-agent:setup, or to start a new autoresearch experiment: target, eval command, metric, direction, evaluator.

    alirezarezvani/claude-skills★ 30k
  6. Using Superpowers

    Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including…

    obra/superpowers★ 319k
  7. Gemini Api

    Official

    Use when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI, Google Cloud, or Agent Platform.

    google/skills★ 24k
  8. Ponytail

    Lazy senior dev mode: the smallest change that fully solves the task, and a reply a busy human understands in one read.

    dietrichgebert/ponytail★ 194k
  9. Gog

    Official

    Use the gog CLI when Google connectors lack an operation, shell automation needs stable JSON, or local Google auth needs inspection.

    openclaw/gogcli★ 8.6k

See all software development skills →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.