一键导入
screenshot-to-prototype
Use only when 用户明确要求把本地截图、设计稿或高保真界面图还原成 Axhub Make client 可运行原型;或显式调用 $screenshot-to-prototype。仅提供图片作为素材、参考图、需求图或风格上下文时不要使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use only when 用户明确要求把本地截图、设计稿或高保真界面图还原成 Axhub Make client 可运行原型;或显式调用 $screenshot-to-prototype。仅提供图片作为素材、参考图、需求图或风格上下文时不要使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use only when the user explicitly asks to run demand exploration or requirements refinement, invokes $requirements-exploration, or asks to create/update confirmed requirement docs before prototype work. Do not trigger automatically for ordinary prototype generation, vague briefs, local edits, or bug fixes.
Use when 为 Axhub Make client 项目生成 UI 设计图、高保真原型视觉、生产风格网站截图、整页界面稿、UI 素材、图标、占位图或参考位图;尤其是请求提到 Image Gen、AI 图片生成、设计图、UI assets、prototype visuals 或需要判断移动端/PC 端画布比例时。
Use when the user explicitly asks to write, draft, create, update, or synthesize a PRD for an Axhub Make client project, especially when the PRD may aggregate multiple prototypes, resources, canvas notes, or existing product context.
仅当任务明确涉及 Axhub 画布、原型草稿、Excalidraw 画布文件、画布节点/批注/截图/图片,或需要把文档、原型页面、图片、流程图等产物落到画布上时使用。
Use when a Make client批注 or user request asks for 多方案探索, 多方案生成, 多方案对比, 方案对比, 设计决策, 比稿, 先出方案, or choosing among 2-3 UI/code modification directions before executing one.
原型标注替代 PRD 时使用:把页面目录、组件说明、状态说明和补充文档接入可运行原型,供评审、交付和后续需求说明使用。
| name | screenshot-to-prototype |
| description | Use only when 用户明确要求把本地截图、设计稿或高保真界面图还原成 Axhub Make client 可运行原型;或显式调用 $screenshot-to-prototype。仅提供图片作为素材、参考图、需求图或风格上下文时不要使用。 |
用本地截图/设计稿还原 client 可运行原型:先提取必要素材,再写 React/CSS,最后做真实运行截图回归。正文保持中文、简洁。
任一条件不满足就停止:
ui-design-image、系统 imagegen、ACP UI 图片 MCP、等价图片 MCP,或 Agent 图片配置。所有路径都以 client 包根目录为基准,文档里不要写本机绝对路径、平台路径或外层仓库路径。
src/prototypes/<slug>/src/prototypes/<slug>/.spec/spec.htmlsrc/prototypes/<slug>/assets/src/prototypes/<slug>/assets/asset-manifest.json.local/screenshot-to-prototype/<slug>/.local/screenshot-to-prototype/<slug>/asset-sheet.png.local/screenshot-to-prototype/<slug>/candidates/.local/screenshot-to-prototype/<slug>/candidate-manifest.json.spec/spec.html,从 HTML 模板创建,不提供 Markdown 选项。DESIGN.md。client 内没有符合需求的现成规范时主动创建;无论复用或新建,都把原文件路径和关键设计规范作为可评审内容直接呈现在 HTML 中。DESIGN.md 以及主规格只引用设计基底的默认约定。ui-design-image 的工作流检查 ACP UI 图片 MCP、等价 MCP、Agent 图片配置和系统 imagegen,再决定是否停止。.local/screenshot-to-prototype/<slug>/,再切到 .local/screenshot-to-prototype/<slug>/candidates/:node .agents/skills/screenshot-to-prototype/scripts/slice-asset-sheet.mjs \
--input .local/screenshot-to-prototype/<slug>/asset-sheet.png \
--output-dir .local/screenshot-to-prototype/<slug>/candidates \
--grid 4x3 \
--names icon-search,logo-brand,avatar-user,banner-hero \
--manifest .local/screenshot-to-prototype/<slug>/candidate-manifest.json
node .agents/skills/screenshot-to-prototype/scripts/audit-assets.mjs \
--manifest .local/screenshot-to-prototype/<slug>/candidate-manifest.json
src/prototypes/<slug>/assets/。最终 asset-manifest.json 只登记最终 SVG/PNG 文件并指向最终文件名和尺寸;组件化图标可直接放在原型代码中,不必登记到清单。React 原型不得引用 .local/ 候选切图。aspect-ratio 和响应式约束还原;不要把整张截图当背景。node scripts/check-app-ready.mjs /prototypes/<slug>,再用视觉回归工具检查真实运行截图。素材名用 kebab-case:icon-*、logo-*、avatar-*、image-*、banner-*、cover-*、background-*、decoration-*、border-*。含义不清时用 asset-01。
src/prototypes/<slug>/assets/ 中的 SVG/高清透明 PNG,或原型代码里的组件化图标。.local/ 中间产物或代码组件。写图片生成提示词时再读 references/prompts.md。