Token导航 LogoToken导航

Agent Skill · 前端设计

design-systems-architecture(设计系统架构)

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

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

总安装 32,315周安装 841GitHub Stars 3下载 5,023核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:design-systems-architecture(设计系统架构)
来源仓库:https://github.com/phazurlabs/ux-ui-mastery
仓库路径:skills/design-systems-architecture
安装命令:
npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Design Systems Architecture'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Design Systems Architecture'

这个 Skill 是做什么的

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

用于构建系统化、可扩展的设计体系,确保产品视觉与交互的一致性。适合在 SaaS、多端产品或团队协作中建立统一的设计语言与组件规范。通过定义规则和关系而非单一样式,提升设计开发效率并减少重复劳动。需结合品牌资产与用户场景使用,避免过度装饰;页面改动后应通过预览检查实际表现。

design-systems-architecture 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/design-systems-architecture

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

design-systems-architecture 怎么安装?

在终端执行 npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Design Systems Archite…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

design-systems-architecture 支持哪些 AI 工具?

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

design-systems-architecture 需要什么权限?

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

design-systems-architecture 是免费的吗?

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

design-systems-architecture 用的人多吗?

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

design-systems-architecture 安全吗?

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

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

值得选的地方

  • 同时适配 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只读未明确通过
design-systems-architecture

设计系统架构 · 本页

32,3153需要联网未明确通过

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

SKILL.md 原文

Design Systems Architecture — Systematic Design at Scale

Design System Philosophy

"A design system is not a project. It is a product serving products." — Nathan Curtis

A design system is the single source of truth for how a product family looks, behaves, and communicates. It exists to multiply design and development efficiency while ensuring consistency across teams, platforms, and time. The system must be opinionated enough to ensure coherence yet flexible enough to serve diverse product needs.

Core Principles

  1. Systematic over stylistic — define rules and relationships, not just visual recipes
  2. Tokens are the foundation — design decisions encoded as data, not hardcoded values
  3. Composition over inheritance — build complex components from simple, composable primitives
  4. Document the why — every decision needs rationale to prevent future erosion
  5. Adopt, then adapt — products adopt the system by default, request exceptions with justification

Design Token Architecture (W3C Design Tokens Standard)

Token Hierarchy

Tier 1: Global/Primitive Tokens (Raw Values) Define the complete value palette — all available options.

{
  "color": {
    "blue": {
      "50":  { "$value": "#eff6ff" },
      "100": { "$value": "#dbeafe" },
      "500": { "$value": "#3b82f6" },
      "900": { "$value": "#1e3a5a" }
    },
    "neutral": {
      "0":   { "$value": "#ffffff" },
      "50":  { "$value": "#fafafa" },
      "900": { "$value": "#171717" }
    }
  },
  "spacing": {
    "1": { "$value": "4px" },
    "2": { "$value": "8px" },
    "4": { "$value": "16px" },
    "8": { "$value": "32px" }
  }
}

Tier 2: Semantic/Alias Tokens (Contextual Meaning) Map raw values to design intent — what the value means.

{
  "color": {
    "bg": {
      "primary":   { "$value": "{color.neutral.0}" },
      "secondary": { "$value": "{color.neutral.50}" },
      "inverse":   { "$value": "{color.neutral.900}" }
    },
    "text": {
      "primary":   { "$value": "{color.neutral.900}" },
      "secondary": { "$value": "{color.neutral.500}" },
      "brand":     { "$value": "{color.blue.500}" }
    },
    "action": {
      "primary":   { "$value": "{color.blue.500}" },
      "primary-hover": { "$value": "{color.blue.600}" }
    }
  }
}

Tier 3: Component Tokens (Specific Application) Map semantic tokens to component properties — where the value is used.

{
  "button": {
    "primary": {
      "bg":    { "$value": "{color.action.primary}" },
      "text":  { "$value": "{color.neutral.0}" },
      "hover-bg": { "$value": "{color.action.primary-hover}" },
      "padding-x": { "$value": "{spacing.4}" },
      "padding-y": { "$value": "{spacing.2}" },
      "border-radius": { "$value": "{radius.md}" }
    }
  }
}

