一键导入
audit-component
Audit a node by comparing Figma design with its implementation, report audit result
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit a node by comparing Figma design with its implementation, report audit result
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create git commits
Code review
Convert Figma designs to frontend code by orchestrating an Agent Team
Convert Figma designs to frontend code
Implement all nodes from component spec with Figma design context
Implement all nodes from component spec with Figma design context, fix code based on audit results
| name | audit-component |
| description | Audit a node by comparing Figma design with its implementation, report audit result |
Resolve Params:
devServerURL: from Team Lead or $ARGUMENTSOn receiving nodeId from Team Lead or $ARGUMENTS:
Get Node-Level Screenshots:
get_screenshot with nodeId to get node-level screenshotbrowser_navigate to devServerURL if not already therebrowser_snapshot to get the accessibility tree[data-node-id="{nodeId}"] in the snapshot, extract the corresponding refbrowser_take_screenshot with this ref to get node-level screenshot, save to .playwright-mcp directoryref in subsequent checksVisual Check:
Style Check:
get_design_context with nodeId to get design context
browser_evaluate to run getComputedStyle() on data-node-id="{nodeId}" element to get implementation context
Compare with tolerance:
| Property | Tolerance |
|---|---|
| display, flex-direction | exact |
| font-family, font-weight | exact |
| font-size | +-1px |
| line-height | +-2px |
| color, background-color | exact match preferred, RGB channel delta <= 5 for rendering noise |
| opacity | +-0.05 |
| padding, margin, gap | +-2px |
| border-radius | +-1px |
| width, height | +-2px |
| box-shadow | visual match |
Interaction Check:
get_metadata with nodeId to check for interaction variants (hover, disabled, etc.)browser_hover on the refbrowser_take_screenshot with refbrowser_evaluate to check disabled/aria-disabled on the refbrowser_take_screenshot with refReport auditResult to the Team Lead:
nodeId: the node auditedscore: 1-10, overall fidelity between design and implementationpass: true if score >= 8issues: flat list of all issues, each includes:
category: visual | style | interactiondescription: what is wrong (e.g., font-size mismatch, icon missing, layout shift, etc.)expected: design value or expected behavioractual: implementation value or actual behaviorWait for next nodeId