Agent Ui Design logo

Agent Ui Design

Community
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.

Overview

Publisherflitzrrr
Repositoryfrontend-design-skills
Skill nameagent-ui-design
Stars
9
Forks
2
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by flitzrrr on GitHub. Read the source before you install it.

Installation

Install the Agent Ui Design AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/flitzrrr/frontend-design-skills/tree/main/skills-src/agent-ui-design
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Agent Ui Design in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Agent Ui Design on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Agent Ui Design is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Agent Ui Design AI skill do?

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.

Why use Agent Ui Design on TypingMind?

Because you install it once and use it with any model. Agent Ui Design is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Agent Ui Design in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/flitzrrr/frontend-design-skills/tree/main/skills-src/agent-ui-design. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Agent Ui Design?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Agent Ui Design?

As many as you like. As long as a model supports skills, you can use Agent Ui Design with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Agent Ui Design AI skill free?

Yes. It is published on GitHub by flitzrrr under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