全部技能 / 内容创作 / image-edit
内容创作 · prime-skills/runcomfy-agent-skills

image-edit

Edit images on RunComfy — this skill is a smart router that matches the user's intent to the right edit model in the RunComfy catalog. Picks Nano Banana Edit (batch up to 20, identity-preserving default), OpenAI GPT Image 2 Edit (multilingual in-image text rewrite, multi-ref composition, layout precision), Flux Kontext Pro (single-ref high-fidelity local edit), or Z-Image Turbo Inpaint (mask-driven precise region edit). Bundles each model's documented prompting patterns so the skill gets sharper edits without burning iterations on the wrong model. Calls `runcomfy run <vendor>/<model>/edit` through the local RunComfy CLI. Triggers on "image edit", "edit image", "image-to-image", "i2i", "swap background", "remove object", "rewrite headline", or any explicit ask to edit a single or batch of images.

风险提醒:橙色 · 评估后使用AI 侦查报告
作者 prime-skillsGitHub prime-skills/runcomfy-agent-skills ↗Stars 43许可 MIT(仓库根 LICENSE:Copyright (c) 2026 RunComfy / agentspace-so;GitHub API spdx=MIT)commit fca19ae084
agent 宿主通常会约束 skill 执行权限;风险提醒为 AI 侦查观点,不构成质量或安全保证。第三方 skill 仅作拆解与展示,安装使用风险自负,版权归原作者。

1实现原理 · 为什么它能做到

四模型图像编辑意图路由(家族 router 型):批量身份保持→Nano Banana Edit(默认)、多语种文字改写/多参考合成→GPT Image 2 Edit、单参考高保真局部编辑→Flux Kontext Pro、mask 驱动的区域替换→Z-Image Turbo Inpaint;agent 读表分类后落到对应 route 小节。

image-edit/SKILL.md
| User intent | Model | Why | |---|---|---| | Batch edit 1–20 images consistently (SKU gallery, A/B variants) | **Nano Banana Edit** | Up to 20 input images per call; locked aspect/resolution for series |
注:路由表共 12 行意图 + Default if unspecified → Nano Banana Edit,正文承接句 `The agent reads this table, classifies the user's intent, and picks the matching subsection below.` 与 video-edit 同一模板;分类是 LLM 决策,skill 无代码。

Route 1(Nano Banana Edit)与单模型技能 nano-banana-edit 内容同源:同一批 preservation-first 语法、cyberpunk/AURA 示例、image_urls 1–20 的 schema——router 把单模型技能收编为默认路线。

image-edit/SKILL.md
**Model**: `google/nano-banana-2/edit`
注:对比 nano-banana-edit/SKILL.md 的 Route 部分逐字一致(含 `Keep the subject identity, pose, and clothing unchanged. Convert the background into a rainy neon cyberpunk street.` 示例);差异是这里砍掉了 safety_tolerance/limit_generations 等次要字段,保留 enable_web_search。

Route 2(GPT Image 2 Edit)主打多语种图内文字与多参考合成:images 数组(≤10,首图为主)、4 个固定 size、编号 refs 语法、逐字引用 + 语种点名(Japanese kana/Cyrillic/Arabic right-to-left)。

image-edit/SKILL.md
| `images` | string[] | yes | — | **Up to 10** HTTPS URLs. First is primary; rest are auxiliary. |
注:prompt 纪律页要求 `Quote in-image text exactly. Name the script for non-Latin`——把『模型对多语种排版文字最在行』的产品定位翻译成可执行写法;size 枚举只有 auto/1024_1024/1024_1536/1536_1024 四个。

Route 3/4 覆盖『单参考精确编辑』与『mask 驱动重绘』两个极端的协议差异:Flux Kontext 单 image 字段 + 单条陈述式指令;Z-Image Inpaint 额外收 mask_image(灰度约定 white=inpaint/black=preserve)+ strength(0.3–1.0 分档语义)+ control_scale。

image-edit/SKILL.md
| `mask_image` | string | yes | **Grayscale mask URL** (white = inpaint, black = preserve). |
注:Z-Image 纪律页给出 strength 语义映射(0.3–0.5 retouching / 0.6–0.7 object replacement / 0.8–1.0 full replacement)与 mask 边缘 1–3px 模糊技巧——这是四个 route 中唯一需要『额外生成一张 mask』的工作流,也是与纯 prompt 编辑的本质差异。

