What problem does it solve? Building AI applications with the Vercel AI SDK often leads to cryptic streaming errors, broken tool calling, provider incompatibilities, and painful v4-to-v5 migrations. This Skill provides expert-level diagnosis and fixes grounded in real GitHub issues, so you resolve problems like empty response bodies, abort signal mishandling, and tool part ordering errors without hours of debugging. ## Core Features & Use Cases - Streaming & Error Diagnosis: Identifies root causes of empty responses, abort signal errors, and transform/tool conflicts, with quick-to-best fix strategies for each. - V4 to V5 Migration: Detects your installed SDK version, flags deprecated patterns like parameters vs inputSchema, and guides codemod-based or manual upgrades. - Production Patterns: Provides v5-specific implementations for agentic control (stopWhen, prepareStep), provider-executed tools, structured outputs with generateObject, and multi-provider setups including OpenAI, Anthropic, Gemini, and open-source models via Ollama or Groq. - Use Case: Your Next.js chat route returns "[Error: The response body is empty.]" in production. Invoke this Skill to detect your SDK version, validate the response handling, and apply a verified fix with proper error boundaries and retry logic. ## Quick Start Ask the AI to diagnose why your Vercel AI SDK streaming endpoint returns an empty response body and fix it using v5 patterns.