Agent skill

UI Engineering

by NoobyGains in NoobyGains/godmode

A skill your agent uses when constructing frontend components, selecting layout strategies, orchestrating state, or assembling interactive UI - spans component architecture, responsive adaptation…

MITAuto-check passedFrontend & Design

Install UI Engineering

skills CLI
$ npx skills add NoobyGains/godmode --skill ui-engineering -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NoobyGains/godmode ui-engineering --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NoobyGains/godmode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ui-engineering .claude/skills/ui-engineering && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ui-engineering
GitHub stars
107
Token cost
~3.1k tokens
SKILL.md length
1,089 words
Files
2
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when constructing frontend components, selecting layout strategies, orchestrating state, or assembling interactive UI - spans component architecture, responsive adaptation…

  • Works in 7 steps: Semantics -- Which HTML element is… → Props -- What is the minimal surface… → States -- Default, hover, focus, active,… → …
  • Constructing frontend components
  • SKILL.md covers Overview, When to Use, The Prime Directive and Component Architecture, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

UI Engineering is an agent skill from NoobyGains/godmode. Use when constructing frontend components, selecting layout strategies, orchestrating state, or assembling interactive UI - spans component architecture, responsive adaptation, accessibility compliance, and rendering performance across any frontend framework

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `component-patterns.md`).

It sits in Frontend & Design, covering Accessibility, Responsive design and CSS and styling. The repository describes itself as: The AI development framework that thinks before it builds. 36 composable skills for Claude Code, Cursor, Codex, and OpenCode. The licence is MIT.

When your agent uses it

  • Constructing frontend components
  • Selecting layout strategies
  • Orchestrating state
  • Assembling interactive UI - spans component architecture

Example prompts

  • “/ui-engineering”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Semantics -- Which HTML element is correct? (button not div onClick, nav not div className="nav")
  2. Props -- What is the minimal surface area? Can it be composed instead of configured?
  3. States -- Default, hover, focus, active, disabled, loading, error, empty
  4. Variants -- What visual variations are needed? (primary, secondary, ghost, destructive)
  5. Sizes -- What size tiers exist? (sm, md, lg -- maximum 3-4)
  6. Responsive -- How does it transform at each breakpoint?
  7. Accessibility -- ARIA roles, keyboard navigation paths, screen reader announcements

What it can do on your machine

Read from SKILL.md and the folder at commit 441103a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are css and dot).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

UI Engineering loads about 3.1k tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 1,089 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NoobyGains/godmode at commit 441103a, republished under its MIT licence (© NoobyGains). 1,089 words, ~3,130 tokens.

Download SKILL.mdSave it as .claude/skills/ui-engineering/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
ui-engineering
description
Use when constructing frontend components, selecting layout strategies, orchestrating state, or assembling interactive UI - spans component architecture, responsive adaptation, accessibility compliance, and rendering performance across any frontend framework

UI Engineering

Overview

Construct UI components with disciplined architecture, not improvised markup.

Core principle: Every component decision -- layout strategy, state ownership, accessibility posture, responsive behavior -- follows established patterns. The UX Patterns skill tells you WHAT to build. This skill tells you HOW to build it with structural integrity.

PREREQUISITE: Invoke godmode:ux-patterns first to identify applicable patterns and token values. This skill assumes tokens and patterns are already established.

When to Use

Mandatory when:

  • Constructing any frontend component
  • Selecting between Grid and Flexbox
  • Deciding where state should live
  • Engineering responsive breakpoint behavior
  • Building forms, data visualizations, navigation, or overlays
  • Introducing motion or transitions

Sequenced after:

  • Design tokens are established (ux-patterns)
  • Target UI pattern is identified (ux-patterns)

The Prime Directive

NO COMPONENT WITHOUT STRUCTURE, STATES, AND ACCESSIBILITY DEFINED FIRST

Before writing component code, establish: semantic structure (correct HTML elements), all visual states (empty, loading, error, populated, disabled), and accessibility requirements (ARIA attributes, keyboard interaction, contrast ratios).

