design-system-governor

在视觉规范评审通过后、OpenSpec UI 更新或前端实现之前使用。该技能将基于截图的视觉规范扩展为生产级设计系统,补充交互状态、响应式行为、无障碍规则、用户体验检查清单和实现约束,同时不覆盖 UI 类型、布局范式、组件树、已拒绝的假设或资源策略。

仓库最近推送
GitHub Stars
145
Forks
9
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "design-system-governor":https://skillpi.com/zh/skills/deepskill-7087e942098b73b5f27684ad9a62af4602141a4cffa89a1c6d0d2d6711a288af。安装前核对上游来源和版本:https://github.com/Jason904/ui-skill-lab。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在视觉规范评审通过后、OpenSpec UI 更新或前端实现之前使用。该技能将基于截图的视觉规范扩展为生产级设计系统,补充交互状态、响应式行为、无障碍规则、用户体验检查清单和实现约束,同时不覆盖 UI 类型、布局范式、组件树、已拒绝的假设或资源策略。

0 下载

介绍来源: third_party · Jason904 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: design-system-governor
description: |
  This skill should be used after visual-spec-review passes and before
  OpenSpec UI update or frontend implementation. It expands screenshot-derived
  visual specs into a production design system by adding interaction states,
  responsive behavior, accessibility rules, UX checklist, and implementation
  constraints without overriding UI type, layout paradigm, component tree,
  rejected assumptions, or asset strategy.
argument-hint: "[visual-spec-directory]"

Version: 2.0.0

design-system-governor

Expand a reviewed visual spec into a product-grade design system.

This skill reads the seven visual-to-spec files and optional visual-spec-review results. It adds the missing product-level rules that static screenshots cannot show: states, responsive behavior, accessibility, motion, and implementation constraints.

It must never redesign the UI or override screenshot-derived facts.

Trigger Conditions

Use this skill when:

  • visual-spec-review has passed or conditionally passed
  • the user asks to build or expand a design system from visual specs
  • the user asks to add hover/focus/loading/empty/error states
  • the user asks to add responsive and accessibility rules
  • the visual spec must be prepared for OpenSpec UI update or Codex implementation

Required Inputs

Read:

03_visual_spec/
  visual-analysis.md
  layout-spec.md
  component-tree.md
  DESIGN.md
  tokens.json
  implementation-risks.md
  human-review-needed.md

Recommended:

04_visual_spec_review/
  spec-review-report.md
  conflict-log.md
  revised-files-needed.md

If spec-review-report.md says Fail, stop. Do not generate 05_design_system/.

Source of Truth

  1. reference.png — visual appearance
  2. visual-analysis.md / UI Type Classification
  3. visual-analysis.md / Visible Element Inventory
  4. visual-analysis.md / Rejected Assumptions
  5. layout-spec.md / Layout Paradigm
  6. layout-spec.md / Layer Model
  7. component-tree.md
  8. component-tree.md / Prohibited Components
  9. implementation-risks.md / Asset Strategy
  10. DESIGN.md
  11. tokens.json
  12. human-review-needed.md

Required Sections to Read

From visual-analysis.md:

  • UI Type Classification
  • Visible Element Inventory
  • Rejected Assumptions

From layout-spec.md:

  • Layout Paradigm
  • Layer Model
  • Region Layout
  • Forbidden Layouts

From component-tree.md:

  • Component Tree Type
  • bboxRef for reference-visible components
  • Prohibited Components

From implementation-risks.md:

  • Asset Strategy
  • UI Type Drift Risks
  • Asset Misuse Risks
  • Hallucinated Component Risks

From DESIGN.md:

  • UI Type and Rendering Strategy
  • Asset Strategy
  • Forbidden Assumptions
  • Implementation Rules

From tokens.json:

  • source
  • confidence
  • strictness
  • usedBy
  • bboxRef if present

Main Workflow

  1. Confirm visual-spec-review did not fail.
  2. Read UI Type and Layout Paradigm.
  3. Read Rejected Assumptions and Prohibited Components.
  4. Read Asset Strategy.
  5. Branch design-system generation by UI Type.
  6. Generate component states only for allowed components.
  7. Generate responsive rules without changing layout paradigm.
  8. Generate accessibility rules.
  9. Generate implementation constraints.
  10. Write 05_design_system/.

Hard Rules

  • Do not override screenshot-derived values.
  • Do not change UI Type.
  • Do not change Layout Paradigm.
  • Do not change Asset Strategy.
  • Do not add prohibited components.
  • Do not add rejected layouts.
  • Do not invent dashboard components for non-dashboard UIs.
  • Do not redraw raster/photorealistic main visuals with CSS/SVG if Asset Strategy forbids it.
  • Do not generate frontend code.
  • Do not modify 03_visual_spec/.
  • Do not modify 04_visual_spec_review/.
  • Do not merge this skill with implementation or validation skills.

Output

Write:

05_design_system/
  MASTER.md
  pages/
    target-page.md
  ux-checklist.md
  component-state-spec.md
  responsive-spec.md
  accessibility-spec.md
  implementation-constraints.md

Supporting Files

Read these references directly:

  • references/governance-workflow.md
  • references/ui-type-branching-rules.md
  • references/state-rules.md
  • references/responsive-rules.md
  • references/accessibility-rules.md
  • references/asset-aware-design-rules.md
  • references/implementation-constraints-rules.md
  • references/external-skill-usage.md
  • references/output-files.md

Examples:

  • examples/master.example.md
  • examples/target-page.panorama.example.md
  • examples/target-page.dashboard.example.md
  • examples/component-state-spec.panorama.example.md
  • examples/component-state-spec.dashboard.example.md
  • examples/responsive-spec.example.md
  • examples/accessibility-spec.example.md
  • examples/implementation-constraints.example.md

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 专业设计系统构建工具,面向特定工作流程
  • 具有明确受众和实用价值
触发精准85/100

亮点

  • 触发条件清晰,覆盖多种变体
  • 边界清晰,明确说明不覆盖的内容
结构规范90/100

亮点

  • Main Workflow 10 个步骤明确
  • 含端到端示例,frontmatter 完整
执行可靠88/100

亮点

  • 异常处理完善,spec-review-report.md 为 Fail 时停止
  • Hard Rules 明确禁止覆盖已有内容
证据可验 (前四项均值)85/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。