From chat-sdk
Expert on Vercel's Chat SDK for building production-ready AI chatbots. Use when user wants to build chatbot apps, add generative UI, create artifacts, or deploy AI chat interfaces. Triggers on mentions of chat-sdk, ai-chatbot, chatgpt clone, vercel chat, generative ui.
How this skill is triggered — by the user, by Claude, or both
Slash command
/chat-sdk:chat-sdkThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Expert at building AI chatbot applications with Vercel's Chat SDK.
Expert at building AI chatbot applications with Vercel's Chat SDK.
Chat SDK is a free, open-source template for building production-ready chatbots:
# Clone and setup
npx create-next-app --example https://github.com/vercel/ai-chatbot my-chatbot
cd my-chatbot
# Install and configure
pnpm install
cp .env.example .env.local
# Add your API keys to .env.local
# Database setup
pnpm db:migrate
# Run development server
pnpm dev
Uses unified API for text generation, structured objects, and tool calls:
import { generateText } from 'ai';
import { xai } from '@ai-sdk/xai';
const { text } = await generateText({
model: xai('grok-2-vision-1212'),
prompt: 'Hello!',
});
Default: AI SDK Gateway with xAI (grok-2-vision-1212). Switch providers easily:
lib/ai/models.tsDynamic interfaces that adapt to conversation context beyond text.
For detailed information, see the reference documentation:
// lib/ai/models.ts
import { anthropic } from '@ai-sdk/anthropic';
export const models = {
'claude-3': anthropic('claude-3-5-sonnet-20241022'),
};
See docs/artifacts.md for creating interactive workspaces.
vercel deploy
When user runs sync: fetch latest from upstream sources, update docs/ files.
When user runs diff: compare current vs upstream, report changes.
npx claudepluginhub zot24/skills --plugin chat-sdkProvides expert guidance on Vercel AI SDK for building AI features like chat interfaces, text generation, structured output, tool calling, agents, streaming, embeddings, reranking, image generation, and LLM providers.
Provides Vercel AI SDK v5 React hooks (useChat, useCompletion, useObject) for streaming AI chat UIs in Next.js apps. Fixes parse stream errors, no responses, and streaming issues.
Helps build AI-powered apps with the Vercel AI SDK: core generation APIs, UI hooks for chat/streaming, tool calling, and structured data generation in Next.js and React.