Component Architecture

Composition Over Configuration

Assemble components from smaller, composable units rather than monolithic prop-heavy blocks.

<Good>
```
Dialog
  DialogHeader
    DialogTitle
    DialogDescription
  DialogBody
  DialogFooter
```
Each unit is independently useful and independently styleable.
</Good>
<Bad>
```
Dialog (title, description, body, footer, headerAlign, footerAlign,
       showCloseButton, variant, size, overlayOpacity, titleSize, ...)
```
Prop explosion, unmaintainable, impossible to extend.
</Bad>
Pre-Implementation Checklist

Before writing any component:

  1. Semantics -- Which HTML element is correct? (button not div onClick, nav not div className="nav")
  2. Props -- What is the minimal surface area? Can it be composed instead of configured?
  3. States -- Default, hover, focus, active, disabled, loading, error, empty
  4. Variants -- What visual variations are needed? (primary, secondary, ghost, destructive)
  5. Sizes -- What size tiers exist? (sm, md, lg -- maximum 3-4)
  6. Responsive -- How does it transform at each breakpoint?
  7. Accessibility -- ARIA roles, keyboard navigation paths, screen reader announcements

Layout Strategy Selection

dot
digraph layout_choice {
    rankdir=TB;
    q1 [label="What is being\narranged?", shape=diamond];
    q2 [label="Single axis or\ntwo axes?", shape=diamond];
    q3 [label="Are items\nuniform in size?", shape=diamond];

    grid [label="Use CSS Grid\ngrid-template-columns\ngrid-template-rows", shape=box];
    flex [label="Use Flexbox\nflex-direction\njustify/align", shape=box];
    grid_auto [label="Use CSS Grid\nauto-fill/auto-fit\nminmax()", shape=box];

    q1 -> q2;
    q2 -> grid [label="two axes\n(rows AND columns)"];
    q2 -> q3 [label="single axis\n(row OR column)"];
    q3 -> grid_auto [label="yes\n(uniform cards)"];
    q3 -> flex [label="no\n(nav items,\nform row)"];
}
CSS Grid -- Appropriate When
  • Page-level scaffolding (sidebar + main content + aside)
  • Uniform card grids
  • Dashboard arrangements (metric tiles, chart regions)
  • Any layout requiring two-dimensional control
  • Cross-row and cross-column alignment

Example patterns:

css
/* Self-adjusting card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Dashboard scaffold */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: var(--space-6);
}
.dashboard .wide-chart { grid-column: span 2; }
Flexbox -- Appropriate When
  • Navigation items along a single row
  • Form input + button inline grouping
  • Centering content within a container
  • Distributing variable-width items along one axis

Example patterns:

css
/* Navigation row */
.nav-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Inline form group */
.inline-group {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
}
.inline-group .input-field { flex: 1; }

State Ownership Strategy

dot
digraph state_ownership {
    rankdir=TB;
    q1 [label="Where does this\nstate belong?", shape=diamond];
    q2 [label="Consumed by\nmultiple components?", shape=diamond];
    q3 [label="Server-originated\nor client-only?", shape=diamond];
    q4 [label="Prop-drilling\nexceeds 3 levels?", shape=diamond];

    local [label="Component-local state\nuseState / ref", shape=box];
    server [label="Server state manager\nTanStack Query / SWR", shape=box];
    context [label="Context / Provider\nReact Context / provide-inject", shape=box];
    global [label="Global store\nZustand / Pinia / Signals", shape=box];

    q1 -> q2;
    q2 -> local [label="no\n(isolated component)"];
    q2 -> q3 [label="yes"];
    q3 -> server [label="server-originated\n(API responses,\ncached data)"];
    q3 -> q4 [label="client-only\n(UI flags,\npreferences)"];
    q4 -> context [label="no\n(2-3 levels)"];
    q4 -> global [label="yes\n(application-wide)"];
}

