applying-ui-design-system
Frontend UI design system selector and implementation guide covering Glassmorphism, Liquid Glass (Apple-style), Neubrutalism, and Claymorphism. Use when building UI components, choosing a visual aesthetic, implementing design tokens, or auditing accessibility/contrast on themed surfaces. Provides per-style tokens, component patterns, dark mode, and a11y constraints.
git clone --depth 1 https://github.com/telagod/code-abyss /tmp/applying-ui-design-system && cp -r /tmp/applying-ui-design-system/skills/applying-ui-design-system ~/.claude/skills/applying-ui-design-systemSKILL.md
# 设计语言选型 > 不同设计语言不可混搭。先选语言,再按 reference 落地组件。 ## 风格决策 | 想要的感觉 | 选 | 加载 | |---|---|---| | 半透明、磨砂、轻盈、纵深感弱 | **Glassmorphism** | [references/glassmorphism.md](references/glassmorphism.md) | | Apple 风格、立体玻璃、环境光响应、弹簧动效 | **Liquid Glass** | [references/liquid-glass.md](references/liquid-glass.md) | | 粗框硬影、高饱和、纯平、反精致 | **Neubrutalism** | [references/neubrutalism.md](references/neubrutalism.md) | | 软糯黏土、大圆角、双内影、温暖 | **Claymorphism** | [references/claymorphism.md](references/claymorphism.md) | 每个 reference 自包含「核心要素 + CSS Tokens + 关键约束 + 组件 + 暗色模式 + 无障碍」全套。 ## 共享铁律(跨风格) 无论选哪种风格,下列约束**全部适用**: 1. **对比度** — 主文字 ≥ 4.5:1,大字体(≥18pt 常规 / ≥14pt 粗体)≥ 3:1。**逐底色验证**,不靠白底脑补。 2. **`:focus-visible`** — 必须可见;轮廓与底色有足够反差。键盘可达性是底线。 3. **`prefers-reduced-motion: reduce`** — 禁用弹簧、滑入、parallax 等装饰动画;保留功能性 transition。 4. **`prefers-contrast: more`** — 减少透明、增强边界、平化阴影。 5. **暗色模式** — 用语义 token 切换(如 `--bg-surface`),不要硬编码 `#fff/#000` 后再交换。 ## 落地流程 1. **选风格** — 一个项目通常一种主风格;可有第二风格作辅助层(如主体 Liquid Glass + 强调按钮 Neubrutalism) 2. **导入 tokens** — 复制对应 `tokens-<style>.css` 到项目,按需扩展 3. **按 reference 抄组件** — Card / Button / Modal / Nav 速查已就位 4. **验证对比度 + 焦点 + 减弱动效** — 跑 a11y 自检 5. **暗色模式映射** — 每个 token 都要有暗色对应 ## 何时不要本 skill - 仅需 vanilla CSS / Tailwind 默认组件 → 不需要设计系统选型 - 已有完整 design system(如 Material、Ant Design)→ 沿用,不重新选风格 - 后端工作 / 数据可视化主导 → 走 [designing-architectures](../designing-architectures/SKILL.md) ## 性能基线 - 同屏 `backdrop-filter` 元素 ≤ 3(Glassmorphism / Liquid Glass 限制) - 滚动容器内避免 blur(触发逐帧重绘) - 阴影层叠 ≤ 3 层(Claymorphism 多内影时尤其注意) - 低端设备:用 `@supports` 或 `@media (hover: none)` 降级为纯色
Analyzes code changes, detects documentation drift, and evaluates change impact scope. Use when reviewing diffs, checking doc sync, or running pre-commit analysis. Automatically triggered after design-level changes or refactoring.
Scans code for security vulnerabilities, detects dangerous patterns, and ensures security decisions are documented. Use when running security scans, auditing code, or checking for OWASP issues, injection risks, or sensitive data leaks. Automatically triggered on new modules, security-related changes, or post-refactor.
Processes Excel spreadsheet files (.xlsx, .xlsm, .csv). Creates workbooks, builds formulas, preserves formatting, analyzes tabular data, and validates financial models with zero-formula-error delivery. Use when working with spreadsheet files or tabular data analysis. Do NOT use for Word documents, PDFs, presentations, or database pipelines.
安全架构与治理:威胁建模 (STRIDE/PASTA/LINDDUN)、零信任身份架构、IAM/SSO/MFA/PAM、合规框架 (SOC2/PCI/HIPAA/GDPR)、DLP、隐私工程、安全控制设计。Use when designing security architecture, threat modeling new systems, implementing zero-trust identity, designing IAM/SSO/PAM, building compliance evidence chains, or planning privacy-by-design.
DevOps knowledge reference covering Git workflows, testing strategies, DevSecOps, release pipeline orchestration (release.yml, multi-arch images, cosign integration), CI/CD pipelines, database management, observability, and performance optimization. Use when working with Git, CI/CD, release pipelines, ghcr image publishing, testing, monitoring, or infrastructure automation.
AI agent and LLM system engineering reference covering single-agent dev (ReAct, tool calling, plan-execute), multi-agent coordination (swarm, role decomposition, file locking), LLM security (prompt injection, jailbreak defense, output filtering), RAG architecture (chunking, hybrid retrieval, rerank), and prompt engineering / evaluation (RAGAS, LLM-as-Judge). Use when building AI agents, designing RAG pipelines, orchestrating multi-agent workflows, hardening LLM apps, or writing prompts.
Checks code quality metrics including complexity, duplication, naming conventions, and function length. Use when running quality gates, reviewing code smells, or checking lint rules. Automatically triggered on complex modules or post-refactor.
Processes PowerPoint presentation files (.pptx). Creates slides, rewrites templates, converts HTML to presentations, validates thumbnails, swaps layouts, and performs deep OOXML editing. Use when working with presentation files or slide decks. Do NOT use for Word documents, spreadsheets, or PDF files.