import-screenshot-to-prototype
它能做什么
可以把图片或截图转换成可交互的网站原型。它会以可编辑的形式还原图片的外观,并能适应不同的屏幕尺寸。
适用场景
- ✓你对某个网站有了视觉上的构想,想把它变成可以编辑的内容时。
- ✓需要以一张视觉草图为起点开始新的网站项目时。
- ✓看到一个喜欢的设计,想要重新制作并进行修改时。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/spec/examples/import-screenshot-to-prototype/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这张截图转换成一个可编辑的网站原型。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会分析图片,识别文字、按钮、方框等元素,并用网站代码将它们重新搭建出来。它还会让页面适配较小的屏幕,比如手机屏幕。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Import Screenshot To Prototype
Workflow
- Inspect the screenshot and identify layout regions, controls, typography scale, color roles, and content hierarchy.
- Ask for the target viewport only if it cannot be inferred.
- Rebuild the screenshot as a clean
index.htmlartifact with semantic sections and reusable CSS tokens. - Preserve the visual intent, but replace unreadable or unavailable text with realistic editable content.
- Add responsive behavior for at least one mobile width.
- Self-critique visual fidelity, text fit, and editability before final.
Output Contract
Produce index.html and a short import-notes.md that lists inferred decisions.
常见问题
什么是原型?
原型是网站或应用的初始版本,可以编辑,用于在正式开发前测试设计和功能。
什么是“合理的组件”?
指的是设计中的各个部分(比如按钮或菜单),AI 会尽量智能地还原它们,使其便于编辑并能正常运作。
什么是“响应式表现”?
指原型能够自动调整,在电脑、平板和手机等不同屏幕尺寸下都有良好的显示效果。
详情
作者的原始描述
Use this plugin when the user provides a screenshot or image reference and wants it reconstructed as an editable OpenDesign prototype with sensible components, layout, and responsive behavior.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1114
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …