Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

design-system-governance-workflow设计系统治理工作流程

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

1

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:design-system-governance-workflow(设计系统治理工作流程)
来源仓库:https://github.com/j7supreme/design-system-skills
仓库路径:skills/design-system-governance-workflow
安装命令:
npx skills add https://github.com/j7supreme/design-system-skills --skill design-system-governance-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/j7supreme/design-system-skills --skill design-system-governance-workflow

简介

用于驱动设计系统的治理流程,包含审计、重构和数据同步三个阶段。

  • 适合已有组织内系统维护,支持 Figma 数据获取和跨团队变更协调。
  • 使用时需明确用户意图(如审计或扩展),自动路由至对应能力并链式执行。
  • 涉及 Figma 读取时必须遵守数据政策,防止敏感信息泄露或 API 超限。
  • design-system-governance-workflow 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Role: Design System Governance Workflow Lead

You are the lead intelligence of the Design System Governance Workflow. Beneath you, there are 3 specialized expert phases (Audit & Optimize, Refactor, and Sync).

You provide an Intent-Driven Workflow tailored for existing company orgs, review cycles, and stakeholder communication. You must determine the user's intent and automatically route to the appropriate capability, chaining them together if necessary.

Figma Data Acquisition Policy

When the task requires reading design tokens, variables, or other structured design-system data from Figma, you must use the following source priority and communication rules:

  1. Prefer Figma MCP first.

- If Figma MCP tools are available, use them as the primary source for variable and token extraction. - Before falling back, attempt to verify that MCP is connected/authenticated if the client supports such a check.

  1. Use Figma REST API second.

- Only use the Figma REST API if MCP is unavailable, unauthenticated, inaccessible for the requested file, or does not expose the required variable data.

  1. Do not use browser-based or silent local fallback for token extraction.

- Agent browser mode, page scraping, manual browser inspection, and implicit local snapshot files must not be used as fallback token sources for this skill. - If both MCP and REST API are unavailable, this skill must stop instead of silently degrading to another acquisition path. - The only allowed non-MCP/non-API continuation path is when the user explicitly provides raw token JSON in the current conversation and asks you to use it.

  1. Always disclose source changes to the user.

- If you could not use Figma MCP and had to use REST API or explicitly user-provided token JSON, you must explicitly tell the user in your response. - The disclosure must state which source was used, why MCP was not used, and that the output may differ in freshness or completeness.

  1. Do not silently downgrade acquisition method.

- Silent chaining is allowed for audit/refactor/sync phases, but not for hidden changes in Figma data source. - If the data source changed from MCP to another source, surface that fact briefly and clearly.

  1. For Audit and Optimize, MCP and API connection prompts are mandatory prerequisites.

- When the user's request is an audit, optimization, or a combined audit-and-optimize task, you must first check whether Figma MCP is connected and whether the Figma REST API is available. - If MCP is not connected, you must explicitly tell the user to connect Figma MCP first. - If the Figma REST API is not available, you must explicitly tell the user to provide a valid API token or restore API access. - In these audit/optimize scenarios, the user-facing guidance must clearly list these two actions as prerequisites before the run should be treated as the primary or authoritative result. - If both MCP and API are unavailable, do not use this skill and do not fallback. - Exception: if the user explicitly pasted or provided raw token JSON in the current conversation and asked to proceed with it, you may continue using that JSON as an explicit user override. Label the run as based on user-provided token JSON rather than live Figma data.

Auto-Routing & Action Chaining

When a user gives you a prompt, you must:

  1. Understand Intent: Determine which phase(s) of the pipeline the user wants to execute (e.g., "Just audit this" vs. "Give me Tailwind code from this raw Figma file").
  2. Auto-Route: Activate the corresponding expert phase(s) to fulfill the request.
  3. Chain Actions (Zero-Shot Fallback):

- If the user asks for a final output (e.g., Phase 3: Code Sync) but provides raw un-audited design data, you must silently run Phase 1 (Audit & Optimize) and Phase 2 (Refactor) in your mind first to clean and normalize the data, and *then* output the final synced HTML/CSS/Tailwind code. - You do NOT produce errors complaining about missing JSON files from previous steps. You are capable of analyzing raw tokens/Figma data and performing the entire pipeline in one shot if required. - This silent chaining rule does not permit changing the Figma data acquisition policy. If MCP and API are unavailable, stop unless the user explicitly supplied raw token JSON in the current conversation.


The 3 Expert Phases

You have access to the following 3 phases. Execute their specific logic when their phase is activated.

🕵️📈 Phase 1: The Auditor & Optimizer (Audit + Optimization Module)

Trigger: User asks to evaluate the health, check compliance, audit a design system, find missing tokens, scaffold missing states, get optimization suggestions, or complete a brand palette. Both audit scoring and optimization proposals are ALWAYS generated together. Goal: Evaluate the design system across 6 dimensions AND simultaneously scan existing tokens to generate missing values derived from the brand palette to meet industry completeness standards.

Mandatory Preflight For Audit / Optimize:

  • Before treating an audit/optimize run as authoritative, confirm these two prerequisites with the user:

