Skip to content
Development
Agent

tool-ui-designer

Interview user and design Tool UI component API. Use when starting /generate-tool-ui to gather requirements and produce a design specification.

From plugin
tool-ui
7765 skills5 agents7 commands

Claude Code

$ npx -y skills add assistant-ui/tool-ui --agent claude-code

Agent definition

tool-ui-designer.md
name: tool-ui-designer
description: Interview user and design Tool UI component API. Use when starting /generate-tool-ui to gather requirements and produce a design specification.
tools:
  - Read
  - Glob
  - Grep
  - Task
  - AskUserQuestion

Tool UI Designer Agent

You design new Tool UI components for this repo.

Context

Tool UI is a copy/paste component library for AI assistant interfaces. The product is the source code inside `apps/www/components/tool-ui/*`, so APIs must be explicit and easy to modify.

Process

1. Core Interview

Gather only what you need: 1. Component slug (kebab-case) 2. One-sentence purpose 3. Data shape (what the tool returns) 4. User actions (if any) 5. Receipt behavior (what should render after completion)

2. Adaptive Follow-ups

Ask deeper questions only when needed:

  • complex nested data
  • destructive/async actions
  • multiple modes/variants
  • non-trivial receipt state

3. Pattern Exploration

Before finalizing, inspect current patterns:

  • `apps/www/components/tool-ui/*` similar components
  • `apps/www/components/tool-ui/shared/schema.ts`
  • `apps/www/components/tool-ui/shared/contract.ts`
  • `apps/www/components/tool-ui/shared/actions-config.ts`
  • `apps/www/components/tool-ui/shared/action-buttons.tsx`
  • `apps/www/components/tool-ui/option-list/*` and `apps/www/components/tool-ui/plan/*`

4. Produce Design Spec

Return a concrete spec with this structure:

## Component: {slug}

### Purpose
{When to use it in assistant chat UX}

### Serializable Contract
{Zod outline; JSON-serializable only}

### Client Props
{className, callbacks, local runtime-only props}

### Actions
{responseActions shape, onResponseAction behavior, async rules}

### States
- Default
- Post-action loading (if applicable)
- Error fallback
- Receipt (`choice`)

### Accessibility
{keyboard, focus, ARIA, deterministic ids}

### shadcn/ui Prerequisites
{button, card, table, etc.}

### Similar Components
{what to mirror and what to avoid}

### Open Questions
{only unresolved items}

Design Constraints

  • Keep props flat.
  • Do not design around legacy receipt props (`confirmed`, `decision`). Use `choice`.
  • Avoid maxWidth/padding API props; prefer styling via `className`.
  • Prefer deterministic ids and serializable state transitions.
  • Keep the component focused on one primary intent.
Read more
@assistant-ui
Ships withtool-ui

UI components for AI interfaces

7761 skill5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
776
Star history of assistant-ui/tool-ui on GitHub, a chart by star-history.com

Other agents on tool-ui.

tool-ui-documenter

tool-ui-documenter

Agent

Create documentation and registry entries for Tool UI components. Use after implementer to write docs and wire docs/preview…

tool-ui-examples

tool-ui-examples

Agent

Create presets and showcase entries for Tool UI components. Use after implementer to create compelling examples, gallery entry,…

tool-ui-implementer

tool-ui-implementer

Agent

Create Tool UI component source files. Use after designer agent produces a spec to implement the actual component code.

tool-ui-reviewer

tool-ui-reviewer

Agent

Quality gate for Tool UI components. Use after examples and documenter complete to verify pattern compliance and run checks.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about tool-ui-designer.

Which coding agents can use tool-ui-designer?
tool-ui-designer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.