Skip to content
Skills Library
Programming · Building & coding

ai-elements

/ai-elements

Maintains AI chat UI built from elements.ai-sdk.dev AI Elements components already copied into the project. Use when changing or debugging those components (conversations, messages, prompt inputs, attachments, reasoning, tool output, sources). New chat UI uses the shadcn/ui AI Elements patterns (`shadcn` skill).

Licence
MIT
Last repository change
26.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
130
Scripts
80
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 80 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/agent.tsx, scripts/artifact.tsx, scripts/attachments-inline.tsx, scripts/attachments-list.tsx, scripts/attachments.tsx, scripts/audio-player-remote.tsx, scripts/audio-player.tsx, scripts/chain-of-thought.tsx

What it does and when to use it

Maintains AI chat UI built from elements.ai-sdk.dev AI Elements components already copied into the project. Use when changing or debugging those components (conversations, messages, prompt inputs, attachments, reasoning, tool output, sources). New chat UI uses the shadcn/ui AI Elements patterns (`shadcn` skill).

Original author description

Maintains AI chat UI built from elements.ai-sdk.dev AI Elements components already copied into the project. Use when changing or debugging those components (conversations, messages, prompt inputs, attachments, reasoning, tool output, sources). New chat UI uses the shadcn/ui AI Elements patterns (`shadcn` skill).

How it works

  1. Project and documentation
  2. Integration
Original SKILL.md headings · 60 lines, 402 words
SKILL.md preview
---
name: ai-elements
description: Maintains AI chat UI built from elements.ai-sdk.dev AI Elements components already copied into the project. Use when changing or debugging those components (conversations, messages, prompt inputs, attachments, reasoning, tool output, sources). New chat UI uses the shadcn/ui AI Elements patterns (`shadcn` skill).
---

# AI Elements

Use AI Elements where its components fit the interaction. The generated source
belongs to the project: inspect it for the actual API and customize it deliberately.

vercel/ai-elements will be deprecated at the end of November 2026 (announced
2026-10-14, CLI 1.9.1). Its replacement is AI Elements from shadcn/ui
(https://ui.shadcn.com/docs/ai-elements): copy-in patterns built on Message,
Bubble, Message Scroller, Trace and Code Block. Copied files in
`components/ai-elements/` keep working. To move one onto shadcn/ui, use the
'Migrating from AI SDK Elements' prompt on its pattern page; some elements
(artifact, canvas, persona, web-preview, ...) have no replacement. For new chat
UI use the `shadcn` skill, not `ai-elements add`.

## Project and documentation

Follow the project's package manager, aliases, shadcn configuration and AI SDK
major. Read `ai-sdk` to resolve the installed version, then the appropriate
`ai-sdk-6` or `ai-sdk-7` guidance. AI Elements and AI SDK versions can change
independently.

Read generated `components/ai-elements/<component>.tsx` first, then the
matching `references/` file and its `scripts/` examples. Use the
[AI Elements site](https://elements.ai-sdk.dev) for current documentation. Load only relevant references; verify bundled
examples against installed source.

To add a missing component to an existing install, use the project's runner
with `ai-elements@latest add <component>` or
`shadcn@latest add @ai-elements/<component>`. Components land in
`components/ai-elements/` under the alias configured in `components.json`; that
installed source is the offline API reference. Check installed components and
review generated files before replacing local customization. Use `shadcn` for
registry, preset and primitive-base details.

AI Elements targets the Radix base (upstream uses style `new-york` with
`radix-ui`). On Base UI projects expect prop mismatches in prompt-input,
attachments, inline-citation and plan ([upstream #446](https://github.com/vercel/ai-elements/issues/446),
open 2026-10-11); adapt the installed copies.

## Integration

[Integration](references/integration.md) covers the UI/SDK boundary, v6
pitfalls and the `context.tsx` patch that AI SDK 7 needs. Keep stable message
IDs and render supported message parts with the generated compound components.
Keep model choice, tools, credentials and authorization on the server.

Compose the states the feature needs: streaming, completion, retry, cancellation,
attachments, approval or sources. Avoid adding components merely because the
library offers them. Preserve keyboard interaction, accessible labels and useful
scroll behavior.

When rendering fails, inspect the owned component, theme imports, semantic tokens
and actual configured aliases. Do not copy a default `tsconfig` or replace the
project's theme to fix one import.
For unstyled markdown, check the [MessageResponse setup](references/message.md#markdown-styling).

Verify the rendered flow with real message states and the project's checks;
type correctness alone does not establish usable streaming or attachment behavior.
Files in this package (130)
  • SKILL.md 3 KB
  • references/agent.md 4 KB
  • references/artifact.md 3 KB
  • references/attachments.md 6 KB
  • references/audio-player.md 5 KB
  • references/canvas.md 1 KB
  • references/chain-of-thought.md 3 KB
  • references/checkpoint.md 6 KB
  • references/code-block.md 5 KB
  • references/commit.md 6 KB
  • references/confirmation.md 9 KB
  • references/connection.md 1 KB
  • references/context.md 6 KB
  • references/controls.md 1 KB
  • references/conversation.md 7 KB
  • references/edge.md 2 KB
  • references/environment-variables.md 4 KB
  • references/file-tree.md 2 KB
  • references/image.md 4 KB
  • references/inline-citation.md 11 KB
  • references/integration.md 4 KB
  • references/jsx-preview.md 3 KB
  • references/message.md 10 KB
  • references/mic-selector.md 8 KB
  • references/model-selector.md 4 KB
  • references/node.md 3 KB
  • references/open-in-chat.md 3 KB
  • references/package-info.md 3 KB
  • references/panel.md 1 KB
  • references/persona.md 5 KB
  • references/plan.md 3 KB
  • references/prompt-input.md 20 KB
  • references/queue.md 5 KB
  • references/reasoning.md 8 KB
  • references/sandbox.md 4 KB
  • references/schema-display.md 2 KB
  • references/shimmer.md 2 KB
  • references/snippet.md 2 KB
  • references/sources.md 6 KB
  • references/speech-input.md 7 KB
  • references/stack-trace.md 6 KB
  • references/suggestion.md 5 KB
  • references/task.md 7 KB
  • references/terminal.md 3 KB
  • references/test-results.md 5 KB
  • references/tool.md 8 KB
  • references/toolbar.md 1 KB
  • references/transcription.md 5 KB
  • references/voice-selector.md 10 KB
  • references/web-preview.md 6 KB
  • scripts/agent.tsx 2 KB
  • scripts/artifact.tsx 3 KB
  • scripts/attachments-inline.tsx 4 KB
  • scripts/attachments-list.tsx 2 KB
  • scripts/attachments.tsx 2 KB
  • scripts/audio-player-remote.tsx 1 KB
  • scripts/audio-player.tsx 2 KB
  • scripts/chain-of-thought.tsx 139 KB
  • scripts/checkpoint.tsx 3 KB
  • scripts/code-block-dark.tsx 1 KB
  • scripts/code-block.tsx 3 KB
  • scripts/commit.tsx 2 KB
  • scripts/confirmation-accepted.tsx 1 KB
  • scripts/confirmation-rejected.tsx 1 KB
  • scripts/confirmation-request.tsx 2 KB
  • scripts/confirmation.tsx 2 KB
  • scripts/context.tsx 1 KB
  • scripts/conversation.tsx 4 KB
  • scripts/environment-variables.tsx 2 KB
  • scripts/file-tree-basic.tsx 1 KB
  • scripts/file-tree-expanded.tsx 1 KB
  • scripts/file-tree-selection.tsx 1 KB
  • scripts/file-tree.tsx 1 KB
  • scripts/image.tsx 136 KB
  • scripts/inline-citation.tsx 3 KB
  • scripts/jsx-preview.tsx 3 KB
  • scripts/message.tsx 10 KB
  • scripts/mic-selector.tsx 1 KB
  • scripts/model-selector.tsx 8 KB
  • scripts/open-in-chat.tsx 1 KB
  • scripts/package-info.tsx 1 KB
  • scripts/persona-command.tsx 2 KB
  • scripts/persona-glint.tsx 2 KB
  • scripts/persona-halo.tsx 2 KB
  • scripts/persona-mana.tsx 2 KB
  • scripts/persona-obsidian.tsx 2 KB
  • scripts/persona-opal.tsx 3 KB
  • scripts/plan.tsx 2 KB
  • scripts/prompt-input-cursor.tsx 15 KB
  • scripts/prompt-input-tooltip.tsx 1 KB
  • scripts/prompt-input.tsx 7 KB
  • scripts/queue-prompt-input.tsx 10 KB
  • scripts/queue.tsx 8 KB
  • scripts/reasoning.tsx 2 KB
  • scripts/sandbox.tsx 5 KB
  • scripts/schema-display-basic.tsx 1 KB
  • scripts/schema-display-body.tsx 1 KB
  • scripts/schema-display-nested.tsx 1 KB
  • scripts/schema-display-params.tsx 1 KB
  • scripts/schema-display.tsx 3 KB
  • scripts/shimmer-duration.tsx 1 KB
  • scripts/shimmer-elements.tsx 1 KB
  • scripts/shimmer.tsx 1 KB
  • scripts/snippet-plain.tsx 1 KB
  • scripts/snippet.tsx 1 KB
  • scripts/sources-custom.tsx 1 KB
  • scripts/sources.tsx 1 KB
  • scripts/speech-input.tsx 2 KB
  • scripts/stack-trace-collapsed.tsx 1 KB
  • scripts/stack-trace-no-internal.tsx 1 KB
  • scripts/stack-trace.tsx 2 KB
  • scripts/suggestion-input.tsx 4 KB
  • scripts/suggestion.tsx 1 KB
  • scripts/task.tsx 1 KB
  • scripts/terminal-basic.tsx 1 KB
  • scripts/terminal-clear.tsx 1 KB
  • scripts/terminal-streaming.tsx 1 KB
  • scripts/terminal.tsx 2 KB
  • scripts/test-results-basic.tsx 1 KB
  • scripts/test-results-errors.tsx 1 KB
  • scripts/test-results-suites.tsx 1 KB
  • scripts/test-results.tsx 3 KB
  • scripts/tool-input-available.tsx 1 KB
  • scripts/tool-input-streaming.tsx 1 KB
  • scripts/tool-output-available.tsx 2 KB
  • scripts/tool-output-error.tsx 1 KB
  • scripts/tool.tsx 7 KB
  • scripts/transcription.tsx 5 KB
  • scripts/voice-selector.tsx 7 KB
  • scripts/web-preview.tsx 3 KB

Versions

RepositoryScoreLicence
This page · laguagu/claude-code-nextjs-skills95MIT
existential-birds/beagle100Apache-2.0
jiaxiaojunQAQ/SkillCamo95Apache-2.0
crafter-station/elements95MIT

Database snapshot: 13.11.2026 · package version 1749ecdc442f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100local-ai-elements-f31a5ceb
    AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn/ui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.
  • 100ai-app
    Builds full-stack Next.js AI applications with the AI SDK and the shadcn/ui AI Elements patterns. Use when creating a chatbot, agent dashboard or custom AI application.
  • 100od-shadcn-ui
    Build UI components with shadcn/ui Use when the user asks for shadcn ui work, or mentions od, shadcn, ui.
  • 90mobile-shadcn-conventions
    How the Agenta mobile app (web/mobile) installs and extends shadcn/ui registry components, themes them via the palette token bridge, and builds chat UI on @agenta/chat. Use when adding UI components under web/mobile, changing theme colors, editing components.json or globals.css, or building chat UI.
  • 95elements
    Browse and install components from the Elements registry (tryelements.dev). Use when user asks about available components, wants to explore providers, says "elements", "component library", "what components", "install from registry", "tryelements", or needs to find the right component category.
  • 100web-components-custom-elements
    Use this skill when authoring framework-agnostic Custom Elements, Shadow DOM encapsulations, and HTML templates using the Web Components standard.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.