使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/plugin87/ux-ui-agent-skills --skill brandkit开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Skill: Brand Kit
Step 0 — is the kit here? This skill reads files from the kit. Check once:ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSINGonly the skill folders were installed, which is whatnpx skills adddoes. Say so plainly, point the user atnpx ux-ui-agent-skills initor the plugin install, and stop. Do not guess the contents of a file you could not open.
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 (
${CLAUDE_SKILL_DIR}/../../../taste/design-taste.md→ Brief Inference). Pick an anchoring archetype from${CLAUDE_SKILL_DIR}/../../../taste/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
${CLAUDE_SKILL_DIR}/../../../tokens/motion.json-style durations/easings. - Emit the DTCG
${CLAUDE_SKILL_DIR}/../../../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 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_tokens.py— valid JSON, all aliases resolve.python3 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_contrast.py— required text/action/border pairs pass WCAG AA in light AND dark;border.strong≥ 3:1.python3 ${CLAUDE_SKILL_DIR}/../../../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 (runnpm run verify). Brand "feel" still benefits from a human review against${CLAUDE_SKILL_DIR}/../../../taste/design-taste.md.


