tool-ui-documenter
Create documentation and registry entries for Tool UI components. Use after implementer to write docs and wire docs/preview registries.
Interview user and design Tool UI component API. Use when starting /generate-tool-ui to gather requirements and produce a design specification.
$ npx -y skills add assistant-ui/tool-ui --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Interview user and design Tool UI component API. Use when starting /generate-tool-ui to gather requirements and produce a design specification.
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
You design new Tool UI components for this repo.
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.
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)
Ask deeper questions only when needed:
Before finalizing, inspect current patterns:
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}Repo: assistant-ui/tool-ui
Create documentation and registry entries for Tool UI components. Use after implementer to write docs and wire docs/preview registries.
Create presets and showcase entries for Tool UI components. Use after implementer to create compelling examples, gallery entry, and landing page showcase scene.
Create Tool UI component source files. Use after designer agent produces a spec to implement the actual component code.
Quality gate for Tool UI components. Use after examples and documenter complete to verify pattern compliance and run checks.