
Fix Design System Finding
Skill针对设计系统审查给出的单条问题修复 Figma 设计:先判断能否干净地修,只备份受影响的节点,再按替换组件实例、用基础组件重组、绑定变量或对齐变体中的一种方式做最小改动,并只验证这一处;做不到就标为受阻。需要 Figma MCP。
name: fix-design-system-finding
description: Fix a specific design-system integration finding in a Figma screen or component, including missing shared components, local overrides, and unbound tokens.
Fix One Design-System Finding
Use this skill after audit-design-system has already identified a concrete issue.
This skill is intentionally narrow:
- one finding at a time
- one offending node or local cluster at a time
- minimal read scope
- minimal write scope
Load these capabilities first:
- Figma MCP read access for the normal inspection tools
- a
figma-use-style helper before anyuse_figmawrite call, when your environment requires one
Use apply-design-system instead when the task is a broader screen-wide reconnect, multiple sections need coordinated changes, or the user explicitly wants a full pass across the frame.
Expected Input
Prefer one of these:
- a single JSON finding from
audit-design-system - the full review JSON plus the specific finding to address
- a paraphrased issue plus a Figma URL or
fileKeyandnodeId
If the finding came from audit-design-system, extract the target from:
code_location.absolute_file_path = /figma/<fileKey>/nodes/<nodeId>
Treat the review result as the scope contract. Do not silently widen from one finding into a full cleanup pass.
Scope Rule
Stay pinned to the selected finding until one of these is true:
fixed: the targeted issue is correctedblocked: the fix requires missing library assets, inaccessible components, or broader product decisionsneeds-follow-up: the targeted node is improved, but a separate adjacent issue remains and should be reviewed independently
If the user pastes multiple findings, either address the one they selected or pick the highest-priority finding and say that is the one being fixed now.
Required Workflow
1. Normalize the Finding
Extract and restate:
fileKey- offending
nodeId - finding title
- why the reviewer flagged it
If the review output does not identify a specific node, stop and ask for either the raw finding JSON or a direct Figma node.
2. Run A Local Compatibility Check When Replacement Choice Is Ambiguous
Before backing anything up or editing the canvas, decide whether a clean fix is actually possible.
Run a local compatibility check when:
- the finding implies a DS swap but does not identify the exact component
- more than one library component looks plausible
- override behavior or sizing is unclear
- the user explicitly wants extra research before writing
Do not continue into writes until the compatibility check returns one of:
safe-to-applyblockedneeds-human-choice
The compatibility check should answer:
- which exact component or variant is the leading candidate
- whether text, icon, state, and size overrides are supported
- whether the replacement can preserve the node's layout contract
If the result is blocked, stop and report the blocker.
If the result is needs-human-choice, stop and ask the minimal clarifying question instead of guessing.
3. Gather Only the Evidence Needed
Before writing, inspect the target with the smallest useful set of reads:
get_screenshotfor the offending node or closest enclosing sectionget_metadatafor structural contextget_variable_defswhen the finding mentions tokens, raw values, color, spacing, or typographyget_code_connect_mapwhen the finding suggests an existing mapped componentsearch_design_systemonly if you still need to locate the replacement primitive
Do not re-review the whole board unless the finding clearly points to a repeated pattern and the repeated pattern is required to choose the fix.
4. Classify the Fix
Choose exactly one remediation mode:
swap-instance: replace an ad-hoc or wrong instance with the correct library component or variantcompose-from-primitives: rebuild the local custom wrapper from published library partsbind-tokens: replace raw values with variables or stylesalign-variant: move an existing instance to the correct variant or property stateblocked: no valid library-backed fix is currently possible
If more than one mode seems plausible, prefer the smallest change that satisfies the original finding.
5. Back Up Only the Affected Area
Before destructive edits, duplicate only the offending node or the smallest enclosing local section.
Name the backup clearly, for example:
Backup - Fix finding 1Backup - Custom nav
Make the backup in its own write call and return the created node ID.
6. Apply the Fix Incrementally
Do not rebuild the whole screen.
Work in small steps:
- inspect current node IDs and component linkage
- import or locate the needed library component or variable
- replace, compose, or retokenize only the targeted area
- return all created and mutated node IDs
Prefer swapComponent() when it preserves the node's position and valid overrides.
Prefer rebuilding beside the original when:
- the current node is a local wrapper with mixed custom structure
- the review finding points at a custom composition, not a single primitive
- you need visual comparison before replacing the original
If the first validation pass shows that the recommended component regresses layout, text visibility, icon behavior, or width contract, stop. Report blocked or needs-follow-up instead of continuing to force the same primitive into place.
7. Validate the Finding, Not the Entire Screen
After the write:
- screenshot the changed node or its immediate section
- confirm the specific review complaint is no longer true
- confirm the result is library-backed or token-bound when that was the goal
- confirm spacing and text overrides still make sense
Only expand validation beyond the local section if the fix touched a global pattern such as navigation.
Decision Heuristics
- If the finding says a primitive was recreated as a frame, bias toward
swap-instance. - If the finding says repeated local wrappers should collapse into a shared pattern, fix one representative node unless the task explicitly asks to roll the fix across all siblings.
- If the finding is about raw values beside tokenized peers, bias toward
bind-tokens. - If the finding is about a locally edited instance with the wrong size or state, bias toward
align-variant. - If the library lacks the required component family or the import fails, mark it
blockedinstead of improvising a fake connection. - If a DS component exists but cannot preserve the node's text/icon/sizing contract, mark it
blockedorneeds-human-choiceinstead of forcing the swap.
Writing Rules
- Keep the write scope tightly aligned to the selected finding.
- No write before a
safe-to-applycompatibility outcome when replacement choice is ambiguous. - Do not claim the whole screen is "on system" after fixing one finding.
- Prefer exact component keys and variable IDs over names.
- Do not continue into unrelated cleanup just because you noticed more drift.
- If a broader refactor is obviously needed, finish the targeted fix or report the blocker, then recommend
apply-design-systemfor the next pass.
Deliverable Format
When closing the task, report:
Finding fixed: what changed and on which nodeValidation: how you confirmed the original issue is resolvedBlockedorFollow-up: only if the finding could not be fully resolved
Keep the report tied to the single finding. Avoid screen-wide summaries unless the user asks for them.
相关资源

