ai-elements

Create AI chat UI components in packages/elements/src with shadcn/ui styling.

7|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/1lastphoenix/ton-ai-audit --skill ai-elements-1lastphoenix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-elements
Source: https://github.com/1lastphoenix/ton-ai-audit/tree/main/.agents/skills/ai-elements
Command: npx skills add https://github.com/1lastphoenix/ton-ai-audit --skill ai-elements-1lastphoenix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nanoid, lucide-react, zod, @ai-sdk/openai, ai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This AI assistant helps teams create and integrate new AI chat interface components into the ai-elements library while maintaining design consistency and compatibility with the Vercel AI SDK conventions.

Core Features & Use Cases

  • Composable patterns that align with existing ai-elements components
  • shadcn/ui integration ensures a unified look and behavior
  • In-library contribution guides for adding components to packages/elements/src or when users request new components

Quick Start

Create a new ai-elements component under packages/elements/src following the library’s patterns and verify integration by running the app.

Frequently Asked Questions about ai-elements

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new AI chat UI components to a shadcn/ui library?

To add new AI chat UI components to a shadcn/ui library, create them under packages/elements/src following established composable patterns and Vercel AI SDK conventions. Ensure shadcn/ui styling integration and document usage with references and scripts.

What are composable patterns for AI chat interfaces using the Vercel AI SDK?

Composable patterns for AI chat interfaces involve building modular UI components that align with Vercel AI SDK conventions and integrate shadcn/ui styling. This approach ensures design consistency when adding new elements to the library under packages/elements/src.

Does the ai-elements skill work with the Vercel AI SDK and zod?

Yes, the ai-elements skill works with the Vercel AI SDK and zod, along with dependencies like nanoid, lucide-react, and @ai-sdk/openai. It mandates YAML frontmatter in SKILL.md and optional resources directories for extended documentation.

How do I document new frontend components in an AI chat library?

To document new frontend components in an AI chat library, include YAML frontmatter in SKILL.md and use optional resources directories for extended documentation. You can also add references and scripts as needed to verify integration by running the app.

What is the best way to maintain design consistency across AI chat components?

The best way to maintain design consistency across AI chat components is to follow established composable patterns and enforce shadcn/ui styling integration. Adding new components under packages/elements/src ensures they align with existing library conventions.