1实现原理 · 为什么它能做到
实现方式是「零代码 + 外部 CLI 委托」:gpt-image-edit/ 只有一份 SKILL.md,无脚本;运行时由宿主 agent 用 Bash 执行 `runcomfy run openai/gpt-image-2/edit --input '<JSON>' --output-dir <path>`。skill 的增量价值是把 GPT Image 2 /edit 的 schema(3 个字段)与多语言文字排版提示法固化成可照抄文档,本地不做任何图像处理。
The skill invokes `runcomfy run openai/gpt-image-2/edit` with a JSON body matching the schema.
schema 只有三个字段:prompt(必填)、images(string[],最多 10 张公开 HTTPS URL,首张为主、其余为辅助线索)、size(auto / 1024_1024 / 1024_1536 / 1536_1024)。极简字段把能力差异全部交给提示词,因此文档把重心放在写法上。
| `images` | string[] | yes | — | **Up to 10** publicly-fetchable HTTPS URLs. First is primary; rest are auxiliary. |
主体内容是「多语言图内文字排版」的操作法:要逐字引用字符并点名书写系统(Japanese kana / Cyrillic / Arabic right-to-left),禁止转述;这条纪律解释了为什么它在多语种广告本地化场景胜过同类模型。
**Multilingual text — quote the characters, name the script.** `"the headline reads \"コーヒー\" in bold Japanese kana"`, `"the label says \"АРОМА\" in Cyrillic, white on black"`, `"the right-margin caption reads \"تخفيض\" in Arabic right-to-left"`. Don't paraphrase — quote.
多参考合成靠「编号指代」路由线索:把多张 images 当编号引用(subject from image 1, lighting from image 2, color palette from image 3),模型据此分配各图的作用。
**Multi-ref numbering.** When passing multiple `images`, refer to them by number: `"subject from image 1, lighting from image 2, color palette from image 3"`. The model routes cues correctly.
定向空间编辑用方向语言表达:move the headline from top-right to bottom-center / remove the leftmost object only / replace the watermark in the bottom-right corner——把布局级修改写成可判定的空间指令。
**Directional language for spatial edits.** Concrete spatial scopes work: `"move the headline from top-right to bottom-center"`, `"remove the leftmost object only"`, `"replace the watermark in the bottom-right corner"`.
路由表把兄弟模型分成四种用途(批量 ≤20 → Nano Banana Edit;单参考保真 → Flux Kontext;从零生成 → 同仓 gpt-image-2 技能;批量 SKU → Nano Banana Edit),并在限制段直说人像写实不如 Nano Banana Pro。
| Generate from scratch with GPT Image 2 | sibling [`gpt-image-2`](../gpt-image-2) skill |
执行链:CLI 把 JSON POST 到 RunComfy Model API 的 /v1/models/openai/gpt-image-2/edit,轮询后把 `.runcomfy.net` / `.runcomfy.com` 白名单产物下载到 `--output-dir`;Ctrl-C 取消远端请求。
The CLI POSTs to `https://model-api.runcomfy.net/v1/models/openai/gpt-image-2/edit`, polls the request, fetches the result, and downloads any `.runcomfy.net`/`.runcomfy.com` URL into `--output-dir`. `Ctrl-C` cancels the remote request before exit.
2核心能力
3外部依赖
| 类型 | 依赖 |
|---|---|
| cli | runcomfy(RunComfy 官方 CLI) |
| package | @runcomfy/cli(npm 全局包) |
| package | npx skills(skills.sh 安装器) |
| api | RunComfy Model API(OpenAI GPT Image 2 /edit) |
| network | RunComfy 产物下载白名单 |
| network | 用户传入的源图/参考图 URL(最多 10 张,由 RunComfy 服务器抓取,非本机) |
| network | RunComfy 站点/模型页/文档(文档引用,非运行时调用) |
| network | GitHub(技能源码链接) |
4风险提醒 风险提醒:橙色 · 评估后使用
- 执行面在仓外且无版本 pin — 真实动作由 npm 全局安装的 @runcomfy/cli 完成(安装行不含版本),CLI 内部行为与安全断言无法在本 pin 证实;供应链风险落在 npm 与 RunComfy 两方。
- 凭证与按次计费 — CLI 以用户 RunComfy token 提交请求;图像编辑按次计费,agent 依 75 退出码自动重试会重复消耗额度。
- 多图素材出网(最多 10 张) — 所有源图/参考图 URL 由 RunComfy 服务器抓取并进入第三方模型;未发布品牌资产、版式、人脸素材的保密性不本地可控。批量场景下每张都是独立出网对象。
- 文字改写能力可被滥用 — 本技能的强项是精确改写图内文字(含品牌字样、新闻标题、标语)。若源图非自有或用户要求伪造他人标识/误导性排版,模型可能照做;文档自身不设内容合规门禁,责任落在使用者与宿主。
- 排名/对比主张无来源 — 'Nano Banana Pro wins head-to-head'(人像写实)、'Strongest in class for face / brand preservation' 等比较口径在仓内无出处,属营销性主张(本报告未独立复现)。
5第二遍独立确认
- [ok] skill 目录内容 = 仅 SKILL.md — git ls-tree HEAD 与 ls -a 双向核实;仓库根仅 LICENSE + README.md + 31 个技能目录,无 scripts/、plugins/、.claude/。
- [ok] 全部外部依赖条目回查调用点真实存在 — runcomfy CLI 调用点 3 处(单参考/多语文字/多参考示例)、npm 安装 1 处、npx skills 1 处、model-api 端点 1 处、白名单与外部 URL 抓取各 1 处、文档/模型页/GitHub 链接多处,均实读命中。
- [discrepancy] 路由兜底句 'route here regardless' 缺失(家族内不一致) — flux-kontext / wan-2-7 / seedance-v2 / happyhorse-1-0 四份在路由表后都有 'If the user said ... explicitly, route here regardless.',本技能的路由表直接接 ## Prerequisites,无该兜底句(触发词仅存在于 frontmatter description 的 'Triggers on ...' 列表)。后果:当用户说『用 GPT Image 编辑这张图』时,是否优先于同族 router 的意图分类由宿主自行判断,家族内无统一行为。
- [ok] size 枚举与 warning 口径一致 — schema 行列出 auto/1024_1024/1024_1536/1536_1024;正文 'Use `size: "auto"` to preserve input ratio' 与 'asking for `size` outside the 3 fixed values + auto → 422'、Limitations 'size: 3 fixed values + auto — anything else 422s' 三处一致(3 个固定值 + auto 的说法自洽)。
- [unlocatable] Security & Privacy 的技术断言可在本仓证实 — 0600 token 权限、2 GiB 下载上限、无 shell 展开、下载白名单、退出码语义均为仓外 @runcomfy/cli 行为;仓内无 CLI 源码或版本 pin,只能作为文档自述引用(同仓 runcomfy-cli/SKILL.md 为同源转述,非独立证据)。
- [discrepancy] 安装一行与 GitHub 链接指向旧仓 agentspace-so/runcomfy-skills — 安装行 `npx skills add agentspace-so/runcomfy-skills --skill gpt-image-edit -g` 与 GitHub 链接 github.com/agentspace-so/runcomfy-skills 均指向旧仓;本仓 pin 在 prime-skills/runcomfy-agent-skills(README 用 runcomfy-agent-skills)。gh api:agentspace-so/runcomfy-skills 仍存在(5★、pushed 2026-04-29、含 gpt-image-edit 目录);prime-skills/runcomfy-agent-skills 与 agentspace-so/runcomfy-agent-skills 为同一仓(相同 stats,full_name=prime-skills/runcomfy-agent-skills)。按文档安装可能装到旧版。
- [ok] 多语言字符引用写法可执行性 — 正文给出的日文假名(コーヒー / 今日のおすすめ)、西里尔(АРОМА)、阿拉伯(تخفيض)样例在文件内为真实 UTF-8 字符;配套反模式(paraphrase → text comes out different)同页存在,属可执行指引。
- [discrepancy] 未声明 allowed-tools(执行面未收窄) — frontmatter 无 allowed-tools;同仓 runcomfy-cli/SKILL.md 声明 `allowed-tools: Bash(runcomfy *)`。家族内部工具权限声明不一致。
6结论
c5a2b82fedddc872…fca19ae084