๐ŸŽฏ

ai-sdk

๐ŸŽฏSkill

from vercel/ai

VibeIndex|
What it does
|

The official Vercel AI SDK skill for Claude Code that provides guidance on building AI-powered features using generateText, streamText, ToolLoopAgent, tool calling, structured output, and framework-specific streaming patterns.

Overview

ai-sdk is the official Claude Code skill from Vercel for the AI SDK (formerly known as Vercel AI SDK). It provides Claude Code with up-to-date documentation lookup strategies, API usage patterns, and agent-building guidance so that generated code always reflects the latest SDK version. The skill is uniquely designed around a "do not trust internal knowledge" principle, instructing Claude Code to always verify APIs against the bundled docs in node_modules or the ai-sdk.dev documentation site rather than relying on potentially outdated training data.

Key Features

  • Documentation-first workflow that directs Claude Code to search node_modules/ai/docs/ and node_modules/ai/src/ for current APIs (ai@6.0.34+), or fall back to the ai-sdk.dev search endpoint for earlier versions, ensuring generated code never uses deprecated patterns.
  • Agent building with ToolLoopAgent pattern, including type-safe agent definitions, tool creation with inputSchema, and end-to-end type safety using InferAgentUIMessage for consuming agents with useChat.
  • Common errors reference covering renamed parameters (maxTokens to maxOutputTokens, maxSteps to stopWhen, parameters to inputSchema, and many more), preventing frequent type errors and build failures.
  • Vercel AI Gateway integration guidance for accessing multiple AI providers (OpenAI, Anthropic, Google) through a single unified API with automatic model ID fetching to always use the latest models.
  • Framework-specific consumption patterns with instructions to detect the project's stack via package.json and follow the appropriate quickstart for streaming, API routes, and client integration. Includes DevTools setup for local debugging of LLM requests and multi-step interactions.

Who is this for?

This skill is essential for any developer building AI-powered features with the Vercel AI SDK, whether creating chatbots, agentic workflows, RAG systems, or text generation pipelines. It is especially valuable for teams using React hooks like useChat and useCompletion, developers working with tool calling and structured output, and anyone integrating multiple AI providers through the AI Gateway. The skill ensures Claude Code produces correct, up-to-date code even as the AI SDK API evolves rapidly between versions.

๐Ÿ“ฆ

Same repository

vercel/ai(10 items)

ai-sdk

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add vercel/ai --skill ai-sdk
skills.sh Installโš  Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add vercel/ai --skill ai-sdk
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/ai-sdk/SKILL.md

SKILL.md

10,397Installs
21,464
-
Last UpdatedJan 26, 2026