audit-design-system
Audit a Figma screen or component for design-system integration drift, including missing shared components, local overrides, and…
Review an existing design and connect it to design system components.
$ npx -y skills add edenspiekermann/Skills --skill apply-design-system --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/apply-design-systemContext preview
The summary Claude sees to decide when to auto-load this skill.
Review an existing design and connect it to design system components.
name: apply-design-system description: Review an existing design and connect it to design system components.
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:
Load these capabilities first:
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](../fix-design-system-finding/SKILL.md) so the write scope stays narrow.
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:
Before gathering replacement candidates, decide whether the screen needs an initial audit.
If scope is not already identified: 1. Run [audit-design-system](../audit-design-system/SKILL.md) or perform an equivalent internal audit pass. 2. Collapse the review output into section-sized work packages instead of treating every micro-finding as a separate rewrite task. 3. If the review produces only one narrow finding, switch to [fix-design-system-finding](../fix-design-system-finding/SKILL.md) 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.
Before writing: 1. Get the target frame metadata with `get_metadata`. 2. Get a screenshot with `get_screenshot`. 3. If you need `get_design_context` and 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.
Before destructive edits, duplicate the frame or page and place the backup to the right.
Name it clearly, for example:
Do this in its own `use_figma` call and return the created node ID.
Inspect the target frame before searching the library.
Use `use_figma` to gather:
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);
}
})()Prefer authoritative sources in this order: 1. Existing screens in the same library or workfile that already use the system 2. Known library pages inspected directly with `use_figma` 3. `search_design_system` as a fallback only
When using `search_design_system`, remember:
For each candidate, capture:
Do not default blindly to the library's primary or default variant.
Before choosing a variant, inspect the original node for:
Then compare those cues against the available component-set variants and choose the closest match. If the family is correct but th
This repository packages reusable Figma design-system workflows as portable skills. The canonical source lives in skills/.
Audit a Figma screen or component for design-system integration drift, including missing shared components, local overrides, and…
Fix a specific design-system integration finding in a Figma screen or component, including missing shared components, local…