vercel-ai-sdk
Installation
SKILL.md
Vercel AI SDK v6 Implementation Guide
When to Use This Skill
Use this skill when:
- Implementing AI chat interfaces with
useChathook - Creating API routes that generate or stream AI responses
- Building agentic applications with
ToolLoopAgent - Adding tool calling / function calling capabilities
- Generating structured output with
Output.object(),Output.array(), etc. - Generating text embeddings for semantic search or RAG
- Migrating from AI SDK v5 to v6
- Integrating Model Context Protocol (MCP) servers
- Implementing middleware for caching, logging, or guardrails
- Building workflow patterns (sequential, parallel, routing, etc.)
- Working with streaming responses or message persistence