Token导航 LogoToken导航

Agent Skill · 前端设计

ui-engineering(用户界面工程)

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

ui-engineering 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,797。

总安装 259周安装 11GitHub Stars 24下载 91核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/noobygains/godmode --skill ui-engineering

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

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

安装方式:github,可通过 npx skills add 命令从指定仓库添加。适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

来源仓库内路径:skills/ui-engineering

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/noobygains/godmode --skill ui-engineering;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ui-engineering 怎么安装?

在终端执行 npx skills add https://github.com/noobygains/godmode --skill ui-engineering。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ui-engineering 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ui-engineering 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ui-engineering 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ui-engineering 用的人多吗?

公开数据是累计安装 259 次,近一周安装 11 次,下载 91 次,GitHub 24 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ui-engineering 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
ui-engineering

用户界面工程 · 本页

25924需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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.

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

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:

/* 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:

/* 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

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.

/* 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

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

@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

平台分布

Codex

36.71%
按下载量换算33

Claude

30.23%
按下载量换算28

Cursor

20.22%
按下载量换算18

Gemini CLI

8.34%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills