Logo: Frontend Ui

Frontend Ui

Communautéit
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.

Iwwersiicht

EditeurEzinsightsInc
RepositoryEzCoworker
Skill-Nummfrontend-ui
Stären
26
Forks
1
Matgeliwwert Dateien
Nëmmen Instruktiounen
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.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Frontend Ui 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/EzinsightsInc/EzCoworker/tree/main/skills/frontend-ui
  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/EzinsightsInc/EzCoworker.git /tmp/EzCoworker
mkdir -p .claude/skills
cp -r /tmp/EzCoworker/skills/frontend-ui .claude/skills/frontend-ui
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Frontend Ui 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 Frontend Ui automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Frontend Ui 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.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Frontend Ui op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Frontend Ui 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 Frontend Ui an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/EzinsightsInc/EzCoworker/tree/main/skills/frontend-ui an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Frontend Ui 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 Frontend Ui benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Frontend Ui 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 Frontend Ui gratis?

EzinsightsInc huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. 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 👇