
Description
The primitives skill helps an agent build and customize chat interfaces with assistant-ui, using its composable, unstyled primitives from the @assistant-ui/react package. It covers ThreadPrimitive for the viewport, auto scroll, turn anchoring and the messages iterator, ComposerPrimitive for the input, send, cancel and submit behavior, and MessagePrimitive for the parts pipeline, tool resolution, attachments, quotes and errors. It also covers action bars with an overflow menu, grouped parts such as chain-of-thought views, @ mentions and slash commands with custom triggers, headless input with history, dictation and attachments, and message editing, branching and virtualization. The primitives follow a Radix-style pattern: a Root component provides context, and each part accepts asChild to merge its behavior onto your own element. They ship without styles. The skill tells the agent to wrap the tree in AssistantRuntimeProvider and to check assistant-ui.com/llms.txt for the latest API. It is aimed at React developers building chat UIs, and it is listed on skills.sh under assistant-ui/skills.…
Highlights
- Builds chat UIs from unstyled assistant-ui primitives
- Thread, composer and message components
- Mentions, slash commands and dictation
- Message editing, branching and virtualization
- Works with asChild to merge onto your own elements
Ratings & Reviews
No ratings yet
Be the first to rate primitives.
People also visit

json-render-generative-ui
Generative UI framework that renders AI-generated JSON specs into type-safe UI
primitives FAQ
What does the primitives skill cover?
Building chat UIs with assistant-ui's React primitives, including threads, the composer, messages, action bars, mentions and message editing and branching.
What do I need before using the primitives?
Wrap your tree in AssistantRuntimeProvider, or in a nested AuiProvider, before using any of them.
Are the primitives styled?
No. They ship with no styles and no layout opinions, only behavior such as keyboard shortcuts, auto scroll, streaming state and focus management.
How do I install it?
Run npx skills add https://github.com/assistant-ui/skills --skill primitives.
Where is the API reference?
The skill points to assistant-ui.com/llms.txt for the latest API.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
Where is the source?
On GitHub at assistant-ui/skills.
What are the best primitives alternatives?
Popular alternatives to primitives include ai-elements, ai-elements-chatbot and chatgpt-app-builder. See all primitives alternatives













