What problem does it solve? Adding AI capabilities to a web application involves many moving parts: streaming responses, tool calling, structured output validation, RAG over private documents, and multi-model routing. This Skill provides production-grade patterns for Vercel AI SDK v6 so you avoid outdated v3/v4 APIs and ship AI features with rate limiting, cost controls, and error handling built in. ## Core Features & Use Cases - Streaming Chat: Build Next.js chat endpoints with streamText and the useChat React hook, including rate limiting and token usage logging. - Structured Output & Tool Calling: Extract typed data with generateObject and Zod schemas, and let models take actions via tool calling with maxSteps limits. - RAG Pipelines: Ingest documents with embedMany, store vectors in pgvector, and answer questions with similarity-filtered retrieval. - Use Case: A user asks to "add a support chatbot that answers from our docs" — the Skill produces a streaming chat route, a pgvector-backed RAG pipeline, and a multi-model router that sends simple questions to a cheap model and complex ones to a stronger model. ## Quick Start Ask the AI to add a streaming chat feature to your Next.js app using Vercel AI SDK v6 with rate limiting and token usage logging.