自动修改设计稿 Plugin

Productivity Tool (for UX Design)
自动修改设计稿Plugin

2025 / 11 - 2026 / 1
AI提效项目
项目背景
项目背景
从模版 / 从旧设计稿开始设计:只需修改图层可见性 / 修改文本
- 在实际项目中,很多时候需要修改模版 / 旧设计稿
- 设计师只需要调整图层的可见性 / 修改设计稿上的文本
模版/旧设计稿

需求

手动修改
设计机会
人工修改效率低,Agent可以自动化?
反思:发现问题
?
设计师
模版/旧设计稿
显示/隐藏子组件
修改文本
微调
完成
Agent
模版/旧设计稿
Plugin (Agent) 开发
Plugin框架
需求 + 原设计稿 → Figma Plugin → 设计稿

模版 / 旧设计稿


PRD / 需求文本

Agent 搭建平台

Figma Plugin


设计稿

需求 + 原设计稿
Figma Plugin
设计稿
Plugin框架
Figma Plugin: 修改图层可见性 / 替换文本
需求 + 原设计稿

模版 / 旧设计稿

PRD / 需求文本
"layerStructure":
{"layers":[{"id":"451:112141","name":"Space page","type":"FRAME","visible":true,"actuallyVisible":true,"children":[{"id":"451:112142","name":"Topbar","type":"INSTANCE","visible":true,"actuallyVisible":true,"children":[{"id":"I451:112142;104:304","name":"Frame 1312316448","type":"FRAME","visible":true,"actuallyVisible":true,"children":[{"id":"I451:112142;104:306","name":"icon","type":"INSTANCE","visible":true,"actuallyVisible":true,"children":[{"id":"I451:112142;104:306;305:55518","name":"Icon / Menu","type":"INSTANCE","visible":true,"actuallyVisible":true,"children":[{"id":"I451:112142;104:306;305:55518;4412:34891","name":"Union","type":"VECTOR","visible":true,"actuallyVisible":true}]},{"id":"I451:112142;104:306;305:55519","name":"icon-wrapper-14px","type":"INSTANCE","visible":false,"actuallyVisible":false,"children":[{"id":"I451:112142;104:306;305:55519;226:14623","name":"Vector 130","type":"VECTOR","visible":true,"actuallyVisible":false}]}]},{"id":"I451:112142;104:536","name":"logo","type":"INSTANCE","visible":true,"actuallyVisible":true,"children":[{"id":"I451:112142;104:536;1389:23875","name":"SYMBOL","type":"INSTANCE",[{"id":"I451:112142;104:328;353:19867","name":"ICON类型=已整合, 尺寸=16x16, 类型=search","type":"INSTANCE","visible":true,"actuallyVisible":true,"children":[{"id":"I451:112142;104:328;353:19867;5323:4238","name":"Exclude","type":"VECTOR","visible":true,"actuallyVisible":true}]}]}]}]},
[Sidebar]
Title: Naming
1st Menu: Registrar
- Service
- Service Group
- Audit Log(Phase2)
2nd Menu: Consumer
- Consumer SDK
3rd Menu: Admin
- Namespace
[Filter Label]
- Service Group Name
- Namespace
- CMDB Service
- Service Count
- Update by | Update at
- Create by | Create at
[Table]
Title: Service Group List Page
Header:
- Service Group Name
- Namespace
- CMDB Service
- Service Count
- Update by | Update at
- Create by | Create at
- Action
Action Column Button Text:
- Edit
- Detail
- Delete
Figma Plugin
输入的信息

修改图层可见性 / 替换文本




调试信息 & 手动修改


设计稿

设计稿

迭代优化
Plugin框架
- Prompt优化
更新prompt后,可以更稳定修改可见性以匹配prd中的table结构
复盘迭代
Before
❌ 结构替换出错

# Role
你是一个专业的Text Replacer,负责分析PRD文档和Figma图层结构,智能判断需要修改的文本内容。
## Objectives
负责分析我给到的PRD和Figma某个图层的结构和文本信息,判断需要把图层中的哪个文本改成什么。
## Steps
- 分析PRD内容:仔细阅读PRD文档,提取所有与文本修改相关的需求
- 分析Figma图层结构:理解图层的层次结构和文本内容
- 如果图层结构和PRD中提供的文本信息结构不一致,根据PRD通过修改Visible属性来改变图层结构
- 智能匹配:将PRD中的文本修改需求与Figma图层中的实际文本进行匹配
- 生成建议:输出具体的图层visible属性切换文本替换建议
## Constraints:
- 只修改PRD中明确提到的文本内容
- 保持文本的语义和上下文一致性
- 不修改与PRD无关的文本
- 确保修改后的文本符合产品需求
- 如果PRD中没有明确的文本修改需求,返回空数
## Output Format:
[{"nodeId": "图层的唯一ID","oldText": "当前文本内容","newText": "修改后的文本内容","reason": "修改原因,基于PRD的具体要求"
"oldVisible":False
"newVisible":True}]
Let's think step by step.
After
✅ 结构替换成功

# Role
你是一个专业的设计师,负责分析PRD文档和Figma图层结构,智能判断需要修改的图层可见性和文本内容。
## Objectives
负责分析我给到的PRD和Figma某个图层的结构和文本信息,判断如何修改figma中的图层的可见性以匹配PRD中描述的结构,以及如何修改figma的文本以匹配PRD中的相应文本。
## Steps
- 分析PRD内容:仔细阅读PRD文档,分析所有与图层结构和文本修改相关的需求
- 分析Figma图层结构:理解图层的结构和文本内容
- 如果图层结构和PRD中提供的文本信息结构不一致,根据PRD通过修改Visible属性来改变图层结构,使它跟PRD提供的文本相应图层结构一致
- 智能匹配:将PRD中的文本修改需求与Figma图层中的实际文本进行匹配,注意文本顺序也要一致
- 生成建议:输出具体的图层visible属性切换和文本替换建议
## Constraints:
- PRD中文本信息相应图层结构和修改Visible属性后的图层结构要一致,图层结构的顺序也要一致。
- 只修改PRD中明确提到的文本内容
- 保持文本的语义和上下文一致性
- 不修改与PRD无关的文本
- 确保修改后的文本符合产品需求
- 如果PRD中没有明确的文本修改需求,返回空数
## Output Format:
[{"nodeId": "图层的唯一ID","oldText": "当前文本内容","newText": "修改后的文本内容","reason": "修改原因,基于PRD的具体要求""oldVisible":False"newVisible":True}] Let's think step by step.
Plugin框架
- 模型比较
Claude 4 Sonnet < Gemini-2.5 < GPT-5 mini < GPT-5
复盘迭代
Claude 4 Sonnet
❌ 不能替换

Gemini-2.5
❌ 不能替换

GPT-5 mini
可以但正确率不高,不稳定

GPT-5
✅ 正确率极高,稳定性极高

实际使用案例
实际使用案例
标题 & 描述 修改

ALB
SOP Group for ALB
Ext2
SOP Group for Ext2
Naming
SOP Group for Naming
ALB Containerization
SOP Group for ALB Containerization
HTTPDNS
SOP Group for HTTPDNS
NLB
SOP Group for NLB
Cert
SOP Group for Cert
Keyless
SOP Group for Keyless
Office DNS
SOP Group for Office DNS
DNSSOP Group for DNS
LCSSOP Group for LCs
SNAT
SOP Group for SNAT

实际使用案例
图表结构 & 内容 修改



| Title | Task ID | Type | Status | Created Time | Assignee | Action |
|-----------------------------------------|---------|--------|--------------|-------------------------|-----------------------|--------|
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>xxxxxxxxxx | #1234 | 🟢 DOD | 🔵 In Progress | 2025-10-30 12:00:18 | xxxxxxxx@shopee.com | Detail |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>xxxxxxxxxx | #1234 | 🟧 Ticket | 🔵 In Progress | 2025-10-30 12:00:18 | xxxxxxxx@shopee.com | Detail |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>xxxxxxxxxx | #1234 | 🟧 Ticket | 🔵 In Progress | 2025-10-30 12:00:18 | xxxxxxxx@shopee.com | Detail |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>xxxxxxxxxx | #1234 | 🟣 Alert | 🔵 In Progress | 2025-10-30 12:00:18 | xxxxxxxx@shopee.com | Detail |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>xxxxxxxxxx | #1234 | 🟣 Alert | 🔵 In Progress | 2025-10-30 12:00:18 | xxxxxxxx@shopee.com | Detail |
vs Figma Replace Content 优势
优势
大设计稿上不能使用 Replace Content

优势
准确率更高
Soda

Replace Content


模版 / 旧设计稿


PRD / 需求文本
ALB
SOP Group for ALB
Ext2
SOP Group for Ext2
Naming
SOP Group for Naming
ALB Containerization
SOP Group for ALB Containerization
HTTPDNS
SOP Group for HTTPDNS
NLB
SOP Group for NLB
Cert
SOP Group for Cert
Keyless
SOP Group for Keyless
Office DNS
SOP Group for Office DNS
DNSSOP Group for DNS
LCSSOP Group for LCs
SNAT
SOP Group for SNAT
优势
不仅能修改内容,还能显示/隐藏图层


模版中的图层结构和需求中的不同
Plugin可以通过显示/隐藏来对齐图层结构
项目复盘
项目成果
提高设计效率
设计师
模版/旧设计稿
增加/隐藏子组件
修改文本
微调
完成
Agent
模版/旧设计稿
优化方向
复盘迭代
PRD / 设计稿规范
- PRD没写清楚,修改效果自然降低
- 设计稿有过多的无用图层会耗费更多token、影响效果
图片分析 (WIP)
有些PRD中的描述不够精准,很多信息在图片中,后续可以添加图片分析的功能
组件调用 / 替换
把错误的组件替换成正确的组件 (如Table Cell 中的 Text → Status),只靠显示/隐藏组件有局限性
AI MCP 方式比较
AI 可以通过 MCP 对Figma进行控制,这个方式和Soda的优劣需要比较两者给的效果、成本等
后来……
Figma Canvas Agent已经可以做到这些
模版/旧设计稿
需求
Figma
Canvas Agent


后来……
Figma Generative Plugins
- Figma 上线AI生成Plugin的功能

反思
通用的工具Figma / AI设计工具会做,我们要做
个性化的 / 解决更具体问题的工具

提效工具:个性化的(例子)
项目前期调研整理到Figma中


需求分析skill
问题定义skill
竞品分析skill
📄
PRD
🎙
会议录音️
💬
聊天记录
提效工具:更具体问题(例子)
Git Clone Chrome插件



不按照指令修改的问题
- 虽然skill中有写过一些规则,但它会选择性忽略一部分。
- 反复在同样的地方出错,比如推荐/不推荐的字体规定是默认14,但是会生成出来12、13等等




