migrate-design-system
Use when an app has to move onto a design system that already exists, such as "migrate the app to our design system", "move every screen onto the new…
от arla6ka★ 650 звёзд на GitHub
Установить migrate-design-system в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Migrate to a design system
Words are in build-design-system/references/glossary.md, bans, widths and voice in the accepted .design-system/taste.md. The system is settled and behaviour stays unchanged, except for announced data-bug fixes. A missing token or component is a gap for the system's owner, never a workaround here. The Never list in build-design-system holds for the coordinator and every worker.
Scripts are in this skill's scripts/. Run each from the repo root as node <this skill>/scripts/<name>.mjs, except scripts/legacy.mjs, which is copied into the repo's scripts/ so CI runs its ratchet. Captures and pixel diffs use build-design-system/scripts/capture.mjs and build-design-system/scripts/pixdiff.mjs, and capture installs build-design-system/scripts/capture-guard.mjs before the first navigation.
Modes
Audit mode is the default. It writes only under .design-system/, which .git/info/exclude keeps out of every commit, cuts no branch, commits nothing and ends with the inventory, the plan and the offer of the full run with its size. Full mode starts only when the ask names the migration or the person accepted the offer (Go, <budget>). "Clean it up" and "fix it" are not clearance.
Steps
- Roles. Add
.design-system/to.git/info/exclude. In full mode use the branch the person named, or cut the run branch and write the branch you started on to.design-system/start-branch, whichland.mjsrefuses. Write.design-system/roles.md: coordinator, worker, verifier, reviewer, each a model orinherit-parent. The writer never grades itself. The verifier is a different agent, on another model family where the host has one. Write.design-system/decisions.tsvas append-only rows (time, phase, decision, why, evidence pointer, result). A wrong call gets a superseding row, never an edit. Evidence is a sha, a path or a command, never prose. - Ready? Run the readiness audits in
build-design-system. Check every open backlog row against the code first. Rows go stale. Some are already fixed, and a "needs a system change" row is often a caller ignoring a prop the system has. No fan-out while a text or control primitive is missing, a gap is open or the system's own check is red. - Inventory.
node <this skill>/scripts/legacy.mjs --init-config --config .design-system/legacy.json, pointlegacyImportsandsystemImportsat the real modules, then--inventory --config .design-system/legacy.json. It exits 2 while a placeholder is left or no file was scanned. Every finding gets a surface. In audit mode, stop here and write the plan. In full mode, copy the script toscripts/legacy.mjsand the config toscripts/legacy.json, and--recordthe baseline (scripts/legacy-baseline.json) in its own commit. - Baselines. Capture every surface, state, width and theme before the first edit, in the environment CI uses, with fixture data and a frozen clock, plus a no-change control capture.
capture.mjsrefuses to start without--writes <file>, and with it until every write in the file is seen blocked (lesson 6). No baseline, no parity claim. Never edit a harness, a baseline or a threshold, or restructure a component to make a diff pass. A baseline that looks wrong is kept as captured and becomes a gate (default: keep it, and fix the bug it shows as anintended change), and the run goes on. - Shared layer first. One agent, alone, lands layout and providers. Then migrate the pilot surface by hand with a verifier, write the codemod from it, diff its output against the hand work, and run it twice. The second run changes nothing. Fan out only after that.
- Fan out. A rolling window, one surface per worker, each brief with a MAY EDIT list, each surface verified by another agent. A retry or a fix goes to a fresh worker with the brief, every later directive and the prior verdict. Read
references/running-many-agents.mdbefore the first spawn. - Land.
land.mjs, one commit per verified surface, then the system's check at that commit. A surface whose diff touches write lines lands with--bodies-check(lesson 5). - Delete legacy. A module with zero callers goes in one change with its adapter and allowlist rows, and the ratchet bans its path.
- Close. Recapture every surface at the final commit. Only verdicts at that commit count. Have a read-only reviewer go through the diff's comments (narration, worker or gate references, "do not change" notes), and offer to turn each "do not change" into a check, then delete the comment. A different agent audits
decisions.tsvagainst the run. Then run the correction pass inreferences/correct.md.
Done when legacy.mjs --zero exits 0 at the final commit (no legacy import and no file mixing the system with legacy, whatever the baseline holds), every raw or palette row --inventory still prints is a listed exception, every surface has a verified verdict at that commit, the system's check exits 0,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/correct.md
- references/lessons.md
- references/parity.md
- references/running-many-agents.md
- scripts/bodies-check.mjs
- scripts/land.mjs
- scripts/legacy.mjs
- scripts/parity.mjs
FAQ
Что делает скилл migrate-design-system?
Use when an app has to move onto a design system that already exists, such as "migrate the app to our design system", "move every screen onto the new components", a rollout, or an adoption audit. Not for making the system or for swapping raw values for tokens, which are build-design-system.
Как установить скилл migrate-design-system?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-design-system запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…