Create Anatomy
Skill在 Figma 里为组件生成结构解剖标注:在组件实例上放置编号标记并填写属性表,再为每个子组件单独生成一节,列出包括隐藏元素在内的内部结构。属于 uSpec 技能集,需要 create-component-md 生成的组件 .md 规格、Figma MCP,以及在 uspecs.config.json 中配置好的模板。
redongreen/uSpec251
Apply Design System
Skill把已有的 Figma 设计重新接回已发布的设计系统组件:先备份画框,逐个区块判断已接入、可直接替换、需用基础组件重组还是无法处理,再一次只改一个区块,替换掉脱离组件的图层、本地封装与一次性组件。需要 Figma MCP 的读写能力。
edenspiekermann/Skills68
Audit Design System
Skill只读审查 Figma 页面或组件与设计系统脱节的地方:用普通框架手搭的共享组件、本应合并的重复结构、未绑定变量的硬编码颜色与间距、变体走样等,每条发现都要有 Figma 结构上的证据,可附建议替换的组件,输出 Markdown 或 JSON。需要 Figma MCP。
edenspiekermann/Skills68
Figma Design to Code
Skill把 Figma 设计稿还原成项目里的生产代码:以设计截图为视觉目标,优先复用已有组件、设计变量与 Code Connect 映射。Figma 官方维护,需连接 Figma MCP 服务(免费计划每月仅 6 次调用)。
figma/mcp-server-guide2.2k
figma-generate-design
Skill把代码里的页面、弹窗、侧栏等界面或文字描述,搭建成 Figma 画布上可编辑的设计稿,优先复用文件里已发布设计系统的组件与变量。Figma 官方维护,需连接 Figma 远程 MCP 服务器,并同时安装 figma-use 技能。
figma/mcp-server-guide2.2k
Figma Skills (mcp-server-guide)
SkillFigma 官方技能合集:把设计稿还原成代码、用 Code Connect 映射组件、从代码生成设计系统组件库、在画布上搭建页面和 FigJam 图表。需连接 Figma MCP 服务器;写入画布目前处于 Beta 阶段,暂时免费。
figma/mcp-server-guide2.2k