AI SDK
The Vercel AI SDK is a TypeScript toolkit for calling LLMs from Node.js, Next.js, Nuxt, SvelteKit and edge runtimes through one API. It covers text generation, streaming, structured output with Zod, tool calling, agents (ToolLoopAgent) and chat UIs with useChat. Use when asked to "add AI to my Next.js app", "stream a chat response", "get typed JSON from an LLM", "switch between OpenAI, Anthropic and Gemini", or "build a tool-calling agent".
Install
npx skills add TerminalSkills/skills --skill ai-sdkgit clone --depth 1 https://github.com/TerminalSkills/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/ai-sdk ~/.claude/skills/ai-sdkPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Vercel AI SDK — Build AI-Powered Apps in TypeScript
## Overview
The AI SDK (`ai` on npm, version 7 at the time of writing) gives one API over many model providers. AI SDK Core (`generateText`, `streamText`, tools, agents) runs in any JavaScript runtime. AI SDK UI (`@ai-sdk/react`, plus Vue and Svelte packages) provides chat hooks that read the stream Core produces.
Version 7 requires Node.js 22 or later and ships ESM only (no `require()`). Many v4 and v5 snippets on the web no longer work: `maxSteps`, `parameters`, `toDataStreamResponse`, `ai/react` and `useChat().input` are gone, and several v6 names were renamed in v7 (listed under Guidelines). When a project pins an older major, check its `package.json` first and follow the migration guide at https://ai-sdk.dev/docs/migration-guides/migration-guide-7-0 (`npx @ai-sdk/codemod v7` applies the mechanical renames).
## Instructions
### Install
```bash
npm install ai @ai-sdk/react zod
npm install @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google # only the providers you use
```
Providers read their key from the environment (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`). Never hard-code keys.
### Choosing a model
Pass a provider model (`openai("gpt-5.4-mini")`) or a plain string such as `"anthropic/claude-sonnet-5.5"`, which goes through the Vercel AI Gateway and needs `AI_GATEWAY_API_KEY`. Model ids retire often; check the provider's model list before copying one.
### Core functionsDetails
- Skill name
ai-sdk- Repository
- TerminalSkills/skills
- Path
skills/ai-sdk/SKILL.md- License
- Apache-2.0
- Repo updated
- 8 November 2026
FAQ
What does the AI SDK skill do?
The Vercel AI SDK is a TypeScript toolkit for calling LLMs from Node.js, Next.js, Nuxt, SvelteKit and edge runtimes through one API. It covers text generation, streaming, structured output with Zod, tool calling, agents (ToolLoopAgent) and chat UIs with useChat. Use when asked to "add AI to my Next.js app", "stream a chat response", "get typed JSON from an LLM", "switch between OpenAI, Anthropic and Gemini", or "build a tool-calling agent".
How do I install the AI SDK skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add TerminalSkills/skills --skill ai-sdk. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is AI SDK popular?
It lives in TerminalSkills/skills, which has 213 GitHub stars and 34 forks.
Related skills
3dsmax Rendering
213TerminalSkills/skills
Scripts and configures production rendering in Autodesk 3ds Max with the V-Ray and Corona renderers: output size and files, render elements, denoising, light mix, batch and command-line rendering, and network rendering. Use when a user asks to set up a production render, render several cameras in one batch, render from the command line or on a render farm, add render passes for compositing, or cut render time for archviz and product shots.
3dsmax Scripting
213TerminalSkills/skills
Covers scripting Autodesk 3ds Max, the 3D modeling and rendering application, with MAXScript and Python (pymxs): scene manipulation, object creation, material assignment, camera and light setup, batch operations, and file I/O. Use when tasks involve automating repetitive 3ds Max workflows, batch processing scenes, running scripts headless with 3dsmaxbatch, creating custom tools, or scripting scene setup for archviz, product visualization, or VFX.
3proxy
213TerminalSkills/skills
3proxy is a small open-source proxy server that runs HTTP/HTTPS, SOCKS4/5, SNI and TCP/UDP port-mapping proxies from one config file. Use when a user asks to set up an HTTP or SOCKS5 proxy, add proxy users and passwords, write 3proxy access rules, chain or rotate upstream (parent) proxies, limit bandwidth, connections or monthly traffic per user, run 3proxy in Docker, or fix a 3proxy.cfg that will not start.
Aider
213TerminalSkills/skills
Aider is an open-source terminal AI pair programmer that edits files in your git repository with an LLM and commits each change. Use when a user asks to run Aider, let an AI refactor or fix code from the command line, script Aider with --message, auto-run lint and tests after edits, or point Aider at Claude, GPT, Gemini, DeepSeek or a local model.
AI Scientist
213TerminalSkills/skills
The AI Scientist-v2 is Sakana AI's open-source research agent that turns a topic description into research ideas, runs machine-learning experiments with an agentic tree search, and writes a LaTeX paper with citations. Use when someone wants to automate ML research, generate and test hypotheses, run "AI Scientist" or "AI-Scientist-v2", or study automated scientific discovery.
Airllm
213TerminalSkills/skills
AirLLM runs very large open language models on a small GPU (or a CPU) by loading the model one layer at a time from disk instead of holding it all in memory, at the price of slow generation. Use when the user wants to run a 70B or larger Hugging Face model locally with 4-12 GB of VRAM, asks how to fit a model that does not fit in GPU memory, or says "airllm", "layer-by-layer inference", "run Llama 70B on a small GPU", "offline batch answers from a big model".
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.