Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

vercel-ai-elementsVercel AI elements 搜索

Agent Skill

vercel-ai-elements 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

399

周安装

16

GitHub Stars

23

下载量

129
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vercel-ai-elements(Vercel AI elements 搜索)
来源仓库:https://github.com/sstobo/convex-skills
仓库路径:skills/vercel-ai-elements
安装命令:
npx skills add https://github.com/sstobo/convex-skills --skill vercel-ai-elements
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sstobo/convex-skills --skill vercel-ai-elements

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装方式:github,命令为 npx skills add https://github.com/sstobo/convex-skills --skill vercel-ai-elements。
  • 建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

SKILL.md

Vercel AI Elements Skill

Overview

This skill provides complete documentation for Vercel AI Elements - a comprehensive UI component library for building conversational AI interfaces with the Vercel AI SDK. It covers 23 production-ready React components organized into 6 functional categories, from basic message display to advanced features like web previews and tool execution.

Use this skill when users need:

  • Documentation on specific AI Elements components
  • Installation and usage instructions
  • Props and API references
  • Integration examples with AI SDK
  • Help choosing the right component for their use case
  • Guidance on combining components for common patterns

Core Capabilities

The Vercel AI Elements library provides components across 6 functional categories:

1. Message Components

Display chat messages with variants (contained/flat), automatic alignment, avatars, and markdown support. Perfect for rendering user and assistant messages in conversational interfaces.

Components: Message, MessageContent, MessageAvatar

Reference: references/vercel-ai-elements-message-components.md

2. Conversation Management

Wrap and manage message lists with automatic scrolling, scroll-to-bottom buttons, and empty states. Handles the container and layout for multi-message conversations.

Components: Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton

Reference: references/vercel-ai-elements-conversation-management.md

3. Input & Interaction

Enable user input with file attachments, model selection, suggestions, and task lists. Covers all user interaction patterns for sending messages and managing workflows.

Components: Actions, Prompt Input (with subcomponents), Suggestion, Task

Reference: references/vercel-ai-elements-input-interaction.md

4. Content Display

Render generated content including code, images, markdown responses, and structured artifacts. Handles all types of content output from AI models.

Components: Artifact, CodeBlock, Image, Response

Reference: references/vercel-ai-elements-content-display.md

5. AI Processing UI

Visualize AI processing steps including branching conversations, reasoning chains, loading states, execution plans, and shimmer effects. Shows the "thinking" process.

Components: Branch, Chain of Thought, Loader, Plan, Reasoning, Shimmer

Reference: references/vercel-ai-elements-ai-processing.md

6. Advanced Features

Specialized components for context tracking, citations, tool execution, source attribution, web previews, and cross-platform sharing.

Components: Context, Inline Citation, Open In Chat, Queue, Sources, Tool, Web Preview

Reference: references/vercel-ai-elements-advanced-features.md

How to Use This Skill

Finding Component Documentation

When a user asks about a specific component:

  1. Identify the component name - e.g., "How do I use the Message component?"
  2. Locate the category - determine which of the 6 categories the component belongs to
  3. Reference the appropriate file - load the category reference file from references/
  4. Provide component details - installation, basic usage, features, and props

Common Usage Patterns

Pattern 1: Simple Chat Interface

Combine Message + Conversation + PromptInput + Response to build a basic chatbot UI.

Pattern 2: Enhanced Chat with Actions

Add Actions component to Message components for retry, copy, and regenerate functionality.

Pattern 3: AI Process Visualization

Use Reasoning, ChainOfThought, or Plan to show AI's thinking process during streaming.

Pattern 4: Advanced Document Generation

Combine Artifact, CodeBlock, Image, and Response for generating complex multi-media content.

Pattern 5: Multi-Platform Chat Share

Add OpenInChat to allow users to copy conversations to ChatGPT, Claude, etc.

Integration with AI SDK

All components are designed to work with @ai-sdk/react hooks like:

  • useChat() - for message management
  • useCompletion() - for streaming text
  • experimental_useObject() - for structured outputs

Reference files include complete AI SDK integration examples for each component category.

Component Quick Reference

Installation Pattern

All components use the same installation pattern:

npx ai-elements@latest add [component-name]

Where component names are lowercase with hyphens, e.g., prompt-input, code-block, chain-of-thought.

Props Documentation

Each component reference file includes comprehensive props tables with:

  • Prop name and type
  • Description of functionality
  • Whether prop is optional
  • Default values where applicable

Streaming Support

Many components have built-in streaming support:

  • Response: parseIncompleteMarkdown handles streaming markdown
  • Plan: isStreaming prop enables shimmer animations
  • Reasoning: isStreaming auto-opens/closes the panel
  • Shimmer: animation shows loading state

Key Features Across Components

TypeScript Support

All components have full type definitions for TypeScript projects.

Accessibility

Components include proper ARIA labels, keyboard navigation, and semantic HTML.

Responsive Design

All components adapt to different screen sizes with mobile-friendly interactions.

Theme Integration

Components use CSS custom properties and currentColor for automatic theme support.

Compound Components

Most components use compound component patterns (parent + child components) for flexible composition.

Search Strategies

Use the reference files to search for:

  • By component name: Search files for exact component name (e.g., "Message")
  • By feature: Search for capability (e.g., "streaming", "copy button", "citations")
  • By use case: Search for patterns (e.g., "loading", "error", "completed")
  • By props: Search for specific prop names when users ask about customization

Important Notes

CSS Configuration

The Response component requires this CSS addition:

@source "../node_modules/streamdown/dist/index.js";

AI SDK Setup

Most components assume use of the AI SDK with proper backend routes. Reference files include backend example code.

Component Dependencies

Many components depend on shadcn/ui primitives and icons from lucide-react. Users need these dependencies installed.

Branching Implementation

The Branch component manages UI for multiple message branches but doesn't implement branching in the AI SDK - that requires custom backend logic.

Resource Organization

Reference Files (organized by category)

  • vercel-ai-elements-message-components.md - Message display
  • vercel-ai-elements-conversation-management.md - Conversation containers
  • vercel-ai-elements-input-interaction.md - User input and actions
  • vercel-ai-elements-content-display.md - Content rendering
  • vercel-ai-elements-ai-processing.md - Processing UI and visualization
  • vercel-ai-elements-advanced-features.md - Specialized components

Each reference file contains:

  • Component descriptions and installation instructions
  • Basic usage examples
  • Complete props references
  • Key features and capabilities
  • Integration patterns with AI SDK

All reference files are organized by category for quick lookup when users ask about specific components or features.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.08%
按下载量换算47

Claude

30.57%
按下载量换算39

Cursor

20.38%
按下载量换算26

Gemini CLI

10.36%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills