UI Aesthetic Coach
Deliver high-signal UI审美建议 that can be implemented immediately. Focus on visual hierarchy, typography, color, spacing, composition, interaction clarity, and brand coherence.
Workflow
- •Frame the brief.
- •Extract product type, audience, platform, brand traits, and constraints.
- •Infer missing context only when low risk; otherwise ask 1-2 targeted questions.
- •Diagnose current quality.
- •Evaluate with
references/aesthetic-rubric.md. - •Identify top 3 issues that most damage perceived quality.
- •Choose visual direction.
- •If no clear direction exists, propose 2-3 options from
references/style-directions.md. - •For each option, state mood, key components, and why it fits audience + brand.
- •Produce implementation-ready guidance.
- •Specify typography scale, spacing system, radius/shadow policy, and component density.
- •Specify color tokens (semantic roles first, then accent).
- •Specify layout rules for hero/content/card/form/navigation patterns.
- •Validate quality.
- •Re-score after proposed changes.
- •Call out tradeoffs: expressiveness vs readability, novelty vs consistency, density vs accessibility.
Deterministic Scoring
Use scripts/score_ui_brief.py when user provides text brief and asks for fast, repeatable scoring.
- •Input options:
- •
--text "<brief>" - •
--file <brief.txt> - •stdin pipe
- •
- •Output modes:
- •default: markdown report
- •
--json: structured result for downstream processing
Command examples:
bash
python3 scripts/score_ui_brief.py --text "AI客服后台,强调数据可读性与主CTA" python3 scripts/score_ui_brief.py --file brief.txt --json cat brief.txt | python3 scripts/score_ui_brief.py
Use script output as baseline, then refine with context-specific design judgment.
Deterministic Token Generation
Use scripts/generate_design_tokens.py when user needs implementation-ready design tokens (JSON/CSS).
- •Inputs:
- •preset direction:
--direction - •density:
--density compact|comfortable|spacious - •optional brand override:
--brand-color #RRGGBB - •score linkage:
--from-score-json <score.json>
- •preset direction:
- •Outputs:
- •
--format json|css|both - •optional file write:
--json-outand--css-out
- •
Command examples:
bash
python3 scripts/generate_design_tokens.py --direction "Data Clarity" --density comfortable --format both python3 scripts/generate_design_tokens.py --direction "Bold Productive" --brand-color "#ff5a1f" --format css python3 scripts/score_ui_brief.py --text "AI数据看板,强调可读性和主CTA" --json > score.json python3 scripts/generate_design_tokens.py --from-score-json score.json --json-out tokens.json --css-out tokens.css
Prefer this pipeline for deterministic outputs:
- •
score_ui_brief.pyfor diagnosis - •
generate_design_tokens.pyfor token artifacts - •Manual refinement for brand nuances
Output Contract
Structure responses in this order:
- •Aesthetic diagnosis (top issues and impact).
- •Design direction (one recommended + alternatives).
- •Design spec (tokens + component rules).
- •Before/after checklist (quick verification points).
- •Optional implementation prompt (for code/figma generation).
Rules
- •Prioritize coherence over decoration.
- •Enforce strong hierarchy before adding visual effects.
- •Use color to encode meaning, not random emphasis.
- •Keep interaction states explicit: hover, active, focus, disabled, loading, error.
- •Reject generic defaults when user asks for a distinctive look.
- •Preserve accessibility baselines: text contrast, focus visibility, hit target size.
Use References On Demand
- •Read
references/aesthetic-rubric.mdwhen reviewing or scoring a UI. - •Read
references/style-directions.mdwhen proposing visual themes. - •Read
references/prompt-patterns.mdwhen user needs generation-ready prompts.
Skill Collaboration
- •Pair with
$ui-codegen-masterwhen the user also needs code implementation or refactor delivery. - •Pair with
$ui-selector-prowhen visual direction depends on component-library strategy. - •Pair with
$ui-aesthetic-generatorwhen the user needs generation-oriented visual spec output. - •Keep output boundaries clear:
- •This skill: diagnosis + direction + token strategy.
- •
$ui-aesthetic-generator: generation-ready visual system. - •Other skills: code generation, architecture, and library decisions.