What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

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

  • Adoption35 points 59
  • Upkeep20 points 100
  • Trust20 points 94
  • Quality15 points 100
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

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.

ScannerResultDate
Gen Agent Trust HubPassedSep 23, 2026
SocketPassedSep 23, 2026
SnykMedium riskSep 23, 2026
RunlayerMedium riskFeb 26, 2026
ZeroLeaksPassedApr 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

Alternatives to ai-sdk

All skills for this job