Governing principles:

  1. Begin with local state. Elevate only when evidence demands it.
  2. Server data is NOT client state. Manage it with a dedicated server-state library.
  3. Context is for dependency injection (themes, auth context), not for high-frequency updates.
  4. Global stores are a last resort, not a starting point.

Responsive Design Methodology

Mobile-First Progression

Write mobile styles as the baseline, then layer complexity at wider breakpoints.

css
/* Mobile baseline */
.wrapper {
  padding: var(--space-4);
}

/* Tablet tier */
@media (min-width: 768px) {
  .wrapper {
    padding: var(--space-6);
    max-width: 768px;
    margin: 0 auto;
  }
}

/* Desktop tier */
@media (min-width: 1024px) {
  .wrapper {
    padding: var(--space-8);
    max-width: 1280px;
  }
}
Responsive Adaptation Reference
ElementMobileTabletDesktop
NavigationHamburger or bottom sheetTab bar or collapsed sidebarExpanded sidebar
Card gridSingle columnTwo columnsThree to four columns
Data tableStacked card view or horizontal scrollFull table, fewer columnsComplete table
Sidebar + MainMain only; sidebar in drawerIcon-only sidebarFully expanded sidebar
FormSingle column, inputs stretch full widthSingle column, max-width 560pxTwo columns for paired fields
ModalFull-screen sheetCentered, 80% viewport widthCentered, max-width 480px
HeroStacked (image below headline)Stacked, larger typeSide-by-side

Accessibility Standards

Every Interactive Element
  • Reachable via Tab key
  • Focus ring visible (:focus-visible, 2px outline minimum)
  • Activatable via Enter/Space (buttons) or Enter (links)
  • Possesses an accessible name (visible text, aria-label, or aria-labelledby)
  • Disabled state removes from tab order or applies aria-disabled
  • Touch target meets 44x44px minimum on mobile
Forms
  • Every input has a visible <label> (placeholder alone is insufficient)
  • Required fields indicated (asterisk plus aria-required="true")
  • Error messages connected to their input (aria-describedby)
  • Error indication uses more than color alone (icon plus text)
  • Submission outcomes announced to screen readers (aria-live)
Images and Icons
  • Meaningful images carry descriptive alt text
  • Decorative images carry alt="" or aria-hidden="true"
  • Icon-only buttons carry aria-label
  • SVG icons use role="img" with aria-label or aria-hidden="true"
Color and Contrast
  • Normal text meets 4.5:1 contrast ratio (3:1 for large text: 18px+ bold or 24px+)
  • Information is never conveyed by color alone (supplement with icons, patterns, text)
  • Motion respects prefers-reduced-motion
  • Color scheme respects prefers-color-scheme if dark mode is offered

Animation and Motion

Show full SKILL.md (442 more words)Show less
When to Animate
  • State transitions: Hover, focus, expand/collapse, reveal/hide
  • Feedback signals: Success, error, loading progress
  • Spatial cues: Communicating where content originated or departed
When NOT to Animate
  • Decoration with no functional purpose
  • Durations exceeding 300ms for UI transitions
  • Motion that blocks user interaction (forced wait)
  • Continuous movement without user control
Timing Reference
InteractionDurationEasing
Hover response150msease
Button press100msease-out
Modal entrance200msease-out
Modal exit150msease-in
Drawer slide250msease-out
Fade entrance200msease
Page transition200-300msease-in-out
Respect User Motion Preferences
css
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

Form Architecture

Validation Experience
  1. Do not validate on every keystroke. Validate on blur (field exit) or on form submission.
  2. Display errors inline beneath the offending field, not in a summary banner.
  3. Error text displaces helper text -- never display both simultaneously.
  4. Error indication uses color plus icon -- never color alone (accessibility).
  5. Retain valid-field indicators (checkmark or green border) as the user progresses.
  6. Disable the submit button during submission and show a loading indicator.
