Official agent skill

AI SDK

by vercel-labs in vercel-labs/ai-facts

Answer questions about the AI SDK and help build AI-powered features.

OfficialNo licenceAuto-check passedAI & LLM Engineering

Install AI SDK

skills CLI
$ npx skills add vercel-labs/ai-facts --skill ai-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vercel-labs/ai-facts ai-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vercel-labs/ai-facts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ai-sdk .claude/skills/ai-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ai-sdk
GitHub stars
168
Used in
20 other repos
Token cost
~1.2k tokens
SKILL.md length
474 words
Files
5 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

Answer questions about the AI SDK and help build AI-powered features.

  • Works in 9 steps: Ensure ai package is installed (see… → Search node_modules/ai/docs/ and… → If not found locally, search ai-sdk.dev… → …
  • Ask about AI SDK functions like generateText
  • SKILL.md covers Prerequisites, Critical: Do Not Trust…, Finding Documentation and When Typecheck Fails, plus 2 more sections
  • Calls pnpm, curl and jq; reaches ai-sdk.dev and ai-gateway.vercel.sh

What it does

AI SDK is an agent skill from vercel-labs/ai-facts, published by the product's own GitHub organization. Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText"…

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/ai-gateway.md`, `references/common-errors.md` and `references/devtools.md`).

It sits in AI & LLM Engineering, covering Structured output and tool calling, React components and Embeddings. It works with Vercel AI SDK, OpenAI, React and Vercel. The repository describes itself as: Real-time fact checking on spoken statements with the AI SDK, Perplexity and DeepGram.

When your agent uses it

  • Ask about AI SDK functions like generateText
  • Want to build AI agents
  • Text generation features
  • Have questions about AI providers (OpenAI

Example prompts

  • “AI SDK”
  • “Vercel AI SDK”
  • “generateText”
  • “/ai-sdk”

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Ensure ai package is installed (see Prerequisites)
  2. Search node_modules/ai/docs/ and node_modules/ai/src/ for current APIs
  3. If not found locally, search ai-sdk.dev documentation (instructions below)
  4. Never rely on memory - always verify against source code or docs
  5. useChat has changed significantly - check Common Errors before writing client code
  6. When deciding which model and provider to use (e.g. OpenAI, Anthropic, Gemini), use the Vercel AI Gateway provider unless the user…
  7. Always fetch current model IDs - Never use model IDs from memory. Before writing code that uses a model, run curl -s…
  8. Run typecheck after changes to ensure code is correct
  9. Be minimal - Only specify options that differ from defaults. When unsure of defaults, check docs or source rather than guessing or…

What it can do on your machine

Read from SKILL.md and the folder at commit a952f6b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • curl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ai-sdk.dev
    • ai-gateway.vercel.sh

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

AI SDK loads about 1.2k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 153 tokens; SKILL.md has 474 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~153
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 474 words (~1,171 tokens).

“Before searching docs, check if node_modules/ai/docs/ exists. If not, install only the ai package using the project's package manager (e.g., pnpm add ai).”

— opening of SKILL.md by vercel-labs
name
ai-sdk

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (references) in .agents/skills/ai-sdk of vercel-labs/ai-facts.

  • SKILL.md
  • references/ai-gateway.md
  • references/common-errors.md
  • references/devtools.md
  • references/type-safe-agents.md

Open the folder on GitHubat commit a952f6b

Used in 20 other repositories

We found 23 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 20 other GitHub owners. This page covers the copy in vercel-labs/ai-facts, which our catalogue first saw on October 7, 2026.

Compare with similar skills

AI SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

AI SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
AI SDK this skillvercel-labs/ai-facts16820 repos~1.2kAutomated safety check: PassNone
LangchainOrchestra-Research/AI-Research-SKILLs13k2 repos~3.2kAutomated safety check: PassMIT
Vercel AI SDK Expertsickn33/agentic-awesome-skills47k2 repos~2.2kAutomated safety check: PassMIT
AI SDKCompound-inc/rift1241 repos~568Automated safety check: PassCustom licence
Workos Widgetsusenotra/notra256—~2kAutomated safety check: PassAGPL-3.0
Sap Cloud SDK AIsecondsky/sap-skills462—~3.2kAutomated safety check: PassGPL-3.0

Similar skills

  • Langchain

    Orchestra-Research/AI-Research-SKILLs

    Framework for building LLM-powered applications with agents, chains, and RAG.

    13k GitHub starsUsed in 2 repos~3.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Vercel AI SDK Expert

    sickn33/agentic-awesome-skills

    Expert in the Vercel AI SDK. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • AI SDK

    Compound-inc/rift

    Answer questions about the AI SDK and help build AI-powered features.

    124 GitHub starsUsed in 1 repo~568 tokens
    AI & LLM EngineeringAuto-check passed
  • Workos Widgets

    usenotra/notra

    A skill your agent uses when the user is implementing, embedding, or debugging a WorkOS Widget — specifically the User Management, User Profile, Admin Portal SSO Connection, or Admin Portal Domain…

    256 GitHub stars~2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Sap Cloud SDK AI

    secondsky/sap-skills

    Integrates SAP Cloud SDK for AI into JavaScript/TypeScript and Java applications.

    462 GitHub stars~3.2k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Sap Cloud SDK AI Python

    secondsky/sap-skills

    Integrates the SAP Cloud SDK for AI for Python (sap-ai-sdk-gen, formerly generative-ai-hub-sdk) into Python applications.

    462 GitHub stars~3.8k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed

Questions about AI SDK

What does AI SDK do?

Answer questions about the AI SDK and help build AI-powered features. AI SDK is an agent skill from vercel-labs/ai-facts, published by the product's own GitHub organization. Answer questions about the AI SDK and help build AI-powered features.

When should I use AI SDK?

AI SDK fits situations like: ask about AI SDK functions like generateText; want to build AI agents; text generation features; have questions about AI providers (OpenAI.

How do I install AI SDK in Claude Code?

Run `npx skills add vercel-labs/ai-facts --skill ai-sdk -a claude-code`. Or copy the skill folder (.agents/skills/ai-sdk in vercel-labs/ai-facts) into .claude/skills/ai-sdk in your project. Claude Code loads it when a task matches its description.

How do I install AI SDK in Codex?

Run `npx skills add vercel-labs/ai-facts --skill ai-sdk -a codex`. Or copy the skill folder (.agents/skills/ai-sdk in vercel-labs/ai-facts) into .agents/skills/ai-sdk in your project. Codex loads it when a task matches its description.

Can I use AI SDK in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vercel-labs/ai-facts --skill ai-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ai-sdk, .gemini/skills/ai-sdk, .github/skills/ai-sdk and .opencode/skills/ai-sdk in your project.

What does AI SDK need to run?

Going by SKILL.md and its folder, AI SDK needs the command-line tools its instructions call (pnpm, curl and jq).

Does AI SDK access the network?

SKILL.md names 2 domains. In commands or code: ai-sdk.dev and ai-gateway.vercel.sh; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is AI SDK safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does AI SDK use?

No licence was found for AI SDK or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does AI SDK use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to AI SDK?

Skills that share tags, products or a category with AI SDK: Langchain (Orchestra-Research/AI-Research-SKILLs, 13k stars), Vercel AI SDK Expert (sickn33/agentic-awesome-skills, 47k stars), AI SDK (Compound-inc/rift, 124 stars) and Workos Widgets (usenotra/notra, 256 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AI SDK?

vercel-labs (a GitHub organization, an official publisher) maintains it in vercel-labs/ai-facts, which has 168 GitHub stars. The repository was last updated on April 25, 2026.

Source: vercel-labs/ai-facts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.