W3C Design Token Format (DTCG)

Follow the W3C Design Tokens Community Group specification:

  • Use $value for token values
  • Use $type to specify value type (color, dimension, fontFamily, fontWeight, duration, cubicBezier, shadow)
  • Use $description for documentation
  • Use {} syntax for references/aliases
  • File extension: .tokens.json

Token Categories

CategoryExamplesType
ColorBrand, semantic, surface, text, bordercolor
SpacingPadding, margin, gapdimension
TypographyFont family, size, weight, line height, letter spacingmixed
Border RadiusCorner rounding per component typedimension
Elevation/ShadowBox shadow definitions per levelshadow
DurationAnimation timingduration
EasingAnimation curvescubicBezier
SizingIcon, avatar, touch target sizesdimension
OpacityDisabled state, overlay, hovernumber
Z-indexLayering ordernumber

Component Library Architecture

Component Anatomy

Every component has a defined structure:

Component
├── Props/API (inputs and configuration)
├── Variants (visual and behavioral variations)
├── States (default, hover, active, focused, disabled, loading, error)
├── Slots/Children (composition points for custom content)
├── Tokens (design token bindings)
├── Accessibility (ARIA, keyboard, screen reader behavior)
└── Documentation (usage guidelines, do/don't examples)

Component Maturity Model

Level 1 — Defined: Designed in Figma, documented in guidelines Level 2 — Implemented: Coded in component library, props API defined Level 3 — Tested: Unit tests, visual regression tests, accessibility tests pass Level 4 — Documented: Usage guidelines, API docs, examples, do/don't Level 5 — Governed: Change process established, versioning, deprecation path

Component API Design Principles

  • Predictable props naming: Use consistent naming conventions across all components (size, variant, disabled, className)
  • Enum over boolean: variant="primary" | "secondary" | "ghost" not isPrimary, isSecondary
  • Composition over configuration: <Card><CardHeader /><CardBody /></Card> not <Card header={} body={} />
  • Sensible defaults: Components work without props; customization is additive
  • Type safety: Full TypeScript types for all props; no any types in public API
  • Forward refs: All components forward refs for imperative access
  • Polymorphic rendering: Support as prop for semantic HTML flexibility (<Button as="a" href="..." />)

Theming Architecture

Theme Structure

{
  "theme": {
    "light": {
      "color.bg.primary": "#ffffff",
      "color.bg.secondary": "#f5f5f5",
      "color.text.primary": "#171717",
      "color.text.secondary": "#737373",
      "color.action.primary": "#3b82f6"
    },
    "dark": {
      "color.bg.primary": "#171717",
      "color.bg.secondary": "#262626",
      "color.text.primary": "#f5f5f5",
      "color.text.secondary": "#a3a3a3",
      "color.action.primary": "#60a5fa"
    }
  }
}

Theming Implementation

  • Use CSS custom properties (variables) as the runtime theming mechanism
  • Apply theme by swapping custom property values at the root level
  • Support system preference detection (prefers-color-scheme)
  • Allow manual override with persistent user preference
  • Component tokens reference semantic tokens, which resolve to theme-specific values

Multi-Brand Architecture

For organizations with multiple brands sharing a system:

  • Shared foundation: Common component behavior, interaction patterns, accessibility
  • Brand tokens: Each brand provides its own token set (colors, typography, spacing variations)
  • Component override layer: Brand-specific component customizations when tokens alone are insufficient
  • Theme matrix: Brand x Mode (e.g., BrandA-Light, BrandA-Dark, BrandB-Light, BrandB-Dark)

Governance and Scaling

Contribution Model

Centralized: Core team owns and builds all components

  • Pros: High consistency, quality control
  • Cons: Bottleneck, slow to address product-specific needs
  • Best for: Small-medium organizations, early system maturity

Federated: Product teams contribute with core team review

  • Pros: Faster growth, diverse input, shared ownership
  • Cons: Consistency risk, review overhead
  • Best for: Large organizations, mature systems

Hybrid (recommended): Core team owns primitives and governance; product teams contribute domain-specific patterns

  • Core components (Button, Input, Card): centrally owned
  • Domain components (DataGrid, FileUploader): contributed by domain teams, reviewed by core

Change Management Process

  1. Proposal: RFC (Request for Comment) with use case, design, and API proposal
  2. Review: Design review + code review + accessibility review
  3. Build: Implementation with full test coverage
  4. Document: Usage guidelines, migration guide if breaking
  5. Release: Semantic versioning, changelog, migration support

Versioning Strategy

  • Follow Semantic Versioning (SemVer): MAJOR.MINOR.PATCH
  • MAJOR: Breaking changes to component API or visual appearance
  • MINOR: New components, new props, backward-compatible enhancements
  • PATCH: Bug fixes, accessibility improvements, documentation updates
  • Deprecation: Mark deprecated with console warnings; maintain for 2 major versions
  • Changelogs: Automated from conventional commits; include migration guidance

Design-to-Code Integration

Figma-to-Code Synchronization

  • Figma component naming must match code component naming exactly
  • Figma variants map to code component props
  • Design tokens sync bidirectionally: Figma to tokens.json to code
  • Use Token Studio (Figma plugin) for token management in design
  • Automate token export with CI/CD pipeline (Style Dictionary, Token Transformer)

Code Generation

  • Generate CSS/SCSS from design tokens using Style Dictionary
  • Platform-specific output: CSS variables, iOS Swift constants, Android XML resources, React Native styles
  • Generate TypeScript types from token schema
  • Visual regression testing: compare Figma designs with rendered components

Cross-Referencing

  • For visual design principles, reference ui-visual-design-system
  • For accessibility component requirements, reference accessibility-inclusive-design
  • For motion tokens and animation, reference interaction-motion-design
  • For mobile component adaptations, reference mobile-ux-design

v3.0 Cross-References

The v3.0 upgrade introduces references that extend design system architecture into Figma MCP pipelines, maturity modeling, and modern CSS integration.

Figma MCP Design-to-Code Pipeline See figma-design-tool-workflows/references/figma-mcp-ai-flywheel.md for the Figma Model Context Protocol (MCP) server integration that enables AI-driven design-to-code workflows. This reference covers the MCP-powered flywheel where AI agents read Figma components, extract design tokens, generate production code, and validate output against the source design — creating a continuous synchronization loop between design and development that supersedes manual handoff processes.

Design System Maturity Model and Multi-Brand Token Architecture See references/maturity-model-multi-brand.md for the comprehensive 5-level design system maturity model (from Ad Hoc through Optimized), multi-brand token architecture patterns for organizations operating multiple product brands from a shared foundation, and the W3C Design Tokens 2025.10 $extensions specification. The $extensions property enables vendor-specific metadata (Figma constraints, platform overrides, deprecation flags) within standard token files, which is critical for tooling interoperability in mature multi-brand systems. This reference expands significantly on the Multi-Brand Architecture and Component Maturity Model sections above.

CSS @layer Integration with Token Architecture See component-patterns-code/references/css-modern-patterns.md for modern CSS @layer usage in design system token architecture. Cascade layers (@layer reset, tokens, components, utilities, overrides) provide deterministic specificity management for design systems at scale — eliminating the specificity wars that plague large component libraries. This reference covers how design tokens map to CSS custom properties within a layered cascade, enabling clean component-level theming without !important hacks or excessive nesting.

Key Sources

  • Curtis, N. "Design Systems" and Modular Web Design
  • W3C Design Tokens Community Group specification
  • Figma design systems documentation
  • Material Design component guidelines
  • Brad Frost "Atomic Design" methodology

平台分布

Codex

36.24%
按下载量换算1,820

Claude

31.43%
按下载量换算1,579

Cursor

19.11%
按下载量换算960

Gemini CLI

9.83%
按下载量换算494

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills