Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问clear审计通过

moai-domain-uiux摩艾域 uiux

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

5,826

周安装

238

GitHub Stars

964

下载量

1,866
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:moai-domain-uiux(摩艾域 uiux)
来源仓库:https://github.com/modu-ai/moai-adk
仓库路径:skills/moai-domain-uiux
安装命令:
npx skills add https://github.com/modu-ai/moai-adk --skill moai-domain-uiux
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/modu-ai/moai-adk --skill moai-domain-uiux

简介

用于辅助前端页面和组件开发,支持 React、Vue 等框架代码生成。

  • 可审查样式、布局和交互逻辑,帮助优化组件结构和性能表现。
  • 使用时需结合项目现有设计系统和路由,避免生成孤立片段。
  • 涉及页面改动时应配合本地预览和构建检查,确认视觉效果正确。
  • 适用于 Codex、Claude、Cursor 和 Gemini CLI,依赖仓库具体实现。

SKILL.md

Quick Reference

Core UI/UX Foundation - Enterprise-grade UI/UX foundation integrating design systems (W3C DTCG 2025.10), component architecture (React 19, Vue 3.5), accessibility (WCAG 2.2), icon libraries (200K+ icons), and theming systems.

Unified Capabilities:

  • Design Systems: W3C DTCG 2025.10 tokens, Style Dictionary 4.0, Pencil MCP workflows
  • Component Architecture: Atomic Design, React 19, Vue 3.5, shadcn/ui, Radix UI primitives
  • Accessibility: WCAG 2.2 AA/AAA compliance, keyboard navigation, screen reader optimization
  • Icon Libraries: 10+ ecosystems (Lucide, React Icons 35K+, Tabler 5900+, Iconify 200K+, Hugeicons 27K+)
  • Theming: CSS variables, light/dark modes, theme provider, brand customization

When to Use:

  • Building modern UI component libraries with design system foundations
  • Implementing accessible, enterprise-grade user interfaces
  • Setting up design token architecture for multi-platform projects
  • Integrating comprehensive icon systems with optimal bundle sizes
  • Creating customizable theming systems with dark mode support

Module Organization:

  • Components: modules/component-architecture.md (Atomic Design, component patterns, props APIs)
  • Design Systems: modules/design-system-tokens.md (DTCG tokens, Style Dictionary, Pencil MCP)
  • Accessibility: modules/accessibility-wcag.md (WCAG 2.2 compliance, testing, navigation)
  • Icons: modules/icon-libraries.md (10+ libraries, selection guide, performance optimization)
  • Theming: modules/theming-system.md (theme system, CSS variables, brand customization)
  • Web Interface Guidelines: modules/web-interface-guidelines.md (Vercel Labs comprehensive UI/UX compliance, frontend composition rules)
  • Examples: examples.md (practical implementation examples)
  • Reference: reference.md (external documentation links)

Implementation Guide

Foundation Stack

Core Technologies:

  • React 19 with Server Components and Concurrent Rendering
  • TypeScript 5.9+ with full type safety and improved inference
  • Tailwind CSS 4.x with CSS-first configuration, CSS variables, and dark mode
  • Radix UI for unstyled accessible primitives
  • W3C DTCG 2025.10 for design token specification
  • Style Dictionary 4.0 for token transformation
  • Pencil MCP for design-to-code automation
  • Storybook 8.x for component documentation

Quick Decision Guide:

For design tokens, use modules/design-system-tokens.md with DTCG 2025.10 and Style Dictionary 4.0.

For component patterns, use modules/component-architecture.md with Atomic Design, React 19, and shadcn/ui.

For accessibility, use modules/accessibility-wcag.md with WCAG 2.2, jest-axe, and keyboard navigation.

For icons, use modules/icon-libraries.md with Lucide, React Icons, Tabler, Iconify, and Hugeicons.

For Nova preset and design presets, use moai-design-tools skill (reference/pencil-renderer.md).

For theming, use modules/theming-system.md with CSS variables and Theme Provider.

For practical examples, use examples.md with React and Vue implementations.


Quick Start Workflows

Design System Setup

Step 1: Initialize design tokens by creating a JSON file with DTCG schema URL. Define color tokens with type color and primary 500 value. Define spacing tokens with type dimension and md value of 1rem.

Step 2: Transform tokens with Style Dictionary by installing the package and running the build command.

Step 3: Integrate with components by importing colors and spacing from the tokens directory.

See modules/design-system-tokens.md for complete token architecture.

Component Library Setup

Step 1: Initialize shadcn/ui by running the init command, then add button, form, and dialog components.

Step 2: Set up Atomic Design structure with atoms directory for Button, Input, and Label components, molecules directory for FormGroup and Card components, and organisms directory for DataTable and Modal components.

Step 3: Implement with accessibility by adding aria-label attributes to interactive elements.

See modules/component-architecture.md for patterns and examples.

Icon System Integration

Step 1: Choose icon library based on needs. Install lucide-react for general purpose, iconify/react for maximum variety, or tabler/icons-react for dashboard optimization.

Step 2: Implement type-safe icons by importing specific icons and applying className for sizing and color.

See modules/icon-libraries.md for library comparison and optimization.

Theme System Setup

Step 1: Configure CSS variables in root selector for primary and background colors. Define dark class with inverted values for dark mode.

Step 2: Implement Theme Provider by wrapping the application with attribute set to class and defaultTheme set to system.

See modules/theming-system.md for complete theme system.


Key Principles

Design Token First:

  • Single source of truth for design decisions
  • Semantic naming using color.primary.500 format rather than blue-500
  • Multi-theme support for light and dark modes
  • Platform-agnostic transformation

Accessibility by Default:

  • WCAG 2.2 AA minimum with 4.5:1 text contrast
  • Keyboard navigation for all interactive elements
  • ARIA attributes for screen readers
  • Focus management and visible indicators

Component Composition:

  • Atomic Design hierarchy from Atoms to Molecules to Organisms
  • Props API for reusability
  • Variant-based styling rather than separate components
  • Type-safe with TypeScript

Performance Optimization:

  • Tree-shaking for icons by importing specific icons rather than all
  • Lazy loading for large components
  • React.memo for expensive renders
  • Bundle size monitoring

Best Practices

Required Practices:

Use design tokens exclusively for all color, spacing, and typography values. Design tokens provide a single source of truth, enabling consistent theming, multi-platform support, and scalable design systems. Hardcoded values create maintenance debt and break theme switching.

Include ARIA labels on all icon-only interactive elements. Screen readers cannot interpret visual icons without text alternatives. Missing ARIA labels violate WCAG 2.2 AA compliance.

Import icons individually rather than using namespace imports. Namespace imports bundle entire libraries, defeating tree-shaking optimization. Bundle sizes increase by 500KB-2MB per icon library.

Test all components in both light and dark modes. Theme switching affects color contrast, readability, and accessibility compliance.

Implement keyboard navigation for all interactive components. Keyboard-only users require Tab, Enter, Escape, and Arrow key support.

Provide visible focus indicators for all focusable elements. Focus indicators communicate current keyboard position for navigation and accessibility.

Use Tailwind utility classes instead of inline styles. Tailwind provides consistent spacing scale, responsive design, and automatic purging for optimal bundle sizes.

Include loading states for all asynchronous operations. Loading states provide feedback during data fetching, preventing user uncertainty.


Works Well With

Skills:

  • moai-lang-typescript - TypeScript and JavaScript best practices
  • moai-foundation-core - TRUST 5 quality validation
  • moai-library-nextra - Documentation generation
  • moai-library-shadcn - shadcn/ui specialized patterns

Agents:

  • code-frontend - Frontend component implementation
  • design-uiux - Design system architecture
  • mcp-pencil - Pencil MCP design workflows
  • core-quality - Accessibility and quality validation

Commands:

  • /moai:2-run - DDD implementation cycle
  • /moai:3-sync - Documentation generation

Resources

For detailed module documentation, see the modules directory.

For practical code examples, see examples.md.

For external documentation links, see reference.md.

Official Resources:


Last Updated: 2026-03-11 Status: Production Ready Version: 3.0.0

Common Rationalizations

RationalizationReality
"Accessibility is a nice-to-have, not a requirement"WCAG compliance is a legal requirement in many jurisdictions. It is also a core quality dimension, not optional.
"Dark mode is just inverting colors"Naive inversion breaks contrast ratios, image visibility, and semantic color meanings. Dark mode is a design exercise.
"The design system is too rigid, I need custom styles"Custom styles that bypass the design system create inconsistency. Extend the system instead of working around it.
"Icons do not need labels, they are self-explanatory"Icons are ambiguous without context. Screen readers cannot describe unlabeled icons. Always add aria-label.
"I will handle responsive design at the end"Responsive retrofitting breaks layouts. Design for the smallest viewport first, then enhance.

Red Flags

  • Interactive element has no visible focus indicator
  • Color contrast ratio below 4.5:1 for normal text
  • Icon used without aria-label or accompanying text
  • Design token bypassed with hardcoded color or spacing value
  • No dark mode variant defined for a new component
  • Responsive breakpoints absent from new layout components

Verification

  • Color contrast meets WCAG AA (4.5:1 normal text, 3:1 large text) (show contrast check output)
  • All interactive elements have visible focus indicators
  • Icons have accessible names (aria-label or accompanying visible text)
  • Design tokens used for colors, spacing, and typography (no hardcoded values)
  • Dark mode renders correctly without broken contrast or invisible elements
  • Layout tested at mobile (320px), tablet (768px), and desktop (1280px) widths

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.14%
按下载量换算506

Antigravity

24.95%
按下载量换算466

Codex

19.32%
按下载量换算361

OpenCode

12.47%
按下载量换算233

Cursor

7.48%
按下载量换算140

Gemini CLI

3.37%
按下载量换算63

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills