| 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
reference.png — visual appearance
visual-analysis.md / UI Type Classification
visual-analysis.md / Visible Element Inventory
visual-analysis.md / Rejected Assumptions
layout-spec.md / Layout Paradigm
layout-spec.md / Layer Model
component-tree.md
component-tree.md / Prohibited Components
implementation-risks.md / Asset Strategy
DESIGN.md
tokens.json
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
- Confirm visual-spec-review did not fail.
- Read UI Type and Layout Paradigm.
- Read Rejected Assumptions and Prohibited Components.
- Read Asset Strategy.
- Branch design-system generation by UI Type.
- Generate component states only for allowed components.
- Generate responsive rules without changing layout paradigm.
- Generate accessibility rules.
- Generate implementation constraints.
- 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