vercel-ai-sdk

vercel-ai-sdk is a skill for Claude Code from wsimmonds/claude-nextjs-skills. It costs 87 tokens per session (8,358 once invoked), scanned A, original, MIT.

A guide to using Vercel AI SDK v5, a software toolkit for building AI features in web applications. It covers chat interfaces, streamed answers, tool calls, embeddings, and connections to MCP servers.

In plain words
What is it for?
Use it to build AI chat screens, API routes that generate or stream responses, tool-using assistants, semantic search using embeddings, and integrations with MCP servers. It also covers moving from SDK version 4 to version 5.
Why use it?
It helps developers follow consistent implementation patterns when adding AI features, instead of working out message handling, streaming, and model integration from scratch.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build AI chat screens, API routes that generate or stream responses, tool-using assistants, semantic search using embeddings, and integrations with MCP servers. It also covers moving from SDK version 4 to version 5.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wsimmonds/claude-nextjs-skills --skill vercel-ai-sdk
Clone the repo
git clone --depth 1 https://github.com/wsimmonds/claude-nextjs-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vercel-ai-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk/github.svg)](https://agentmods.dev/skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk)
Your own site
<a href="https://agentmods.dev/skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk"><img src="https://agentmods.dev/badge/skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vercel-ai-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk"><img src="https://agentmods.dev/badge/skills/wsimmonds/claude-nextjs-skills/vercel-ai-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.08358
Opus 5 $0.00044 $0.04179
Sonnet 5 $0.00017 $0.01672
Haiku 4.5 $0.00009 $0.00836

Measured 12d ago against content hash ac83c06c36dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

vercel-ai-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vercel-ai-sdk/SKILL.md · 1,171 lines

How it starts

The opening of the file, as written. The whole thing — 1,171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vercel AI SDK v5 Implementation Guide

When to Use This Skill

Use this skill when:

  • Implementing AI chat interfaces with useChat hook
  • Creating API routes that generate or stream AI responses
  • Adding tool calling / function calling capabilities
  • Generating text embeddings for semantic search or RAG
  • Migrating from AI SDK v4 to v5
  • Integrating Model Context Protocol (MCP) servers
  • Working with streaming responses or message persistence

Structured Implementation Workflow

Read the full file on GitHub · 1,171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 1,171 lines · 87 tokens per session scan A ac83c06c36dd

Subscribe to this mod's changes

vercel-ai-sdk is a skill published in the GitHub repository wsimmonds/claude-nextjs-skills (108 stars, last pushed 10mo ago), licensed MIT. It adds 87 tokens to every session and 8,358 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories