migrate-design-system
GitHub将设计令牌系统与外部系统(如Material、Ant等)进行映射或迁移,支持从外部采用样式、在外部栈上构建或双向迁移。包含角色交叉表生成、对比度验证及无障碍审计步骤。
Trigger Scenarios
Install
npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -g -y
SKILL.md
Frontmatter
{
"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.",
"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_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.
Bridge to or from external design systems via a role-based crosswalk.
Steps
- Read
${CLAUDE_SKILL_DIR}/../../../design-systems/interop-protocol.md(Crosswalk Method, the three directions, headless-vs-styled guidance, verification). - Use the curated tables in
${CLAUDE_SKILL_DIR}/../../../design-systems/crosswalk.mdfor 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). - 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.
- FROM external → our tokens (adopt their look): re-point
- 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.
Version History
-
62092bd
Current 2026-10-19 09:19
修复插件安装路径可达性问题,确保各安装路由下技能文件引用正确解析,并建立安装指标基线测量。
- 2ffb677 2026-08-28 11:59
- 93a7fbb 2026-07-25 07:41


