sdgsdfg234f

短描述:从自然语言请求生成图片,可选使用一张或多张参考图。用于用户要求绘制、生成或渲染不含蒙版或本地画布编辑的图像时调用。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "sdgsdfg234f":https://skillpi.com/zh/skills/deepskill-c1c5be9276229b8f9a6a287e0c925d0b4a0151fbda3337babca735e318182ce2。安装前核对上游来源和版本:https://skillhub.cn/skills/user_1314aee0/sdgsdfg234f。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

短描述:从自然语言请求生成图片,可选使用一张或多张参考图。用于用户要求绘制、生成或渲染不含蒙版或本地画布编辑的图像时调用。

0 下载

介绍来源: third_party · user_1314aee0 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
Before the first generation, inspect `scripts/.env`. If `scripts/.env` does not exist, create it from `scripts/.env.example`. If URL or sk is missing, do not generate yet. Ask the user: “请提供画图接口 URL 和 sk。你也可以顺便告诉我默认生成几张、默认图片比例、默认清晰度、默认质量和默认保存位置;如果不提供,我会使用当前默认配置:1 张、1:1 方图、1K、低质量、默认输出目录。” After the user provides configuration, write it to `scripts/.env`: URL -> `GPT_IMAGE2_BASE_URL` sk -> `GPT_IMAGE2_API_KEY` default count -> `GPT_IMAGE2_N` default resolution -> `GPT_IMAGE2_RESOLUTION` default aspect ratio -> `GPT_IMAGE2_ASPECT_RATIO` default quality -> `GPT_IMAGE2_QUALITY` default output directory -> `GPT_IMAGE2_OUT_DIR` If the user omits optional defaults, write the current defaults explici
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: gpt-image2
description: Generate images from natural-language requests, optionally using one or more reference images. Use this when the user asks Codex to draw, generate, create, or render an image without masks or local canvas editing.

GPT Image 2

User Experience

The user should feel they are talking to a drawing assistant, not operating an API wrapper.

When the user asks for an image, do the interpretation yourself:

  • Extract the picture they want.
  • Detect any local image paths or attached image files that should be used as references.
  • Infer count, ratio, resolution, quality, and save location from ordinary language.
  • Run the configured image-generation backend yourself.
  • Report the saved local file path and any real generation/download error.

Do not ask the user to choose a backend, channel, endpoint, request mode, provider, environment variable, or CLI flag. Do not reveal internal supplier/channel names. Do not expose command-line details unless the user explicitly asks for command usage or debugging output.

First-Run Setup

Before the first generation, inspect scripts/.env.

If scripts/.env does not exist, create it from scripts/.env.example. If URL or sk is missing, do not generate yet. Ask the user:

“请提供画图接口 URL 和 sk。你也可以顺便告诉我默认生成几张、默认图片比例、默认清晰度、默认质量和默认保存位置;如果不提供,我会使用当前默认配置:1 张、1:1 方图、1K、低质量、默认输出目录。”

After the user provides configuration, write it to scripts/.env:

  • URL -> GPT_IMAGE2_BASE_URL
  • sk -> GPT_IMAGE2_API_KEY
  • default count -> GPT_IMAGE2_N
  • default resolution -> GPT_IMAGE2_RESOLUTION
  • default aspect ratio -> GPT_IMAGE2_ASPECT_RATIO
  • default quality -> GPT_IMAGE2_QUALITY
  • default output directory -> GPT_IMAGE2_OUT_DIR

If the user omits optional defaults, write the current defaults explicitly:

  • GPT_IMAGE2_N=1
  • GPT_IMAGE2_RESOLUTION=1k
  • GPT_IMAGE2_ASPECT_RATIO=1:1
  • GPT_IMAGE2_QUALITY=
  • GPT_IMAGE2_OUT_DIR=./image2_output
  • GPT_IMAGE2_MODE=current
  • GPT_IMAGE2_MODEL=gpt-image-2
  • GPT_IMAGE2_TIMEOUT_MS=240000

After writing .env, tell the user the effective default drawing configuration in natural language, without printing the sk. Then continue with the requested generation if they already gave an image prompt.

Normal Conversation Flow

  1. Identify the actual image prompt. Keep it close to the user’s words. Expand or polish the prompt only when the user asks for that.

  2. Detect reference images. If the user provides one or more local image paths as references, pass them to the drawing script. Reference-image requests currently produce one output image even if the configured default count or user wording asks for multiple variants.

  3. Infer image count. Use the configured default count when the user does not specify one. Use multiple images only for prompt-only requests when the user asks for variants, multiple drafts, or a specific number.

  4. Infer resolution. Use the configured default resolution when the user does not specify one. Use 2k for requests like “高清”, “更清晰”, or “细节多一点”. Use 4k for requests like “4K”, “超清”, “海报级”, “大图”, or “适合打印”.

  5. Infer aspect ratio. Use explicit ratios when the user provides them. Use 9:16 or 3:4 for vertical posters, phone wallpapers, and portrait-oriented images. Use 16:9 for video covers, desktop wallpapers, and horizontal scenes. Use the configured default aspect ratio when no ratio is implied.

  6. Infer quality. Use low quality by default unless the user explicitly asks for higher quality, high detail, premium-looking output, or names a specific quality level.

  7. Execute generation. Use the default configured drawing path for ordinary requests. Use compatibility test mode only when the user explicitly asks to test an official-compatible image API or inspect request shape.

  8. Reply naturally. Give the saved file path. Mention only actionable errors, such as missing configuration, rejected prompt, failed request, failed download, or empty image payload.

User-Facing Language

Use product-level wording:

  • “当前画图服务”
  • “默认画图通道”
  • “这次生成”
  • “保存到了...”
  • “当前画图服务还没配置好”

Avoid implementation wording in normal replies:

  • endpoint
  • upstream
  • provider
  • request body
  • env var
  • sk, unless the user is clearly configuring the service
  • supplier or channel names
  • script flags

If configuration is missing outside the first-run flow, always ask:

“请提供画图接口 URL 和 sk。”

Guided User Prompt

When the user seems unsure how to describe an image request, guide them with a short natural-language prompt like this:

“你可以直接告诉我想画什么,也可以补充这些信息:参考图、生成几张、图片比例、清晰度、质量要求、保存位置。

例如: ‘画一张赛博朋克雨夜街头,横版 16:9,2K,低质量,生成 2 张。’ ‘画一个国风女孩头像,方图,默认配置。’ ‘画一张手机壁纸,9:16,4K,高质量。’ ‘参考这两张图,生成一张同风格海报,16:9,2K。’

如果你不特别说明,我会使用当前默认配置。初始默认配置是:生成 1 张、1:1 方图、1K、低质量,并保存到默认输出目录。有参考图时,这次只输出 1 张。”

Supported Requests

This skill supports image generation from text, with optional reference images:

  • Text prompt
  • Optional reference images: 1 to 16 local image files, up to 10MB each
  • One or more generated images for prompt-only requests
  • One generated image for reference-image requests
  • Resolution: 1k, 2k, 4k
  • Aspect ratio: 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 21:9, 9:21
  • Quality: auto, low, medium, high
  • Output directory

This skill does not support:

  • Inpainting
  • Masks
  • Local repaint workflows
  • Multi-turn canvas editing

If the user asks for one of those unsupported workflows, explain briefly that this drawing skill supports text generation and reference-image guided generation, but not mask-based editing or local canvas repainting. Route to the appropriate available image editing or product workflow if one exists.

Internal Execution

Use scripts/gpt-image2.mjs as the execution backend.

For ordinary user requests, use the configured default mode. For explicit official-compatible API validation, use --mode official-compatible.

The script accepts natural controls as flags, but those flags are for Codex execution only:

node scripts/gpt-image2.mjs "生成一张雨夜街头的电影感海报"
node scripts/gpt-image2.mjs --prompt "生成一张雨夜街头的电影感海报" -n 4
node scripts/gpt-image2.mjs --prompt "生成一张雨夜街头的电影感海报" --resolution 4k --aspect-ratio 16:9
node scripts/gpt-image2.mjs --prompt "生成一张雨夜街头的电影感海报" --out-dir ./image2_output
node scripts/gpt-image2.mjs --prompt "参考两张图,生成一张同风格海报" --image /path/to/reference-1.png --image /path/to/reference-2.jpg --resolution 2k --aspect-ratio 16:9
node scripts/gpt-image2.mjs --dry-run --prompt "检查请求体" --resolution 2k --aspect-ratio 16:9
node scripts/gpt-image2.mjs --dry-run --prompt "检查参考图请求形态" --image /path/to/reference.png

