Token导航 LogoToken导航

Agent Skill · 图像处理

image-2(图 2)

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

image-2 是图像处理类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在图像处理类的 1,562 个 Skill 里排第 946。

总安装 2,115周安装 89GitHub Stars 公开资料未说明下载 740核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:image-2(图 2)
来源仓库:https://github.com/gpt/image-2
安装命令:
openclaw skills install image-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install image-2

这个 Skill 是做什么的

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

image-2 使用 GPT-4o 原生 API 进行图像生成与编辑。支持文本转图像、修复与转换,适用于创意设计。image-2 属于图像处理类 Skill,可作为该场景下的辅助能力补充。通过提示词和图片输入触发,输出高质量视觉内容。建议确认 API 调用频率限制及是否需付费订阅。

可结合来源仓库和 README 进一步核验编辑功能边界。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install image-2;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

image-2 怎么安装?

在终端执行 openclaw skills install image-2。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

image-2 支持哪些 AI 工具?

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

image-2 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

image-2 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

image-2 用的人多吗?

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

image-2 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 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通过
image-2

图 2 · 本页

2,115—接触敏感数据MIT-0有提醒

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

SKILL.md 原文

name
image-2
version
1.1.0
description
GPT-4o Image Generation & Editing Skill - Create, edit, transform, and analyze images using GPT-4o native image-2 API. Supports text-to-image, inpainting, outpainting, style transfer, background removal, and intelligent image analysis. Ideal for marketing, product photos, illustrations, UI mockups, and visual content creation.
metadata
openclaw
emoji
🎨
homepage
https://clawhub.ai/gpt/image-2
always
false
skillKey
image-2
requires
env
primaryEnv
OPENAI_API_KEY
install
package
openai
bins
[]

Image-2 Skill

Create, edit, transform, and analyze images with GPT-4o's native image generation API

When to Use This Skill

Use this skill whenever the user needs to:

  • Generate images from text descriptions ("画一张...", "生成图片...", "create an image of...")
  • Edit existing images with natural language ("把背景去掉", "add a sunset", "换成蓝色")
  • Create variations of an image ("生成几个变体", "make 4 variations")
  • Analyze/describe images ("这张图是什么", "describe this image", "提取文字")
  • Remove backgrounds ("去除背景", "remove background")
  • Style transfer ("变成水彩风格", "make it look like Van Gogh")
  • Create marketing visuals ("设计海报", "make a social media post")
  • Product photography ("产品图", "product shot on white background")
  • UI/UX mockups ("界面设计", "app mockup", "website screenshot")

Core Workflows

Workflow 1: Text-to-Image Generation

When the user describes an image they want to create:

  1. Enhance the prompt — Automatically add quality boosters:

- Append professional photography/art terms based on context - Add lighting, composition, and mood details if not specified - Specify output format and dimensions if needed

  1. Call the API — Use generateImage() with the enhanced prompt:
   const result = await generateImage(enhancedPrompt, { size, quality, style });
  1. Save and present — Download the image to the project directory and show the user:

- Save to ./generated-images/ by default - Return the file path and a brief description

Workflow 2: Image Editing

When the user wants to modify an existing image:

  1. Locate the source image — Find the image file path from the conversation context
  2. Parse the edit intent — Understand what changes the user wants
  3. Call the edit API — Use editImage() with the source and instruction:
   const result = await editImage(imagePath, editInstruction, { mask: maskPath });
  1. Present the result — Show the edited image and describe what changed

Workflow 3: Image Analysis

When the user asks about an image:

  1. Get the image — From file path or URL
  2. Analyze with GPT-4o Vision — Use describeImage():
   const result = await describeImage(imageSource, question);
  1. Report findings — Present the analysis in a structured format

Workflow 4: Batch Generation

When the user needs multiple images:

  1. Parse the batch request — Understand variations needed
  2. Generate in parallel — Call generateImage() for each variant
  3. Organize results — Save with descriptive filenames

Prompt Enhancement Rules

When generating images, automatically enhance the user's prompt:

Quality Boosters (always append unless user specifies quality)

professional quality, high resolution, sharp details

Context-Based Additions

User IntentAuto-Add
Product photo"studio lighting, clean background, commercial photography"
Portrait"professional portrait photography, natural lighting"
Social media"eye-catching, vibrant colors, modern design"
Illustration"detailed illustration, professional artist quality"
Logo/branding"clean vector style, scalable, minimal details"
Architecture"architectural visualization, realistic rendering"
Food"appetizing, food styling, professional food photography"
UI mockup"clean design, modern interface, pixel-perfect"

