The Agent Skills Directory
npx skills add https://smithery.ai/skills/nextlevelbuilder/ui-ux-pro-max适用于网页和移动应用的全面设计指南。包含 50+ 种样式、161 个调色板、57 种字体配对、161 种带有推理规则的产品类型、99 条用户体验指南,以及涵盖 10 种技术栈的 25 种图表类型。提供基于优先级推荐的可搜索数据库。
当任务涉及 UI 结构、视觉设计决策、交互模式或用户体验质量控制 时,应使用此技能。
在以下情况下必须调用此技能:
在以下情况下推荐使用此技能:
在以下情况下不需要此技能:
决策标准:如果任务会改变功能的 外观、感觉、动效或交互方式,则应使用此技能。
供人类/AI参考:遵循优先级 1→10 来决定首先关注哪个规则类别;需要时使用--domain <Domain>查询详细信息。脚本不读取此表。
| 优先级 | 类别 | 影响 | 领域 | 关键检查项(必须具备) | 反面模式(避免) |
|---|---|---|---|---|---|
| 1 | 可访问性 | 关键 | ux | 对比度 4.5:1、替代文本、键盘导航、Aria 标签 | 移除焦点环、仅图标按钮无标签 |
| 2 | 触摸与交互 | 关键 | ux | 最小尺寸 44×44px、间距 8px+、加载反馈 | 仅依赖悬停、即时状态变化(0ms) |
| 3 | 性能 | 高 | ux | WebP/AVIF、懒加载、预留空间(CLS < 0.1) | 布局抖动、累积布局偏移 |
| 4 |
color-contrast - 普通文本最小对比度 4.5:1(大文本 3:1);Material Designfocus-states - 交互元素上可见的焦点环(2–4px;Apple HIG, MD)alt-text - 为有意义的图像提供描述性替代文本aria-labels - 为仅图标按钮提供 aria-label;原生使用 accessibilityLabel(Apple HIG)keyboard-nav - Tab 顺序匹配视觉顺序;完整的键盘支持(Apple HIG)form-labels - 使用带有 for 属性的 labelskip-links - 为键盘用户提供“跳转到主要内容”链接heading-hierarchy - 顺序使用 h1→h6,不跳过层级color-not-only - 不要仅通过颜色传达信息(添加图标/文本)touch-target-size - 最小 44×44pt(Apple)/ 48×48dp(Material);如果需要,可扩展点击区域超出视觉边界touch-spacing - 触摸目标之间的最小间距为 8px/8dp(Apple HIG, MD)hover-vs-tap - 主要交互使用点击/轻触;不要仅依赖悬停loading-buttons - 异步操作期间禁用按钮;显示加载指示器或进度条error-feedback - 在问题附近显示清晰的错误信息cursor-pointer - 为可点击元素添加 cursor-pointer(Web)gesture-conflicts - 避免在主内容区域使用水平滑动手势;优先使用垂直滚动tap-delay - 使用 touch-action: manipulation 减少 300ms 延迟(Web)standard-gestures - 一致地使用平台标准手势;不要重新定义(例如,滑动返回、捏合缩放)(Apple HIG)image-optimization - 使用 WebP/AVIF、响应式图片(srcset/sizes)、懒加载非关键资源image-dimension - 声明宽度/高度或使用 aspect-ratio 防止布局偏移(核心网页指标:CLS)font-loading - 使用 font-display: swap/optional 避免不可见文本(FOIT);预留空间以减少布局偏移(MD)font-preload - 仅预加载关键字体;避免对每种变体过度使用预加载critical-css - 优先处理首屏 CSS(内联关键 CSS 或早期加载的样式表)lazy-loading - 通过动态导入/路由级拆分懒加载非核心组件bundle-splitting - 按路由/功能拆分代码(React Suspense / Next.js dynamic)以减少初始加载时间和 TTIthird-party-scripts - 异步/延迟加载第三方脚本;审计并移除不必要的脚本(MD)reduce-reflows - 避免频繁的布局读取/写入;批量执行 DOM 读取然后写入style-match - 样式匹配产品类型(使用 --design-system 获取推荐)consistency - 在所有页面使用相同的样式no-emoji-icons - 使用 SVG 图标(Heroicons, Lucide),而非表情符号color-palette-from-product - 根据产品/行业选择调色板(搜索 --domain color)effects-match-style - 阴影、模糊、圆角与所选样式对齐(玻璃态 / 扁平 / 黏土等)platform-adaptive - 尊重平台习惯用法(iOS HIG vs Material):导航、控件、字体、动效state-clarity - 使悬停/按下/禁用状态在视觉上可区分,同时保持样式一致(Material 状态层)elevation-consistent - 对卡片、底部动作条、模态框使用一致的层级/阴影比例;避免随机的阴影值viewport-meta - width=device-width initial-scale=1(永不禁用缩放)mobile-first - 移动优先设计,然后扩展到平板和桌面breakpoint-consistency - 使用系统化的断点(例如 375 / 768 / 1024 / 1440)readable-font-size - 移动端正文文本最小 16px(避免 iOS 自动缩放)line-length-control - 移动端每行 35–60 字符;桌面端 60–75 字符horizontal-scroll - 移动端无水平滚动;确保内容适应视口宽度spacing-scale - 使用 4pt/8dp 增量间距系统(Material Design)touch-density - 保持组件间距适合触摸:不拥挤,不导致误触container-width - 桌面端一致的最大宽度(max-w-6xl / 7xl)line-height - 正文文本使用 1.5-1.75 行高line-length - 限制每行 65-75 个字符font-pairing - 匹配标题/正文字体个性font-scale - 一致的字体比例(例如 12 14 16 18 24 32)contrast-readability - 浅色背景上使用深色文本(例如白色背景上的 slate-900)text-styles-system - 使用平台字体系统:iOS 11 Dynamic Type 样式 / Material 5 字体角色(display, headline, title, body, label)(HIG, MD)weight-hierarchy - 使用字重来强化层级:粗体标题(600–700)、常规正文(400)、中等标签(500)(MD)color-semantic - 定义语义化颜色标记(primary, secondary, error, surface, on-surface),而非在组件中使用原始十六进制值(Material 颜色系统)color-dark-mode - 深色模式使用去饱和/更浅的色调变体,而非反转颜色;单独测试对比度(HIG, MD)duration-timing - 微交互使用 150–300ms;复杂过渡 ≤400ms;避免 >500ms(MD)transform-performance - 仅使用 transform/opacity;避免动画化 width/height/top/leftloading-states - 当加载超过 300ms 时显示骨架屏或进度指示器excessive-motion - 每个视图最多动画化 1-2 个关键元素easing - 进入使用 ease-out,退出使用 ease-in;UI 过渡避免线性motion-meaning - 每个动画必须表达因果关系,而非仅是装饰性的(Apple HIG)state-transition - 状态变化(悬停 / 激活 / 展开 / 折叠 / 模态框)应平滑动画,而非突然切换continuity - 页面/屏幕过渡应保持空间连续性(共享元素、方向性滑动)(Apple HIG)parallax-subtle - 谨慎使用视差效果;必须尊重减少动效设置且不导致方向迷失(Apple HIG)input-labels - 每个输入框都有可见标签(非仅占位符)error-placement - 在相关字段下方显示错误submit-feedback - 提交时显示加载状态,然后是成功/错误状态required-indicators - 标记必填字段(例如星号)empty-states - 无内容时提供有帮助的消息和操作toast-dismiss - 3-5 秒后自动关闭提示消息confirmation-dialogs - 破坏性操作前进行确认input-helper-text - 为复杂输入提供持久的辅助文本,而非仅占位符(Material Design)disabled-states - 禁用元素使用降低的透明度(0.38–0.5)+ 光标变化 + 语义属性(MD)bottom-nav-limit - 底部导航最多 5 项;使用带标签的图标(Material Design)drawer-usage - 使用抽屉/侧边栏进行次要导航,而非主要操作(Material Design)back-behavior - 返回导航必须可预测且一致;保留滚动/状态(Apple HIG, MD)deep-linking - 所有关键屏幕必须可通过深度链接/URL 访问,以便分享和通知(Apple HIG, MD)tab-bar-ios - iOS:使用底部 Tab Bar 进行顶级导航(Apple HIG)top-app-bar-android - Android:使用带有导航图标的 Top App Bar 作为主要结构(Material Design)nav-label-icon - 导航项必须同时包含图标和文本标签;仅图标导航会损害可发现性(MD)nav-state-active - 当前位置必须在导航中视觉上高亮显示(颜色、字重、指示器)(HIG, MD)nav-hierarchy - 主要导航(标签页/底部栏)与次要导航(抽屉/设置)必须清晰区分(MD)chart-type - 图表类型匹配数据类型(趋势 → 折线图,比较 → 柱状图,比例 → 饼图/环形图)color-guidance - 使用可访问的调色板;避免仅使用红/绿对,以照顾色盲用户(WCAG, MD)data-table - 为可访问性提供表格替代方案;仅图表对屏幕阅读器不友好(WCAG)pattern-texture - 用图案、纹理或形状补充颜色,以便无需颜色也能区分数据(WCAG, MD)legend-visible - 始终显示图例;位置靠近图表,而非脱离在滚动折叠下方(MD)tooltip-on-interact - 在悬停(Web)或轻触(移动端)时提供工具提示/数据标签,显示精确值(HIG, MD)axis-labels - 用单位和可读刻度标注坐标轴;避免移动端上截断或旋转的标签responsive-chart - 图表必须在小屏幕上重排或简化(例如,水平柱状图代替垂直柱状图,更少的刻度)empty-data-state - 无数据时显示有意义的空状态(“尚无数据”+ 指导),而非空白图表(MD)使用下面的 CLI 工具搜索特定领域。
检查是否安装了 Python:
python3 --version || python --version
如果未安装 Python,根据用户的操作系统进行安装:
macOS:
brew install python3
Ubuntu/Debian:
sudo apt update && sudo apt install python3
Windows:
winget install Python.Python.3.12
当用户请求以下任何内容时使用此技能:
| 场景 | 触发示例 | 从何处开始 |
|---|---|---|
| 新项目 / 页面 | “构建一个落地页”、“构建一个仪表板” | 步骤 1 → 步骤 2(设计系统) |
| 新组件 | “创建一个定价卡片”、“添加一个模态框” | 步骤 3(领域搜索:style, ux) |
| 选择样式 / 颜色 / 字体 | “什么样式适合金融科技应用?”、“推荐一个调色板” | 步骤 2(设计系统) |
| 审查现有 UI | “审查此页面的用户体验问题”、“检查可访问性” | 上面的快速参考清单 |
| 修复 UI 错误 | “按钮悬停效果坏了”、“加载时布局偏移” | 快速参考 → 相关部分 |
| 改进 / 优化 | “让它更快”、“改善移动端体验” | 步骤 3(领域搜索:ux, react) |
| 实现深色模式 | “添加深色模式支持” | 步骤 3(领域:style "dark mode") |
| 添加图表 / 数据可视化 | “添加一个分析仪表板图表” |
遵循此工作流程:
从用户请求中提取关键信息:
始终以--design-system开始,以获取包含推理的全面推荐:
python3 skills/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
此命令:
ui-reasoning.csv 中的推理规则来选择最佳匹配示例:
python3 skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
要跨会话分层检索保存设计系统,请添加 --persist:
python3 skills/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
这将创建:
design-system/MASTER.md — 包含所有设计规则的全局单一事实来源design-system/pages/ — 用于页面特定覆盖的文件夹使用页面特定覆盖:
python3 skills/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
这还会创建:
design-system/pages/dashboard.md — 页面特定的主文件规则偏差分层检索如何工作:
design-system/pages/checkout.mddesign-system/MASTER.md上下文感知检索提示:
我正在构建 [页面名称] 页面。请阅读 design-system/MASTER.md。
同时检查 design-system/pages/[页面名称].md 是否存在。
如果页面文件存在,优先使用其规则。
如果不存在,则仅使用主文件规则。
现在,生成代码...
获取设计系统后,使用领域搜索获取更多细节:
python3 skills/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
何时使用详细搜索:
| 需求 | 领域 | 示例 |
|---|---|---|
| 产品类型模式 | product | --domain product "entertainment social" |
| 更多样式选项 | style | --domain style "glassmorphism dark" |
| 调色板 | color | --domain color "entertainment vibrant" |
| 字体配对 |
获取 React Native 特定实现的最佳实践:
python3 skills/ui-ux-pro-max/scripts/search
Comprehensive design guide for web and mobile applications. Contains 50+ styles, 161 color palettes, 57 font pairings, 161 product types with reasoning rules, 99 UX guidelines, and 25 chart types across 10 technology stacks. Searchable database with priority-based recommendations.
This Skill should be used when the task involves UI structure, visual design decisions, interaction patterns, or user experience quality control.
This Skill must be invoked in the following situations:
This Skill is recommended in the following situations:
This Skill is not needed in the following situations:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 样式选择 |
| 高 |
style, product |
| 匹配产品类型、一致性、SVG 图标(非表情符号) |
| 随意混合扁平与拟物风格、表情符号作为图标 |
| 5 | 布局与响应式 | 高 | ux | 移动优先断点、视口元标签、无水平滚动 | 水平滚动、固定像素容器宽度、禁用缩放 |
| 6 | 字体与颜色 | 中 | typography, color | 基准 16px、行高 1.5、语义化颜色标记 | 正文文本 < 12px、灰上灰、组件中使用原始十六进制值 |
| 7 | 动画 | 中 | ux | 时长 150–300ms、动效传达含义、空间连续性 | 仅装饰性动画、动画化宽度/高度、无减少动效支持 |
| 8 | 表单与反馈 | 中 | ux | 可见标签、错误信息靠近字段、辅助文本、渐进式披露 | 仅占位符标签、错误仅显示在顶部、前期信息过载 |
| 9 | 导航模式 | 高 | ux | 可预测的返回、底部导航 ≤5 项、深度链接 | 导航过载、返回行为异常、无深度链接 |
| 10 | 图表与数据 | 低 | chart | 图例、工具提示、可访问颜色 | 仅依靠颜色传达含义 |
dynamic-typereduced-motion - 尊重 prefers-reduced-motion;当请求时减少/禁用动画(Apple Reduced Motion API, MD)voiceover-sr - 提供有意义的 accessibilityLabel/accessibilityHint;为 VoiceOver/屏幕阅读器提供逻辑阅读顺序(Apple HIG, MD)escape-routes - 在模态框和多步骤流程中提供取消/返回选项(Apple HIG)keyboard-shortcuts - 保留系统和可访问性快捷键;为拖放操作提供键盘替代方案(Apple HIG)system-gestures - 不要阻止系统手势(控制中心、返回滑动等)(Apple HIG)press-feedback - 按压时提供视觉反馈(涟漪/高亮;MD 状态层)haptic-feedback - 对确认和重要操作使用触觉反馈;避免过度使用(Apple HIG)gesture-alternative - 不要依赖仅手势交互;始终为关键操作提供可见控件safe-area-awareness - 将主要触摸目标远离刘海屏、灵动岛、手势条和屏幕边缘no-precision-required - 避免要求在小图标或细边缘上进行像素级精确点击swipe-clarity - 滑动手势必须显示清晰的启示或提示(箭头、标签、教程)drag-threshold - 在开始拖拽前使用移动阈值,避免意外拖拽content-jumping - 为异步内容预留空间以避免布局跳动(核心网页指标:CLS)lazy-load-below-fold - 对首屏以下图片和重型媒体使用 loading="lazy"virtualize-lists - 对 50+ 项的列表进行虚拟化,以提高内存效率和滚动性能main-thread-budget - 保持每帧工作约在 16ms 以内以实现 60fps;将繁重任务移出主线程(HIG, MD)progressive-loading - 对于 >1s 的操作,使用骨架屏/微光效果代替长时间阻塞的加载指示器(Apple HIG)input-latency - 保持点击/滚动的输入延迟在约 100ms 以内(Material 响应性标准)tap-feedback-speed - 在点击后 100ms 内提供视觉反馈(Apple HIG)debounce-throttle - 对高频事件(滚动、调整大小、输入)使用防抖/节流offline-support - 提供离线状态消息和基本回退(PWA / 移动端)network-fallback - 为慢速网络提供降级模式(低分辨率图片、更少动画)dark-mode-pairing - 同时设计浅色/深色变体,以保持品牌、对比度和样式一致icon-style-consistent - 在整个产品中使用一套图标集/视觉语言(描边宽度、圆角半径)system-controls - 优先使用原生/系统控件而非完全自定义控件;仅在品牌要求时进行定制(Apple HIG)blur-purpose - 使用模糊来表示背景被忽略(模态框、底部动作条),而非作为装饰(Apple HIG)primary-action - 每个屏幕应只有一个主要 CTA;次要操作在视觉上处于从属地位(Apple HIG)z-index-management - 定义分层的 z-index 比例(例如 0 / 10 / 20 / 40 / 100 / 1000)fixed-element-offset - 固定导航栏/底部栏必须为底层内容预留安全内边距scroll-behavior - 避免嵌套滚动区域干扰主滚动体验viewport-units - 在移动端优先使用 min-h-dvh 而非 100vhorientation-support - 在横屏模式下保持布局可读和可操作content-priority - 在移动端首先显示核心内容;折叠或隐藏次要内容visual-hierarchy - 通过大小、间距、对比度建立层级——而非仅靠颜色color-accessible-pairs - 前景/背景颜色对必须满足 4.5:1(AA)或 7:1(AAA)对比度;使用工具验证(WCAG, MD)color-not-decorative-only - 功能性颜色(错误红、成功绿)必须包含图标/文本;避免仅靠颜色传达含义(HIG, MD)truncation-strategy - 优先换行而非截断;截断时使用省略号并通过工具提示/展开提供完整文本(Apple HIG)letter-spacing - 尊重每个平台的默认字间距;避免正文文本使用过紧的字距(HIG, MD)number-tabular - 对数据列、价格和计时器使用等宽/表格数字,防止布局偏移whitespace-balance - 有意识地使用留白来分组相关项和分隔区域;避免视觉混乱(Apple HIG)spring-physics - 优先使用弹簧/物理曲线而非线性或三次贝塞尔曲线,以获得自然感觉(Apple HIG 流畅动画)exit-faster-than-enter - 退出动画比进入动画更短(约进入时长的 60–70%)以感觉响应迅速(MD 动效)stagger-sequence - 列表/网格项进入时错开 30–50ms 每项;避免同时全部出现或过慢显示(MD)shared-element-transition - 在屏幕之间使用共享元素/英雄过渡以实现视觉连续性(MD, HIG)interruptible - 动画必须可中断;用户点击/手势应立即取消进行中的动画(Apple HIG)no-blocking-animation - 动画期间永不阻塞用户输入;UI 必须保持可交互(Apple HIG)fade-crossfade - 在同一容器内替换内容时使用交叉淡入淡出(MD)scale-feedback - 对可点击卡片/按钮的按压提供轻微缩放(0.95–1.05);释放时恢复(HIG, MD)gesture-feedback - 拖拽、滑动和捏合必须提供实时视觉反馈,跟随手指移动(MD Motion)hierarchy-motion - 使用平移/缩放方向来表达层级:从下方进入 = 更深层,向上退出 = 返回(MD)motion-consistency - 全局统一时长/缓动标记;所有动画共享相同的节奏和感觉opacity-threshold - 淡出元素不应在透明度低于 0.2 时停留;要么完全淡出,要么保持可见modal-motion - 模态框/底部动作条应从其触发源动画(缩放+淡入或滑入)以获得空间上下文(HIG, MD)navigation-direction - 向前导航动画向左/上;向后动画向右/下——保持方向逻辑一致(HIG)layout-shift-avoid - 动画不得导致布局重排或 CLS;使用 transform 进行位置变化progressive-disclosureinline-validation - 在失焦时验证(非按键时);仅在用户完成输入后显示错误(MD)input-type-keyboard - 使用语义化输入类型(email, tel, number)以触发正确的移动端键盘(HIG, MD)password-toggle - 为密码字段提供显示/隐藏切换(MD)autofill-support - 使用 autocomplete / textContentType 属性以便系统自动填充(HIG, MD)undo-support - 允许撤销破坏性或批量操作(例如“撤销删除”提示)(Apple HIG)success-feedback - 通过简短的视觉反馈确认已完成的操作(对勾、提示、颜色闪烁)(MD)error-recovery - 错误信息必须包含清晰的恢复路径(重试、编辑、帮助链接)(HIG, MD)multi-step-progress - 多步骤流程显示步骤指示器或进度条;允许返回导航(MD)form-autosave - 长表单应自动保存草稿,以防止意外关闭时数据丢失(Apple HIG)sheet-dismiss-confirm - 在关闭包含未保存更改的底部动作条/模态框前进行确认(Apple HIG)error-clarity - 错误信息必须说明原因 + 如何修复(不仅仅是“输入无效”)(HIG, MD)field-grouping - 逻辑上分组相关字段(fieldset/legend 或视觉分组)(MD)read-only-distinction - 只读状态在视觉和语义上应与禁用状态不同(MD)focus-management - 提交错误后,自动聚焦到第一个无效字段(WCAG, MD)error-summary - 对于多个错误,在顶部显示摘要,并带有指向每个字段的锚链接(WCAG)touch-friendly-input - 移动端输入高度 ≥44px 以满足触摸目标要求(Apple HIG)destructive-emphasis - 破坏性操作使用语义危险颜色(红色)并在视觉上与主要操作分开(HIG, MD)toast-accessibility - 提示消息不得窃取焦点;使用 aria-live="polite" 供屏幕阅读器播报(WCAG)aria-live-errors - 表单错误使用 aria-live 区域或 role="alert" 来通知屏幕阅读器(WCAG)contrast-feedback - 错误和成功状态颜色必须满足 4.5:1 对比度(WCAG, MD)timeout-feedback - 请求超时必须显示清晰的反馈并提供重试选项(MD)modal-escape - 模态框和底部动作条必须提供清晰的关闭/取消启示;移动端支持下滑关闭(Apple HIG)search-accessible - 搜索必须易于访问(顶部栏或标签页);提供最近/建议查询(MD)breadcrumb-web - Web:对 3+ 层级深的层次结构使用面包屑导航以辅助定位(MD)state-preservation - 返回导航必须恢复之前的滚动位置、筛选状态和输入内容(HIG, MD)gesture-nav-support - 支持系统手势导航(iOS 滑动返回、Android 预测性返回)且无冲突(HIG, MD)tab-badge - 谨慎使用导航项上的徽章来指示未读/待处理状态;用户访问后清除(HIG, MD)overflow-menu - 当操作超出可用空间时,使用溢出/更多菜单而非挤在一起(MD)bottom-nav-top-level - 底部导航仅用于顶级屏幕;切勿在其中嵌套子导航(MD)adaptive-navigation - 大屏幕(≥1024px)优先使用侧边栏;小屏幕使用底部/顶部导航(Material Adaptive)back-stack-integrity - 切勿静默重置导航栈或意外跳转到首页(HIG, MD)navigation-consistency - 导航位置必须在所有页面保持一致;不要因页面类型而改变avoid-mixed-patterns - 不要在同一层级混合标签页 + 侧边栏 + 底部导航modal-vs-navigation - 模态框不得用于主要导航流程;它们会打断用户的路径(HIG)focus-on-route-change - 页面切换后,将焦点移动到主要内容区域,供屏幕阅读器用户使用(WCAG)persistent-nav - 核心导航必须可从深层页面访问;不要在子流程中完全隐藏它(HIG, MD)destructive-nav-separation - 危险操作(删除账户、退出登录)必须在视觉和空间上与普通导航项分开(HIG, MD)empty-nav-state - 当导航目的地不可用时,解释原因而非静默隐藏(MD)loading-chart - 图表数据加载时使用骨架屏或微光占位符;不要显示空的坐标轴框架animation-optional - 图表进入动画必须尊重 prefers-reduced-motion;数据应立即可读(HIG)large-dataset - 对于 1000+ 数据点,进行聚合或采样;提供下钻查看详情而非渲染所有点(MD)number-formatting - 在坐标轴和标签上使用符合区域设置的数字、日期、货币格式化(HIG, MD)touch-target-chart - 交互式图表元素(点、段)必须具有 ≥44pt 的点击区域或在触摸时扩展(Apple HIG)no-pie-overuse - 避免对 >5 个类别使用饼图/环形图;为清晰起见切换到柱状图contrast-data - 数据线/柱与背景对比度 ≥3:1;数据文本标签对比度 ≥4.5:1(WCAG)legend-interactive - 图例应可点击以切换系列可见性(MD)direct-labeling - 对于小数据集,直接在图表上标注数值以减少视线移动tooltip-keyboard - 工具提示内容必须可通过键盘访问,且不依赖仅悬停(WCAG)sortable-table - 数据表必须支持排序,并使用 aria-sort 指示当前排序状态(WCAG)axis-readability - 坐标轴刻度不得拥挤;保持可读间距,小屏幕上自动跳过data-density - 限制每个图表的信息密度以避免认知过载;如果需要,拆分为多个图表trend-emphasis - 强调数据趋势而非装饰;避免遮挡数据的重度渐变/阴影gridline-subtle - 网格线应低对比度(例如 gray-200),以免与数据竞争focusable-elements - 交互式图表元素(点、柱、扇区)必须可通过键盘导航(WCAG)screen-reader-summary - 为屏幕阅读器提供描述图表关键洞察的文本摘要或 aria-label(WCAG)error-state-chart - 数据加载失败必须显示带有重试操作的错误信息,而非损坏/空图表export-option - 对于数据密集型产品,提供图表数据的 CSV/图片导出选项drill-down-consistency - 下钻交互必须保持清晰的后退路径和层级面包屑time-scale-clarity - 时间序列图表必须清晰标注时间粒度(日/周/月)并允许切换| 步骤 3(领域:chart) |
| 技术栈最佳实践 | “React 性能技巧”、“SwiftUI 导航” | 步骤 4(技术栈搜索) |
typography--domain typography "playful modern" |
| 图表推荐 | chart | --domain chart "real-time dashboard" |
| 用户体验最佳实践 | ux | --domain ux "animation accessibility" |
| 替代字体 | typography | --domain typography "elegant luxury" |
| 单个 Google Fonts | google-fonts | --domain google-fonts "sans serif popular variable" |
| 落地页结构 | landing | --domain landing "hero social-proof" |
| React Native 性能 | react | --domain react "rerender memo list" |
| 应用界面可访问性 | web | --domain web "accessibilityLabel touch safe-areas" |
| AI 提示 / CSS 关键词 | prompt | --domain prompt "minimalism" |
Decision criteria : If the task will change how a feature looks, feels, moves, or is interacted with , this Skill should be used.
For human/AI reference: follow priority 1→10 to decide which rule category to focus on first; use--domain <Domain> to query details when needed. Scripts do not read this table.
| Priority | Category | Impact | Domain | Key Checks (Must Have) | Anti-Patterns (Avoid) |
|---|---|---|---|---|---|
| 1 | Accessibility | CRITICAL | ux | Contrast 4.5:1, Alt text, Keyboard nav, Aria-labels | Removing focus rings, Icon-only buttons without labels |
| 2 | Touch & Interaction | CRITICAL | ux | Min size 44×44px, 8px+ spacing, Loading feedback | Reliance on hover only, Instant state changes (0ms) |
| 3 | Performance | HIGH | ux | WebP/AVIF, Lazy loading, Reserve space (CLS < 0.1) | Layout thrashing, Cumulative Layout Shift |
| 4 | Style Selection | HIGH | style, product | Match product type, Consistency, SVG icons (no emoji) | Mixing flat & skeuomorphic randomly, Emoji as icons |
| 5 | Layout & Responsive | HIGH | ux | Mobile-first breakpoints, Viewport meta, No horizontal scroll | Horizontal scroll, Fixed px container widths, Disable zoom |
| 6 | Typography & Color | MEDIUM | typography, color | Base 16px, Line-height 1.5, Semantic color tokens | Text < 12px body, Gray-on-gray, Raw hex in components |
| 7 | Animation | MEDIUM | ux | Duration 150–300ms, Motion conveys meaning, Spatial continuity | Decorative-only animation, Animating width/height, No reduced-motion |
| 8 | Forms & Feedback | MEDIUM | ux | Visible labels, Error near field, Helper text, Progressive disclosure | Placeholder-only label, Errors only at top, Overwhelm upfront |
| 9 | Navigation Patterns | HIGH | ux | Predictable back, Bottom nav ≤5, Deep linking | Overloaded nav, Broken back behavior, No deep links |
| 10 | Charts & Data | LOW | chart | Legends, Tooltips, Accessible colors | Relying on color alone to convey meaning |
color-contrast - Minimum 4.5:1 ratio for normal text (large text 3:1); Material Designfocus-states - Visible focus rings on interactive elements (2–4px; Apple HIG, MD)alt-text - Descriptive alt text for meaningful imagesaria-labels - aria-label for icon-only buttons; accessibilityLabel in native (Apple HIG)keyboard-nav - Tab order matches visual order; full keyboard support (Apple HIG)form-labels - Use label with for attributeskip-links - Skip to main content for keyboard usersheading-hierarchy - Sequential h1→h6, no level skipcolor-not-only - Don't convey info by color alone (add icon/text)dynamic-type - Support system text scaling; avoid truncation as text grows (Apple Dynamic Type, MD)reduced-motion - Respect prefers-reduced-motion; reduce/disable animations when requested (Apple Reduced Motion API, MD)voiceover-sr - Meaningful accessibilityLabel/accessibilityHint; logical reading order for VoiceOver/screen readers (Apple HIG, MD)escape-routes - Provide cancel/back in modals and multi-step flows (Apple HIG)keyboard-shortcuts - Preserve system and a11y shortcuts; offer keyboard alternatives for drag-and-drop (Apple HIG)touch-target-size - Min 44×44pt (Apple) / 48×48dp (Material); extend hit area beyond visual bounds if neededtouch-spacing - Minimum 8px/8dp gap between touch targets (Apple HIG, MD)hover-vs-tap - Use click/tap for primary interactions; don't rely on hover aloneloading-buttons - Disable button during async operations; show spinner or progresserror-feedback - Clear error messages near problemcursor-pointer - Add cursor-pointer to clickable elements (Web)gesture-conflicts - Avoid horizontal swipe on main content; prefer vertical scrolltap-delay - Use touch-action: manipulation to reduce 300ms delay (Web)standard-gestures - Use platform standard gestures consistently; don't redefine (e.g. swipe-back, pinch-zoom) (Apple HIG)system-gestures - Don't block system gestures (Control Center, back swipe, etc.) (Apple HIG)press-feedback - Visual feedback on press (ripple/highlight; MD state layers)haptic-feedback - Use haptic for confirmations and important actions; avoid overuse (Apple HIG)gesture-alternative - Don't rely on gesture-only interactions; always provide visible controls for critical actionssafe-area-awareness - Keep primary touch targets away from notch, Dynamic Island, gesture bar and screen edgesno-precision-required - Avoid requiring pixel-perfect taps on small icons or thin edgesswipe-clarity - Swipe actions must show clear affordance or hint (chevron, label, tutorial)drag-threshold - Use a movement threshold before starting drag to avoid accidental dragsimage-optimization - Use WebP/AVIF, responsive images (srcset/sizes), lazy load non-critical assetsimage-dimension - Declare width/height or use aspect-ratio to prevent layout shift (Core Web Vitals: CLS)font-loading - Use font-display: swap/optional to avoid invisible text (FOIT); reserve space to reduce layout shift (MD)font-preload - Preload only critical fonts; avoid overusing preload on every variantcritical-css - Prioritize above-the-fold CSS (inline critical CSS or early-loaded stylesheet)lazy-loading - Lazy load non-hero components via dynamic import / route-level splittingbundle-splitting - Split code by route/feature (React Suspense / Next.js dynamic) to reduce initial load and TTIthird-party-scripts - Load third-party scripts async/defer; audit and remove unnecessary ones (MD)reduce-reflows - Avoid frequent layout reads/writes; batch DOM reads then writescontent-jumping - Reserve space for async content to avoid layout jumps (Core Web Vitals: CLS)lazy-load-below-fold - Use loading="lazy" for below-the-fold images and heavy mediavirtualize-lists - Virtualize lists with 50+ items to improve memory efficiency and scroll performancemain-thread-budget - Keep per-frame work under ~16ms for 60fps; move heavy tasks off main thread (HIG, MD)progressive-loading - Use skeleton screens / shimmer instead of long blocking spinners for >1s operations (Apple HIG)input-latency - Keep input latency under ~100ms for taps/scrolls (Material responsiveness standard)tap-feedback-speed - Provide visual feedback within 100ms of tap (Apple HIG)debounce-throttle - Use debounce/throttle for high-frequency events (scroll, resize, input)offline-support - Provide offline state messaging and basic fallback (PWA / mobile)network-fallback - Offer degraded modes for slow networks (lower-res images, fewer animations)style-match - Match style to product type (use --design-system for recommendations)consistency - Use same style across all pagesno-emoji-icons - Use SVG icons (Heroicons, Lucide), not emojiscolor-palette-from-product - Choose palette from product/industry (search --domain color)effects-match-style - Shadows, blur, radius aligned with chosen style (glass / flat / clay etc.)platform-adaptive - Respect platform idioms (iOS HIG vs Material): navigation, controls, typography, motionstate-clarity - Make hover/pressed/disabled states visually distinct while staying on-style (Material state layers)elevation-consistent - Use a consistent elevation/shadow scale for cards, sheets, modals; avoid random shadow valuesdark-mode-pairing - Design light/dark variants together to keep brand, contrast, and style consistenticon-style-consistent - Use one icon set/visual language (stroke width, corner radius) across the productsystem-controls - Prefer native/system controls over fully custom ones; only customize when branding requires it (Apple HIG)blur-purpose - Use blur to indicate background dismissal (modals, sheets), not as decoration (Apple HIG)primary-action - Each screen should have only one primary CTA; secondary actions visually subordinate (Apple HIG)viewport-meta - width=device-width initial-scale=1 (never disable zoom)mobile-first - Design mobile-first, then scale up to tablet and desktopbreakpoint-consistency - Use systematic breakpoints (e.g. 375 / 768 / 1024 / 1440)readable-font-size - Minimum 16px body text on mobile (avoids iOS auto-zoom)line-length-control - Mobile 35–60 chars per line; desktop 60–75 charshorizontal-scroll - No horizontal scroll on mobile; ensure content fits viewport widthspacing-scale - Use 4pt/8dp incremental spacing system (Material Design)touch-density - Keep component spacing comfortable for touch: not cramped, not causing mis-tapscontainer-width - Consistent max-width on desktop (max-w-6xl / 7xl)z-index-management - Define layered z-index scale (e.g. 0 / 10 / 20 / 40 / 100 / 1000)fixed-element-offset - Fixed navbar/bottom bar must reserve safe padding for underlying contentscroll-behavior - Avoid nested scroll regions that interfere with the main scroll experienceviewport-units - Prefer min-h-dvh over 100vh on mobileorientation-support - Keep layout readable and operable in landscape modecontent-priority - Show core content first on mobile; fold or hide secondary contentvisual-hierarchy - Establish hierarchy via size, spacing, contrast — not color aloneline-height - Use 1.5-1.75 for body textline-length - Limit to 65-75 characters per linefont-pairing - Match heading/body font personalitiesfont-scale - Consistent type scale (e.g. 12 14 16 18 24 32)contrast-readability - Darker text on light backgrounds (e.g. slate-900 on white)text-styles-system - Use platform type system: iOS 11 Dynamic Type styles / Material 5 type roles (display, headline, title, body, label) (HIG, MD)weight-hierarchy - Use font-weight to reinforce hierarchy: Bold headings (600–700), Regular body (400), Medium labels (500) (MD)color-semantic - Define semantic color tokens (primary, secondary, error, surface, on-surface) not raw hex in components (Material color system)color-dark-mode - Dark mode uses desaturated / lighter tonal variants, not inverted colors; test contrast separately (HIG, MD)color-accessible-pairs - Foreground/background pairs must meet 4.5:1 (AA) or 7:1 (AAA); use tools to verify (WCAG, MD)color-not-decorative-only - Functional color (error red, success green) must include icon/text; avoid color-only meaning (HIG, MD)truncation-strategy - Prefer wrapping over truncation; when truncating use ellipsis and provide full text via tooltip/expand (Apple HIG)letter-spacing - Respect default letter-spacing per platform; avoid tight tracking on body text (HIG, MD)number-tabular - Use tabular/monospaced figures for data columns, prices, and timers to prevent layout shiftwhitespace-balance - Use whitespace intentionally to group related items and separate sections; avoid visual clutter (Apple HIG)duration-timing - Use 150–300ms for micro-interactions; complex transitions ≤400ms; avoid >500ms (MD)transform-performance - Use transform/opacity only; avoid animating width/height/top/leftloading-states - Show skeleton or progress indicator when loading exceeds 300msexcessive-motion - Animate 1-2 key elements per view maxeasing - Use ease-out for entering, ease-in for exiting; avoid linear for UI transitionsmotion-meaning - Every animation must express a cause-effect relationship, not just be decorative (Apple HIG)state-transition - State changes (hover / active / expanded / collapsed / modal) should animate smoothly, not snapcontinuity - Page/screen transitions should maintain spatial continuity (shared element, directional slide) (Apple HIG)parallax-subtle - Use parallax sparingly; must respect reduced-motion and not cause disorientation (Apple HIG)spring-physics - Prefer spring/physics-based curves over linear or cubic-bezier for natural feel (Apple HIG fluid animations)exit-faster-than-enter - Exit animations shorter than enter (~60–70% of enter duration) to feel responsive (MD motion)stagger-sequence - Stagger list/grid item entrance by 30–50ms per item; avoid all-at-once or too-slow reveals (MD)shared-element-transition - Use shared element / hero transitions for visual continuity between screens (MD, HIG)interruptible - Animations must be interruptible; user tap/gesture cancels in-progress animation immediately (Apple HIG)no-blocking-animation - Never block user input during an animation; UI must stay interactive (Apple HIG)fade-crossfade - Use crossfade for content replacement within the same container (MD)scale-feedback - Subtle scale (0.95–1.05) on press for tappable cards/buttons; restore on release (HIG, MD)gesture-feedback - Drag, swipe, and pinch must provide real-time visual response tracking the finger (MD Motion)hierarchy-motion - Use translate/scale direction to express hierarchy: enter from below = deeper, exit upward = back (MD)motion-consistency - Unify duration/easing tokens globally; all animations share the same rhythm and feelopacity-threshold - Fading elements should not linger below opacity 0.2; either fade fully or remain visiblemodal-motion - Modals/sheets should animate from their trigger source (scale+fade or slide-in) for spatial context (HIG, MD)navigation-direction - Forward navigation animates left/up; backward animates right/down — keep direction logically consistent (HIG)layout-shift-avoid - Animations must not cause layout reflow or CLS; use transform for position changesinput-labels - Visible label per input (not placeholder-only)error-placement - Show error below the related fieldsubmit-feedback - Loading then success/error state on submitrequired-indicators - Mark required fields (e.g. asterisk)empty-states - Helpful message and action when no contenttoast-dismiss - Auto-dismiss toasts in 3-5sconfirmation-dialogs - Confirm before destructive actionsinput-helper-text - Provide persistent helper text below complex inputs, not just placeholder (Material Design)disabled-states - Disabled elements use reduced opacity (0.38–0.5) + cursor change + semantic attribute (MD)progressive-disclosure - Reveal complex options progressively; don't overwhelm users upfront (Apple HIG)inline-validation - Validate on blur (not keystroke); show error only after user finishes input (MD)input-type-keyboard - Use semantic input types (email, tel, number) to trigger the correct mobile keyboard (HIG, MD)password-toggle - Provide show/hide toggle for password fields (MD)autofill-support - Use autocomplete / textContentType attributes so the system can autofill (HIG, MD)undo-support - Allow undo for destructive or bulk actions (e.g. "Undo delete" toast) (Apple HIG)success-feedback - Confirm completed actions with brief visual feedback (checkmark, toast, color flash) (MD)error-recovery - Error messages must include a clear recovery path (retry, edit, help link) (HIG, MD)multi-step-progress - Multi-step flows show step indicator or progress bar; allow back navigation (MD)form-autosave - Long forms should auto-save drafts to prevent data loss on accidental dismissal (Apple HIG)sheet-dismiss-confirm - Confirm before dismissing a sheet/modal with unsaved changes (Apple HIG)error-clarity - Error messages must state cause + how to fix (not just "Invalid input") (HIG, MD)field-grouping - Group related fields logically (fieldset/legend or visual grouping) (MD)read-only-distinction - Read-only state should be visually and semantically different from disabled (MD)focus-management - After submit error, auto-focus the first invalid field (WCAG, MD)error-summary - For multiple errors, show summary at top with anchor links to each field (WCAG)touch-friendly-input - Mobile input height ≥44px to meet touch target requirements (Apple HIG)destructive-emphasis - Destructive actions use semantic danger color (red) and are visually separated from primary actions (HIG, MD)toast-accessibility - Toasts must not steal focus; use aria-live="polite" for screen reader announcement (WCAG)aria-live-errors - Form errors use aria-live region or role="alert" to notify screen readers (WCAG)contrast-feedback - Error and success state colors must meet 4.5:1 contrast ratio (WCAG, MD)timeout-feedback - Request timeout must show clear feedback with retry option (MD)bottom-nav-limit - Bottom navigation max 5 items; use labels with icons (Material Design)drawer-usage - Use drawer/sidebar for secondary navigation, not primary actions (Material Design)back-behavior - Back navigation must be predictable and consistent; preserve scroll/state (Apple HIG, MD)deep-linking - All key screens must be reachable via deep link / URL for sharing and notifications (Apple HIG, MD)tab-bar-ios - iOS: use bottom Tab Bar for top-level navigation (Apple HIG)top-app-bar-android - Android: use Top App Bar with navigation icon for primary structure (Material Design)nav-label-icon - Navigation items must have both icon and text label; icon-only nav harms discoverability (MD)nav-state-active - Current location must be visually highlighted (color, weight, indicator) in navigation (HIG, MD)nav-hierarchy - Primary nav (tabs/bottom bar) vs secondary nav (drawer/settings) must be clearly separated (MD)modal-escape - Modals and sheets must offer a clear close/dismiss affordance; swipe-down to dismiss on mobile (Apple HIG)search-accessible - Search must be easily reachable (top bar or tab); provide recent/suggested queries (MD)breadcrumb-web - Web: use breadcrumbs for 3+ level deep hierarchies to aid orientation (MD)state-preservation - Navigating back must restore previous scroll position, filter state, and input (HIG, MD)gesture-nav-support - Support system gesture navigation (iOS swipe-back, Android predictive back) without conflict (HIG, MD)tab-badge - Use badges on nav items sparingly to indicate unread/pending; clear after user visits (HIG, MD)overflow-menu - When actions exceed available space, use overflow/more menu instead of cramming (MD)bottom-nav-top-level - Bottom nav is for top-level screens only; never nest sub-navigation inside it (MD)adaptive-navigation - Large screens (≥1024px) prefer sidebar; small screens use bottom/top nav (Material Adaptive)back-stack-integrity - Never silently reset the navigation stack or unexpectedly jump to home (HIG, MD)navigation-consistency - Navigation placement must stay the same across all pages; don't change by page typeavoid-mixed-patterns - Don't mix Tab + Sidebar + Bottom Nav at the same hierarchy levelmodal-vs-navigation - Modals must not be used for primary navigation flows; they break the user's path (HIG)focus-on-route-change - After page transition, move focus to main content region for screen reader users (WCAG)persistent-nav - Core navigation must remain reachable from deep pages; don't hide it entirely in sub-flows (HIG, MD)destructive-nav-separation - Dangerous actions (delete account, logout) must be visually and spatially separated from normal nav items (HIG, MD)empty-nav-state - When a nav destination is unavailable, explain why instead of silently hiding it (MD)chart-type - Match chart type to data type (trend → line, comparison → bar, proportion → pie/donut)color-guidance - Use accessible color palettes; avoid red/green only pairs for colorblind users (WCAG, MD)data-table - Provide table alternative for accessibility; charts alone are not screen-reader friendly (WCAG)pattern-texture - Supplement color with patterns, textures, or shapes so data is distinguishable without color (WCAG, MD)legend-visible - Always show legend; position near the chart, not detached below a scroll fold (MD)tooltip-on-interact - Provide tooltips/data labels on hover (Web) or tap (mobile) showing exact values (HIG, MD)axis-labels - Label axes with units and readable scale; avoid truncated or rotated labels on mobileresponsive-chart - Charts must reflow or simplify on small screens (e.g. horizontal bar instead of vertical, fewer ticks)empty-data-state - Show meaningful empty state when no data exists ("No data yet" + guidance), not a blank chart (MD)loading-chart - Use skeleton or shimmer placeholder while chart data loads; don't show an empty axis frameanimation-optional - Chart entrance animations must respect prefers-reduced-motion; data should be readable immediately (HIG)large-dataset - For 1000+ data points, aggregate or sample; provide drill-down for detail instead of rendering all (MD)number-formatting - Use locale-aware formatting for numbers, dates, currencies on axes and labels (HIG, MD)touch-target-chart - Interactive chart elements (points, segments) must have ≥44pt tap area or expand on touch (Apple HIG)no-pie-overuse - Avoid pie/donut for >5 categories; switch to bar chart for claritycontrast-data - Data lines/bars vs background ≥3:1; data text labels ≥4.5:1 (WCAG)legend-interactive - Legends should be clickable to toggle series visibility (MD)direct-labeling - For small datasets, label values directly on the chart to reduce eye traveltooltip-keyboard - Tooltip content must be keyboard-reachable and not rely on hover alone (WCAG)sortable-table - Data tables must support sorting with aria-sort indicating current sort state (WCAG)axis-readability - Axis ticks must not be cramped; maintain readable spacing, auto-skip on small screensdata-density - Limit information density per chart to avoid cognitive overload; split into multiple charts if neededtrend-emphasis - Emphasize data trends over decoration; avoid heavy gradients/shadows that obscure the datagridline-subtle - Grid lines should be low-contrast (e.g. gray-200) so they don't compete with datafocusable-elements - Interactive chart elements (points, bars, slices) must be keyboard-navigable (WCAG)screen-reader-summary - Provide a text summary or aria-label describing the chart's key insight for screen readers (WCAG)error-state-chart - Data load failure must show error message with retry action, not a broken/empty chartexport-option - For data-heavy products, offer CSV/image export of chart datadrill-down-consistency - Drill-down interactions must maintain a clear back-path and hierarchy breadcrumbtime-scale-clarity - Time series charts must clearly label time granularity (day/week/month) and allow switchingSearch specific domains using the CLI tool below.
Check if Python is installed:
python3 --version || python --version
If Python is not installed, install it based on user's OS:
macOS:
brew install python3
Ubuntu/Debian:
sudo apt update && sudo apt install python3
Windows:
winget install Python.Python.3.12
Use this skill when the user requests any of the following:
| Scenario | Trigger Examples | Start From |
|---|---|---|
| New project / page | "Build a landing page", "Build a dashboard" | Step 1 → Step 2 (design system) |
| New component | "Create a pricing card", "Add a modal" | Step 3 (domain search: style, ux) |
| Choose style / color / font | "What style fits a fintech app?", "Recommend a color palette" | Step 2 (design system) |
| Review existing UI | "Review this page for UX issues", "Check accessibility" | Quick Reference checklist above |
| Fix a UI bug | "Button hover is broken", "Layout shifts on load" | Quick Reference → relevant section |
| Improve / optimize | "Make this faster", "Improve mobile experience" | Step 3 (domain search: ux, react) |
| Implement dark mode | "Add dark mode support" | Step 3 (domain: style "dark mode") |
| Add charts / data viz | "Add an analytics dashboard chart" | Step 3 (domain: chart) |
| Stack best practices | "React performance tips"、"SwiftUI navigation" | Step 4 (stack search) |
Follow this workflow:
Extract key information from user request:
Always start with--design-system to get comprehensive recommendations with reasoning:
python3 skills/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
This command:
ui-reasoning.csv to select best matchesExample:
python3 skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
To save the design system for hierarchical retrieval across sessions , add --persist:
python3 skills/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
This creates:
design-system/MASTER.md — Global Source of Truth with all design rulesdesign-system/pages/ — Folder for page-specific overridesWith page-specific override:
python3 skills/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
This also creates:
design-system/pages/dashboard.md — Page-specific deviations from MasterHow hierarchical retrieval works:
design-system/pages/checkout.mddesign-system/MASTER.md exclusivelyContext-aware retrieval prompt:
I am building the [Page Name] page. Please read design-system/MASTER.md.
Also check if design-system/pages/[page-name].md exists.
If the page file exists, prioritize its rules.
If not, use the Master rules exclusively.
Now, generate the code...
After getting the design system, use domain searches to get additional details:
python3 skills/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
When to use detailed searches:
| Need | Domain | Example |
|---|---|---|
| Product type patterns | product | --domain product "entertainment social" |
| More style options | style | --domain style "glassmorphism dark" |
| Color palettes | color | --domain color "entertainment vibrant" |
| Font pairings | typography | --domain typography "playful modern" |
| Chart recommendations | chart | --domain chart "real-time dashboard" |
| UX best practices | ux | --domain ux "animation accessibility" |
| Alternative fonts | typography | --domain typography "elegant luxury" |
| Individual Google Fonts | google-fonts | --domain google-fonts "sans serif popular variable" |
| Landing structure | landing | --domain landing "hero social-proof" |
| React Native perf | react | --domain react "rerender memo list" |
| App interface a11y | web | --domain web "accessibilityLabel touch safe-areas" |
| AI prompt / CSS keywords | prompt | --domain prompt "minimalism" |
Get React Native implementation-specific best practices:
python3 skills/ui-ux-pro-max/scripts/search.py "<keyword>" --stack react-native
| Domain | Use For | Example Keywords |
|---|---|---|
product | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
style | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
typography | Font pairings, Google Fonts | elegant, playful, professional, modern |
color | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
landing | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
chart | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
ux | Best practices, anti-patterns | animation, accessibility, z-index, loading |
google-fonts | Individual Google Fonts lookup | sans serif, monospace, japanese, variable font, popular |
react | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
web | App interface guidelines (iOS/Android/React Native) | accessibilityLabel, touch targets, safe areas, Dynamic Type |
prompt | AI prompts, CSS keywords | (style name) |
| Stack | Focus |
|---|---|
react-native | Components, Navigation, Lists |
User request: "Make an AI search homepage."
python3 skills/ui-ux-pro-max/scripts/search.py "AI search tool modern minimal" --design-system -p "AI Search"
Output: Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
# Get style options for a modern tool product
python3 skills/ui-ux-pro-max/scripts/search.py "minimalism dark mode" --domain style
# Get UX best practices for search interaction and loading
python3 skills/ui-ux-pro-max/scripts/search.py "search loading animation" --domain ux
python3 skills/ui-ux-pro-max/scripts/search.py "list performance navigation" --stack react-native
Then: Synthesize design system + detailed searches and implement the design.
The --design-system flag supports two output formats:
# ASCII box (default) - best for terminal display
python3 skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
# Markdown - best for documentation
python3 skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
"entertainment social vibrant content-dense" not just "app""playful neon" → "vibrant dark" → "content-first minimal"--design-system first for full recommendations, then --domain to deep-dive any dimension you're unsure about--stack react-native for implementation-specific guidance| Problem | What to Do |
|---|---|
| Can't decide on style/color | Re-run --design-system with different keywords |
| Dark mode contrast issues | Quick Reference §6: color-dark-mode + color-accessible-pairs |
| Animations feel unnatural | Quick Reference §7: spring-physics + easing + exit-faster-than-enter |
| Form UX is poor | Quick Reference §8: inline-validation + error-clarity + focus-management |
| Navigation feels confusing | Quick Reference §9: nav-hierarchy + bottom-nav-limit + back-behavior |
| Layout breaks on small screens | Quick Reference §5: mobile-first + breakpoint-consistency |
| Performance / jank | Quick Reference §3: virtualize-lists + main-thread-budget + debounce-throttle |
--domain ux "animation accessibility z-index loading" as a UX validation pass before implementationThese are frequently overlooked issues that make UI look unprofessional: Scope notice: The rules below are for App UI (iOS/Android/React Native/Flutter), not desktop-web interaction patterns.
| Rule | Standard | Avoid | Why It Matters |
|---|---|---|---|
| No Emoji as Structural Icons | Use vector-based icons (e.g., Lucide, react-native-vector-icons, @expo/vector-icons). | Using emojis (🎨 🚀 ⚙️) for navigation, settings, or system controls. | Emojis are font-dependent, inconsistent across platforms, and cannot be controlled via design tokens. |
| Vector-Only Assets | Use SVG or platform vector icons that scale cleanly and support theming. | Raster PNG icons that blur or pixelate. | Ensures scalability, crisp rendering, and dark/light mode adaptability. |
| Stable Interaction States | Use color, opacity, or elevation transitions for press states without changing layout bounds. | Layout-shifting transforms that move surrounding content or trigger visual jitter. | Prevents unstable interactions and preserves smooth motion/perceived quality on mobile. |
| Correct Brand Logos | Use official brand assets and follow their usage guidelines (spacing, color, clear space). | Guessing logo paths, recoloring unofficially, or modifying proportions. | Prevents brand misuse and ensures legal/platform compliance. |
| Consistent Icon Sizing | Define icon sizes as design tokens (e.g., icon-sm, icon-md = 24pt, icon-lg). | Mixing arbitrary values like 20pt / 24pt / 28pt randomly. | Maintains rhythm and visual hierarchy across the interface. |
| Stroke Consistency | Use a consistent stroke width within the same visual layer (e.g., 1.5px or 2px). | Mixing thick and thin stroke styles arbitrarily. | Inconsistent strokes reduce perceived polish and cohesion. |
| Filled vs Outline Discipline | Use one icon style per hierarchy level. | Mixing filled and outline icons at the same hierarchy level. | Maintains semantic clarity and stylistic coherence. |
| Touch Target Minimum | Minimum 44×44pt interactive area (use hitSlop if icon is smaller). | Small icons without expanded tap area. | Meets accessibility and platform usability standards. |
| Icon Alignment | Align icons to text baseline and maintain consistent padding. | Misaligned icons or inconsistent spacing around them. | Prevents subtle visual imbalance that reduces perceived quality. |
| Icon Contrast | Follow WCAG contrast standards: 4.5:1 for small elements, 3:1 minimum for larger UI glyphs. | Low-contrast icons that blend into the background. | Ensures accessibility in both light and dark modes. |
| Rule | Do | Don't |
|---|---|---|
| Tap feedback | Provide clear pressed feedback (ripple/opacity/elevation) within 80-150ms | No visual response on tap |
| Animation timing | Keep micro-interactions around 150-300ms with platform-native easing | Instant transitions or slow animations (>500ms) |
| Accessibility focus | Ensure screen reader focus order matches visual order and labels are descriptive | Unlabeled controls or confusing focus traversal |
| Disabled state clarity | Use disabled semantics (disabled/native disabled props), reduced emphasis, and no tap action | Controls that look tappable but do nothing |
| Touch target minimum | Keep tap areas >=44x44pt (iOS) or >=48x48dp (Android), expand hit area when icon is smaller | Tiny tap targets or icon-only hit areas without padding |
| Gesture conflict prevention | Keep one primary gesture per region and avoid nested tap/drag conflicts | Overlapping gestures causing accidental actions |
| Semantic native controls | Prefer native interactive primitives (Button, Pressable, platform equivalents) with proper accessibility roles | Generic containers used as primary controls without semantics |
| Rule | Do | Don't |
|---|---|---|
| Surface readability (light) | Keep cards/surfaces clearly separated from background with sufficient opacity/elevation | Overly transparent surfaces that blur hierarchy |
| Text contrast (light) | Maintain body text contrast >=4.5:1 against light surfaces | Low-contrast gray body text |
| Text contrast (dark) | Maintain primary text contrast >=4.5:1 and secondary text >=3:1 on dark surfaces | Dark mode text that blends into background |
| Border and divider visibility | Ensure separators are visible in both themes (not just light mode) | Theme-specific borders disappearing in one mode |
| State contrast parity | Keep pressed/focused/disabled states equally distinguishable in light and dark themes | Defining interaction states for one theme only |
| Token-driven theming | Use semantic color tokens mapped per theme across app surfaces/text/icons | Hardcoded per-screen hex values |
| Scrim and modal legibility | Use a modal scrim strong enough to isolate foreground content (typically 40-60% black) | Weak scrim that leaves background visually competing |
| Rule | Do | Don't |
|---|---|---|
| Safe-area compliance | Respect top/bottom safe areas for all fixed headers, tab bars, and CTA bars | Placing fixed UI under notch, status bar, or gesture area |
| System bar clearance | Add spacing for status/navigation bars and gesture home indicator | Let tappable content collide with OS chrome |
| Consistent content width | Keep predictable content width per device class (phone/tablet) | Mixing arbitrary widths between screens |
| 8dp spacing rhythm | Use a consistent 4/8dp spacing system for padding/gaps/section spacing | Random spacing increments with no rhythm |
| Readable text measure | Keep long-form text readable on large devices (avoid edge-to-edge paragraphs on tablets) | Full-width long text that hurts readability |
| Section spacing hierarchy | Define clear vertical rhythm tiers (e.g., 16/24/32/48) by hierarchy | Similar UI levels with inconsistent spacing |
| Adaptive gutters by breakpoint | Increase horizontal insets on larger widths and in landscape | Same narrow gutter on all device sizes/orientations |
| Scroll and fixed element coexistence | Add bottom/top content insets so lists are not hidden behind fixed bars | Scroll content obscured by sticky headers/footers |
Before delivering UI code, verify these items: Scope notice: This checklist is for App UI (iOS/Android/React Native/Flutter).
Weekly Installs
202
Source
First Seen
Mar 6, 2026
Security Audits
Installed on
codex80
claude-code77
cursor65
opencode59
gemini-cli53
github-copilot52
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
113,700 周安装
Flutter自动化测试指南:单元测试、部件测试、集成测试与插件测试全解析
1,000 周安装
Coinbase钱包身份验证教程 - 使用awal CLI进行两步OTP登录
1,000 周安装
Apify Actor 输出模式生成工具 - 自动化创建 dataset_schema.json 与 output_schema.json
1,100 周安装
Shopify 开发指南:构建应用、主题、扩展与 API 集成完整教程
1,100 周安装
网页无障碍性(a11y)最佳实践指南:遵循WCAG标准,提升网站包容性设计
1,200 周安装
Vue JSX 最佳实践指南:与 React JSX 的区别、迁移技巧与性能优化
1,100 周安装