Agent skill · software engineering · laguagu
ai-sdk-6
Vercel AI SDK v6 development. Use when building AI agents, chatbots, tool integrations, streaming apps, or structured output with the ai package. Covers ToolLoopAgent, useChat, generateText, streamText, tool approval, smoothStream, provider tools, MCP integration, and Output patterns.
Why this skill is useful
Provides specific commands and patterns for using Vercel AI SDK v6 that the AI wouldn't reliably generate on its own.
What it needs
Requires bun installed locally. About 2k tokens when loaded. Last updated 2026-08-03. 58 stars on the source repository.
What this skill does
Vercel AI SDK v6 Development Guide Use this skill when developing AI-powered features using Vercel AI SDK v6 (ai package). Docs location: bundled in nodemodules/ai/docs/. In Bun/pnpm/Yarn workspace monorepos deps aren't hoisted — use apps//nodemodules/ai/docs/ or packages//nodemodules/ai/docs/ instead. Quick Reference Installation Core Functions Function Purpose -------------- ----------------------------------------------------------------- generateText Non-streaming text generation (+ structured output with Output) streamText Streaming text generation (+ structured output with Output) v6 Note: generateObject/streamObject are deprecated. Use generateText/streamText with output: Output.object({ schema }) instead. Structured Output (v6) Output types: Output.object(), Output.array(), Output.choice(), Output.json(), Output.text() (default) Agent Class (v6 Key Feature) API Route with Agent Smooth Streaming useChat Hook (Client) v6 Note: useChat no longer manages input state internally. Use useState for controlled inputs. Reference Documentation For detailed information, see: agents.md - ToolLoopAgent, loop control, workflows core-functions.md - generateText, streamText, Output patterns tools.md - Tool definition with Zod schemas workflows.md - Sequential, parallel, routing, and orchestrator-worker patterns ui-hooks.md - useChat, UIMessage, streaming middleware.md - Custom middleware patterns mcp.md - MCP server integration examples.md - Canonical provider × feature examples from vercel/ai repo Official Documentation For the latest information, see AI SDK docs.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills laguagu/ai-sdk-6