Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
93
—
Does it follow best practices?
Impact
93%
2.81xAverage score across 3 eval scenarios
Passed
No known issues
Structured output extraction with AI SDK
Uses generateText not generateObject
0%
100%
Uses Output.object
0%
100%
No manual JSON.parse of LLM output
0%
100%
Uses maxOutputTokens
0%
100%
Uses AI Gateway provider
0%
0%
Model ID fetched at runtime
20%
50%
Full model list used (no head truncation)
40%
100%
Highest version model selected
40%
80%
Minimal option specification
0%
100%
output.json produced and valid
100%
100%
Multi-tool AI agent with type-safe frontend integration
ToolLoopAgent usage
0%
100%
Agent file location
100%
100%
Tool files location
100%
100%
inputSchema not parameters
0%
100%
stopWhen isStepCount
0%
100%
isStepCount import
0%
100%
InferAgentUIMessage export
0%
100%
useChat typed with agent message type
0%
100%
UIToolInvocation typed components
0%
100%
No maxSteps
0%
100%
No parameters field
0%
100%
Streaming chat UI with human-in-the-loop tool confirmation
createUIMessageStreamResponse
0%
100%
toUIMessageStream used
0%
100%
DefaultChatTransport in useChat
100%
100%
Manual input useState
100%
100%
sendMessage used
100%
100%
Typed tool part (tool-deleteFile)
50%
100%
State guard before part.input
100%
100%
addToolOutput used
100%
100%
uiMessages in agent/stream response
100%
100%
No part.args / part.result
100%
100%
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.