Field Layout Guidelines
  • Labels above inputs (never beside, never placeholder-only)
  • Related fields grouped with <fieldset> and <legend>
  • Required fields marked with asterisk AND (required) for screen readers
  • Optional fields may display "(optional)" instead
  • Maximum form width: 480-560px single-column
  • Submit button left-aligned, not centered (exception: inside modals)

Rendering Performance

Critical Path Optimization
  1. Above-fold content loads first. Defer below-fold assets and scripts.
  2. Prefer system fonts for body text unless branding mandates a web font. Web fonts introduce layout shift.
  3. Image discipline: Apply width/height attributes (prevents CLS), loading="lazy" for below-fold images, srcset for responsive delivery.
  4. Bundle awareness: Every imported library is a cost. Measure bundle impact before adding dependencies.
Lazy Loading Strategy
  • Below-fold images: loading="lazy"
  • Route modules: dynamic import / code splitting
  • Heavy components (charts, rich editors): load on interaction or visibility
  • Never lazy-load above-fold content

Common Mistakes

MistakeCorrection
div for everythingUse semantic HTML (button, nav, main, section, article)
Placeholder as sole labelAlways provide visible <label> elements
Pixel literals everywhereUse token variables from the design system
Fixed widths on containersUse max-width + percentage or auto margins
Removing focus outlinesStyle :focus-visible instead of eliminating outline
Click handlers on divsUse <button> or <a> for interactive elements
Margins for layout spacingUse gap with Grid or Flexbox
Importing entire icon librariesImport individual icons; enable tree-shaking
Only implementing the happy pathDesign all states before building the happy path
Testing only on desktopTest mobile-first, verify desktop afterward

Integration

Prerequisite:

  • godmode:ux-patterns -- Tokens and patterns must be established first

Complementary skills:

  • godmode:design-integration -- When operating within an established design system
  • godmode:test-first -- Component tests follow test-first methodology

Supporting files:

  • component-patterns.md -- Reusable component blueprints with accessibility built in

© NoobyGains, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/ui-engineering of NoobyGains/godmode.

  • SKILL.md
  • component-patterns.md

Open the folder on GitHubat commit 441103a

Compare with similar skills

UI Engineering next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

UI Engineering compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
UI Engineering this skillNoobyGains/godmode107—~3.1kAutomated safety check: PassMIT
Frontend Design Principlespretend1111/claude-desktop-app4941 repos~824Automated safety check: PassCustom licence
Acarshub Design Languagesdr-enthusiasts/docker-acarshub117—~1.1kAutomated safety check: PassGPL-3.0
Web Design Reviewergithub/awesome-copilot40k3 repos~2.6kAutomated safety check: PassMIT
CSS Styling Expertcin12211/orca-q224—~4.6kAutomated safety check: PassMIT
Focus Stylesthedaviddias/Front-End-Checklist74k—~639Automated safety check: PassMIT

Similar skills

  • Frontend Design Principles

    pretend1111/claude-desktop-app

    Gives practical design rules for polished HTML, CSS and JavaScript interfaces and browser games, covering spacing, type, color, components, motion and responsive breakpoints.

    494 GitHub starsUsed in 1 repo~824 tokens
    Frontend & DesignAuto-check passed
  • Acarshub Design Language

    sdr-enthusiasts/docker-acarshub

    Use ONLY when working in the docker-acarshub repository AND building UI -- React components, SCSS modules, theme variables, accessibility, mobile responsiveness, Catppuccin color usage, Zustand…

    117 GitHub stars~1.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Web Design Reviewer

    github/awesome-copilot

    Official

    This skill enables visual inspection of websites running locally or remotely to identify and fix design issues.

    40k GitHub starsUsed in 3 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • CSS Styling Expert

    cin12211/orca-q

    CSS architecture and styling expert with deep knowledge of modern CSS features, responsive design, CSS-in-JS optimization, performance, accessibility, and design systems.

    224 GitHub stars~4.6k tokensUpdated 16 days ago
    Frontend & DesignAuto-check passed
  • Focus Styles

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Provide visible custom focus indicators.

    74k GitHub stars~639 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Ultimate UI

    NeverSight/learn-skills.dev

    A skill your agent uses when building user interfaces that need to look polished, modern, and intentional - not like AI-generated slop.

    216 GitHub starsUsed in 1 repo~4k tokens
    Frontend & DesignAuto-check passed

