assistant-ui-primitives

assistant-ui-primitives is a skill for Claude Code, Codex from compozy/compozy. It costs 28 tokens per session (959 once invoked), scanned A, original, MIT.

A guide to building chat interfaces from unstyled, reusable React components, including message threads, text input, messages, attachments, and action buttons. It explains the primitives provided by assistant-ui and how to customize them.

In plain words
What is it for?
Use it when customizing assistant-ui chat components such as message lists, composers, thread controls, and message actions.
Why use it?
It helps developers assemble a chat interface without writing every interaction component from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when customizing assistant-ui chat components such as message lists, composers, thread controls, and message actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/compozy/compozy/assistant-ui-primitives
About the project

Compozy is a system for coordinating AI coding agents, allowing command-line agents to divide work, exchange tasks, run scheduled or repeated jobs, and share project memory under browser supervision. Developers and technical operators use it to create, automate, and monitor ongoing agent work. The catalogue entries provide skills and other add-ons for its agent workflows.

compozy/compozy · 2,926 stars · on GitHub · compozy.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add compozy/compozy --skill assistant-ui-primitives
Clone the repo
git clone --depth 1 https://github.com/compozy/compozy

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for assistant-ui-primitives

README.md
[![agentmods](https://agentmods.dev/badge/skills/compozy/compozy/assistant-ui-primitives/github.svg)](https://agentmods.dev/skills/compozy/compozy/assistant-ui-primitives)
Your own site
<a href="https://agentmods.dev/skills/compozy/compozy/assistant-ui-primitives"><img src="https://agentmods.dev/badge/skills/compozy/compozy/assistant-ui-primitives/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for assistant-ui-primitives

Your own site · 80×15
<a href="https://agentmods.dev/skills/compozy/compozy/assistant-ui-primitives"><img src="https://agentmods.dev/badge/skills/compozy/compozy/assistant-ui-primitives.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00959
Opus 5.5 $0.00011 $0.00384
Sonnet 5.5 $0.00006 $0.00192
Haiku 4.5 $0.00003 $0.00096

Measured 3mo ago against content hash 963ec1b1e9ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

assistant-ui-primitives scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/assistant-ui/assistant-ui-primitives/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

assistant-ui Primitives

Always consult assistant-ui.com/llms.txt for latest API.

Composable, unstyled components following Radix UI patterns.

References

Import

import {
  AuiIf,
  ThreadPrimitive,
  ComposerPrimitive,
  MessagePrimitive,
  ActionBarPrimitive,
  BranchPickerPrimitive,
  AttachmentPrimitive,
  ThreadListPrimitive,
  ThreadListItemPrimitive,
} from "@assistant-ui/react";

Primitive Parts

Primitive Key Parts
ThreadPrimitive .Root, .Viewport, .Messages, .Empty, .ScrollToBottom
ComposerPrimitive .Root, .Input, .Send, .Cancel, .Attachments
MessagePrimitive .Root, .Parts/.Content, .If, .Error
ActionBarPrimitive .Copy, .Edit, .Reload, .Speak, .FeedbackPositive, .FeedbackNegative, .ExportMarkdown
BranchPickerPrimitive .Previous, .Next, .Number, .Count

Custom Thread Example

function CustomThread() {
  return (
    <ThreadPrimitive.Root className="flex flex-col h-full">
      <ThreadPrimitive.Empty>
        <div className="flex-1 flex items-center justify-center">
          Start a conversation
        </div>
      </ThreadPrimitive.Empty>

      <ThreadPrimitive.Viewport className="flex-1 overflow-y-auto p-4">
        <ThreadPrimitive.Messages components={{
          UserMessage: CustomUserMessage,
          AssistantMessage: CustomAssistantMessage,
        }} />
      </ThreadPrimitive.Viewport>

      <ComposerPrimitive.Root className="border-t p-4 flex gap-2">
        <ComposerPrimitive.Input className="flex-1 rounded-lg border px-4 py-2" />
        <ComposerPrimitive.Send className="bg-blue-500 text-white px-4 py-2 rounded-lg">
          Send
        </ComposerPrimitive.Send>
      </ComposerPrimitive.Root>
    </ThreadPrimitive.Root>
  );
}

Read the full file on GitHub · 131 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 131 lines · 28 tokens per session scan A 963ec1b1e9ce

Subscribe to this mod's changes

assistant-ui-primitives is a skill published in the GitHub repository compozy/compozy (2,926 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 959 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

assistant-ui-primitives compared with skills from other repositories

assistant-ui-primitives next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
assistant-ui-primitivescompozy/compozySkill2.9ktodayMITA28Claude Code, Codex
react-doctoramplifthq/opentagSkill1.4k12d agoMITA42Claude Code, Codex
maestro-custom-agentsemdgroup/maestroSkill12yesterdayApache-2.0A65Claude Code
maestro-outputemdgroup/maestroSkill12yesterdayApache-2.0A225Claude Code
subagent-managerotakumesi/subagent-cliSkill39mo agoMITA98Claude Code, Codex
debugging-ci-failuresamplifthq/opentagSkill1.4k12d agoMITA189Claude Code, Codex
openmeld-cliamplifthq/opentagSkill1.4k12d agoMITA61Claude Code, Codex