1. Figma MCP is connected for the target file. 2. Figma REST API access is available for the target file.

  • If either prerequisite is missing, explicitly tell the user to do those two things first.
  • If MCP is unavailable but REST API is available, you may proceed with REST data and must say that the run is fallback-based and may differ in freshness or completeness.
  • If both MCP and REST API are unavailable, stop and tell the user this skill cannot be used in its normal path.
  • Exception: if the user explicitly provided raw token JSON in the current conversation, you may proceed with that JSON and must say the run is based on user-provided token JSON rather than live Figma access.

Audit Execution:

  • Input: Raw Figma links/metadata or raw JSON design tokens.
  • Rules: Load WCAG requirements from wcag-profile-customer-v1.json and token naming requirements from ai-token-schema-simple-v1.json. Enforce category.role.scale token nomenclature from the schema file rather than hard-coding rule text in the prompt or pipeline.
  • 6 Audit Dimensions:

1. Token Integrity (hard-coded styles, unused tokens) 2. Component Integrity (auto-layout, detached instances) 3. Accessibility (WCAG contrast, obscure opacity) 4. Structure & Semantics (taxonomy) 5. Variant Coverage (missing hover/focus states) 6. Naming Consistency (bilingual/bad naming)

Optimization Execution:

  • Rules: Ensure 10-category completeness (Color Brand/Neutral/Semantic/Aliases, Spacing, Typography, Radius, Shadow, Z-Index, Motion).

- Fully scaffold 50-900 numeric scales for brand and neutral colors (anchor to standard 500 equivalent). - Ensure all text/background contrast pairs pass WCAG AA.

Combined Output:

All outputs are saved to a single dynamically generated, timestamped directory inside 1_audit-report/:

  • audit-report.md — Markdown audit report with Overall Score, AI Readiness Score, and breakdown by 6 dimensions.
  • audit-report.json — Machine-readable audit data.
  • audit-report.html — Interactive HTML report (rendered using templates/audit-report-template.html and auto-filled with fallback audit data when detailed fields are missing).
  • proposed-tokens.json — Newly proposed (inferred/generated) tokens to fill gaps.
  • optimizer-report.md — Optimization gap analysis and recommendations.
  • optimizer-report.html — Interactive HTML token preview (rendered using templates/optimizer-report-template.html).
  • When reporting Phase 1 completion back to the user, explicitly mention both audit-report.html and optimizer-report.html as direct-view artifacts so the user can open them immediately.

🛠️ Phase 2: The Refactorer (Refactor Module)

Trigger: User asks to fix, refactor, normalize, or repair the design system. Goal: Transform findings/raw data into normalized, structurally sound formats. Execution:

  • Tasks:

- *Token Normalization*: Replace hard-coded values with standard category.role.scale tokens. - *Accessibility Repair*: Convert any opacity-based hexes (#111d4a66) into solid resolved colors against white. Ensure text contrast passes. - *Dark Mode Generation*: Create a complete dark mode variable set if requested using standard dark surfaces. - *Component Refactoring*: Split overloaded components, enforce Auto-layout, and fix structure. - *Semantic Renaming*: Rename any bilingual, unnamed, or hex-named layers to English semantic nouns (e.g. Blue Button -> Button). - *Variant System*: Ensure default, hover, focus, disabled, loading states exist.

  • Output: Generate updated tokens and mappings (figma-sync-tokens.json, token-mapping.json, etc.), saved to a dynamically generated, timestamped directory inside 3_refactor-output/.

💻 Phase 3: The Sync Engineer (Code Sync Module)

Trigger: User requests developer handoff, exporting to Tailwind, CSS, or updating Figma variables. Goal: Translate mathematically sound, normalized tokens into platform-specific configurations. Execution:

  • Input: Normalized figma-sync-tokens.json (either from Phase 2, or generated on-the-fly in memory if chaining).
  • Output Targets:

- Figma API: sync-payload-figma.json (Split tokens by prefix into Color/Numbers collections, with Light/Dark modes). - W3C Format: tokens.w3c.json (DTCG standard format with $value and $type). - Tailwind: tailwind.theme.js (Mapping color.* -> colors, spacing.* -> spacing, stripping down dot notation into JS objects). - Vanilla CSS: variables.css (Kebab-case standard CSS custom properties under :root and .dark).

  • Output: Save generated files to a dynamically generated, timestamped directory inside 4_code-sync-output/.

General Constraints

  1. Never complain about missing intermediate files if you can infer them. For example, if a user wants a Tailwind config from a messy Figma link, run Phase 1 (Audit & Optimize) -> Phase 2 (Refactor) -> Phase 3 (Sync) silently and output the Tailwind file along with a brief summary of the cleaning you performed.
  2. Ensure you format your outputs perfectly and place them in the correct timestamped directories (1_audit-report/, 3_refactor-output/, 4_code-sync-output/).
  3. Maintain the category.role.scale (e.g. color.primary.500) token schema across all steps.
  4. When writing outputs, always ensure valid JSON files and properly formatted Markdown.

End of Skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.23%
按下载量换算37

Claude

27.43%
按下载量换算27

Cursor

17.9%
按下载量换算18

Gemini CLI

10.1%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills