Token导航 LogoToken导航

Agent Skill · 图像处理

space-image2proto(空间 image2proto)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

space-image2proto 是图像处理类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 1,148。

总安装 1,104周安装 46GitHub Stars 511下载 368核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:space-image2proto(空间 image2proto)
来源仓库:https://github.com/zephyrwang6/pm-skills
仓库路径:skills/space-image2proto
安装命令:
npx skills add https://github.com/zephyrwang6/pm-skills --skill space-image2proto
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zephyrwang6/pm-skills --skill space-image2proto

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

用于图像到原型设计的转换,支持视觉素材处理。适合根据图片生成 UI 组件或交互原型。需确认输入图像的分辨率和版权来源。space-image2proto 属于图像处理类 Skill,可作为该场景下的辅助能力补充。涉及人物肖像时应注意隐私和授权问题。建议输出多种尺寸适配不同设备屏幕。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/space-image2proto

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zephyrwang6/pm-skills --skill space-image2prot…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

space-image2proto 怎么安装?

在终端执行 npx skills add https://github.com/zephyrwang6/pm-skills --skill space-image2proto。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

space-image2proto 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

space-image2proto 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

space-image2proto 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

space-image2proto 用的人多吗?

公开数据是累计安装 1,104 次,近一周安装 46 次,下载 368 次,GitHub 511 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

space-image2proto 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
space-image2proto

空间 image2proto · 本页

1,104511只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Image-to-Prototype Skill

You turn UI screenshots into faithful, production-quality single-file HTML prototypes and iteratively refine them based on user feedback. Every interaction is logged, so you get better at understanding this user's style over time.

First launch: onboarding

When this skill is used for the first time (i.e., references/learning_log.jsonl is empty or doesn't exist, AND references/design_system.json has no user-customized content), run through this onboarding flow before producing any prototypes.

1. Collect reference images

Ask the user to provide as many reference screenshots as possible from their existing product or design system. The goal is to extract a reliable set of design rules before you start producing prototypes. Ask something like:

"为了让原型输出更贴合你的产品风格,请先提供几张你们现有系统的截图(列表页、弹窗、表单等)。我会从中提取配色、间距、组件风格等设计规则,之后所有原型都会自动套用。"

From the provided screenshots, extract and write to references/design_system.json:

  • Color palette (primary, success, danger, warning, text colors, border colors, backgrounds)
  • Component dimensions (modal border-radius, form label width, button height, input height)
  • Icon style (SVG stroke-based? filled? emoji?)
  • Font family
  • Any recurring component patterns (tags, cards, step wizards, etc.)

2. Confirm requirements document format

Ask the user how they prefer to describe their requirements. Offer a default:

"每次需求你想怎么描述?默认格式是这样的简要说明: • 截图 + 一句话说明改什么 • 或者截图 + 字段列表(如'标题改成XX,列表字段改成:A、B、C') 如果你有自己的需求文档模板也可以发给我。"

Save the chosen format to references/config.json under requirements_format.

3. Set file save location

Ask the user to choose a root directory for saving prototypes:

"原型文件保存到哪个目录?请选择一个根目录,之后所有文件会按 根目录/MMDD-设计名称.html 的规则保存。"

Save the path to references/config.json under output_root. If the user doesn't specify, default to the current workspace folder.

4. Write initial config

After onboarding, create references/config.json:

{
  "output_root": "/path/to/user/chosen/directory",
  "file_naming": "MMDD-设计名称.html",
  "requirements_format": "screenshot + brief Chinese description",
  "onboarding_completed": true
}

Once onboarding is done, proceed directly to the normal workflow in future sessions.


Core workflow

Step 1: Read context

Before doing anything, read these files (if they exist):

  1. references/config.json — output directory, naming rules, format preferences
  2. references/design_system.json — the user's design system (colors, components, spacing)
  3. references/learning_log.jsonl — last 20 entries of accumulated interaction history

If config.json doesn't exist or onboarding_completed is not true, run the onboarding flow above first.

Step 2: Analyze the screenshot

When the user provides a screenshot, study it carefully and extract:

  • Layout structure: How is the page organized? (modal, list page, form, dashboard, etc.)
  • Component inventory: What UI elements are present? (tables, forms, tabs, buttons, dropdowns, tags, step wizards, toggles, etc.)
  • Color palette: What colors are used for primary actions, success states, warnings, borders, backgrounds?
  • Typography: Font sizes, weights, colors for headings, labels, values
  • Spacing patterns: Padding, margins, gaps between elements
  • Icon style: Are icons SVG stroke-based, filled, emoji, or text?
  • Interactive elements: What has hover states, click behavior, step transitions?

Don't just glance at it — really look. The user cares about visual fidelity. A prototype that "kind of looks like" the screenshot is not good enough. Match the exact colors, spacing, and component styles.

Step 3: Generate the prototype

Output format: Always a single HTML file with all CSS in a <style> block and all JS in a <script> block. No external frameworks, no CDN dependencies (except Mermaid for flowcharts).

File naming: Follow the rule in config.json — default is MMDD-设计名称.html. For example: 0327-模型类型配置.html. Save to the output_root directory.

Design principles:

  1. Fidelity first. Match the screenshot as closely as possible. If the screenshot shows a specific shade of blue for buttons, use that exact shade, not "close enough".
  2. Clean, semantic HTML. Use meaningful class names that describe the component (.modal-header, .f-row, .type-tag), not generic names (.box1, .div-wrapper).
  3. CSS organization. Group styles by component with comments. Put layout/structure first, then component styles, then state styles.
  4. Functional interactivity. If the screenshot implies interactive behavior (tab switching, dropdown opening, step wizard navigation, toggle switches), implement it with vanilla JS. The prototype should feel alive, not static.
  5. No watermarks, no emoji. Use clean inline SVG icons (stroke-based, not filled) by default. Only use emoji if the user specifically asks for them.
  6. Responsive modals. Set reasonable max-width, use max-height with overflow-y: auto for scrollable content areas.

Step 4: Handle modification requests

Users often send follow-up requests to modify prototypes. These requests tend to be brief and contextual:

  • "这个也一样" / "这个弹窗也是一样" — Apply the same pattern/change from a previous prototype to this new screenshot. Understand what "一样" refers to from the conversation context.
  • "加一个XX字段" / "顶部显示XX" — Add a specific field or element. Place it logically based on the screenshot and existing layout patterns.
  • "筛选框增加一个 XX" — Add a filter/search criterion to the search bar area.
  • "弹窗宽一些" — Adjust dimensions. Don't just change the number — consider how the wider space should be used.
  • "去掉水印" / "不要 emoji" — Remove specific visual elements. Remember this preference for future prototypes.
  • "输出设计说明" — The user wants a brief summary of the design changes made, in list form.

When modifying an existing file, use the Edit tool for targeted changes rather than rewriting the entire file. When the modification is so extensive that the file structure changes fundamentally, use Write to replace the file.

Step 5: Update the learning log

After completing each prototype or modification, append a log entry to references/learning_log.jsonl. Each entry is a single JSON line:

{"timestamp": "2026-03-27T14:30:00Z", "action": "create|modify", "file": "0327-模型类型配置.html", "screenshot_description": "Brief description of the UI shown in the screenshot", "changes": "What you created or modified", "user_instruction_style": "How the user communicated (terse, detailed, Chinese, English)", "design_patterns_used": ["pattern-a", "pattern-b"], "color_palette": {"primary": "#409eff"}, "user_preferences_learned": ["preference discovered in this interaction"], "component_library": ["reusable component identified"]}

What to capture:

  • timestamp: When this interaction happened
  • action: "create" for new prototypes, "modify" for changes to existing ones
  • file: The output filename
  • screenshot_description: Brief description of what the screenshot showed
  • changes: What you did
  • user_instruction_style: How the user communicated
  • design_patterns_used: Reusable patterns you applied
  • color_palette: Colors extracted or used
  • user_preferences_learned: New preferences discovered in this interaction
  • component_library: Any new reusable components identified

This log is append-only — never overwrite it. Over time it becomes a rich record of the user's design system and communication style, making every subsequent prototype more accurate.


Design system reference

As you build prototypes, maintain a living reference of the user's design system in references/design_system.json. Update it whenever you discover new patterns. Structure:

{
  "colors": {
    "primary": "#409eff",
    "success": "#67c23a",
    "danger": "#f56c6c",
    "warning": "#e6a23c",
    "text_primary": "#303133",
    "text_regular": "#606266",
    "text_placeholder": "#c0c4cc",
    "border": "#dcdfe6",
    "background": "#f0f2f5"
  },
  "components": {
    "modal": {"border_radius": "8px", "header_font_size": "16px"},
    "form_label_width": "110px",
    "button_height": "36px",
    "input_height": "36px"
  },
  "icon_style": "inline SVG, stroke-based, stroke-width 2, no fill",
  "font_family": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
}

Read this file at the start of each session. If it doesn't exist, create it from the first prototype you build.


Common component patterns

These are patterns that commonly recur across prototypes. When you see them in a screenshot, you can confidently reproduce them:

Status / category tags

<span class="type-tag type-a">类型A</span>
<span class="type-tag type-b">类型B</span>

Different categories get different colors. Map category → color from the design system. Used in table columns, form headers, and detail views.

Two-column form layout

Labels on the left (right-aligned, fixed width), controls on the right (flex: 1). Common in modals and step wizard forms.

Step wizard

Horizontal step bar with done/active/pending states. Green checkmark for done, dark icon for active, gray for pending. Step panels toggle with JS.

Search/filter bar

Horizontal row of form controls (selects, inputs) with a search button. New filters typically go at the leftmost position.

Two-column cascading selector

Left panel for category, right panel for items with checkboxes. Selected items shown as tags below the trigger. Used when selection depends on a parent category.

Tags with CRUD

Tags that support add/edit/delete. Each tag shows text + edit icon (pencil SVG) + remove button (×). Tags can have types with visual differentiation (icon + color). Edit opens an overlay dialog.


Flowchart / Mermaid diagrams

When the user describes a process flow (with → arrows or step-by-step descriptions) and asks for a flowchart, generate an HTML file that loads Mermaid.js from CDN and renders the diagram.

Default style: Notion-style black & white

Unless the user asks for a specific color scheme, use a clean Notion-inspired monochrome style:

  • Background: pure white #fff
  • Main nodes: white fill, #37352f dark border (2px), #37352f text, rounded corners rx:4
  • Sub-nodes / detail nodes: light gray fill #f7f6f3, gray border #e3e2de (1px)
  • Terminal / final node: inverted — dark fill #37352f, white text
  • Lines: light gray #d3d1cb, 1.5px
  • Font: system font stack, 14px
  • Page title: large (28px) bold, with a gray subtitle summarizing the flow

Mermaid themeVariables for Notion style:

{
  theme: 'base',
  themeVariables: {
    fontFamily: '-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif',
    fontSize: '14px',
    lineColor: '#d3d1cb',
    primaryColor: '#fff',
    primaryTextColor: '#37352f',
    primaryBorderColor: '#37352f',
    secondaryColor: '#f7f6f3',
    tertiaryColor: '#f7f6f3'
  }
}

Numbered steps: Use Unicode circled numbers (①②③...) via HTML entities ① through ⑮ to prefix main flow nodes. Sub-nodes don't need numbers.

When the user DOES ask for color: Use the color palette from design_system.json, coloring by stage/role (e.g., blue for internal ops, green for user-facing, red for data/logging, orange for classification).

HTML template structure

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>流程标题</title>
<style>
  /* Notion-style page: white bg, system font, centered */
</style>
</head>
<body>
  <h1>流程标题</h1>
  <div class="subtitle">一句话摘要</div>
  <div class="chart-container">
    <div class="mermaid">
      flowchart TD
        ...
    </div>
  </div>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.0/mermaid.min.js"></script>
  <script>mermaid.initialize({...});</script>
</body>
</html>

Tips for good flowcharts

  • Use flowchart TD (top-down) for sequential processes, flowchart LR (left-right) for parallel/swim-lane flows
  • Main steps as rectangle nodes ["text"], branches as rounded ("text") or circle (("text"))
  • Keep node labels concise (under 15 characters when possible)
  • Group related sub-details as child nodes branching from a parent step
  • Use linkStyle default to style all arrows at once

Quality checklist

Before delivering any prototype, verify:

  • Colors match the screenshot (use exact hex values, not "close enough")
  • Layout proportions feel right (column widths, modal dimensions, spacing)
  • All interactive elements work (tabs switch, dropdowns open, steps navigate)
  • SVG icons are clean and consistent (same stroke width, same style)
  • No emoji anywhere (unless user specifically requested them)
  • File is self-contained (no external dependencies, except Mermaid CDN for flowcharts)
  • File is saved to the correct directory with proper naming (MMDD-设计名称.html)
  • Learning log is updated

Handling "输出设计说明"

When the user asks for design notes, output a concise list summarizing what was built or changed. Use this format:

页面名称 设计说明

  • 变更 1:简要描述
  • 变更 2:简要描述
  • ...

Keep it factual and brief. The user wants a record they can share with their team, not a detailed essay.

平台分布

Codex

39.09%
按下载量换算144

Claude

28.62%
按下载量换算105

Cursor

19.88%
按下载量换算73

Gemini CLI

9.08%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills