ワンクリックで
Translate human UI/UX requirements into site-design.contract.yaml
npx skills add https://github.com/liyecom/liye-ai --skill ui-ux-pro-maxこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストール
Translate human UI/UX requirements into site-design.contract.yaml
npx skills add https://github.com/liyecom/liye-ai --skill ui-ux-pro-maxこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストール
SFC patched skill. Use when "ui-ux" is relevant.
内容研究与写作助手
视觉设计与艺术创作工具
主题样式工厂 - 统一视觉风格应用
CSV 数据自动分析与洞察生成工具
复杂前端 Artifacts 构建工具
| name | ui-ux-pro-max |
| description | Translate human UI/UX requirements into site-design.contract.yaml |
| domain | 00_Core_Utilities |
| category | creative |
| version | 1.0.0 |
| status | active |
| skeleton | reference |
| triggers | {"commands":["/ui-ux-pro-max"],"patterns":["ui-ux-pro-max"]} |
| inputs | {"required":[],"optional":[]} |
| outputs | {"artifacts":["SKILL.md"]} |
| failure_modes | [{"symptom":"Missing required inputs or context","recovery":"Provide the missing info and retry"},{"symptom":"Unexpected tool/runtime failure","recovery":"Rerun with minimal steps; escalate after 3 failures"}] |
| verification | {"evidence_required":true,"how_to_verify":["node .claude/scripts/sfc_lint.mjs <skill_dir>"]} |
| governance | {"constitution":"_meta/governance/SKILL_CONSTITUTION_v0.1.md","policy":"_meta/policies/DEFAULT_SKILL_POLICY.md"} |
Sole Responsibility: Translate human UI/UX requirements into
tracks/<track_id>/site-design.contract.yaml
This Skill acts as a translator between human design intent and machine-executable contracts. It does NOT generate UI, pages, components, or styles.
| Input | Description | Examples |
|---|---|---|
project_type | Site category | saas, landing, docs, blog, dashboard |
audience | Target users | b2b, b2c, developer, enterprise |
brand_keywords | Design tone descriptors | modern, minimal, professional, playful |
stack | Technical stack | astro, react, tailwind, next |
tracks/<track_id>/site-design.contract.yaml
Contract must:
python _meta/governance/validator.pyknowledge/design/ui-ux/
├── ui_styles.yaml # Style patterns (minimalism, glassmorphism, etc.)
├── color_schemes.yaml # Color palettes by product type
├── font_pairings.yaml # Typography combinations
├── chart_types.yaml # Data visualization guidance
└── ux_guidelines.yaml # UX patterns and anti-patterns
brand_keywords → ui_styles.yaml (find matching style)project_type → color_schemes.yaml (find base palette)font_pairings.yaml (select typography)ux_guidelines.yaml for anti-patterns| Action | Reason |
|---|---|
| Generate UI/pages/components | Builder responsibility |
| Modify contract schema | Schema is frozen |
| Read Builder feedback | One-way data flow (Skill → Builder) |
| Treat knowledge as SSOT | Knowledge is reference, Constitution is SSOT |
Extract structured requirements from user description:
"Build a dark-mode SaaS dashboard for developers"
→ project_type: saas
→ audience: developer
→ brand_keywords: [dark, tech, minimal]
→ stack: [to be specified]
# From ui_styles.yaml (brand_keywords: dark, tech)
matched_style: dark_mode_oled
primary_colors: ["#000000", "#121212"]
effects: [minimal-glow, high-readability]
# From color_schemes.yaml (project_type: saas)
matched_scheme: developer_tools
primary: "#3B82F6"
background: "#0F172A"
# From font_pairings.yaml (keywords: tech, developer)
matched_pairing: developer_mono
heading: JetBrains Mono
body: IBM Plex Sans
Write to tracks/<track_id>/site-design.contract.yaml:
version: "1.0"
kind: site-design
scope: track-instance
enforcement: warning
inherits:
from: _meta/contracts/site-design.contract.yaml
site:
name: <track_id>
stack: [user-specified]
tokens:
colors:
primary: "#3B82F6"
background: "#0F172A"
# ... (derived from knowledge)
typography:
primary_font: "IBM Plex Sans"
heading_font: "JetBrains Mono"
# ...
style:
allowed_modes: [dark]
default_mode: dark
ux:
accessibility:
min_contrast_ratio: 4.5
anti_patterns:
- confirm_shaming
- forced_popup
python _meta/governance/validator.py
Input:
Create design contract for a B2B SaaS analytics dashboard.
Modern, professional, dark mode preferred.
Stack: Astro + Tailwind
Track: analytics-dashboard
Output: tracks/analytics-dashboard/site-design.contract.yaml
Input:
Design contract for a wellness app landing page.
Calm, organic, light colors.
Stack: Next.js + Tailwind
Track: wellness-landing
Output: tracks/wellness-landing/site-design.contract.yaml
tracks/<track_id>/site-design.contract.yaml (read-only)_meta/schemas/contracts.schema.jsonThis skill MUST stop execution once a valid site-design.contract.yaml has been generated and validated.
The skill MUST NOT:
Created: 2026-01-13 | Version: 1.0.0