Agent skill

UI Design Brain Skill: Component Rules for AI Agents

The ui-design-brain skill gives an AI coding agent reference rules for 60 UI components, five design directions and an anti-pattern list, so generated interfaces look designed.

Install
git clone https://github.com/carmahhawwari/ui-design-brain.git ~/.cursor/skills/ui-design-brain
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the ui-design-brain skill?

The ui-design-brain skill is a Cursor skill from carmahhawwari that adds a component knowledge base to an AI agent. SKILL.md sets design principles and a four step workflow, and components.md holds best practices for 60 components from component.gallery, so generated UI avoids generic patterns.

Ask an AI agent for a dashboard and you often get purple-on-white gradients and evenly spaced card grids. The ui-design-brain skill lists those as things to avoid, and replaces guessing with a reference for 60 components.

It was written for Cursor. The repository holds SKILL.md for the workflow, components.md for the full reference and LICENSE.txt. The skill activates when you ask for pages, dashboards, forms, navigation or any other UI component.

How the four step workflow runs

  1. Identify components. A request for a form maps to Form, Text input, Select, Checkbox, Radio button and Button, each found by name or alias in components.md.
  2. Apply best practices for each component, covering layout, interaction, typography and spacing, and states.
  3. Choose a design direction from five presets, or ask when the intent is unclear.
  4. Generate code with React and Tailwind CSS unless you specify another stack.

Five design directions

  • Modern SaaS, the default: neutral palette, one strong accent, 8 px grid.
  • Apple-level Minimal: near monochrome, warm grays and tight tracking on display text.
  • Enterprise or Corporate: information dense, compact spacing and fully keyboard navigable.
  • Creative or Portfolio: asymmetric layouts, dramatic scale contrast and vivid accents.
  • Data Dashboard: consistent row alignment and a KPI, trend, detail hierarchy.

Who the ui-design-brain skill is for

Best for

  • Generating SaaS dashboards, settings pages, forms and tables where component rules matter more than a single look.
  • Teams that want the same button, modal and toast behavior across everything an agent builds.
  • Anyone who wants a planning step before the agent writes UI code. For a written brief first, see design-brief.

Not for

  • Auditing existing code. This skill guides generation. To review finished UI against a checklist, see web-design-guidelines.
  • Projects locked to a component library. For one library's own conventions, see ant-design.
  • Agents other than Cursor, where the README gives no install path.

Use it with UiChemy

Generated React code does not become a WordPress page on its own. UiChemy AI to WordPress takes an AI build in, and you finish the page in Composer, which edits real HTML, CSS and JS inside Elementor or Gutenberg. Get Started there.