[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FG2H96DVAWRNSHPPWK39DP":3,"skill-same:01M6FG2H96DVAWRNSHPPWK39DP":156},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M6FG2H96DVAWRNSHPPWK39DP","ai-sdk-ui",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002FSKILL.md",[],[18,19,20,21],"sdk","ui","ai sdk","ai sdk ui","2026-11-10 10:12:30",false,"---\nname: ai-sdk-ui\ndescription: Vercel AI SDK v5 React hooks (useChat, useCompletion, useObject) for AI chat interfaces. Use for React\u002FNext.js AI apps or encountering parse stream errors, no response, streaming issues.\n\n  Keywords: ai sdk ui, useChat hook, useCompletion hook, useObject hook, react ai chat, ai chat interface,\n  streaming ai ui, nextjs ai chat, vercel ai ui, react streaming, ai sdk react, chat message state,\n  ai file attachments, message persistence, useChat error, streaming failed ui, parse stream error,\n  useChat no response, react ai hooks, nextjs app router ai, nextjs pages router ai\nlicense: MIT\n---\n\n# AI SDK UI - Frontend React Hooks\n\nFrontend React hooks for AI-powered user interfaces with Vercel AI SDK v5.\n\n**Version**: AI SDK v5.0.116 (Stable)\n**Framework**: React 18+, Next.js 15+\n**Last Updated**: 2025-12-22\n\n## Table of Contents\n1. [Quick Start](#quick-start-5-minutes)\n2. [When to Load References](#when-to-load-references)\n3. [useChat Hook](#usechat-hook---complete-reference)\n4. [useCompletion Hook](#usecompletion-hook---complete-reference)\n5. [useObject Hook](#useobject-hook---complete-reference)\n6. [Next.js Integration](#nextjs-integration)\n7. [Top UI Errors & Solutions](#top-ui-errors--solutions)\n8. [Streaming Best Practices](#streaming-best-practices)\n9. [When to Use This Skill](#when-to-use-this-skill)\n10. [Package Versions](#package-versions)\n\n---\n\n## Quick Start (5 Minutes)\n\n### Installation\n\n```bash\nbun add ai @ai-sdk\u002Fopenai  # preferred\n# or: bun add ai @ai-sdk\u002Fopenai\n```\n\n### Basic Chat Component (v5)\n\n```tsx\n\u002F\u002F app\u002Fchat\u002Fpage.tsx\n'use client';\nimport { useChat } from 'ai\u002Freact';\nimport { useState, FormEvent } from 'react';\n\nexport default function Chat() {\n  const { messages, sendMessage, isLoading } = useChat({\n    api: '\u002Fapi\u002Fchat',\n  });\n  const [input, setInput] = useState('');\n\n  const handleSubmit = (e: FormEvent) => {\n    e.preventDefault();\n    sendMessage({ content: input });\n    setInput('');\n  };\n\n  return (\n    \u003Cdiv>\n      \u003Cdiv>\n        {messages.map(m => (\n          \u003Cdiv key={m.id}>\n            \u003Cstrong>{m.role}:\u003C\u002Fstrong> {m.content}\n          \u003C\u002Fdiv>\n        ))}\n      \u003C\u002Fdiv>\n      \u003Cform onSubmit={handleSubmit}>\n        \u003Cinput\n          value={input}\n          onChange={(e) => setInput(e.target.value)}\n          placeholder=\"Type a message...\"\n          disabled={isLoading}\n        \u002F>\n      \u003C\u002Fform>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### API Route (Next.js App Router)\n\n```typescript\n\u002F\u002F app\u002Fapi\u002Fchat\u002Froute.ts\nimport { streamText } from 'ai';\nimport { openai } from '@ai-sdk\u002Fopenai';\n\nexport async function POST(req: Request) {\n  const { messages } = await req.json();\n\n  const result = streamText({\n    model: openai('gpt-4-turbo'),\n    messages,\n  });\n\n  return result.toDataStreamResponse();\n}\n```\n\n**Result**: A functional chat interface with streaming AI responses in ~10 lines of frontend code.\n\n---\n\n## When to Load References\n\nFor detailed implementation guides, API references, and advanced patterns, load the following reference files:\n\n| Reference File | Load When... |\n|----------------|--------------|\n| `references\u002Fuse-chat-migration.md` | Migrating from v4 to v5, understanding breaking changes |\n| `references\u002Fstreaming-patterns.md` | UI streaming best practices, performance optimization |\n| `references\u002Ftop-ui-errors.md` | Debugging common UI errors, error prevention |\n| `references\u002Fnextjs-integration.md` | Next.js setup patterns, App vs Pages Router differences |\n| `references\u002Flinks-to-official-docs.md` | Finding official Vercel AI SDK documentation |\n| `references\u002Ftool-calling-ui.md` | Implementing tool\u002Ffunction calling in chat UI |\n| `references\u002Ffile-attachments-guide.md` | Adding file upload\u002Fattachment support to chat |\n| `references\u002Fmessage-persistence.md` | Persisting chat history with localStorage |\n| `references\u002Fuse-completion-full-reference.md` | Complete useCompletion API and examples |\n| `references\u002Fuse-object-full-reference.md` | Complete useObject API with Zod schemas |\n| `references\u002Fnextjs-app-router-full.md` | Full Next.js App Router implementation |\n| `references\u002Fnextjs-pages-router-full.md` | Full Next.js Pages Router implementation |\n\n---\n\n## useChat Hook - Complete Reference\n\n### Basic Usage (v5 Pattern)\n\n```tsx\n'use client';\nimport { useChat } from 'ai\u002Freact';\nimport { useState, FormEvent } from 'react';\n\nexport default function ChatComponent() {\n  const { messages, sendMessage, isLoading, error } = useChat({\n    api: '\u002Fapi\u002Fchat',\n  });\n  const [input, setInput] = useState('');\n\n  const handleSubmit = (e: FormEvent) => {\n    e.preventDefault();\n    if (!input.trim()) return;\n\n    sendMessage({ content: input });\n    setInput('');\n  };\n\n  return (\n    \u003Cdiv className=\"flex flex-col h-screen\">\n      {\u002F* Messages *\u002F}\n      \u003Cdiv className=\"flex-1 overflow-y-auto p-4\">\n        {messages.map(message => (\n          \u003Cdiv\n            key={message.id}\n            className={message.role === 'user' ? 'text-right' : 'text-left'}\n          >\n            \u003Cdiv className=\"inline-block p-2 rounded bg-gray-100\">\n              {message.content}\n            \u003C\u002Fdiv>\n          \u003C\u002Fdiv>\n        ))}\n        {isLoading && \u003Cdiv className=\"text-gray-500\">AI is thinking...\u003C\u002Fdiv>}\n      \u003C\u002Fdiv>\n\n      {\u002F* Input *\u002F}\n      \u003Cform onSubmit={handleSubmit} className=\"p-4 border-t\">\n        \u003Cinput\n          value={input}\n          onChange={(e) => setInput(e.target.value)}\n          placeholder=\"Type a message...\"\n          disabled={isLoading}\n          className=\"w-full p-2 border rounded\"\n        \u002F>\n      \u003C\u002Fform>\n\n      {\u002F* Error *\u002F}\n      {error && \u003Cdiv className=\"text-red-500 p-4\">{error.message}\u003C\u002Fdiv>}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Full API Reference\n\n```typescript\nconst {\n  \u002F\u002F Messages\n  messages,           \u002F\u002F Message[] - Chat history\n  setMessages,        \u002F\u002F (messages: Message[]) => void - Update messages\n\n  \u002F\u002F Actions\n  sendMessage,        \u002F\u002F (message: { content: string }) => void - Send message (v5)\n  reload,             \u002F\u002F () => void - Reload last response\n  stop,               \u002F\u002F () => void - Stop current generation\n\n  \u002F\u002F State\n  isLoading,          \u002F\u002F boolean - Is AI responding?\n  error,              \u002F\u002F Error | undefined - Error if any\n\n  \u002F\u002F Data\n  data,               \u002F\u002F any[] - Custom data from stream\n  metadata,           \u002F\u002F object - Response metadata\n} = useChat({\n  \u002F\u002F Required\n  api: '\u002Fapi\u002Fchat',   \u002F\u002F API endpoint\n\n  \u002F\u002F Optional\n  id: 'chat-1',       \u002F\u002F Chat ID for persistence\n  initialMessages: [], \u002F\u002F Initial messages (controlled mode)\n\n  \u002F\u002F Callbacks\n  onFinish: (message, options) => {},  \u002F\u002F Called when response completes\n  onError: (error) => {},              \u002F\u002F Called on error\n\n  \u002F\u002F Configuration\n  headers: {},        \u002F\u002F Custom headers\n  body: {},           \u002F\u002F Additional body data\n  credentials: 'same-origin', \u002F\u002F Fetch credentials\n\n  \u002F\u002F Streaming\n  streamProtocol: 'data', \u002F\u002F 'data' | 'text' (default: 'data')\n});\n```\n\n### v4 → v5 Breaking Changes\n\n**CRITICAL: useChat no longer manages input state in v5!**\n\n**v4 (OLD - DON'T USE):**\n```tsx\nconst { messages, input, handleInputChange, handleSubmit, append } = useChat();\n\n\u003Cform onSubmit={handleSubmit}>\n  \u003Cinput value={input} onChange={handleInputChange} \u002F>\n\u003C\u002Fform>\n```\n\n**v5 (NEW - CORRECT):**\n```tsx\nconst { messages, sendMessage } = useChat();\nconst [input, setInput] = useState('');\n\n\u003Cform onSubmit={(e) => {\n  e.preventDefault();\n  sendMessage({ content: input });\n  setInput('');\n}}>\n  \u003Cinput value={input} onChange={(e) => setInput(e.target.value)} \u002F>\n\u003C\u002Fform>\n```\n\n**Summary of v5 Changes:**\n1. **Input management removed**: `input`, `handleInputChange`, `handleSubmit` no longer exist\n2. **`append()` → `sendMessage()`**: New method for sending messages\n3. **`onResponse` removed**: Use `onFinish` instead\n4. **`initialMessages` → controlled mode**: Use `messages` prop for full control\n5. **`maxSteps` removed**: Handle on server-side only\n\nSee `references\u002Fuse-chat-migration.md` for complete migration guide.\n\n**Advanced Features:** useChat supports tool calling (display `message.toolInvocations`), file attachments (`experimental_attachments`), and message persistence (localStorage with `id` + `initialMessages`). See [official docs](https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Fchatbot) for implementation examples.\n\n---\n\n## useCompletion & useObject Hooks\n\n**useCompletion**: For single-prompt completions (not multi-turn chat). Returns `{ completion, complete, isLoading }`. Call `complete(prompt)` to generate. API route uses `streamText()`.\n\n**useObject**: Stream structured JSON with live updates using Zod schemas. Returns `{ object, submit, isLoading }` where `object` is `Partial\u003CT>` that updates progressively. API route uses `streamObject()`.\n\nSee [official docs](https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Foverview) for complete API references and examples.\n\n---\n\n## Next.js Integration\n\nComplete working examples for both App Router and Pages Router with full chat UI components, API routes, and proper streaming setup.\n\n**? Load `references\u002Fnextjs-integration.md`** for complete implementation code including:\n- **App Router**: Full chat page with auto-scroll, loading states, error handling, and API route\n- **Pages Router**: Complete chat implementation with proper streaming setup\n- **Key Differences**: `toDataStreamResponse()` vs `pipeDataStreamToResponse()`\n\n---\n\n## Top UI Errors & Solutions\n\nSee `references\u002Ftop-ui-errors.md` for complete documentation. Quick reference:\n\n### 1. useChat Failed to Parse Stream\n\n**Error**: `SyntaxError: Unexpected token in JSON at position X`\n\n**Cause**: API route not returning proper stream format.\n\n**Solution**:\n```typescript\n\u002F\u002F ✅ CORRECT\nreturn result.toDataStreamResponse();\n\n\u002F\u002F ❌ WRONG\nreturn new Response(result.textStream);\n```\n\n### 2. useChat No Response\n\n**Cause**: API route not streaming correctly.\n\n**Solution**:\n```typescript\n\u002F\u002F App Router - use toDataStreamResponse()\nexport async function POST(req: Request) {\n  const result = streamText({ \u002F* ... *\u002F });\n  return result.toDataStreamResponse(); \u002F\u002F ✅\n}\n\n\u002F\u002F Pages Router - use pipeDataStreamToResponse()\nexport default async function handler(req, res) {\n  const result = streamText({ \u002F* ... *\u002F });\n  return result.pipeDataStreamToResponse(res); \u002F\u002F ✅\n}\n```\n\n### 3. Streaming Not Working When Deployed\n\n**Cause**: Deployment platform buffering responses.\n\n**Solution**: Vercel auto-detects streaming. Other platforms may need configuration.\n\n### 4. Stale Body Values with useChat\n\n**Cause**: `body` option captured at first render only.\n\n**Solution**:\n```typescript\n\u002F\u002F ❌ WRONG - body captured once\nconst { userId } = useUser();\nconst { messages } = useChat({\n  body: { userId },  \u002F\u002F Stale!\n});\n\n\u002F\u002F ✅ CORRECT - use controlled mode\nconst { userId } = useUser();\nconst { messages, sendMessage } = useChat();\n\nsendMessage({\n  content: input,\n  data: { userId },  \u002F\u002F Fresh on each send\n});\n```\n\n### 5. React Maximum Update Depth\n\n**Cause**: Infinite loop in useEffect.\n\n**Solution**:\n```typescript\n\u002F\u002F ❌ WRONG\nuseEffect(() => {\n  saveMessages(messages);\n}, [messages, saveMessages]); \u002F\u002F saveMessages triggers re-render!\n\n\u002F\u002F ✅ CORRECT\nuseEffect(() => {\n  saveMessages(messages);\n}, [messages]); \u002F\u002F Only depend on messages\n```\n\nSee `references\u002Ftop-ui-errors.md` for 7 more common errors.\n\n---\n\n## Streaming Best Practices\n\n### Performance\n\n**Always use streaming for better UX:**\n```tsx\n\u002F\u002F ✅ GOOD - Streaming (shows tokens as they arrive)\nconst { messages } = useChat({ api: '\u002Fapi\u002Fchat' });\n\n\u002F\u002F ❌ BAD - Non-streaming (user waits for full response)\nconst response = await fetch('\u002Fapi\u002Fchat', { method: 'POST' });\n```\n\n### UX Patterns\n\n**Show loading states:**\n```tsx\n{isLoading && \u003Cdiv>AI is typing...\u003C\u002Fdiv>}\n```\n\n**Provide stop button:**\n```tsx\n{isLoading && \u003Cbutton onClick={stop}>Stop\u003C\u002Fbutton>}\n```\n\n**Auto-scroll to latest message:**\n```tsx\nuseEffect(() => {\n  messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });\n}, [messages]);\n```\n\n**Disable input while loading:**\n```tsx\n\u003Cinput disabled={isLoading} \u002F>\n```\n\nSee `references\u002Fstreaming-patterns.md` for comprehensive best practices.\n\n---\n\n## When to Use This Skill\n\n### Use ai-sdk-ui When:\n- Building React chat interfaces\n- Implementing AI completions in UI\n- Streaming AI responses to frontend\n- Building Next.js AI applications\n- Handling chat message state\n- Displaying tool calls in UI\n- Managing file attachments with AI\n- Migrating from v4 to v5 (UI hooks)\n- Encountering useChat\u002FuseCompletion errors\n\n### Don't Use When:\n- Need backend AI functionality → Use **ai-sdk-core** instead\n- Building non-React frontends (Svelte, Vue) → Check official docs\n- Need Generative UI \u002F RSC → See https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-rsc\n- Building native apps → Different SDK required\n\n### Related Skills:\n- **ai-sdk-core** - Backend text generation, structured output, tools, agents\n- Compose both for full-stack AI applications\n\n---\n\n## Package Versions\n\n**Required:**\n```json\n{\n  \"dependencies\": {\n    \"ai\": \"^5.0.116\",\n    \"@ai-sdk\u002Fopenai\": \"^2.0.88\",\n    \"react\": \"^18.2.0\",\n    \"zod\": \"^3.23.8\",\n    \"isomorphic-dompurify\": \"^2.16.0\"\n  }\n}\n```\n\n**Next.js:**\n```json\n{\n  \"dependencies\": {\n    \"next\": \"^14.0.0\",\n    \"react\": \"^18.2.0\",\n    \"react-dom\": \"^18.2.0\"\n  }\n}\n```\n\n**Version Notes:**\n- AI SDK v5.0.116+ (stable)\n- React 18+ (React 19 supported)\n- Next.js 14+ recommended (13.4+ works)\n- Zod 3.23.8+ for schema validation\n\n---\n\n## Links to Official Documentation\n\n**Core UI Hooks:**\n- AI SDK UI Overview: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Foverview\n- useChat: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fchatbot\n- useCompletion: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fcompletion\n- useObject: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fobject-generation\n\n**Advanced Topics (Link Only):**\n- Generative UI (RSC): https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-rsc\u002Foverview\n- Stream Protocols: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fstream-protocols\n- Message Metadata: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fmessage-metadata\n\n**Next.js Integration:**\n- Next.js App Router: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fgetting-started\u002Fnextjs-app-router\n- Next.js Pages Router: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fgetting-started\u002Fnextjs-pages-router\n\n**Migration & Troubleshooting:**\n- v4→v5 Migration: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fmigration-guides\u002Fmigration-guide-5-0\n- Troubleshooting: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Ftroubleshooting\n- Common Issues: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Ftroubleshooting\u002Fcommon-issues\n\n**Vercel Deployment:**\n- Vercel Functions: https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\n- Streaming on Vercel: https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\u002Fstreaming\n\n---\n\n## Templates\n\nThis skill includes the following templates in `templates\u002F`:\n\n1. **use-chat-basic.tsx** - Basic chat with manual input (v5 pattern)\n2. **use-chat-tools.tsx** - Chat with tool calling UI rendering\n3. **use-chat-attachments.tsx** - File attachments support\n4. **use-completion-basic.tsx** - Basic text completion\n5. **use-object-streaming.tsx** - Streaming structured data\n6. **nextjs-chat-app-router.tsx** - Next.js App Router complete example\n7. **nextjs-chat-pages-router.tsx** - Next.js Pages Router complete example\n8. **nextjs-api-route.ts** - API route for both App and Pages Router\n9. **message-persistence.tsx** - Save\u002Fload chat history\n10. **custom-message-renderer.tsx** - Custom message components with markdown\n11. **package.json** - Dependencies template\n\n## Reference Documents\n\nSee `references\u002F` for:\n\n- **use-chat-migration.md** - Complete v4→v5 migration guide\n- **streaming-patterns.md** - UI streaming best practices\n- **top-ui-errors.md** - 12 common UI errors with solutions\n- **nextjs-integration.md** - Next.js setup patterns\n- **links-to-official-docs.md** - Organized links to official docs\n\n---\n\n**Production Tested**: WordPress Auditor (https:\u002F\u002Fwordpress-auditor.webfonts.workers.dev)\n**Last Updated**: 2025-10-22\n","# AI SDK UI - Frontend React Hooks\n\nFrontend React hooks for AI-powered user interfaces with Vercel AI SDK v5.\n\n**Version**: AI SDK v5.0.116 (Stable)\n**Framework**: React 18+, Next.js 15+\n**Last Updated**: 2025-12-22\n\n## Table of Contents\n1. [Quick Start](#quick-start-5-minutes)\n2. [When to Load References](#when-to-load-references)\n3. [useChat Hook](#usechat-hook---complete-reference)\n4. [useCompletion Hook](#usecompletion-hook---complete-reference)\n5. [useObject Hook](#useobject-hook---complete-reference)\n6. [Next.js Integration](#nextjs-integration)\n7. [Top UI Errors & Solutions](#top-ui-errors--solutions)\n8. [Streaming Best Practices](#streaming-best-practices)\n9. [When to Use This Skill](#when-to-use-this-skill)\n10. [Package Versions](#package-versions)\n\n---\n\n## Quick Start (5 Minutes)\n\n### Installation\n\n```bash\nbun add ai @ai-sdk\u002Fopenai  # preferred\n# or: bun add ai @ai-sdk\u002Fopenai\n```\n\n### Basic Chat Component (v5)\n\n```tsx\n\u002F\u002F app\u002Fchat\u002Fpage.tsx\n'use client';\nimport { useChat } from 'ai\u002Freact';\nimport { useState, FormEvent } from 'react';\n\nexport default function Chat() {\n  const { messages, sendMessage, isLoading } = useChat({\n    api: '\u002Fapi\u002Fchat',\n  });\n  const [input, setInput] = useState('');\n\n  const handleSubmit = (e: FormEvent) => {\n    e.preventDefault();\n    sendMessage({ content: input });\n    setInput('');\n  };\n\n  return (\n    \u003Cdiv>\n      \u003Cdiv>\n        {messages.map(m => (\n          \u003Cdiv key={m.id}>\n            \u003Cstrong>{m.role}:\u003C\u002Fstrong> {m.content}\n          \u003C\u002Fdiv>\n        ))}\n      \u003C\u002Fdiv>\n      \u003Cform onSubmit={handleSubmit}>\n        \u003Cinput\n          value={input}\n          onChange={(e) => setInput(e.target.value)}\n          placeholder=\"Type a message...\"\n          disabled={isLoading}\n        \u002F>\n      \u003C\u002Fform>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### API Route (Next.js App Router)\n\n```typescript\n\u002F\u002F app\u002Fapi\u002Fchat\u002Froute.ts\nimport { streamText } from 'ai';\nimport { openai } from '@ai-sdk\u002Fopenai';\n\nexport async function POST(req: Request) {\n  const { messages } = await req.json();\n\n  const result = streamText({\n    model: openai('gpt-4-turbo'),\n    messages,\n  });\n\n  return result.toDataStreamResponse();\n}\n```\n\n**Result**: A functional chat interface with streaming AI responses in ~10 lines of frontend code.\n\n---\n\n## When to Load References\n\nFor detailed implementation guides, API references, and advanced patterns, load the following reference files:\n\n| Reference File | Load When... |\n|----------------|--------------|\n| `references\u002Fuse-chat-migration.md` | Migrating from v4 to v5, understanding breaking changes |\n| `references\u002Fstreaming-patterns.md` | UI streaming best practices, performance optimization |\n| `references\u002Ftop-ui-errors.md` | Debugging common UI errors, error prevention |\n| `references\u002Fnextjs-integration.md` | Next.js setup patterns, App vs Pages Router differences |\n| `references\u002Flinks-to-official-docs.md` | Finding official Vercel AI SDK documentation |\n| `references\u002Ftool-calling-ui.md` | Implementing tool\u002Ffunction calling in chat UI |\n| `references\u002Ffile-attachments-guide.md` | Adding file upload\u002Fattachment support to chat |\n| `references\u002Fmessage-persistence.md` | Persisting chat history with localStorage |\n| `references\u002Fuse-completion-full-reference.md` | Complete useCompletion API and examples |\n| `references\u002Fuse-object-full-reference.md` | Complete useObject API with Zod schemas |\n| `references\u002Fnextjs-app-router-full.md` | Full Next.js App Router implementation |\n| `references\u002Fnextjs-pages-router-full.md` | Full Next.js Pages Router implementation |\n\n---\n\n## useChat Hook - Complete Reference\n\n### Basic Usage (v5 Pattern)\n\n```tsx\n'use client';\nimport { useChat } from 'ai\u002Freact';\nimport { useState, FormEvent } from 'react';\n\nexport default function ChatComponent() {\n  const { messages, sendMessage, isLoading, error } = useChat({\n    api: '\u002Fapi\u002Fchat',\n  });\n  const [input, setInput] = useState('');\n\n  const handleSubmit = (e: FormEvent) => {\n    e.preventDefault();\n    if (!input.trim()) return;\n\n    sendMessage({ content: input });\n    setInput('');\n  };\n\n  return (\n    \u003Cdiv className=\"flex flex-col h-screen\">\n      {\u002F* Messages *\u002F}\n      \u003Cdiv className=\"flex-1 overflow-y-auto p-4\">\n        {messages.map(message => (\n          \u003Cdiv\n            key={message.id}\n            className={message.role === 'user' ? 'text-right' : 'text-left'}\n          >\n            \u003Cdiv className=\"inline-block p-2 rounded bg-gray-100\">\n              {message.content}\n            \u003C\u002Fdiv>\n          \u003C\u002Fdiv>\n        ))}\n        {isLoading && \u003Cdiv className=\"text-gray-500\">AI is thinking...\u003C\u002Fdiv>}\n      \u003C\u002Fdiv>\n\n      {\u002F* Input *\u002F}\n      \u003Cform onSubmit={handleSubmit} className=\"p-4 border-t\">\n        \u003Cinput\n          value={input}\n          onChange={(e) => setInput(e.target.value)}\n          placeholder=\"Type a message...\"\n          disabled={isLoading}\n          className=\"w-full p-2 border rounded\"\n        \u002F>\n      \u003C\u002Fform>\n\n      {\u002F* Error *\u002F}\n      {error && \u003Cdiv className=\"text-red-500 p-4\">{error.message}\u003C\u002Fdiv>}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Full API Reference\n\n```typescript\nconst {\n  \u002F\u002F Messages\n  messages,           \u002F\u002F Message[] - Chat history\n  setMessages,        \u002F\u002F (messages: Message[]) => void - Update messages\n\n  \u002F\u002F Actions\n  sendMessage,        \u002F\u002F (message: { content: string }) => void - Send message (v5)\n  reload,             \u002F\u002F () => void - Reload last response\n  stop,               \u002F\u002F () => void - Stop current generation\n\n  \u002F\u002F State\n  isLoading,          \u002F\u002F boolean - Is AI responding?\n  error,              \u002F\u002F Error | undefined - Error if any\n\n  \u002F\u002F Data\n  data,               \u002F\u002F any[] - Custom data from stream\n  metadata,           \u002F\u002F object - Response metadata\n} = useChat({\n  \u002F\u002F Required\n  api: '\u002Fapi\u002Fchat',   \u002F\u002F API endpoint\n\n  \u002F\u002F Optional\n  id: 'chat-1',       \u002F\u002F Chat ID for persistence\n  initialMessages: [], \u002F\u002F Initial messages (controlled mode)\n\n  \u002F\u002F Callbacks\n  onFinish: (message, options) => {},  \u002F\u002F Called when response completes\n  onError: (error) => {},              \u002F\u002F Called on error\n\n  \u002F\u002F Configuration\n  headers: {},        \u002F\u002F Custom headers\n  body: {},           \u002F\u002F Additional body data\n  credentials: 'same-origin', \u002F\u002F Fetch credentials\n\n  \u002F\u002F Streaming\n  streamProtocol: 'data', \u002F\u002F 'data' | 'text' (default: 'data')\n});\n```\n\n### v4 → v5 Breaking Changes\n\n**CRITICAL: useChat no longer manages input state in v5!**\n\n**v4 (OLD - DON'T USE):**\n```tsx\nconst { messages, input, handleInputChange, handleSubmit, append } = useChat();\n\n\u003Cform onSubmit={handleSubmit}>\n  \u003Cinput value={input} onChange={handleInputChange} \u002F>\n\u003C\u002Fform>\n```\n\n**v5 (NEW - CORRECT):**\n```tsx\nconst { messages, sendMessage } = useChat();\nconst [input, setInput] = useState('');\n\n\u003Cform onSubmit={(e) => {\n  e.preventDefault();\n  sendMessage({ content: input });\n  setInput('');\n}}>\n  \u003Cinput value={input} onChange={(e) => setInput(e.target.value)} \u002F>\n\u003C\u002Fform>\n```\n\n**Summary of v5 Changes:**\n1. **Input management removed**: `input`, `handleInputChange`, `handleSubmit` no longer exist\n2. **`append()` → `sendMessage()`**: New method for sending messages\n3. **`onResponse` removed**: Use `onFinish` instead\n4. **`initialMessages` → controlled mode**: Use `messages` prop for full control\n5. **`maxSteps` removed**: Handle on server-side only\n\nSee `references\u002Fuse-chat-migration.md` for complete migration guide.\n\n**Advanced Features:** useChat supports tool calling (display `message.toolInvocations`), file attachments (`experimental_attachments`), and message persistence (localStorage with `id` + `initialMessages`). See [official docs](https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Fchatbot) for implementation examples.\n\n---\n\n## useCompletion & useObject Hooks\n\n**useCompletion**: For single-prompt completions (not multi-turn chat). Returns `{ completion, complete, isLoading }`. Call `complete(prompt)` to generate. API route uses `streamText()`.\n\n**useObject**: Stream structured JSON with live updates using Zod schemas. Returns `{ object, submit, isLoading }` where `object` is `Partial\u003CT>` that updates progressively. API route uses `streamObject()`.\n\nSee [official docs](https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\u002Fai-sdk-ui\u002Foverview) for complete API references and examples.\n\n---\n\n## Next.js Integration\n\nComplete working examples for both App Router and Pages Router with full chat UI components, API routes, and proper streaming setup.\n\n**? Load `references\u002Fnextjs-integration.md`** for complete implementation code including:\n- **App Router**: Full chat page with auto-scroll, loading states, error handling, and API route\n- **Pages Router**: Complete chat implementation with proper streaming setup\n- **Key Differences**: `toDataStreamResponse()` vs `pipeDataStreamToResponse()`\n\n---\n\n## Top UI Errors & Solutions\n\nSee `references\u002Ftop-ui-errors.md` for complete documentation. Quick reference:\n\n### 1. useChat Failed to Parse Stream\n\n**Error**: `SyntaxError: Unexpected token in JSON at position X`\n\n**Cause**: API route not returning proper stream format.\n\n**Solution**:\n```typescript\n\u002F\u002F ✅ CORRECT\nreturn result.toDataStreamResponse();\n\n\u002F\u002F ❌ WRONG\nreturn new Response(result.textStream);\n```\n\n### 2. useChat No Response\n\n**Cause**: API route not streaming correctly.\n\n**Solution**:\n```typescript\n\u002F\u002F App Router - use toDataStreamResponse()\nexport async function POST(req: Request) {\n  const result = streamText({ \u002F* ... *\u002F });\n  return result.toDataStreamResponse(); \u002F\u002F ✅\n}\n\n\u002F\u002F Pages Router - use pipeDataStreamToResponse()\nexport default async function handler(req, res) {\n  const result = streamText({ \u002F* ... *\u002F });\n  return result.pipeDataStreamToResponse(res); \u002F\u002F ✅\n}\n```\n\n### 3. Streaming Not Working When Deployed\n\n**Cause**: Deployment platform buffering responses.\n\n**Solution**: Vercel auto-detects streaming. Other platforms may need configuration.\n\n### 4. Stale Body Values with useChat\n\n**Cause**: `body` option captured at first render only.\n\n**Solution**:\n```typescript\n\u002F\u002F ❌ WRONG - body captured once\nconst { userId } = useUser();\nconst { messages } = useChat({\n  body: { userId },  \u002F\u002F Stale!\n});\n\n\u002F\u002F ✅ CORRECT - use controlled mode\nconst { userId } = useUser();\nconst { messages, sendMessage } = useChat();\n\nsendMessage({\n  content: input,\n  data: { userId },  \u002F\u002F Fresh on each send\n});\n```\n\n### 5. React Maximum Update Depth\n\n**Cause**: Infinite loop in useEffect.\n\n**Solution**:\n```typescript\n\u002F\u002F ❌ WRONG\nuseEffect(() => {\n  saveMessages(messages);\n}, [messages, saveMessages]); \u002F\u002F saveMessages triggers re-render!\n\n\u002F\u002F ✅ CORRECT\nuseEffect(() => {\n  saveMessages(messages);\n}, [messages]); \u002F\u002F Only depend on messages\n```\n\nSee `references\u002Ftop-ui-errors.md` for 7 more common errors.\n\n---\n\n## Streaming Best Practices\n\n### Performance\n\n**Always use streaming for better UX:**\n```tsx\n\u002F\u002F ✅ GOOD - Streaming (shows tokens as they arrive)\nconst { messages } = useChat({ api: '\u002Fapi\u002Fchat' });\n\n\u002F\u002F ❌ BAD - Non-streaming (user waits for full response)\nconst response = await fetch('\u002Fapi\u002Fchat', { method: 'POST' });\n```\n\n### UX Patterns\n\n**Show loading states:**\n```tsx\n{isLoading && \u003Cdiv>AI is typing...\u003C\u002Fdiv>}\n```\n\n**Provide stop button:**\n```tsx\n{isLoading && \u003Cbutton onClick={stop}>Stop\u003C\u002Fbutton>}\n```\n\n**Auto-scroll to latest message:**\n```tsx\nuseEffect(() => {\n  messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });\n}, [messages]);\n```\n\n**Disable input while loading:**\n```tsx\n\u003Cinput disabled={isLoading} \u002F>\n```\n\nSee `references\u002Fstreaming-patterns.md` for comprehensive best practices.\n\n---\n\n## When to Use This Skill\n\n### Use ai-sdk-ui When:\n- Building React chat interfaces\n- Implementing AI completions in UI\n- Streaming AI responses to frontend\n- Building Next.js AI applications\n- Handling chat message state\n- Displaying tool calls in UI\n- Managing file attachments with AI\n- Migrating from v4 to v5 (UI hooks)\n- Encountering useChat\u002FuseCompletion errors\n\n### Don't Use When:\n- Need backend AI functionality → Use **ai-sdk-core** instead\n- Building non-React frontends (Svelte, Vue) → Check official docs\n- Need Generative UI \u002F RSC → See https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-rsc\n- Building native apps → Different SDK required\n\n### Related Skills:\n- **ai-sdk-core** - Backend text generation, structured output, tools, agents\n- Compose both for full-stack AI applications\n\n---\n\n## Package Versions\n\n**Required:**\n```json\n{\n  \"dependencies\": {\n    \"ai\": \"^5.0.116\",\n    \"@ai-sdk\u002Fopenai\": \"^2.0.88\",\n    \"react\": \"^18.2.0\",\n    \"zod\": \"^3.23.8\",\n    \"isomorphic-dompurify\": \"^2.16.0\"\n  }\n}\n```\n\n**Next.js:**\n```json\n{\n  \"dependencies\": {\n    \"next\": \"^14.0.0\",\n    \"react\": \"^18.2.0\",\n    \"react-dom\": \"^18.2.0\"\n  }\n}\n```\n\n**Version Notes:**\n- AI SDK v5.0.116+ (stable)\n- React 18+ (React 19 supported)\n- Next.js 14+ recommended (13.4+ works)\n- Zod 3.23.8+ for schema validation\n\n---\n\n## Links to Official Documentation\n\n**Core UI Hooks:**\n- AI SDK UI Overview: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Foverview\n- useChat: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fchatbot\n- useCompletion: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fcompletion\n- useObject: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fobject-generation\n\n**Advanced Topics (Link Only):**\n- Generative UI (RSC): https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-rsc\u002Foverview\n- Stream Protocols: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fstream-protocols\n- Message Metadata: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fai-sdk-ui\u002Fmessage-metadata\n\n**Next.js Integration:**\n- Next.js App Router: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fgetting-started\u002Fnextjs-app-router\n- Next.js Pages Router: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fgetting-started\u002Fnextjs-pages-router\n\n**Migration & Troubleshooting:**\n- v4→v5 Migration: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Fmigration-guides\u002Fmigration-guide-5-0\n- Troubleshooting: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Ftroubleshooting\n- Common Issues: https:\u002F\u002Fai-sdk.dev\u002Fdocs\u002Ftroubleshooting\u002Fcommon-issues\n\n**Vercel Deployment:**\n- Vercel Functions: https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\n- Streaming on Vercel: https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\u002Fstreaming\n\n---\n\n## Templates\n\nThis skill includes the following templates in `templates\u002F`:\n\n1. **use-chat-basic.tsx** - Basic chat with manual input (v5 pattern)\n2. **use-chat-tools.tsx** - Chat with tool calling UI rendering\n3. **use-chat-attachments.tsx** - File attachments support\n4. **use-completion-basic.tsx** - Basic text completion\n5. **use-object-streaming.tsx** - Streaming structured data\n6. **nextjs-chat-app-router.tsx** - Next.js App Router complete example\n7. **nextjs-chat-pages-router.tsx** - Next.js Pages Router complete example\n8. **nextjs-api-route.ts** - API route for both App and Pages Router\n9. **message-persistence.tsx** - Save\u002Fload chat history\n10. **custom-message-renderer.tsx** - Custom message components with markdown\n11. **package.json** - Dependencies template\n\n## Reference Documents\n\nSee `references\u002F` for:\n\n- **use-chat-migration.md** - Complete v4→v5 migration guide\n- **streaming-patterns.md** - UI streaming best practices\n- **top-ui-errors.md** - 12 common UI errors with solutions\n- **nextjs-integration.md** - Next.js setup patterns\n- **links-to-official-docs.md** - Organized links to official docs\n\n---\n\n**Production Tested**: WordPress Auditor (https:\u002F\u002Fwordpress-auditor.webfonts.workers.dev)\n**Last Updated**: 2025-10-22\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ai-sdk-ui",{"tool":42,"command":43},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ai-sdk-ui",{"tool":45,"command":46},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ai-sdk-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002FSKILL.md",true,[50,56,60,64,68,72,76,80,84,88,92,96,100,106,112,116,120,124,128,132,136,140,144,148,152],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Ffile-attachments-guide.md","REFERENCE","参考文档",2579,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Ffile-attachments-guide.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Flinks-to-official-docs.md",3471,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Flinks-to-official-docs.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fmessage-persistence.md",1873,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fmessage-persistence.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fnextjs-app-router-full.md",4080,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fnextjs-app-router-full.md",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fnextjs-integration.md",4922,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fnextjs-integration.md",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fnextjs-pages-router-full.md",3109,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fnextjs-pages-router-full.md",{"path":77,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fstreaming-patterns.md",10638,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fstreaming-patterns.md",{"path":81,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Ftool-calling-ui.md",1669,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Ftool-calling-ui.md",{"path":85,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Ftop-ui-errors.md",6398,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Ftop-ui-errors.md",{"path":89,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fuse-chat-migration.md",8557,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fuse-chat-migration.md",{"path":93,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fuse-completion-full-reference.md",2867,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fuse-completion-full-reference.md",{"path":97,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fuse-object-full-reference.md",3201,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Freferences\u002Fuse-object-full-reference.md",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fcheck-versions.sh","SCRIPT","脚本",1071,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Fscripts\u002Fcheck-versions.sh",{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"templates\u002Fcustom-message-renderer.tsx","OTHER","其他",9564,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fcustom-message-renderer.tsx",{"path":113,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":114,"sourceHtmlUrl":115},"templates\u002Feslint.config.js",1555,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Feslint.config.js",{"path":117,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":118,"sourceHtmlUrl":119},"templates\u002Fmessage-persistence.tsx",8464,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fmessage-persistence.tsx",{"path":121,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":122,"sourceHtmlUrl":123},"templates\u002Fnextjs-api-route.ts",6319,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fnextjs-api-route.ts",{"path":125,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":126,"sourceHtmlUrl":127},"templates\u002Fnextjs-chat-app-router.tsx",8024,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fnextjs-chat-app-router.tsx",{"path":129,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":130,"sourceHtmlUrl":131},"templates\u002Fnextjs-chat-pages-router.tsx",5303,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fnextjs-chat-pages-router.tsx",{"path":133,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":134,"sourceHtmlUrl":135},"templates\u002Fpackage.json",1356,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fpackage.json",{"path":137,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":138,"sourceHtmlUrl":139},"templates\u002Fuse-chat-attachments.tsx",8895,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fuse-chat-attachments.tsx",{"path":141,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":142,"sourceHtmlUrl":143},"templates\u002Fuse-chat-basic.tsx",3921,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fuse-chat-basic.tsx",{"path":145,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":146,"sourceHtmlUrl":147},"templates\u002Fuse-chat-tools.tsx",5974,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fuse-chat-tools.tsx",{"path":149,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":150,"sourceHtmlUrl":151},"templates\u002Fuse-completion-basic.tsx",4986,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fuse-completion-basic.tsx",{"path":153,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002Fuse-object-streaming.tsx",8410,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fai-sdk-ui\u002Ftemplates\u002Fuse-object-streaming.tsx",[157,166,175,183,189,195],{"skillNo":158,"name":159,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":22},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[163,164,165],"model","model hierarchy","model hierarchy skill",{"skillNo":167,"name":168,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":22},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[172,173,174],"MCP","zoom","zoom mcp",{"skillNo":176,"name":177,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":22},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[18,181,182,173],"zoom apps sdk","apps",{"skillNo":184,"name":185,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":22},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[185],{"skillNo":190,"name":191,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":22},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[191],{"skillNo":196,"name":197,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":22},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[197]]