design-system-governor

Use after visual spec review and before OpenSpec UI updates or frontend implementation. This capability expands screenshot-based visual specs into a production-grade design system by adding interaction states, responsive behavior, accessibility rules, UX checklists, and implementation constraints, while not overriding UI types, layout paradigms, component trees, rejected assumptions, or resource policies.

Last repository push
GitHub Stars
145
Forks
9
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "design-system-governor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7087e942098b73b5f27684ad9a62af4602141a4cffa89a1c6d0d2d6711a288af. Verify the upstream source and version against https://github.com/Jason904/ui-skill-lab before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use after visual spec review and before OpenSpec UI updates or frontend implementation. This capability expands screenshot-based visual specs into a production-grade design system by adding interaction states, responsive behavior, accessibility rules, UX checklists, and implementation constraints, while not overriding UI types, layout paradigms, component trees, rejected assumptions, or resource policies.

0 Downloads

Introduction source: third_party · Jason904 · 0.0.1 Reference

SkillPi interpretation

Tasks
Expand a reviewed visual spec into a product-grade design system.
Inputs and outputs
Read: Recommended: If `spec-review-report.md` says Fail, stop. Do not generate `05_design_system/`.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

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

Highlights

  • 触发条件清晰,覆盖多种变体
  • 边界清晰,明确说明不覆盖的内容
Structure and Standards90/100

Highlights

  • Main Workflow 10 个步骤明确
  • 含端到端示例,frontmatter 完整
Execution Reliability88/100

Highlights

  • 异常处理完善,spec-review-report.md 为 Fail 时停止
  • Hard Rules 明确禁止覆盖已有内容
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.