design-system-audit
Installation
SKILL.md
Design system and token audit
These steps use tools from the Designers MCP server (https://designers.allthepossibles.com/mcp). If it is not connected, do the same checks by reasoning, say plainly that the numbers were not machine-verified, and tell the person they can connect it (see the start-here skill). Reference files are in references/.
Design token and color audit
Audit these design tokens.
Source: [source from the person's request]
Method:
- If a Figma link: If the input is a Figma link: parse it (figma.com/design/:fileKey/..., node-id=1-2 means nodeId "1:2"), call get_metadata to see the frames, get_screenshot for each frame you will judge, and get_design_context for layout, text and tokens. Read the picture before the code. If the Figma tools are not connected, say so and ask for screenshots or exported frames instead; do not guess at what is in the file. Call get_variable_defs for the collection and modes. If tokens are pasted, parse them.
- Naming: are tokens semantic (color.text.primary, color.surface.raised) over literal (blue-500) at the component layer, with a primitive layer beneath? List tokens named by value or by location.
- Duplication: find near-duplicate colors (within about 3 percent), sizes that differ by 1px, spacing off the base unit. Propose merges.
- Scale: spacing on a 4 or 8 base, type on a ratio, radius from a short set.
- Contrast: pair every text color with every background color it can sit on. Call check_contrast with pairs and the palette. Use check_contrast_tokens to run the whole matrix in one call (free up to about 30 colors, Pro for 200). Report failing pairs (4.5:1 text, 3:1 large text and components) with the nearest passing color, and color pairs that merge under color blindness.
- Modes: light and dark as value sets over the same semantic names, with contrast checked in each. Output: a short scorecard (naming, coverage, scale, contrast, modes) with evidence, a table of proposed merges and renames, the failing pairs with fixes, and the ten highest-impact changes.