Skip to content
Skill

AI SDK

Guides an agent through building with the Vercel AI SDK using version-matched docs

AI SDK is an open-source agent skill for ai models and llm tooling. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About AI SDK

This skill points the agent at the Vercel AI SDK, a TypeScript toolkit for text generation, structured output, tool calling, agents, embeddings and framework UI hooks. Rather than relying on memorized APIs, it has the agent first confirm the installed version of the ai package, then read the bundled docs and source inside node_modules, falling back to the online documentation when needed.

It also covers setup choices: routing models through the Vercel AI Gateway with a single API key and provider/model strings, looking up the current model list before writing code, preferring the built-in agent abstraction over hand-written tool loops, and using the DevTools package for local debugging. It ends with a reminder to run the project's type checker after changes and to flag when the installed version is a major release behind.

The skill expects a TypeScript project with a package.json and network access for the model list and the docs site. The repository version adds notes for a specific monorepo, such as its wrapper conventions and metering rules.

When your agent uses it

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", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the better-supabase plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase

Or copy only this skill to ~/.claude/skills/ai-sdk:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ai-sdk &&
cp -R "$tmp/.agents/skills/ai-sdk" ~/.claude/skills/ai-sdk &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/ai-sdk inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/ai-sdk to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ai-sdk &&
cp -R "$tmp/.agents/skills/ai-sdk" ~/.agents/skills/ai-sdk &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/ai-sdk inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/ai-sdk to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ai-sdk &&
cp -R "$tmp/.agents/skills/ai-sdk" ~/.cursor/skills/ai-sdk &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/ai-sdk inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/ai-sdk

Or copy the folder to ~/.gemini/skills/ai-sdk yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ai-sdk:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ai-sdk &&
cp -R "$tmp/.agents/skills/ai-sdk" ~/.copilot/skills/ai-sdk &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/ai-sdk inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git

Then copy better-supabase/.agents/skills/ai-sdk into your agent's skills folder as ai-sdk. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Version-matched documentation lookup
Directs the agent to the docs and source bundled with the installed ai package rather than training memory.
Gateway model setup
Explains connecting to the Vercel AI Gateway with an API key and provider/model strings.
Current model discovery
Shows how to query the gateway's live model list before choosing a model ID.
Agent building guidance
Recommends the SDK's agent abstraction and inferred UI message types for client code.
Version currency check
Compares the installed ai version against the latest release and flags major upgrades.
DevTools debugging
Points to the local-only DevTools package for inspecting requests, tool calls and token usage.

Good for

  • Add a streaming chat feature to a Next.js app using useChat
  • Build a tool-calling agent with the AI SDK
  • Set up text generation through the Vercel AI Gateway
  • Check whether my installed ai package is out of date
  • Debug multi-step generations with DevTools

AI SDK FAQ

What does the skill need to be installed?

It expects the ai package in the project; if it is missing, the agent is told to install only that package into the target workspace, adding provider and framework packages later as needed.

Which providers does AI SDK cover?

It mentions OpenAI, Anthropic, Google and others, reached through the AI Gateway with provider/model strings.

When does AI SDK trigger?

It triggers on questions about AI SDK functions such as generateText, streamText and useChat, and on requests to add AI features or build agents.

Does AI SDK change my code automatically?

It instructs the agent on how to write and check code, including running the project's type checker after changes, but the content does not describe automatic edits beyond that.

How do I install AI SDK in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ai-sdk to use it in all your projects, or to .claude/skills/ai-sdk in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

Does AI SDK run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use AI SDK?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to AI SDK?

The closest alternatives to AI SDK are AI gateway, Developing genkit js, Gemini API dev, Openai docs and Gemini API.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ScaleDockHQ/better-supabase

  1. Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown

    • Open source
    • 5 GitHub stars
    • Files and documents
  2. Publish Agent Cards and run agent-to-agent calls over the A2A 1.0 protocol

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Lets an AI agent drive Chrome or Chromium through a fast browser automation CLI

    • Open source
    • 5 GitHub stars
    • Browser automation
  5. Guides an agent to write, review and validate SKILL.md skills against the Agent Skills

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Write, place, migrate and review AGENTS.md instruction files for coding agents

    • Open source
    • 5 GitHub stars
    • Developer tools