360 Secure SkillHub
360 安全技能中心

Ui Design Optimizer

根据产品描述与页面类型,从本地 styles、colors、typography、patterns、rules 数据集挑选风格、配色与字体组合,输出含布局模式、色彩与字体令牌、交互规则的设计规范;若用户要求实现,则生成 index.html 与 styles.css,并校验文件存在、样式表引用与 CSS 变量落地。

dalomeve
dalomeve
热度 88.59
最近更新 2026-05-17 13:29:15
分类:创作依赖:读写文件 / 代码执行应用场景:UI 原型 / 代码生成 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ui-design-optimizer
Metadata
name
ui-design-optimizer
description
Generate practical UI design systems and starter pages using local style/color/typography datasets. Use for landing page or dashboard UI planning and implementation.

UI Design Optimizer

Goal

Produce a concrete, buildable UI output instead of generic design advice.

Inputs

  • Product/domain description (for example: SaaS dashboard, hiring tool, beauty SPA)
  • Page type (landing page or dashboard)
  • Preferred stack (HTML/CSS by default)

Data Sources

  • data/styles.csv
  • data/colors.csv
  • data/typography.csv
  • data/patterns.csv
  • data/rules.json

Required Workflow

  1. Read relevant rows from style/color/typography data.
  2. Choose one style, one palette, and one typography pair with rationale.
  3. Output a compact design spec:
    • layout pattern
    • color tokens
    • typography tokens
    • interaction rules
  4. If user asks for implementation, generate runnable files (at minimum index.html + styles.css).
  5. Return evidence with file paths and the selected dataset rows/slugs.

Quality Rules

  • Prioritize readability and accessibility (target WCAG AA contrast).
  • Use consistent spacing, type scale, and component states.
  • Avoid placeholder-only output when implementation is requested.
  • Keep generated text UTF-8 clean (no mojibake).

Verification

When files are generated, verify:

  • files exist on disk;
  • HTML references stylesheet correctly;
  • selected style/palette/typography are reflected in CSS variables.

Script Helper

Use scripts/search.ps1 when quick lookup is useful:

powershell -ExecutionPolicy Bypass -File scripts/search.ps1 -Query "saas dashboard" -DesignSystem -ProjectName "Demo"