Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

ui-design-brain用户界面设计大脑

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

5,187

周安装

214

GitHub Stars

777

下载量

1,695
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ui-design-brain(用户界面设计大脑)
来源仓库:https://github.com/carmahhawwari/ui-design-brain
仓库路径:skills/ui-design-brain
安装命令:
npx skills add https://github.com/carmahhawwari/ui-design-brain --skill ui-design-brain
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/carmahhawwari/ui-design-brain --skill ui-design-brain

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合品牌和设计系统,避免堆砌装饰元素;涉及页面改动应通过截图或浏览器预览检查表现。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。
  • 注意:需确认宿主环境支持 Codex、Claude、Cursor 或 Gemini CLI。

SKILL.md

UI Design Brain

This skill provides a curated knowledge base of 60+ UI component patterns sourced from component.gallery and enriched with best practices, layout guidance, and usage rules. It replaces generic guessing with real design-system knowledge when generating interfaces.

Before writing any UI code, consult this skill to select the right components and follow their best practices. Read components.md for the full reference.

When to Use This Skill

Apply whenever the user asks to build, design, or generate:

  • Web pages, landing pages, marketing sites
  • SaaS dashboards, admin panels, settings pages
  • Forms, data tables, navigation structures
  • Modals, drawers, popovers, or overlay patterns
  • Any React, HTML/CSS, or Tailwind UI component

Design Philosophy

Every generated interface should feel modern, minimal, and production-ready — not like a template.

Core Principles

  1. Restraint over decoration. Fewer elements, highly refined. White space is a feature.
  2. Typography carries hierarchy. Pair a distinctive display font with a clean body font. Maximize weight contrast between headings and labels.
  3. One strong color moment. Neutral palette first (warm off-whites, near-blacks, muted mid-tones). Introduce one confident accent. If it could appear on a poster or book cover, it's probably timeless.
  4. Spacing is structure. Use an 8 px grid. Tighter gaps group related elements; generous gaps let hero content breathe.
  5. Accessibility is non-negotiable. WCAG AA contrast minimums. Focus indicators. Semantic HTML. Keyboard navigation.
  6. No generic AI aesthetics. Avoid: purple-on-white gradients, Inter/Roboto defaults, evenly-spaced card grids, and cookie-cutter layouts. Every interface should feel designed for its specific context.

Quality Bar

The output should match what you'd expect from a senior product designer at a top SaaS company:

  • Clean visual rhythm with intentional asymmetry
  • Obvious interactive affordances (hover, focus, active states)
  • Graceful edge cases (empty states, loading, error)
  • Responsive without breakpoint artifacts

Workflow

Step 1 — Identify Components

Read the user's request and determine which UI components are needed. Reference components.md to find each component by name or alias.

Common mappings:

  • "navigation" → Header, Navigation, Breadcrumbs, Tabs
  • "form" → Form, Text input, Select, Checkbox, Radio button, Button
  • "data display" → Table, Card, List, Badge, Avatar
  • "feedback" → Alert, Toast, Modal, Spinner, Progress bar, Empty state
  • "input" → Text input, Textarea, Select, Combobox, Datepicker, File upload, Slider
  • "overlay" → Modal, Drawer, Popover, Tooltip, Dropdown menu

Step 2 — Apply Best Practices

For each component in the interface, follow its best practices from the reference. Key rules that apply broadly:

Layout

  • Single-column forms — faster to scan
  • Consistent vertical lanes in repeated rows (lists, tables)
  • Fixed-width slots for icons and actions, even when empty
  • Cards: media → title → meta → action hierarchy

Interaction

  • Buttons: verb-first labels ("Save changes", not "Submit"), one primary per section
  • Modals: always provide X, Cancel, and Escape; trap focus; return focus on close
  • Toasts: auto-dismiss 4–6 s, allow manual dismiss, stack newest on top
  • Toggles: immediate effect only — use checkboxes in forms that require Save

