返回 Skill 列表
extension
分类: 开发与工程无需 API Key

brand-guidelines-enforcer

[设计系统] 为UI文本和视觉主题提供轻量级的品牌指南执行。在以下情况下使用:(1) 根据品牌调性检查UI标签/按钮/错误信息,(2) 验证特定上下文中的颜色使用,(3) 确保保留的组件被正确使用,(4) 用户要求'检查品牌指南'、'验证品牌一致性'、'审查文案风格'或'执行设计规则'。

person作者: jakexiaohubgithub

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"