What problem does it solve?
This Skill provides a ready-to-use UI layer for building AI-powered chat interfaces with streaming capabilities, reducing boilerplate and guiding best practices across migration and error handling.
Core Features & Use Cases
- Message parts structure: supports multi-part messages, tool invocations, and file attachments for rich UI.
- Tool workflows & approvals: includes human-in-the-loop tool approval patterns and auto-submit patterns for seamless conversation.
- Migration & best practices: documents v4→v5/v6 changes, error handling patterns, and Next.js integration templates.
- Use Case: quickly spin up a Next.js app with streaming chat using useChat, including app/router routes and API streaming.
- Templates & References: provides 11 templates, 5 reference documents, and a quick-start guide.
Quick Start
npm install ai @ai-sdk/react @ai-sdk/openai
Use this skill to scaffold a streaming chat UI in a new Next.js project by following the included templates and references.