ai-sdk-6
Vercel AI SDK v6 development. Use when building AI agents, chatbots, tool integrations, or streaming applications with the ai package.
npx skills add majiayu000/claude-skill-registry --skill ai-sdk-6 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Vercel AI SDK v6 Development Guide Use this skill when developing AI-powered features using Vercel AI SDK v6 (`ai` package). ## Quick Reference ### Installation ```bash bun add ai @ai-sdk/anthropic zod ``` ### Core Functions | Function | Purpose | | -------------- | ----------------------------------------------------------------- | | `generateText` | Non-streaming text generation (+ structured output with `Output`) | | `streamText` | Streaming text generation (+ structured output with `Output`) | > **v6 Note**: `generateObject`/`streamObject` are deprecated. > Use `generateText`/`streamText` with `output: Output.object({ schema })` instead. ### Structured Output (v6) ```typescript import { generateText, Output } from "ai"; import { z } from "zod"; const { output } = await generateText({ model: anthropic("claude-sonnet-4-5-20250929"), output: Output.object({ schema: z.object({ sentiment: z.enum(["positive", "neutral", "negative"]), topics: z.array(z.string()), }), }), prompt: "Analyze this feedback...", }); ``` Output types: `Output.object()`, `Output.array()`, `Output.choice()`, `Output.json()` ### Agent Class (v6 Key Feature) ```typescript import { ToolLoopAgent, tool, stepCoun
- Quick Reference
- Installation
- Core Functions
- Structured Output (v6)
- Agent Class (v6 Key Feature)
- API Route with Agent
- useChat Hook (Client)
- Reference Documentation
- Official Documentation
bun add ai @ai-sdk/anthropic zod
What does the ai-sdk-6 skill do?
Vercel AI SDK v6 development. Use when building AI agents, chatbots, tool integrations, or streaming applications with the ai package.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ai-sdk-6 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
