Agent Skills
› plugin87/ux-ui-agent-skills
› brandkit
brandkit
GitHub根据简报生成完整的品牌设计系统,包含DTCG令牌、色彩、排版及主题CSS。确保符合WCAG无障碍标准,支持明暗模式,为产品提供可维护的设计基础。
Trigger Scenarios
用户需要从零开始构建品牌或设计基础
需要生成新的调色板和字体系统
需要可主题化的令牌套件
Install
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -g -y
SKILL.md
Frontmatter
{
"name": "brandkit",
"invocation": "user",
"description": "Generate a complete, accessible brand design system from a brief — primitive → semantic → component DTCG tokens (color, type, spacing, radius, shadow, motion), light + dark, plus a single theme.css — verified for WCAG. Use when the user wants a from-scratch brand\/design foundation, a new palette + type system, or a themeable token kit for a product."
}
Skill: Brand Kit
Stand up the foundation (one token system everything renders from) before any screen. Get this right and every page stays consistent and themeable from one place.
Steps
- Brief Inference (mandatory) — name the industry, audience, the one mood adjective, and motion depth (
taste/design-taste.md→ Brief Inference). Pick an anchoring archetype fromtaste/aesthetic-systems.md. - Primitives — generate the brand color ramp in OKLCH (11 shades, consistent chroma) + a neutral ramp; verify the 500 shade ≥ 4.5:1 on white (text) and 600 ≥ 3:1 (UI) per
.claude/rules/tokens-and-color.md→ Color Generation. - Semantic layer — map roles to primitives:
action.primary/-hover/destructive,text.{primary,secondary,on-action,link},surface.{page,card,raised},border.{default,strong},feedback.{success,warning,error,info}— and the dark overrides (designed, not inverted). - Scales — Major Third type scale + composite text styles, 4px spacing scale, radius tiers, elevation, and
tokens/motion.json-style durations/easings. - Emit the DTCG
tokens/*.json(3-tier) + a singletheme.css(the one shared source,[data-theme="dark"]overrides). Optionally feed the token-build pipeline (token-buildskill) for other platforms.
Verification (definition of done)
python3 scripts/validate_tokens.py— valid JSON, all aliases resolve.python3 scripts/validate_contrast.py— required text/action/border pairs pass WCAG AA in light AND dark;border.strong≥ 3:1.python3 scripts/validate_theme_refs.py— every componentvar(--…)resolves to the theme.- One theme, no per-page palettes; destructive = danger token (not primary); zero hardcoded values.
Output is a verified token foundation — the measurable part is provable (run
npm run verify). Brand "feel" still benefits from a human review againsttaste/design-taste.md.
Version History
-
2ffb677
Current 2026-08-28 11:59
将CLAUDE.md精简并将规则移至rules目录;新增CLI命令用于初始化产品模板;更新验证脚本以支持显式路径和更严格的WCAG检查。
- 93a7fbb 2026-07-25 07:40