More from NoobyGains/godmode

All 34 skills in this repo
  • Activation

    NoobyGains/godmode

    A skill your agent uses when starting any conversation - establishes how to locate and invoke skills, mandating Skill tool usage before ANY response including clarifying questions

    107 GitHub stars~2.4k tokensUpdated 7 mo ago
    Auto-check passed
  • Agent Messaging

    NoobyGains/godmode

    A skill your agent uses when dispatching subagents, composing prompts for teammates, structuring handoff reports, or managing context boundaries between agents.

    107 GitHub stars~3k tokensUpdated 7 mo ago
    Auto-check passed
  • Codebase Research

    NoobyGains/godmode

    A skill your agent uses when building ANY feature within an existing project - search the current codebase for existing patterns, conventions, similar implementations, and established approaches…

    107 GitHub stars~3.2k tokensUpdated 7 mo ago
    Auto-check: notes
  • Completion Gate

    NoobyGains/godmode

    A skill your agent uses when about to declare work done, fixed, or passing, before committing or opening PRs - demands executing verification commands and reading their output before making any…

    107 GitHub stars~1.6k tokensUpdated 7 mo ago
    Auto-check passed
  • Comprehension Check

    NoobyGains/godmode

    A skill your agent uses when implementing any substantial feature, multi-file modification, or architectural change - produces a plain-language walkthrough of every alteration so the developer can…

    107 GitHub stars~1.5k tokensUpdated 7 mo ago
    Auto-check passed
  • Delegated Execution

    NoobyGains/godmode

    A skill your agent uses when executing implementation plans with independent tasks in the current session

    107 GitHub stars~2.4k tokensUpdated 7 mo ago
    Auto-check passed

Questions about UI Engineering

What does UI Engineering do?

A skill your agent uses when constructing frontend components, selecting layout strategies, orchestrating state, or assembling interactive UI - spans component architecture, responsive adaptation…. UI Engineering is an agent skill from NoobyGains/godmode.

When should I use UI Engineering?

UI Engineering fits situations like: constructing frontend components; selecting layout strategies; orchestrating state; assembling interactive UI - spans component architecture.

How do I install UI Engineering in Claude Code?

Run `npx skills add NoobyGains/godmode --skill ui-engineering -a claude-code`. Or copy the skill folder (skills/ui-engineering in NoobyGains/godmode) into .claude/skills/ui-engineering in your project. Claude Code loads it when a task matches its description.

How do I install UI Engineering in Codex?

Run `npx skills add NoobyGains/godmode --skill ui-engineering -a codex`. Or copy the skill folder (skills/ui-engineering in NoobyGains/godmode) into .agents/skills/ui-engineering in your project. Codex loads it when a task matches its description.

Can I use UI Engineering in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NoobyGains/godmode --skill ui-engineering -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ui-engineering, .gemini/skills/ui-engineering, .github/skills/ui-engineering and .opencode/skills/ui-engineering in your project.

What does UI Engineering need to run?

SKILL.md names no scripts, command-line tools or credentials: UI Engineering is instructions for the agent only.

Does UI Engineering access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is UI Engineering safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does UI Engineering use?

UI Engineering is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does UI Engineering use?

About 3.1k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to UI Engineering?

Skills that share tags, products or a category with UI Engineering: Frontend Design Principles (pretend1111/claude-desktop-app, 494 stars), Acarshub Design Language (sdr-enthusiasts/docker-acarshub, 117 stars), Web Design Reviewer (github/awesome-copilot, 40k stars) and CSS Styling Expert (cin12211/orca-q, 224 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains UI Engineering?

NoobyGains (a GitHub user) maintains it in NoobyGains/godmode, which has 107 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on March 9, 2026.

Source: NoobyGains/godmode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.