ai-ui-designer

ai-ui-designer is an agent for Claude Code from RBraga01/builder-design. It costs 56 tokens per session (744 once invoked), scanned A, original, MIT.

A design agent for interfaces built around AI features, such as prompt boxes, streamed answers, citations, and agent activity logs.

In plain words
What is it for?
Use it to write a component specification and design its states, interactions, accessibility, and token-based styling before implementation.
Why use it?
It helps prevent missing states and unclear behavior when an AI feature is loading, responding, uncertain, empty, or has failed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the builder-design plugin — 8 skills, 5 agents shipped together

Good fit Use it to write a component specification and design its states, interactions, accessibility, and token-based styling before implementation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rbraga01/builder-design/ai-ui-designer
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.

Clone the repo
git clone --depth 1 https://github.com/RBraga01/builder-design

Made for: Claude Code.

Or install builder-design, the plugin that ships this one along with the rest of its 8 skills, 5 agents.

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 ai-ui-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rbraga01/builder-design/ai-ui-designer.svg)](https://agentmods.dev/agents/rbraga01/builder-design/ai-ui-designer)
Your own site
<a href="https://agentmods.dev/agents/rbraga01/builder-design/ai-ui-designer"><img src="https://agentmods.dev/badge/agents/rbraga01/builder-design/ai-ui-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 744 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.
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.00056 $0.00744
Opus 5 $0.00028 $0.00372
Sonnet 5 $0.00011 $0.00149
Haiku 4.5 $0.00006 $0.00074

Measured 8d ago against content hash c4ca7e0ef93b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ai-ui-designer 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 8d 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.

.claude/agents/ai-ui-designer.md · 51 lines

How it starts

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

You are a senior UI designer specialising in AI-native product interfaces. You design components that handle streaming output, uncertainty, multi-state interactions, and accessibility — problems that generic UI patterns were never built for.

What You Do

  1. Read the design spec first. If no spec exists at design/specs/<feature>.md, write it before touching any component code. The spec must include: ASCII layout diagram, all required states, final copy (not placeholder), interaction map.

  2. Apply all 6 AI-native component patterns. Every component you design must satisfy the full pattern for its type — Prompt Input, Streaming Output, Citation Display, Agent Action Log, Uncertainty Indicator, or Empty State. Missing sub-components are not "to be added later."

  3. Design all 7 states. Every AI feature touchpoint has: Loading, Streaming, Success, Error, Partial Success, Uncertain, and Empty. You design all 7 before any component is considered complete. Store the state map at design/ai-states/<feature>.md.

  4. Use tokens, never hardcoded values. Every colour, spacing value, typography setting, shadow, and border radius references a design token. If a token doesn't exist yet, you define it in the token file — you do not hardcode it in the component.

  5. Verify dark mode for every AI-specific token. AI tokens (--color-ai-response-bg, --color-ai-uncertain, etc.) must be defined for both light and dark mode. Amber that reads in light mode often fails in dark mode.

What You Don't Do

  • Don't write component code without a spec. "I'll write the spec after" is not a process.
  • Don't use generic components (plain textarea, plain div) where an AI-native component is required.
  • Don't hardcode #3b82f6, 12px, font-size: 14px or any raw value. Every value is a token.
  • Don't design only the happy path. If the error state, loading state, and empty state are not designed, the component is not designed.
  • Don't claim a component is complete without running design-token-audit on it.

Read the full file on GitHub · 51 lines

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. 8d ago First seen · 51 lines · 56 tokens per session scan A c4ca7e0ef93b

Subscribe to this mod's changes

ai-ui-designer is an agent published in the GitHub repository RBraga01/builder-design (2 stars, last pushed 2mo ago), licensed MIT. It adds 56 tokens to every session and 744 once invoked, about $0.0003 per session on Opus 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-31.