品牌转交边界:用户指名具体模型时转 gpt-image-edit / flux-kontext / nano-banana-edit 品牌技能获得更完整处理;多 route 禁止混搭。

image-edit/SKILL.md
- **Brand-specific overrides** — if the user named a specific model, route to the corresponding brand skill (`gpt-image-edit`, `flux-kontext`, `nano-banana-edit`) for fuller treatment.
注:三个被点名的品牌技能目录在仓库内均真实存在;Z-Image 无对应品牌目录(未列入 override 名单),且其 route 模型 tongyi-mai/z-image/turbo/inpainting 在仓库无独立技能。

执行委托 runcomfy CLI + 云端推理:`runcomfy run <model_id>` + 匹配 JSON body;CLI 提交 Model API、轮询、下载产物到 --output-dir。

image-edit/SKILL.md
The skill picks one of Nano Banana Edit / GPT Image 2 Edit / Flux Kontext Pro / Z-Image Turbo Inpaint based on user intent and invokes `runcomfy run <model_id>` with the matching JSON body.
注:编辑输入(源图/mask/参考图)都是外部 URL,由 RunComfy 服务器抓取;本机只运行 CLI 收发 JSON 与产物。

2核心能力

01四模型编辑意图路由(批量/多语种文字/单参考/mask 区域),默认 Nano Banana Edit
02批量 1–20 图一致编辑 + 锁定 aspect/resolution 的系列输出
03多语种/非拉丁文字图内文本改写与布局级重排(GPT Image 2 Edit)
04多参考合成:subject from image 1 / lighting from image 2 的编号 refs 路由
05单参考高保真局部编辑(Flux Kontext Pro:单 image + 单条陈述式指令)
06mask 驱动精确区域编辑(Z-Image Turbo Inpaint:灰度 mask + strength/control_scale 分档)

3外部依赖

类型依赖
cliruncomfy(@runcomfy/cli 官方 CLI)
package@runcomfy/cli(npm 全局安装)
api四个云端编辑模型端点(经 runcomfy CLI + RunComfy Model API)
networkRunComfy Model API(请求提交)与生成结果下载
network用户提供的源图/参考图/mask URL——由 RunComfy 模型服务器抓取
networkRunComfy 模型页 / 文档站(引用链接)

4风险提醒 风险提醒:橙色 · 评估后使用

风险提醒:橙色 · 评估后使用
  • 接触不可信图像的面最宽:源图/参考图/mask 全部外部 URL 由服务器抓取并进入模型 — 图像提示注入为文档自认风险;批量(≤20 图)与 mask 工作流把更多第三方素材引入生成链。
  • 批量与 mask 场景放大素材上云量(未发布 SKU、人脸、品牌资产外发第三方云) — 文档无本地处理选项;涉敏素材须自评。
  • 执行面与供应链仓外(CLI、四模型 API、token 读取) — 文档对 CLI 的转述(0600、2 GiB、无 shell 展开)无法在本仓库证实。
  • 触发面宽造成与单模型技能竞争:image-edit 与 nano-banana-edit/gpt-image-edit/flux-kontext 的 trigger 词重叠 — 宿主同时装载时可能重复路由或抢单;依赖意图表的 LLM 分类消歧,非确定性保证。
  • 『Strongest in class』等比较性宣称无仓内证据 — 路由表 Why 列为营销话术层,实际能力随模型版本变动。
风险提醒:橙色,评估后使用。按本次统一分档准则:运行时驱动第三方 npm 包/CLI @runcomfy/cli,该 CLI 每次调用读取用户 RunComfy 凭证(~/.config/runcomfy/token.json 或 RUNCOMFY_TOKEN 环境变量)——命中『调第三方 npm/CLI 且可能读配额/密钥 → orange』;执行面(CLI、四模型 API、token 读取)全部仓外,文档转述(0600、2 GiB 上限、无 shell 展开)无法在本 pin 证实,按『拿不准取高一档』定橙。另存在网络外发:源图/参考图/mask 均为外部 URL、由 RunComfy 服务器抓取并参与推理(批量与 mask 工作流把更多未发布 SKU/人脸/品牌资产送上第三方云),是家族 router 中接触不可信图像面最宽的技能,图像提示注入风险为文档自认。skill 本体纯 markdown、无脚本、无混淆、无隐藏端点,未触红档。

