Agent Skills › plugin87/ux-ui-agent-skills › migrate-design-system

migrate-design-system

GitHub

用于在不同设计系统间迁移或互操作,通过角色映射表将外部设计系统(如Material 3、Ant等)与内部Token体系进行转换,支持样式适配、主题桥接及无障碍验证。

.claude/skills/migrate-design-system/SKILL.md plugin87/ux-ui-agent-skills

触发场景

用户提到设计系统迁移 需要对接外部UI库或设计规范 涉及Token系统的互操作性配置

安装

npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -g -y
更多选项

非标准路径

npx skills add https://github.com/plugin87/ux-ui-agent-skills/tree/main/.claude/skills/migrate-design-system -g -y

不安装直接使用

npx skills use plugin87/ux-ui-agent-skills@migrate-design-system

指定 Agent (Claude Code)

npx skills add plugin87/ux-ui-agent-skills --skill migrate-design-system -a claude-code -g -y

安装 repo 全部 skill

npx skills add plugin87/ux-ui-agent-skills --all -g -y

预览 repo 内 skill

npx skills add plugin87/ux-ui-agent-skills --list

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_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.

版本历史

  • def84a7 当前 2026-11-03 02:21

    版本3.0统一文档和代码中的标点符号为连字符,移除旧版封面并更新README标语,修复截图检查逻辑,确保构建和测试全部通过。

  • 62092bd 2026-10-19 09:19

    修复插件安装路径可达性问题,确保各安装路由下技能文件引用正确解析,并建立安装指标基线测量。

  • 2ffb677 2026-08-28 11:59
  • 93a7fbb 2026-07-25 07:41

同 Skill 集合

.claude/skills/a11y-audit/SKILL.md
.claude/skills/apply-aesthetic/SKILL.md
.claude/skills/brandkit/SKILL.md
.claude/skills/critique/SKILL.md
.claude/skills/design-code/SKILL.md
.claude/skills/design-component/SKILL.md
.claude/skills/design-doctrine/SKILL.md
.claude/skills/design-qa/SKILL.md
.claude/skills/design-review/SKILL.md
.claude/skills/design-tokens/SKILL.md
.claude/skills/figma-integration/SKILL.md
.claude/skills/gate/SKILL.md
.claude/skills/governance/SKILL.md
.claude/skills/grill-me/SKILL.md
.claude/skills/image-to-code/SKILL.md
.claude/skills/observe/SKILL.md
.claude/skills/performance/SKILL.md
.claude/skills/prototype/SKILL.md
.claude/skills/redesign/SKILL.md
.claude/skills/scaffold-project/SKILL.md
.claude/skills/ship/SKILL.md
.claude/skills/token-build/SKILL.md
.claude/skills/ux-writing/SKILL.md
.claude/skills/data-dashboard/SKILL.md
.claude/skills/design-screen/SKILL.md

元信息

文件数
0
版本
def84a7
Hash
fe77e495
收录时间
2026-07-25 07:41

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-04 14:17
浙ICP备14020137号-1