Frontend Ui logo

Frontend Ui

Community
EzinsightsInc
frontend-ui

Improves the frontend chat UI and user experience. Use when adding UI features, fixing layout issues, improving the chat interface, styling components, adding animations, handling loading/error states, or making the app more responsive. Covers vanilla JS, Tailwind CSS, and the chat/sidebar layout.

Overview

PublisherEzinsightsInc
RepositoryEzCoworker
Skill namefrontend-ui
Stars
26
Forks
1
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Frontend Ui 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/EzinsightsInc/EzCoworker/tree/main/skills/frontend-ui
  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/EzinsightsInc/EzCoworker.git /tmp/EzCoworker
mkdir -p .claude/skills
cp -r /tmp/EzCoworker/skills/frontend-ui .claude/skills/frontend-ui
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Frontend Ui 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 Frontend Ui 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 Frontend Ui 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.

You are improving the frontend of a single-page chat application. All UI lives in one file: frontend/public/index.html.

Tech Stack

  • Tailwind CSS loaded via CDN (https://cdn.tailwindcss.com) — use utility classes directly, no build step
  • marked.js via CDN — used to render markdown in assistant messages via marked.parse()
  • Vanilla JS — no framework, no bundler, no TypeScript
  • Color palette: gray-900 background, gray-800 panels, gray-700 inputs, blue-600 accents, green-500 status indicators

Current Layout Structure

body (bg-gray-900, flex-col)
├── #auth-screen          — login/register form (hidden after login)
└── #chat-screen          — main app (hidden before login)
    ├── header bar        — app name + logout button
    └── flex row
        ├── #sidebar      — w-64, conversation list + "New Conversation" button
        └── chat area
            ├── #messages — scrollable message list
            └── input bar — textarea + submit button

Message Bubble Conventions

  • User messages: ml-auto bg-blue-600 rounded-br-none (right-aligned)
  • Assistant messages: mr-auto bg-gray-700 rounded-bl-none (left-aligned)
  • Both: max-w-[85%] p-4 rounded-2xl shadow-md
  • Loading state: animated loading-dots class with CSS content animation
  • Markdown is rendered via parseContent() → marked.parse() with <think> tag replacement

UI Best Practices for This Project

Loading & Error States

  • Always show a loading indicator while awaiting agent response (currently uses loading-dots CSS animation)
  • Replace loading message with actual response or a red error message on failure
  • Disable the submit button and textarea while a request is in flight to prevent duplicate sends

Scrolling

  • After appending a message: container.scrollTop = container.scrollHeight
  • Smooth scroll preferred: container.scrollTo({ top: container.scrollHeight, behavior: 'smooth' })

Conversation Sidebar

  • Active conversation: bg-blue-800 highlight (currently bg-blue-700 — use darker for contrast)
  • Truncate long titles with truncate class
  • Show relative timestamps (e.g. "2 hours ago") instead of toLocaleDateString() for better UX
  • Add a delete button (×) on hover for each conversation item

Input Area

  • Auto-resize textarea as user types (set rows dynamically based on content)
  • Clear input immediately on send, before awaiting response
  • Show character count if approaching a limit
  • Keyboard shortcut hint: "Enter to send · Shift+Enter for new line" in the footer text

Accessibility

  • All interactive elements need aria-label if they have no visible text (icon-only buttons)
  • Use role="log" and aria-live="polite" on #messages so screen readers announce new messages
  • Focus the textarea after sending a message and after loading a conversation

Responsive Design

  • Sidebar collapses on mobile: hide with hidden md:flex and add a hamburger toggle
  • Message bubbles: max-w-[85%] works well; reduce to max-w-full on very small screens
  • Input bar: ensure textarea doesn't overflow on narrow viewports

Code Style

  • Use escapeHtml() for any user-generated content rendered as HTML to prevent XSS
  • Keep DOM manipulation functions focused: one function per responsibility
  • Use data- attributes on elements to store IDs instead of closure variables where possible

Quick Improvements Checklist

  • Disable send button while request is in flight
  • Auto-focus textarea on page load and after each message
  • Show "no conversations yet" empty state in sidebar
  • Add timestamps to message bubbles (on hover or always visible)
  • Add copy-to-clipboard button on code blocks in assistant messages
  • Add a character/token estimate counter in the input bar
  • Animate new messages sliding in with a subtle fade/translate
  • Show agent "is typing..." with a pulsing dot indicator instead of inline "Thinking..."

Frequently asked questions

What does the Frontend Ui AI skill do?

Improves the frontend chat UI and user experience. Use when adding UI features, fixing layout issues, improving the chat interface, styling components, adding animations, handling loading/error states, or making the app more responsive. Covers vanilla JS, Tailwind CSS, and the chat/sidebar layout.

Why use Frontend Ui on TypingMind?

Because you install it once and use it with any model. Frontend Ui 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 Frontend Ui in TypingMind?

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

Which AI models can use Frontend Ui?

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 Frontend Ui?

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

Is the Frontend Ui AI skill free?

It is published on GitHub by EzinsightsInc. Check the repository for licensing terms. 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 👇