简介
基于 Vercel AI SDK v6 的 React 前端开发技能,提供 useChat/useCompletion 钩子实战模板与 18 种 UI 错误解决方案,支持工具审批工作流与流式响应,助开发者构建生产级 AI 聊天应用。
原始描述
Build React chat interfaces with Vercel AI SDK v6. Covers useChat/useCompletion/useObject hooks, message parts structure, tool approval workflows, and 18 UI error solutions. Prevents documented issues with React Strict Mode, concurrent requests, stale closures, and tool approval edge cases. Use when: implementing AI chat UIs, migrating v5→v6, troubleshooting "useChat failed to parse stream", "stale body values", "React maximum update depth", "Cannot read properties of undefined (reading 'state')", or tool approval workflow errors.
安装
这个 Skill 由 Veeramanikandanr48 发布,原始页面在 Cocoloop。它的文件在原始页面提供,我们只收录说明与链接。
① 解压下载的压缩包。里面是这个 Skill 的文件与说明。
② 按它附带的说明放进你的 Agent。Claude Code、Codex、TypingMind 等客户端的安装位置各不相同,以包内说明为准。
③ 调用前先看清它申请的权限。技能通常会读写文件或调用外部命令,请自行确认数据范围。
文件来自原始发布页的公开下载地址,微算力只做中转与加速;版权与许可以原文为准。