Logo: Agent Ui Design

Agent Ui Design

Communautéit
flitzrrr
agent-ui-design

Design patterns for chat interfaces, agent UX, streaming UI, and tool visualization. Covers chat architecture, message types, streaming rendering, tool execution cards, and sandbox UI derived from 21st.dev Agents SDK documentation and templates.

Iwwersiicht

Editeurflitzrrr
Repositoryfrontend-design-skills
Skill-Nummagent-ui-design
Stären
9
Forks
2
Matgeliwwert Dateien
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    flitzrrr huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Agent Ui Design an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/flitzrrr/frontend-design-skills/tree/main/skills-src/agent-ui-design
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/flitzrrr/frontend-design-skills.git /tmp/frontend-design-skills
mkdir -p .claude/skills
cp -r /tmp/frontend-design-skills/skills-src/agent-ui-design .claude/skills/agent-ui-design
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Agent Ui Design an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Agent Ui Design automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Agent Ui Design net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Agent-UI-Design

Design patterns for chat interfaces, agent UX, streaming UI, and tool visualization. Based on 21st.dev Agents SDK and award-winning agent products.

Scope

Use this skill when:

  • You are designing a chat interface for an AI application
  • You need to visually represent agent tool calls
  • You are implementing streaming rendering for real-time text output
  • You are visualizing sandbox states and execution environments
  • You are designing a three-panel layout for agent dashboards

Principles

1. Agent-Ready Design

Components must natively support streaming content, tool calls, and asynchronous state transitions. Chat UIs are a core pattern, not an add-on.

2. Transparency over Magic

The user must know at all times what the system is doing. No silent background work -- every agent step is visible.

3. Progressive Complexity

The default view shows the essentials. Details (tool parameters, raw data, logs) are available on demand.

4. Streaming as Experience

Real-time text output is not a technical detail but a deliberately designed UX element. The speed at which text appears influences perceived intelligence.

5. Errors as Design Cases

Tool errors, timeouts, and unexpected results are normal states, not exceptions. They require dedicated visual design.

Rules

Chat Architecture

  • DO: Three-column chat architecture following the 21st.dev pattern:
    • Thread Sidebar (left): List of past conversations, scrollable, with search.
    • Chat Panel (center): Message stream with input field. Primary interaction.
    • Context Panel (right): Optional, for results, previews, forms.
  • DO: Lazy-load message history. Only the last N messages initially, older ones on scroll-up.
  • DON'T: Keep the entire message history in client state. Use server-side persistence.
  • DON'T: Chat panel without a visible input field. It must always be clear where to type.

Message Types

  • DO: Differentiate messages by role:
    • User Message: Right-aligned, accent color, compact layout.
    • Assistant Message: Left-aligned, neutral, expandable for tool results.
    • System Message: Centered, subtle, informational.
    • Tool Call: Visually distinct with status indicator.
  • DO: Markdown rendering in assistant messages (headings, lists, code blocks).
  • DO: Code blocks with syntax highlighting and copy button.
  • DON'T: Style all message types identically. Visual differentiation provides orientation.

Streaming Rendering

  • DO: Display text character- or word-by-word with a cursor indicator.
  • DO: AI SDK useChat hook or SSE streaming for real-time rendering.
  • DO: During streaming: auto scroll-to-bottom, stop button visible.
  • DON'T: Block rendering during generation. The user must be able to scroll at all times.
  • DON'T: Streaming without a visual cursor. The user must see that more text is coming.

Tool Visualization

  • DO: Display tool calls within the chat stream:
    • Tool Name: As label/badge before the result.
    • Input Parameters: Collapsible, viewable for power users.
    • Result: Formatted by type (text, table, code, image).
    • Status: Loading spinner > success checkmark > error icon.
  • DO: Tool results as embedded cards in the message stream.
  • DO: Error states explicitly: what went wrong, what the user can do.
  • DON'T: Tool calls without visual feedback. No silent execution.
  • DON'T: Raw JSON output. Always format for human readability.

Sandbox UI

  • DO: Visually communicate sandbox state:
    • Created: Indicator that the environment is ready.
    • Active: Green status dot.
    • Executing: Animated state with progress indication.
    • Terminated: Final state with result summary.
  • DO: File trees as interactive tree structures with file preview.
  • DON'T: Sandbox details in the default view. Use progressive disclosure.

Extended rules and examples: see references/implementation.md

Patterns

PatternUsageCore Idea
Streaming Chat MessageEvery AI chat appSSE stream, cursor, Markdown rendering
Tool Execution CardAgent performs an actionBadge + collapsible params + status
Three-Panel LayoutAgent dashboardsThreads + Chat + Context
Form-Agent HybridForm assistantsForm + Chat, agent populates fields
Real-Time Status DashboardMonitoring agentsLive updates, color-coded tiles

Detailed patterns: see references/patterns.md

Anti-Patterns

  1. Chatbot without context panel -- Results only inline in the chat. Complex outputs need their own space.
  2. Tool results as JSON dump -- Raw API responses. Always present in human-readable format.
  3. Invisible agent work -- No feedback during tool execution. The user thinks the system is frozen.
  4. Single message design -- All messages styled identically. Role differentiation is mandatory.
  5. Endless streaming without stop -- No cancel button during generation.
  6. Modal tool results -- Tool outputs as modals instead of inline. Interrupts the conversation flow.
  7. Thread sidebar without search -- With more than 10 conversations, search and filter are essential.
  8. Missing retry option -- Tool errors without the ability to retry.

Checklist

  • Chat messages differentiated by role (user, assistant, system, tool)
  • Streaming rendering with visible cursor implemented
  • Stop button visible during generation
  • Tool calls have loading/success/error states
  • Tool results formatted, not raw JSON output
  • Tool parameters available as collapsible
  • Three-panel layout: threads + chat + context
  • Message history lazy-loaded (not all in client)
  • Code blocks with syntax highlighting and copy button
  • Markdown rendering in assistant messages
  • Sandbox states visually communicated
  • Retry button on tool errors
  • Mobile: chat panel as fullscreen, sidebar as drawer
  • Keyboard shortcuts: Enter to send, Shift+Enter for line break

Cross-References

  • component-patterns -- Base component architecture and token system
  • design-trends -- AI-native interface as a current trend
  • ui-patterns -- Command palette and general UI patterns
  • visual-direction -- Color palettes and typography for agent interfaces
  • usability -- Usability fundamentals for chat interfaces
  • accessibility -- Screen reader compatibility for chat UIs
  • responsive-design -- Mobile strategies for three-panel layouts

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Agent Ui Design?

Design patterns for chat interfaces, agent UX, streaming UI, and tool visualization. Covers chat architecture, message types, streaming rendering, tool execution cards, and sandbox UI derived from 21st.dev Agents SDK documentation and templates.

Firwat Agent Ui Design op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Agent Ui Design besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Agent Ui Design an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/flitzrrr/frontend-design-skills/tree/main/skills-src/agent-ui-design an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Agent Ui Design benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Agent Ui Design benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Agent Ui Design domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Agent Ui Design gratis?

Jo. flitzrrr huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