๐Ÿ“ฆ carmahhawwari / ui-design-brain

A Cursor skill that gives AI agents real UI component knowledge โ€” best practices, layout patterns, and design-system conventions for 60+ interface components โ€” so it generates production-grade UI instead of generic output.

โ˜… 462 stars โ‘‚ 43 forks ๐Ÿ‘ 462 watching โš–๏ธ Other
๐Ÿ“ฅ Clone https://github.com/carmahhawwari/ui-design-brain.git
HTTPS git clone https://github.com/carmahhawwari/ui-design-brain.git
SSH git clone git@github.com:carmahhawwari/ui-design-brain.git
CLI gh repo clone carmahhawwari/ui-design-brain
Loading files...
๐Ÿ“„ README.md

UI Design Brain

A Cursor skill that gives the AI agent real UI component knowledge โ€” best practices, layout patterns, and design-system conventions for 60+ interface components โ€” so it generates production-grade UI instead of generic output.

What it does

When you ask Cursor to build a UI, it typically guesses at component patterns. This skill replaces guessing with a curated knowledge base sourced from component.gallery and enriched with:

  • Best practices for every component (accessibility, sizing, behavior)
  • Common layouts โ€” proven arrangements for each pattern
  • Aliases โ€” so the agent recognizes components by any name
  • Design philosophy โ€” modern, minimal, SaaS-quality standards
  • Anti-patterns โ€” specific things to avoid
The result: interfaces that feel designed by a senior product designer, not assembled from a template.

Install

Option A โ€” Personal skill (all projects)

# Clone into your Cursor skills directory
git clone https://github.com/carmahhawwari/ui-design-brain.git \
  ~/.cursor/skills/ui-design-brain

Option B โ€” Project skill (shared with team)

# Clone into your project's .cursor/skills directory
git clone https://github.com/carmahhawwari/ui-design-brain.git \
  .cursor/skills/ui-design-brain

Option C โ€” Manual

Copy the SKILL.md and components.md files into either:

  • ~/.cursor/skills/ui-design-brain/ (personal)
  • .cursor/skills/ui-design-brain/ (project)

Usage

Once installed, the skill activates automatically when you ask Cursor to build UI. You don't need to reference it explicitly.

Examples

Just ask naturally:

Build a settings page with a sidebar navigation, toggle preferences, and a profile section.

Create a data table with search, filters, sortable columns, and pagination.

Design a SaaS dashboard with KPI cards, a chart area, and an activity feed sidebar.

The agent will automatically:

  • Identify which components your request needs
  • Look up best practices for each one
  • Apply the right design direction (SaaS, minimal, corporate, creative, or dashboard)
  • Generate production-ready code following the patterns

Design directions

The skill includes 5 built-in style presets. You can request one explicitly:

PresetWhen to use
Modern SaaSDefault โ€” clean, spacious, professional
Apple-level MinimalUltra-clean with generous whitespace
Enterprise / CorporateInformation-dense, keyboard-navigable
Creative / PortfolioBold, expressive, editorial typography
Data DashboardOptimized for data scannability
Build a pricing page with an Apple-minimal aesthetic.

What's inside

ui-design-brain/
โ”œโ”€โ”€ SKILL.md          # Main instructions โ€” design philosophy, workflow, quick reference
โ”œโ”€โ”€ components.md     # Full reference โ€” 60 components with best practices and layouts
โ”œโ”€โ”€ LICENSE.txt       # MIT license
โ””โ”€โ”€ README.md         # This file

Component coverage

60 components including: Accordion, Alert, Avatar, Badge, Breadcrumbs, Button, Button group, Card, Carousel, Checkbox, Color picker, Combobox, Date input, Datepicker, Drawer, Dropdown menu, Empty state, Fieldset, File, File upload, Footer, Form, Header, Heading, Hero, Icon, Image, Label, Link, List, Modal, Navigation, Pagination, Popover, Progress bar, Progress indicator, Quote, Radio button, Rating, Rich text editor, Search input, Segmented control, Select, Separator, Skeleton, Skip link, Slider, Spinner, Stack, Stepper, Table, Tabs, Text input, Textarea, Toast, Toggle, Tooltip, Tree view, Video, Visually hidden.

How it differs from frontend-design skills

Generic frontend skillUI Design Brain
Component knowledgeNone โ€” relies on model training60 components with specific best practices
Layout guidanceGeneral adviceConcrete layout patterns per component
Anti-patternsNot addressedExplicit list of things to avoid
AccessibilityMentioned looselySpecific per-component rules (focus trapping, ARIA, keyboard nav)
Design system groundingModel's general knowledgeSourced from real design systems via component.gallery

Contributing

PRs welcome. To add or update components:

  • Edit components.md โ€” follow the existing format (name, aliases, description, best practices, common layouts)
  • If the component is commonly needed, add it to the quick reference table in SKILL.md
  • Keep SKILL.md under 500 lines

License

MIT โ€” see LICENSE.txt.

Component data sourced from component.gallery.