ai-elements

Create AI UI components following shadcn/ui and Vercel AI SDK conventions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nanoid, lucide-react, react, zod, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach to creating new AI chat interface components for the ai-elements library, ensuring consistency, reusability, and alignment with shadcn/ui and Vercel AI SDK conventions.

Core Features & Use Cases

  • Composable patterns for building new components within packages/elements/src and for adding new AI elements to ai-elements.
  • Shadcn/ui integration guidelines to ensure visual consistency and accessible UI.
  • Vercel AI SDK conventions alignment to guarantee compatibility with AI tooling and workflows.
  • Use Case: when a developer asks to introduce a new component to the ai-elements registry, this skill provides a repeatable blueprint and discovery metadata.

Quick Start

Create a new ai-elements component following established patterns, shadcn/ui integration, and Vercel AI SDK conventions.

Frequently Asked Questions about ai-elements

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

FAQPage Schema
How do I create AI chat UI components that follow shadcn/ui conventions?

To create AI chat UI components following shadcn/ui conventions, use a structured blueprint that enforces consistent styling, SDK compatibility, and component reusability within the ai-elements library. This ensures visual consistency and accessible UI for chat interfaces.

What is the best way to add new elements to a Vercel AI SDK component library?

The best way to add new elements to a Vercel AI SDK component library is using a standardized skill structure with discovery metadata, ensuring alignment with Vercel AI SDK conventions and homogeneous component architecture for guaranteed AI tooling compatibility.

Can I use React and lucide-react to build standardized AI chat interfaces?

Yes, you can use React and lucide-react to build standardized AI chat interfaces. The skill provides composable patterns and guidelines that integrate these dependencies to ensure visual consistency and accessible UI within your component library.

Do I need zod and nanoid to extend the ai-elements library for client projects?

You need zod and nanoid as dependencies to extend the ai-elements library for client projects, as they support the underlying component validation and unique ID generation required for maintaining SDK compatibility and consistent component behavior.

How do I structure frontend documentation for reusable AI UI patterns?

Structure frontend documentation for reusable AI UI patterns by creating a SKILL.md frontmatter containing name and description, alongside optional resources directories like scripts, references, and assets to support component discovery and activation.

Why does my new AI chat component lack visual consistency with existing UI patterns?

Your new AI chat component lacks visual consistency if it is not built using the skill's composable patterns and shadcn/ui integration guidelines, which enforce homogeneous structure and alignment with established library conventions.