tool-ui-documenter
AgentCreate documentation and registry entries for Tool UI components. Use after implementer to write docs and wire docs/preview…
Interview user and design Tool UI component API. Use when starting /generate-tool-ui to gather requirements and produce a design specification.
Claude Code
$ npx -y skills add assistant-ui/tool-ui --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
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}Create documentation and registry entries for Tool UI components. Use after implementer to write docs and wire docs/preview…
Create presets and showcase entries for Tool UI components. Use after implementer to create compelling examples, gallery entry,…
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.
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…