Agent skill

AI SDK

by Compound-inc in Compound-inc/rift

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

Custom licenceAuto-check passedAI & LLM Engineering

Install AI SDK

skills CLI
$ npx skills add Compound-inc/rift --skill ai-sdk -a claude-code

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

GitHub CLI
$ gh skill install Compound-inc/rift 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/Compound-inc/rift.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/use-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
124
Used in
2 other repos
Token cost
~568 tokens
SKILL.md length
197 words
Files
2 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

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

  • Works in 2 steps: Documentation: grep "your query"… → Source code: grep "your query"…
  • Ask about AI SDK functions like generateText
  • SKILL.md covers AI SDK Documentation and Provider-Specific Information…
  • Reaches ai-sdk.dev

What it does

AI SDK is an agent skill from Compound-inc/rift. 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, or tools, (2) Want to build AI agents, chatbots, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, etc.), streaming, tool calling, or structured output.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/common-errors.md`).

It sits in AI & LLM Engineering, covering Structured output and tool calling and Chatbots and conversational support. It works with Vercel AI SDK and OpenAI.

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”

Workflow steps

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

  1. Documentation: grep "your query" node_modules/ai/docs/
  2. Source code: grep "your query" node_modules/ai/src/

What it can do on your machine

Read from SKILL.md and the folder at commit 4471fb5. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

    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 568 tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 197 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 197 words (~568 tokens).

“When you need up-to-date information about the AI SDK:”

— opening of SKILL.md by Compound-inc, Custom licence
name
ai-sdk
metadata.author
Vercel Inc.
metadata.version
1.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in .cursor/skills/use-ai-sdk of Compound-inc/rift.

  • SKILL.md
  • references/common-errors.md

Open the folder on GitHubat commit 4471fb5

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in Compound-inc/rift, 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 skillCompound-inc/rift1242 repos~568Automated safety check: PassCustom licence
AI SDKvercel-labs/ai-facts16821 repos~1.2kAutomated safety check: PassNone
LangchainOrchestra-Research/AI-Research-SKILLs13k2 repos~3.2kAutomated safety check: PassMIT
Vercel AI SDK Expertmajiayu000/claude-skill-registry6663 repos~2.2kAutomated safety check: PassMIT
Routerbase API Integrationaiskillstore/marketplace430—~964Automated safety check: PassNone
Mem0 Provider for Vercel AI SDKmem0ai/mem067k—~2.3kAutomated safety check: PassApache-2.0

Similar skills

  • AI SDK

    vercel-labs/ai-facts

    Official

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

    168 GitHub starsUsed in 21 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • 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

    majiayu000/claude-skill-registry

    Expert in the Vercel AI SDK. An agent skill from majiayu000/claude-skill-registry.

    666 GitHub starsUsed in 3 repos~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Routerbase API Integration

    aiskillstore/marketplace

    Integrate applications with RouterBase, the OpenAI-compatible model gateway at https://routerbase.com/v1.

    430 GitHub stars~964 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Adds persistent memory to Vercel AI SDK apps with the Mem0 provider, using a wrapped model or standalone retrieve and store utilities.

    67k GitHub stars~2.3k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Claude API

    Kocoro-lab/Kocoro

    Build apps with the Claude API or Anthropic SDK. An agent skill from Kocoro-lab/Kocoro.

    414 GitHub starsUsed in 8 repos~4.5k tokens
    AI & LLM EngineeringAuto-check passed

More from Compound-inc/rift

  • Rift Backend Effect

    Compound-inc/rift

    A skill your agent uses when adding, reviewing, or refactoring backend code in Rift's TanStack Start app that should follow apps/start/BACKENDEFFECTPLAYBOOK.md.

    124 GitHub stars~1.8k tokensUpdated 10 days ago
    Auto-check passed
  • Zero Sync

    Compound-inc/rift

    Zero sync engine patterns for React and TanStack Start apps.

    124 GitHub stars~3.7k tokensUpdated 10 days ago
    Auto-check: notes
  • Adding Sidebar Sections

    Compound-inc/rift

    Add a new sidebar section (e.g. An agent skill from Compound-inc/rift.

    124 GitHub stars~1.7k tokensUpdated 10 days ago
    Auto-check passed
  • Building Components

    Compound-inc/rift

    Guide for building modern, accessible, and composable UI components.

    124 GitHub starsUsed in 1 repo~538 tokens
    Auto-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 Compound-inc/rift. 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 Compound-inc/rift --skill ai-sdk -a claude-code`. Or copy the skill folder (.cursor/skills/use-ai-sdk in Compound-inc/rift) 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 Compound-inc/rift --skill ai-sdk -a codex`. Or copy the skill folder (.cursor/skills/use-ai-sdk in Compound-inc/rift) 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 Compound-inc/rift --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?

SKILL.md names no scripts, command-line tools or credentials: AI SDK is instructions for the agent only.

Does AI SDK access the network?

SKILL.md names 1 domain. In commands or code: ai-sdk.dev; the agent is likely to contact it 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?

AI SDK has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does AI SDK use?

About 568 tokens (SKILL.md is roughly 2.3k 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 945 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: AI SDK (vercel-labs/ai-facts, 168 stars), Langchain (Orchestra-Research/AI-Research-SKILLs, 13k stars), Vercel AI SDK Expert (majiayu000/claude-skill-registry, 666 stars) and Routerbase API Integration (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AI SDK?

Compound-inc (a GitHub organization) maintains it in Compound-inc/rift, which has 124 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 28, 2026.

Source: Compound-inc/rift on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.