apply-design-system
БесплатноБез исполняемых скриптовНе проверенThis skill helps you integrate an existing Figma design with a published design system, ensuring consistency and efficiency by replacing detached layers or…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
Connect A Design To A Design System
Use this skill for an existing Figma design that should reuse a published design system instead of detached layers, local wrappers, or one-off components.
This skill supports two entry modes:
review-then-apply: the user wants a broad pass, but the exact offending sections are not yet identifiedapply-known-scope: the user already knows which sections or clusters should be brought onto the design system
Load these capabilities first:
- Figma MCP read access for tools such as
get_metadata,get_screenshot, andsearch_design_system - a
figma-use-style helper before anyuse_figmacall, when your environment requires one - a screen-building companion workflow, when available, if you are reconnecting a full screen or page
Do not use this skill as the default follow-up to a single audit-design-system finding. For one targeted issue, use fix-design-system-finding so the write scope stays narrow.
Core Rule
Do not treat a section as "connected" just because it contains a few design-system buttons or icons.
This skill is for multi-section reconciliation. If the task can be satisfied by fixing one specific reviewed node, the narrower finding-fix skill is the better choice.
Classify each section into exactly one bucket:
already-connected: the section itself is a library instance or a composition the user explicitly accepts as already canonicalexact-swap: a published library component or variant can replace the section directlycompose-from-primitives: no single library component exists, but the section can be rebuilt from published library primitivesblocked: the library does not expose the needed components, imports fail, or the section is intentionally bespoke
Required Workflow
1. Determine Scope First
Before gathering replacement candidates, decide whether the screen needs an initial audit.
If scope is not already identified:
- Run audit-design-system or perform an equivalent internal audit pass.
- Collapse the review output into section-sized work packages instead of treating every micro-finding as a separate rewrite task.
- If the review produces only one narrow finding, switch to fix-design-system-finding instead of continuing here.
If scope is already identified, continue directly.
Do not skip component discovery just because a review already exists. Review identifies drift; this skill still has to choose the actual replacement primitives and variants.
2. Capture the Current State
Before writing:
- Get the target frame metadata with
get_metadata. - Get a screenshot with
get_screenshot. - If you need
get_design_contextand Figma asks the Code Connect question, ask the user exactly as instructed by the tool before proceeding.
For this skill, prefer get_metadata plus use_figma for structure discovery. get_design_context is optional unless it unlocks missing context.
3. Back Up the Target Screen
Before destructive edits, duplicate the frame or page and place the backup to the right.
Name it clearly, for example:
Backup - StartBackup - Mobile dashboard
Do this in its own use_figma call and return the created node ID.
4. Inventory the Existing Screen
Inspect the target frame before searching the library.
Use use_figma to gather:
- top-level section instances
- each section's
mainComponent - whether that component is local, remote, or missing
- nested published components already used inside each local wrapper
- exposed text and variant properties when present
Prefer exact keys over names. Names are only hints.
Useful read-only inventory pattern:
(async () => {
try {
await figma.setCurrentPageAsync(figma.root.children.find(p => p.id === "PAGE_ID"));
const frame = await figma.getNodeByIdAsync("FRAME_ID");
const sections = frame.findAll(n => n.type === "INSTANCE").map(inst => {
const mc = inst.mainComponent;
const cs = mc?.parent?.type === "COMPONENT_SET" ? mc.parent : null;
return {
instanceId: inst.id,
instanceName: inst.name,
componentName: mc?.name ?? null,
componentKey: mc?.key ?? null,
componentSetName: cs?.name ?? null,
componentSetKey: cs?.key ?? null,
};
});
figma.closePlugin(JSON.stringify({ createdNodeIds: [], mutatedNodeIds: [], sections }));
} catch (e) {
figma.closePluginWithFailure(e.message);
}
})()
5. Build a Component Map From the Design System
Prefer authoritative sources in this order:
- Existing screens in the same library or workfile that already use the system
- Known library pages inspected directly with
use_figma search_design_systemas a fallback only
When using search_design_system, remember:
- results may include unrelated team or community libraries
- broad queries are useful for discovery
Установить apply-design-system в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл apply-design-system?
This skill helps you integrate an existing Figma design with a published design system, ensuring consistency and efficiency by replacing detached layers or local components with standardized elements. Use it when you want a broad review of the design's compliance or when you already know specific sections that need to be updated to the design system.
Как установить скилл apply-design-system?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл apply-design-system запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies 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…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic