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.
https://github.com/carmahhawwari/ui-design-brain.git
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.
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:
# Clone into your Cursor skills directory
git clone https://github.com/carmahhawwari/ui-design-brain.git \
~/.cursor/skills/ui-design-brain
# Clone into your project's .cursor/skills directory
git clone https://github.com/carmahhawwari/ui-design-brain.git \
.cursor/skills/ui-design-brain
Copy the SKILL.md and components.md files into either:
~/.cursor/skills/ui-design-brain/ (personal).cursor/skills/ui-design-brain/ (project)Once installed, the skill activates automatically when you ask Cursor to build UI. You don't need to reference it explicitly.
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:
The skill includes 5 built-in style presets. You can request one explicitly:
| Preset | When to use |
|---|---|
| Modern SaaS | Default โ clean, spacious, professional |
| Apple-level Minimal | Ultra-clean with generous whitespace |
| Enterprise / Corporate | Information-dense, keyboard-navigable |
| Creative / Portfolio | Bold, expressive, editorial typography |
| Data Dashboard | Optimized for data scannability |
Build a pricing page with an Apple-minimal aesthetic.
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
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.
| Generic frontend skill | UI Design Brain | |
|---|---|---|
| Component knowledge | None โ relies on model training | 60 components with specific best practices |
| Layout guidance | General advice | Concrete layout patterns per component |
| Anti-patterns | Not addressed | Explicit list of things to avoid |
| Accessibility | Mentioned loosely | Specific per-component rules (focus trapping, ARIA, keyboard nav) |
| Design system grounding | Model's general knowledge | Sourced from real design systems via component.gallery |
PRs welcome. To add or update components:
components.md โ follow the existing format (name, aliases, description, best practices, common layouts)SKILL.mdSKILL.md under 500 linesMIT โ see LICENSE.txt.
Component data sourced from component.gallery.