primitives
БесплатноБез исполняемых скриптовНе проверенBuilds and customizes assistant-ui chat UI from composable, unstyled @assistant-ui/react primitives: ThreadPrimitive, ComposerPrimitive (with…
от assistant-ui★ 30 звёзд на GitHubОб этом скилле
assistant-ui Primitives
Always consult assistant-ui.com/llms.txt for the latest API.
Primitives are composable, unstyled components that follow Radix style part composition: a .Root provides context, .PartName children read it, and every part accepts asChild to merge its behavior onto your own element instead of rendering a wrapper. They ship with no styles and no opinions about layout, only behavior: keyboard shortcuts, auto scroll, streaming state, focus management, and disabled logic. Wrap your tree in AssistantRuntimeProvider (or a nested AuiProvider) before using any of them.
References
- ./references/thread.md -- ThreadPrimitive: viewport, auto scroll, turn anchor, the messages iterator
- ./references/composer.md -- ComposerPrimitive: root, input, send, cancel, submit behavior
- ./references/message.md -- MessagePrimitive: the parts pipeline, tool resolution, attachments, quote, error
- ./references/action-bar.md -- ActionBarPrimitive and the ActionBarMorePrimitive overflow menu
- ./references/part-grouping.md -- GroupedParts, groupPartByType, chain of thought UI
- ./references/mentions.md --
@mentions,/slash commands, custom trigger matchers - ./references/composer-input.md -- headless input, input history, dictation, quoting, attachments
- ./references/messages.md -- editing, branching, message timing, virtualization, scrollbar, image parts
- ./references/suggestions.md --
Suggestions([...]), the suggestion adapter,ThreadPrimitive.Suggestions
Import
import {
AuiIf,
ThreadPrimitive,
ComposerPrimitive,
MessagePrimitive,
MessagePartPrimitive,
ActionBarPrimitive,
ActionBarMorePrimitive,
BranchPickerPrimitive,
AttachmentPrimitive,
ErrorPrimitive,
AssistantModalPrimitive,
ChainOfThoughtPrimitive,
SelectionToolbarPrimitive,
SuggestionPrimitive,
QueueItemPrimitive,
ThreadListPrimitive,
ThreadListItemPrimitive,
ThreadListItemMorePrimitive,
} from "@assistant-ui/react";
Primitive parts
| Primitive | Parts |
|---|---|
ThreadPrimitive |
.Root, .Viewport, .ViewportProvider, .ViewportFooter, .Messages, .MessageByIndex, .Unstable_MessageById, .ScrollToBottom, .Suggestions, .SuggestionByIndex, .Suggestion, .Empty (deprecated), .If (deprecated) |
ComposerPrimitive |
.Root, .Input, .Send, .Cancel, .AddAttachment, .Attachments, .AttachmentByIndex, .AttachmentDropzone, .Dictate, .StopDictation, .DictationTranscript, .Quote, .QuoteText, .QuoteDismiss, .Queue, .Unstable_TriggerPopoverRoot, .Unstable_TriggerPopover (with .Directive / .Action), .Unstable_TriggerPopoverCategories, .Unstable_TriggerPopoverCategoryItem, .Unstable_TriggerPopoverItems, .Unstable_TriggerPopoverItem, .Unstable_TriggerPopoverBack, .If (deprecated) |
MessagePrimitive |
.Root, .Parts (.Content is a deprecated alias), .PartByIndex, .GroupedParts, .Unstable_PartsGrouped, .Unstable_PartsGroupedByParentId, .Attachments, .AttachmentByIndex, .Quote, .Error, .GenerativeUI, .If (deprecated) |
MessagePartPrimitive |
.Text, .Image, .InProgress, .Messages |
ActionBarPrimitive |
.Root, .Copy, .Reload, .Edit, .Speak, .StopSpeaking, .FeedbackPositive, .FeedbackNegative, .ExportMarkdown |
ActionBarMorePrimitive |
.Root, .Trigger, .Content, .Item, .Separator |
BranchPickerPrimitive |
.Root, .Previous, .Next, .Number, .Count |
AttachmentPrimitive |
.Root, .Name, .Remove, .unstable_Thumb |
ErrorPrimitive |
.Root, .Message |
AssistantModalPrimitive |
.Root, .Trigger, .Content, .Anchor |
ChainOfThoughtPrimitive |
.Root, .AccordionTrigger, .Parts (legacy, prefer MessagePrimitive.GroupedParts) |
SelectionToolbarPrimitive |
.Root, .Quote |
SuggestionPrimitive |
.Title, .Description, .Trigger |
QueueItemPrimitive |
.Text, .Steer, .Remove |
ThreadListPrimitive |
.Root, .New, .Items, .ItemByIndex, .LoadMore |
ThreadListItemPrimitive |
.Root, .Trigger, .Title, .Archive, .Unarchive, .Delete |
ThreadListItemMorePrimitive |
.Root, .Trigger, .Content, .Item, .Separator |
ThreadListPrimitive, ThreadListItemPrimitive, and ThreadListItemMorePrimitive drive multi-thread sidebars. This skill covers them only in the table above; see thread-list for the full custom UI, CRUD operations, and remote adapter walkthrough.
Conditional rendering with AuiIf
Reach for AuiIf for every new condition. It takes a selector over the full assistant state (thread, `message
Установить primitives в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл primitives?
Builds and customizes assistant-ui chat UI from composable, unstyled @assistant-ui/react primitives: ThreadPrimitive, ComposerPrimitive (with Unstable_TriggerPopover for mentions and slash commands), MessagePrimitive and MessagePartPrimitive, ActionBarPrimitive, BranchPickerPrimitive, AttachmentPrimitive, ErrorPrimitive, AssistantModalPrimitive, ChainOfThoughtPrimitive, SelectionToolbarPrimitive, SuggestionPrimitive, QueueItemPrimitive, and the ThreadList primitives. Use when assembling or styling a custom Thread, Composer, message list, action bar, branch picker, or suggestion grid; wiring composer input, dictation, quoting, or attachments; or handling editing, branching, virtualization, scrolling, or chain of thought UI. Covers MessagePrimitive.Parts render functions per part type, groupPartByType, AuiIf in selector form, and the unstyled gotchas (AssistantRuntimeProvider, className). For prebuilt UI use setup, for the styled catalog use elements, for multi-thread sidebars use thread-list.
Как установить скилл primitives?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл primitives запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic