agents/projects/chrome-design-system/skills/figma-design-review/SKILL.md
This skill provides a structured workflow for reviewing a Figma design (node or page) and critiquing its alignment with the existing codebase component specifications. It helps bridge the gap between design and implementation by identifying hardcoded values, raw icon usages instead of proper components, and structural mismatches.
//src/).When asked to review a Figma design for code alignment, follow these steps sequentially:
Use the get_design_context tool on the provided Figma URL or node ID.
<div> wrappers versus named components.className values versus design tokens (e.g., var(--desktop/sys/surface)).Identify the main UI components used in the design (e.g., Buttons, Dialogs, Radio Buttons, Text Fields).
project-knowledge skill._Spec.md files using read_file to understand how the components are implemented in the target codebase (WebUI and C++ Views).divs, SVGs, or image masks (imgMask, imgIcon) instead of clean component tags. This happens when Figma Code Connect is missing, causing the API to decompile the visual layers of a component.data-name="RadioButtons", data-name=".base.Buttons") matches an official component defined in the spec files._Spec.md file to identify the true target components (e.g., <cr-radio-button> for WebUI, views::RadioButton for C++)..action-button, .tonal-button).Cross-reference the Figma structure (from Step 1) with the code specifications (from Step 2). Look for:
<cr-dialog>, slot custom footers into slot="footer".Structure your final output clearly for the user. For each identified issue, provide:
<cr-button> or C++ Views / views::RadioButton).Important Output Note: Always prioritize actionable advice that brings the Figma structure closer to the code structure. Explicitly state when a Figma component should be swapped, or when a manual style overrides should be ignored by engineers.
Save the output in a directory out/<ComponentName>_Audit.md in the same directory as this skill.