CtrlK
BlogDocsLog inGet started
Tessl Logo

ai-sdk

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

2.81x
Quality

Does it follow best practices?

Impact

93%

2.81x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

79%

68%

Meeting Notes Extractor

Structured output extraction with AI SDK

Criteria
Without context
With context

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%

100%

84%

Customer Support Assistant Agent

Multi-tool AI agent with type-safe frontend integration

Criteria
Without context
With context

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%

100%

26%

Chat Interface with File Deletion Confirmation

Streaming chat UI with human-in-the-loop tool confirmation

Criteria
Without context
With context

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%

Repository
vercel/ai
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.