migrate-design-system — скилл для Claude Code: перенос дизайн-систем
Скилл сопоставляет ваши дизайн-токены с внешней системой: Material 3, Apple HIG, Fluent, Carbon, shadcn/ui. Пригодится при миграции или переходе на чужой стек.
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a claude-codeЧто делает migrate-design-system
Скилл работает через ролевой кроссволк. Он читает протокол сопоставления и готовые таблицы для Material 3, Apple HIG, Fluent 2, Carbon, shadcn/ui и Radix, а для остальных систем выводит маппинг сам — по роли и смыслу токена на шести осях: цветовые роли, типографическая шкала, шаг отступов, радиус, тени, анимация.
Направление выбираете вы. Либо тянете чужой вид в свои токены и переуказываете semantic.*, либо ставите свои компоненты на чужую основу и темизируете их примитивы. Третий путь — миграция экран за экраном: аудит, маппинг, слой алиасов, проверка.
Перед первым запуском скилл проверяет, лежат ли рядом файлы набора токенов. Если установлены только папки скиллов — а именно так делает npx skills add — он честно об этом скажет и остановится, потому что гадать о содержимом файла, который не открылся, не станет. Дальше нужен npx ux-ui-agent-skills init или установка плагина. Каждую сопоставленную пару цветов стоит прогнать через проверку контраста: маппинг легко ломает тёмную тему и состояния.
Какие задачи решает
- сопоставить свои токены с Material Design 3
- перевести палитру и шкалу на Apple HIG
- построить компоненты поверх shadcn/ui или Radix
- провести миграцию дизайн-системы экран за экраном
- проверить контраст после переноса цветов
Примеры запросов агенту
- сопоставь наши токены с Material Design 3 и покажи кроссволк
- переведи нашу палитру на Apple HIG, начни с цветовых ролей
- составь план миграции на Carbon по экранам
Как установить migrate-design-system
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a claude-code2Вручную: положить файлы
~/.claude/skills/migrate-design-system/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/migrate-design-system/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a codex2Вручную: положить файлы
.agents/skills/migrate-design-system/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a cursor2Вручную: положить файлы
.cursor/skills/migrate-design-system/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install plugin87/ux-ui-agent-skills migrate-design-system2Вручную: положить файлы
.github/skills/migrate-design-system/SKILL.md1Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a gemini-cli2Командой платформы
gemini skills install https://github.com/plugin87/ux-ui-agent-skills --path .claude/skills/migrate-design-systemВручную: положить файлы
.devin/skills/migrate-design-system/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о migrate-design-system
Как установить migrate-design-system в Claude?
Выполните npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a claude-code. После этого скилл окажется в ~/.claude/skills/migrate-design-system/SKILL.md.
Что делает migrate-design-system?
Строит таблицу соответствия между вашими токенами и внешней дизайн-системой, а при миграции добавляет план перехода и проверенные переопределения токенов.
Что нужно, чтобы скилл заработал?
Рядом должны лежать файлы набора токенов. Если установлены только папки скиллов, скилл сообщит об этом и попросит выполнить npx ux-ui-agent-skills init или поставить плагин.
Исходный текст
SKILL.md · MIT
---
name: migrate-design-system
description: Map this token system to or from any external design system (Material Design 3, Apple HIG, Fluent, Carbon, Ant, shadcn/ui, Radix, Chakra, Mantine, Bootstrap…). Adopt their look, build on their stack, or migrate between systems. Use when the user mentions interop, migration, or a specific design-system/component-library bridge.
# `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: Migrate / Interop Design System
> **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.
Bridge to or from external design systems via a role-based crosswalk.
## Steps
1. Read `${CLAUDE_SKILL_DIR}/../../../design-systems/interop-protocol.md` (Crosswalk Method, the three directions, headless-vs-styled guidance, verification).
2. Use the curated tables in `${CLAUDE_SKILL_DIR}/../../../design-systems/crosswalk.md` for Material 3 / Apple HIG / Fluent 2 / Carbon / shadcn/ui / Radix. For others, derive a mapping with the Crosswalk Method (map by role/intent across 6 axes: color roles, type scale, spacing unit, radius, elevation, motion).
3. Choose the direction:
- **FROM** external → our tokens (adopt their look): re-point `semantic.*`.
- **TO** external stack (our components on their foundation): theme their primitives with our tokens.
- **Migrate**: Audit → Map → Bridge (alias layer) → Verify, screen by screen.
4. **Verify** every mapped color pair for contrast (`${CLAUDE_SKILL_DIR}/../../../scripts/contrast.py` / `a11y-audit`); confirm all 8 states + dark mode survive the mapping.
## Output
A crosswalk table (our token → their token → value note), a bridge plan if migrating, and verified token overrides. Render via `design-code`.
© plugin87 · MIT · plugin87/ux-ui-agent-skills