Typography & Spacing

  • Strict heading hierarchy (h1 → h2 → h3), one h1 per page
  • Minimum 44 px touch targets on mobile
  • Labels above inputs (vertical forms) or beside (horizontal)
  • Placeholder text as format hint, never as label replacement

States

  • Empty states: illustration + helpful headline + primary CTA
  • Loading: skeleton screens > spinners (show after 300 ms delay)
  • Validation: inline on blur, not on every keystroke
  • Disabled elements: visually distinct but still readable

Step 3 — Choose a Design Direction

Select the style preset that best matches the user's intent, or ask if unclear:

Modern SaaS (default)

  • Neutral palette, one strong accent
  • 8 px grid, generous white space
  • Clean, professional, spacious

Apple-level Minimal

  • Near-monochrome, warm grays
  • Large type hierarchy, tight tracking on display text
  • Abundant white space, micro-interactions (150–250 ms ease-out)

Enterprise / Corporate

  • Information-dense, well-defined regions
  • Compact spacing scale (4/8/12/16/24 px)
  • Robust form handling, fully keyboard-navigable

Creative / Portfolio

  • Bold, expressive, strong visual personality
  • Asymmetric layouts, dramatic scale contrast
  • Editorial typography, vivid accent colors

Data Dashboard

  • Data-dense, optimised for scannability
  • Consistent vertical alignment across rows
  • Clear metric hierarchy: KPI → trend → detail

Step 4 — Generate Code

Write production-ready code following these rules:

Stack:       React + Tailwind CSS (unless user specifies otherwise)
Spacing:     Tailwind spacing scale (p-2, gap-4, etc.) on an 8px grid
Colors:      CSS variables or Tailwind config for palette consistency
Typography:  Tailwind text utilities; expressive font pairings via Google Fonts
States:      Implement hover, focus, active, disabled for all interactive elements
Responsive:  Mobile-first; test at 375, 768, 1440 px
Accessibility: Semantic HTML, ARIA where needed, focus management

Component Quick Reference

Below are the 15 most commonly needed components. For the full 60+ component reference with best practices, aliases, and layout examples, see components.md.

ComponentWhen to useKey rule
ButtonTrigger actionsVerb-first labels; one primary per section
CardRepresent an entityMedia → title → meta → action; shadow OR border, not both
ModalFocused attentionTrap focus; X + Cancel + Escape to close
NavigationPage/section links5–7 items max; clear active state
TableStructured dataSticky header; right-align numbers; sortable columns
TabsSwitch panels2–7 tabs; active indicator; accordion on mobile
FormCollect inputSingle column; labels above; inline validation on blur
ToastBrief confirmationAuto-dismiss 4–6 s; undo action for destructive ops
AlertImportant statusSemantic colors + icon; max 2 sentences
DrawerSecondary panelRight for detail, left for nav; 320–480 px desktop
Search inputFind contentCmd/Ctrl+K shortcut; debounce 200–300 ms
Empty stateNo dataIllustration + headline + CTA; positive framing
SkeletonLoading placeholderMatch actual layout shape; shimmer animation
BadgeStatus/metadata label1–2 words; pill shape for status; limited color palette
Dropdown menuAction/nav options7±2 items; destructive actions last in red

Anti-Patterns to Avoid

Never generate these — they signal generic, low-quality UI:

  • Rainbow badges — every status a different bright color with no semantic meaning
  • Modal inside modal — use a page or drawer for complex flows
  • Disabled submit with no explanation — always indicate what's missing
  • Spinner for predictable layouts — use skeleton screens instead
  • "Click here" links — link text must describe the destination
  • Hamburger menu on desktop — use visible navigation when space allows
  • Auto-advancing carousels — let users control navigation
  • Placeholder-only form fields — always use visible labels
  • Equal-weight buttons — establish primary/secondary/tertiary hierarchy
  • Tiny text (< 12 px) — body text minimum 14 px, prefer 16 px

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.04%
按下载量换算628

Claude

31.45%
按下载量换算533

Cursor

18.75%
按下载量换算318

Gemini CLI

8.61%
按下载量换算146

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills