Best use case
frontend-design is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
前端设计美学秘典。UI美学、组件模式、UX原则。当魔尊需要前端设计、UI/UX指导、组件设计时使用。
Teams using frontend-design should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/frontend-design/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How frontend-design Compares
| Feature / Agent | frontend-design | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
前端设计美学秘典。UI美学、组件模式、UX原则。当魔尊需要前端设计、UI/UX指导、组件设计时使用。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 前端设计美学秘典 ## 知识主题 | 主题 | 文档 | 涵盖 | |------|------|------| | UI美学 | [ui-aesthetics.md](ui-aesthetics.md) | 色彩、排版、间距、视觉层次、设计令牌 | | 组件模式 | [component-patterns.md](component-patterns.md) | 布局、响应式、交互、动画、表单 | | UX原则 | [ux-principles.md](ux-principles.md) | 可用性、无障碍、信息架构、移动优先 | | 状态管理 | [state-management.md](state-management.md) | Redux、Zustand、Jotai、Context API | | 前端工程化 | [engineering.md](engineering.md) | Web Vitals、Vitest/Playwright、Vite | ## 风格选型决策树 ``` 需求 → 品牌调性? ├─ 前卫 / 反叛 / 高饱和 → Neubrutalism ├─ 柔和 / 亲和 / 圆润 → Claymorphism ├─ 通透 / 层叠 / 科技感 → Glassmorphism └─ Apple 风 / 极致精致 → Liquid Glass 性能约束? ├─ 低端移动端 → Neubrutalism(零 blur,最轻) ├─ 中端设备 → Claymorphism(纯 box-shadow) └─ 高端 / 桌面 → Glassmorphism / Liquid Glass ``` ## 风格一览 | 风格 | 文档 | 核心 CSS | 移动端开销 | |------|------|----------|-----------| | Neubrutalism | [SKILL.md](neubrutalism/SKILL.md) | `box-shadow`, `border` | 极低 | | Claymorphism | [SKILL.md](claymorphism/SKILL.md) | `box-shadow`(inset) | 低 | | Glassmorphism | [SKILL.md](glassmorphism/SKILL.md) | `backdrop-filter` | 高 | | Liquid Glass | [SKILL.md](liquid-glass/SKILL.md) | `backdrop-filter` + `saturate` | 高 | ## 浏览器支持总览 | 特性 | Chrome | Firefox | Safari | Edge | |------|--------|---------|--------|------| | `backdrop-filter` | 76+ | 103+ | 9+(`-webkit-`) | 79+ | | `filter: saturate()` | 53+ | 35+ | 9.1+ | 79+ | | `@supports` | 28+ | 22+ | 9+ | 12+ | | `prefers-reduced-motion` | 74+ | 63+ | 10.1+ | 79+ | ## 通用无障碍清单 1. 文字对比度 ≥ 4.5:1(WCAG AA),大字 ≥ 3:1 2. `:focus-visible` 轮廓 ≥ 2px,`outline-offset: 2px` 3. `prefers-reduced-motion: reduce` 禁动画,仅保留 `opacity` 4. `prefers-contrast: more` 增强边界、降低透明 5. 触控目标 ≥ 44×44px 6. 语义化 HTML,`aria-label` 补充图标按钮
Related Skills
name: parse-error
this is not frontmatter
multi-script
too many scripts
missing-description
No description provided.
invalid-tools
invalid tool name
clash-skill
second duplicate
review
Review skill. Read ~/.claude/skills/gstack/review/checklist.md before acting.
office-hours
Office hours skill. Uses ~/.claude/skills/gstack/bin/gstack-config.
codex
Should be skipped for codex host.
gstack
Root gstack skill. Uses ~/.claude/skills/gstack/bin helpers.
verify-security
安全校验关卡。自动扫描代码安全漏洞,检测危险模式,确保安全决策有文档记录。当魔尊提到安全扫描、漏洞检测、安全审计、代码安全、OWASP、注入检测、敏感信息泄露时使用。在新建模块、安全相关变更、攻防任务、重构完成时自动触发。
verify-quality
代码质量校验关卡。检测复杂度、重复代码、命名规范、函数长度等质量指标。当魔尊提到代码质量、复杂度检查、代码异味、重构建议、lint检查、代码规范时使用。在复杂模块、重构完成时自动触发。
verify-module
模块完整性校验关卡。扫描目录结构、检测缺失文档、验证代码与文档同步。当魔尊提到模块校验、文档检查、结构完整性、README检查、DESIGN检查时使用。在新建模块完成时自动触发。