---
name: ai-sdk
slug: ai-sdk
score: 90
rubric: 1.1
provenance: verified-org
publisher: Vercel
license: Apache-2.0
capability: read-write
canonical: https://top-agent-skills.com/skill/ai-sdk
---

# ai-sdk

Vercel's skill for the AI SDK, published in the SDK's own repo: read the docs bundled in node_modules for the installed version, never write the API from memory.

## Install

### Claude Code

```bash
npx skills add vercel/ai --skill ai-sdk -a claude-code
```

### Cursor

```bash
npx skills add vercel/ai --skill ai-sdk -a cursor
```

### Codex CLI

```bash
npx skills add vercel/ai --skill ai-sdk -a codex
```

### Gemini CLI

```bash
npx skills add vercel/ai --skill ai-sdk -a gemini-cli
```

### Antigravity IDE

```bash
npx skills add vercel/ai --skill ai-sdk -a antigravity
```

## Plugins

Distribution: Standalone skill.

## Safety

Reviewed on 2026-11-12 by reading the skill's files (nothing was executed).

- Bundled scripts: no
- Network access: yes
- allowed-tools: none declared
- Notes: A single SKILL.md, no scripts. Tells the agent to install the ai package with the project's package manager when it is missing and shows a curl to the public AI Gateway model list; using the Gateway needs AI_GATEWAY_API_KEY.

## Best for

Building agents, chat and RAG features in TypeScript with the AI SDK. The SDK renames APIs between majors, and this skill makes the agent read the version-matched docs and source that ship inside the ai package instead of guessing.

## Not ideal for

Python stacks or code that calls one model vendor's SDK directly. For the Claude API itself, use Anthropic's claude-api skill.

## About

Answer questions about the AI SDK and help build AI-powered features: generateText, streamText, ToolLoopAgent, embeddings, tools, structured output, providers, and React hooks like useChat. Triggers on "AI SDK", "Vercel AI SDK", "add AI to my app", "build an agent", "tool calling", "structured output".

## Compatibility

claude-code, cursor, codex, gemini-cli, antigravity

## Metadata

- Categories: ai-ml-agent-tooling
- Surfaces: claude-code
- Tags: AI SDK, Agents, TypeScript
- Setup time: 1 min
- Complexity: Low
- Last update: 2026-09-22
- Verified: 2026-11-12
- Source: https://github.com/vercel/ai/tree/main/skills/use-ai-sdk
- Docs: https://ai-sdk.dev/docs

---

_Indexed by Top Agent Skills. Score breakdown: https://top-agent-skills.com/about/methodology_