5第二遍独立确认

  • [ok] 四个 route 模型 ID 与调用示例、schema 一致 — 四条 Route 的 **Model** 行与各自 `runcomfy run` 示例成对出现:google/nano-banana-2/edit、openai/gpt-image-2/edit、blackforestlabs/flux-1-kontext/pro/edit、tongyi-mai/z-image/turbo/inpainting,无悬空引用。
  • [ok] Route 1 与 nano-banana-edit 技能同源 — preservation-first 话术、cyberpunk/AURA 示例、schema 字段与 nano-banana-edit/SKILL.md 逐字一致;此处略去 safety_tolerance/limit_generations 属有意精简,非错误。
  • [ok] 品牌 override 目标(gpt-image-edit、flux-kontext、nano-banana-edit)可达性 — 三个目录在仓库根真实存在;Z-Image 无对应品牌技能且未被列入 override,文档未作虚假承诺。
  • [ok] Z-Image mask 工作流字段与纪律自洽 — mask_image 必填、strength 0.3–1.0 分档语义、control_scale 0.6–0.9 在 schema 与 prompting tips 两处数字一致。
  • [unlocatable] SKILL.md 对 CLI 行为的断言(token 0600、2 GiB、无 shell 展开) — CLI 源码不在本仓库,仅文档自述,无法独立证实。
  • [unlocatable] GPT Image 2 / Z-Image 的能力宣称(Strongest in class for multilingual typography 等) — 路由表 Why 列为站外比较性宣称,pin 内无评测证据可复核。
  • [discrepancy] 身份/安装链接一致性 — SKILL.md 安装与 GitHub 链接指向 agentspace-so/runcomfy-skills,被 pin 镜像为 prime-skills/runcomfy-agent-skills——来源标识不一致(发布身份漂移,非代码缺陷)。

6结论

  • 四条编辑路线覆盖从『换背景』到『mask 重绘』的完整光谱,默认路由兜底,一次装载多种能力
  • 多语种文字编辑的写法知识(逐字引用 + 语种点名 + 布局方向语)成体系
  • mask 工作流参数语义化:strength 三档映射 + mask 边缘模糊技巧,把试错经验直接给 agent
  • 限制透明:每 route 的输入/输出/参考上限列在 Limitations,不吹全能
  • 与品牌技能(gpt-image-edit/flux-kontext/nano-banana-edit)无缝下沉,形成目录内接力
  • 适合:适合有 RunComfy 账号、需要在一处处理『换背景/去物体/改图内文字/批量 SKU 编辑/mask 重绘』等多类编辑需求的 agent 用户;对想先试默认再下沉品牌技能的渐进工作流友好;营销/电商/内容团队做批量素材编辑的高频入口。
    不适合:不适合指名单一模型的深度场景(应直接走 gpt-image-edit / flux-kontext / nano-banana-edit 品牌技能,router 只做引导);不适合 mask 需要本机生成的用户(mask 也须是公开 URL);不适合无 RunComfy 账号、拒绝素材上云、或需要对不可信第三方图片做编辑的用户;不适合要求一次调用混用多模型能力的复合编辑(文档明示 picks one model per call)。
    安装 agent 直装可复制
    ① 本站镜像 更新 2026-09-09
    方式 A · 人下载镜像包下载 image-edit.tar.gz
    sha256: 173c3a258c664f4a…
    方式 B · JSON 格式安装指南,复制给 agent
    安装指南
    agent 读 JSON 指南后会自动从本站下载安装,无需更多说明。
    ② 上游 GitHub · 原始来源
    能访问 GitHub?直接去上游安装(实时版,可能已更新)GitHub 原始 ↗
    本页镜像锁定 commit fca19ae084;上游为实时仓库。
    来源信息 GitHub 原始
    作者 / 仓库prime-skills / prime-skills/runcomfy-agent-skills
    Stars43
    最近推送2026-05-15
    本 skill commitfca19ae084
    许可MIT(仓库根 LICENSE:Copyright (c) 2026 RunComfy / agentspace-so;GitHub API spdx=MIT)
    本站信息
    收录日期2026-09-06
    分类内容创作
    侦查报告AI 侦查 · 2 遍 · 2026-09-06
    本站镜像与 GitHub 原始是不同来源:本站锁定 commit 快照经 /r2 分发;GitHub 为实时上游,内容可能已更新。
    同分类邻近