ai-sdk-core
Vercel AI SDK v5 for backend AI (text generation, structured output, tools, agents). Multi-provider. Use for server-side AI or encountering AI_APICallError, AI_NoObjectGeneratedError, streaming failures.
npx skills add majiayu000/claude-skill-registry --skill ai-sdk-core-secondsky-claude-skills-3 --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.
# AI SDK Core Production-ready backend AI with Vercel AI SDK v5. **Last Updated**: 2025-11-21 ## Table of Contents 1. [Quick Start](#quick-start-5-minutes) 2. [Core Functions](#core-functions) 3. [Provider Setup & Configuration](#provider-setup--configuration) 4. [Tool Calling & Agents](#tool-calling--agents) 5. [Critical v4→v5 Migration](#critical-v4v5-migration) 6. [Top 12 Errors & Solutions](#top-12-errors--solutions) 7. [Production Best Practices](#production-best-practices) 8. [When to Load References](#when-to-load-references) 9. [When to Use This Skill](#when-to-use-this-skill) 10. [Dependencies & Versions](#dependencies--versions) 11. [Links to Official Documentation](#links-to-official-documentation) 12. [Templates & References](#templates--references) --- ## Quick Start (5 Minutes) ### Installation ```bash bun add ai @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google workers-ai-provider zod # preferred # or: npm install ai @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google workers-ai-provider zod ``` ### Environment Variables ```bash # .env OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-ant-... GOOGLE_GENERATIVE_AI_API_KEY=... ``` ### First Example: Generate Text ```typescript impo
- Table of Contents
- Quick Start (5 Minutes)
- Installation
- Environment Variables
- First Example: Generate Text
- First Example: Streaming Chat
- First Example: Structured Output
- Core Functions
- Quick Overview
- Basic Example
- Provider Setup & Configuration
- Basic Setup
- Tool Calling & Agents
- Basic Tool Example
bun add ai @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google workers-ai-provider zod # preferred bunx ai migrate # Auto-migrates most changes npm view ai version npm view @ai-sdk/openai version npm view @ai-sdk/anthropic version npm view @ai-sdk/google version npm view workers-ai-provider version npm view zod version # Check for Zod 4.x updates
What does the ai-sdk-core skill do?
Vercel AI SDK v5 for backend AI (text generation, structured output, tools, agents). Multi-provider. Use for server-side AI or encountering AI_APICallError, AI_NoObjectGeneratedError, streaming failures.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ai-sdk-core-secondsky-claude-skills-3 --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.
