brandkit · plugin87 — скилл для Claude Code: токены и установка
Создаёт систему бренд-токенов и theme.css по брифу, включая светлую и тёмную темы. Нужен для новой палитры, типографики и единой основы интерфейса.
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a claude-codeЧто делает brandkit
Скилл выводит трёхуровневые DTCG-токены: примитивы, семантические роли и значения компонентов. Он строит цветовые шкалы в OKLCH, типографическую шкалу Major Third, отступы 4px, радиусы, тени и параметры анимации. Для светлой и тёмной схем создаётся один theme.css с переопределениями [data-theme="dark"].
Перед генерацией скилл определяет отрасль, аудиторию, настроение и глубину анимации по брифу, затем выбирает эстетический архетип. Он проверяет JSON и ссылки между токенами, контраст пар для текста, действий и границ по WCAG AA, а также разрешение CSS-переменных. Автовызов модели отключён, поэтому работу brandkit нужно запросить явно.
Для работы нужны файлы набора токенов. Если проверка возвращает KIT_MISSING, скилл прекращает генерацию и предлагает выполнить npx ux-ui-agent-skills init. Визуальное впечатление после проверок всё равно стоит сверить с design-taste.md.
Какие задачи решает
- создать палитру и типографику из брифа
- разложить стили на DTCG-токены
- добавить светлую и тёмную темы
- проверить контраст WCAG AA
- собрать единый
theme.css
Примеры запросов агенту
- Примени скилл
brandkitи создай бренд-систему по этому брифу. - С помощью
brandkitподготовь токены для светлой и тёмной темы. - Запусти
brandkitдля новой палитры и проверь контраст токенов.
Как установить brandkit
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a claude-code2Вручную: положить файлы
~/.claude/skills/brandkit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/brandkit/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a codex2Вручную: положить файлы
.agents/skills/brandkit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a cursor2Вручную: положить файлы
.cursor/skills/brandkit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install plugin87/ux-ui-agent-skills brandkit2Вручную: положить файлы
.github/skills/brandkit/SKILL.md1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a gemini-cli2Командой платформы
gemini skills install https://github.com/plugin87/ux-ui-agent-skills --path .claude/skills/brandkitВручную: положить файлы
.devin/skills/brandkit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора16
Другие версии brandkit
Похожие
Рядом в теме «Дизайн»
Всё по теме «Дизайн» →Вопросы о brandkit
Как установить brandkit в Claude Code?
Выполните npx skills add plugin87/ux-ui-agent-skills --skill brandkit -a claude-code дважды. Затем используйте файл ~/.claude/skills/brandkit/SKILL.md.
Что делает brandkit?
Скилл создаёт токены цветов, типографики, отступов, радиусов, теней и анимации по брифу. Он формирует theme.css для светлой и тёмной тем и запускает проверки токенов и контраста.
Что делать при ошибке KIT_MISSING?
Она означает, что установлены только папки скилла, а файлы набора токенов не найдены. Выполните npx ux-ui-agent-skills init, затем снова запустите скилл.
Исходный текст
SKILL.md · MIT
---
name: brandkit
description: Generate a complete, accessible brand design system from a brief, as 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.
# `invocation:` was not a field Claude Code reads - unknown frontmatter keys are
# ignored without an error, so these six were auto-invocable the whole time they
# were marked user-only. This is the field that actually does it.
disable-model-invocation: true
---
# 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_MISSING`
> On `KIT_MISSING` only the skill folders were installed, which is what
> `npx skills add` does. Say so plainly, point the user at
> `npx ux-ui-agent-skills init` or 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
1. **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`.
2. **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_SKILL_DIR}/../../../.claude/rules/tokens-and-color.md` → Color Generation.
3. **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).
4. **Scales**: Major Third type scale + composite text styles, 4px spacing scale, radius tiers, elevation, and `${CLAUDE_SKILL_DIR}/../../../tokens/motion.json`-style durations/easings.
5. **Emit** the DTCG `${CLAUDE_SKILL_DIR}/../../../tokens/*.json` (3-tier) + a single `theme.css` (the one shared source, `[data-theme="dark"]` overrides). Optionally feed the token-build pipeline (`token-build` skill) 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 component `var(--…)` 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 against `${CLAUDE_SKILL_DIR}/../../../taste/design-taste.md`.
© plugin87 · MIT · plugin87/ux-ui-agent-skills