brand-guidelines-enforcer
[设计系统] UI文案和视觉主题的轻量级品牌指南执行。当(1)根据品牌语调检查UI标签/按钮/错误消息,(2)验证特定环境中的颜色使用,(3)确保保留组件的正确使用,(4)用户要求"检查品牌指南"、"验证品牌合规性"、"审阅文案语调"或"执行设计规则"时使用。
📖 中文导读:[设计系统] UI文案和视觉主题的轻量级品牌指南执行。当(1)根据品牌语调检查UI标签/按钮/错误消息,(2)验证特定环境中的颜色使用,(3)确保保留组件的正确使用,(4)用户要求"检查品牌指南"、"验证品牌合规性"、"审阅文案语调"或"执行设计规则"时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: brand-guidelines-enforcer description: "[Design System] Lightweight brand guidelines enforcement for UI copy and visual motifs. Use when (1) checking UI labels/buttons/error messages against brand tone, (2) validating color usage in specific contexts, (3) ensuring reserved components are used correctly, (4) user asks to 'check brand guidelines', 'validate brand compliance', 'review copy tone', or 'enforce design rules'."
Brand Guidelines Enforcer
Lightweight enforcement of brand guidelines for UI copy and visual motifs.
Quick Start
python3 scripts/enforce_brand.py --guidelines brand.yml --source src/
Violation Types
| Type | Severity | Description |
|---|---|---|
wrong-color-context |
warning | Color used outside allowed context |
tone-violation |
warning | Copy doesn't match brand voice |
reserved-component-misuse |
error | Reserved component in wrong screen |
prohibited-word |
error | Prohibited word/pattern found |
capitalization-error |
info | Wrong capitalization style |
Detection Examples
Tone Violations
// Violation: unfriendly error message
<ErrorMessage>Error occurred: Invalid input</ErrorMessage>
// Suggested: "Something went wrong. Please check this field."
// Violation: generic CTA
<Button>Click here</Button>
// Suggested: "Get started" or "Continue"