ai-sdk: a Claude Code skill by Vercel
Official
For TypeScript developers adding chat, agents or structured output with Vercel's AI SDK. Skip it if your app is in Python or calls a model provider's own SDK.
- Score
- 83of 100
- Rank
- #40of 239
- Installs
- 72.4Kon skills.sh
- Security
- Mixed 5 scanners
- Updated
- 2026
- Context
- ~152tokens always
Install
npx skills add https://github.com/vercel/ai --skill ai-sdk Run it in your terminal. View the source
Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app
What does ai-sdk do?
ai-sdk is a Claude skill for writing code with the AI SDK, the ai package on npm. It tells Claude not to trust memory, since APIs like useChat change often, and to read the docs and source bundled in node_modules/ai/docs/ and node_modules/ai/src/ for the installed version. If ai is missing, it installs only that package. It suggests the Vercel AI Gateway with an AI_GATEWAY_API_KEY, fetches the current model list with curl instead of guessing model IDs, prefers ToolLoopAgent over hand-built tool loops, compares the installed version with npm view ai version, and ends by running the type checker.
When should you use ai-sdk?
Use it when
- You are adding streamText or generateText to an app
- You are building a chat UI with useChat
- You need tool calling or structured output in TypeScript
Skip it when
- Your backend is Python
- You call a model provider's SDK directly
What it needs and what it can touch
You need
- A JavaScript or TypeScript project
- A model provider key or an AI Gateway API key
What it can do
- Runs shell commands (npm install, curl, type checker)
- Reads and edits project files
- Fetches docs and model lists from ai-sdk.dev and Vercel
From reading its instructions, not from running it.
Why it scores 83
Strongest on upkeep (100 of 100), weakest on adoption (59).
Is ai-sdk safe to install?
At least one scanner raised a medium warning. Read the results below. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Sep 23, 2026 |
| Socket | Passed | Sep 23, 2026 |
| Snyk | Medium risk | Sep 23, 2026 |
| Runlayer | Medium risk | Feb 26, 2026 |
| ZeroLeaks | Passed | Apr 16, 2026 |
Details
- Installs
- 72,412
- Repository stars
- 27,860
- Last repository change
- Tokens always loaded
- about 152
- Tokens when used
- about 1,297
- License
- Apache-2.0
- Data confidence
- High
Did it do the job for you?
Alternatives to ai-sdk
All skills for this job-
Get gemini-api-devgemini-api-dev
For developers writing Python or TypeScript code against the Gemini API and its managed agents.
-
Get developing-genkit-jsdeveloping-genkit-js
For TypeScript developers building AI flows or agents with Genkit who want Claude to use current APIs.
-
Get tavily-best-practicestavily-best-practices
For developers adding Tavily web search, extraction or crawling to their own agent, RAG system or app.
-
Get mcp-apps-buildermcp-apps-builder
For TypeScript developers building MCP servers or interactive MCP Apps with the mcp-use framework.