Use --dry-run only for internal validation or when the user explicitly asks to inspect request shape. Do not use it for normal generation.

Reference-image execution details:

  • Prompt-only requests use the JSON generation path and include n.
  • Reference-image requests use the multipart edit path.
  • Append each reference file as a repeated image multipart field.
  • Send model, prompt, size, and optional quality as multipart fields.
  • Do not send n or response_format for reference-image requests.
  • Save at most the first returned image for reference-image requests.

Internal Configuration

Read configuration from scripts/.env.

Keys:

  • GPT_IMAGE2_API_KEY
  • GPT_IMAGE2_BASE_URL
  • GPT_IMAGE2_MODEL
  • GPT_IMAGE2_MODE
  • GPT_IMAGE2_N
  • GPT_IMAGE2_RESOLUTION
  • GPT_IMAGE2_ASPECT_RATIO
  • GPT_IMAGE2_QUALITY
  • GPT_IMAGE2_OUT_DIR
  • GPT_IMAGE2_TIMEOUT_MS

Do not mention these keys to ordinary users. Mention them only when the user is configuring or debugging the skill.

Initial defaults should be represented in .env, not only in prose:

  • GPT_IMAGE2_N=1
  • GPT_IMAGE2_RESOLUTION=1k
  • GPT_IMAGE2_ASPECT_RATIO=1:1
  • GPT_IMAGE2_QUALITY= means the current drawing path falls back to low quality unless the user explicitly requests another quality.
  • GPT_IMAGE2_OUT_DIR=./image2_output

Output Handling

The script saves images from:

  • pure Base64 payloads
  • data:image/...;base64,... payloads
  • URL payloads in data[].url

If the response contains no usable image payload, report that the generation returned no image. If URL download fails, report the download failure rather than retrying indefinitely.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 提供基于自然语言和参考图的图像生成能力,满足用户高频创作需求
  • 支持多种分辨率、比例和质量选项,适用场景广泛
触发精准95/100

亮点

  • 触发词覆盖全面(draw, generate, create, render),边界清晰
  • 明确排除 mask 和局部编辑场景,避免误触
结构规范93/100

亮点

  • 文档结构清晰,包含完整的使用流程、配置说明和示例
  • frontmatter 完整,章节划分合理,便于理解与执行
执行可靠88/100

待提升项

  • 异常处理覆盖不全 原报告严重程度:轻微

    未显式处理所有网络超时或 API 限流场景

    改进建议:建议在脚本中增加重试机制和更详细的错误分类提示

亮点

  • 配置管理清晰,通过 .env 文件持久化设置
  • 输出路径可控,支持自定义保存位置
  • 明确区分普通生成与兼容性测试模式
证据可验 (前四项均值)92/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

Before the first generation, inspect `scripts/.env`. If `scripts/.env` does not exist, create it from `scripts/.env.example`. If URL or sk is missing, do not generate yet. Ask the user: “请提供画图接口 URL 和 sk。你也可以顺便告诉我默认生成几张、默认图片比例、默认清晰度、默认质量和默认保存位置;如果不提供,我会使用当前默认配置:1 张、1:1 方图、1K、低质量、默认输出目录。” After the user provides configuration, write it to `scripts/.env`: URL -> `GPT_IMAGE2_BASE_URL` sk -> `GPT_IMAGE2_API_KEY` default count -> `GPT_IMAGE2_N` default resolution -> `GPT_IMAGE2_RESOLUTION` default aspect ratio -> `GPT_IMAGE2_ASPECT_RATIO` default quality -> `GPT_IMAGE2_QUALITY` default output directory -> `GPT_IMAGE2_OUT_DIR` If the user omits optional defaults, write the current defaults explici

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。