Size Recommendations

Use CaseRecommended Size
Social media post1024x1024 (square)
Story/vertical1024x1792
Banner/landscape1792x1024
Product listing1024x1024
Presentation1792x1024
Wallpaper1792x1024

Style Presets

Quick style references for common requests:

Preset NameStyle Description
productClean white background, studio lighting, commercial photography
lifestyleNatural setting, warm lighting, aspirational mood
minimalistSimple composition, negative space, clean lines
vintageRetro color grading, film grain, nostalgic mood
futuristicNeon accents, dark background, sci-fi aesthetic
watercolorSoft edges, pastel palette, artistic brush strokes
3d-renderOctane render, realistic materials, dramatic lighting
animeJapanese animation style, vibrant, expressive
sketchPencil drawing, hand-drawn, artistic
flat-designVector style, bold colors, geometric shapes

API Reference

generateImage(prompt, options)

Generate a new image from text description.

Parameters:

  • prompt (string) — Image description (auto-enhanced by this skill)
  • options (object):

- size — 1024x1024 | 1024x1792 | 1792x1024 (default: 1024x1024) - quality — standard | hd (default: standard) - style — vivid | natural (default: vivid) - model — gpt-image-2 | dall-e-3 (default: gpt-image-2) - saveTo — File path to save the image (default: ./generated-images/)

Returns: { success, url, localPath, revisedPrompt }

editImage(imagePath, prompt, options)

Edit an existing image with natural language instructions.

Parameters:

  • imagePath (string) — Path to the source image
  • prompt (string) — Edit instruction
  • options (object):

- mask — Path to mask image (white = edit area, black = keep) - size — Output size - model — gpt-image-2 | dall-e-3 (default: gpt-image-2)

Returns: { success, url, localPath }

generateVariations(imagePath, options)

Generate creative variations of an existing image.

Parameters:

  • imagePath (string) — Path to the source image
  • options (object):

- count — Number of variations 1-4 (default: 2) - size — Output size

Returns: { success, variations: [{ url, localPath }] }

describeImage(imageSource, question)

Analyze an image using GPT-4o Vision.

Parameters:

  • imageSource (string) — File path or URL of the image
  • question (string|null) — Specific question about the image (default: general description)

Returns: { success, description }

downloadImage(url, savePath)

Download a generated image to local storage.

Parameters:

  • url (string) — Image URL from generation API
  • savePath (string|null) — Local file path (default: auto-generated in ./generated-images/)

Returns: { success, localPath }

Error Handling

ErrorCauseResolution
Invalid API keyOPENAI_API_KEY not set or invalidCheck environment variable
Content policy violationPrompt violates safety guidelinesRephrase the prompt
Rate limit exceededToo many requestsWait and retry with backoff
Image too largeSource image exceeds size limitResize to under 4MB
TimeoutGeneration took too longSimplify prompt or retry

Best Practices

  1. Always enhance prompts — Don't pass raw user input directly to the API
  2. Save locally — Download generated images; URLs expire after 1 hour
  3. Use appropriate sizes — Match the output size to the use case
  4. Prefer gpt-image-2 — Better quality and text rendering than dall-e-3
  5. Batch thoughtfully — Generate 2-4 images max per request to avoid rate limits
  6. Describe edits clearly — Be specific about what to change and where

Changelog

v1.1.0

  • Added GPT-4o native image generation support (gpt-image-2 model)
  • Added automatic prompt enhancement workflow
  • Added image download and local save functionality
  • Added style presets for quick reference
  • Added batch generation workflow
  • Improved error handling and documentation

v1.0.0

  • Initial release with DALL-E 3 support
  • Basic generate, edit, variations, and describe functions

Tags: image-generation AI-art GPT-4o image-2 gpt-image-2 visual-creation marketing product-photos illustration design openai dall-e image-editing background-removal style-transfer ui-mockup

适合场景

01

商品图处理

02

人像抠图

03

透明背景素材

04

营销设计资产

能力概览

能力 1

调用背景移除模型

能力 2

输出透明背景图片

能力 3

支持商品、人像和营销素材处理

能力 4

可接入图像编辑工作流

平台分布

OpenClaw

89.44%
按下载量换算662

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills