技能 nano-banana-edit
📷

nano-banana-edit

安全 🌐 网络访问⚙️ 外部命令

在 RunComfy 上使用 Google Nano Banana 2 编辑图片

也可从以下获取: agentspace-so,runcomfy-com

需要编辑产品照片、替换背景或批量处理图片?RunComfy 上的 Nano Banana 2 编辑功能支持最多 20 张图片的批量处理,具有强大的主体身份保持功能和空间编辑控制。

支持: Claude Codex Code(CC)
⚠️ 65
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“nano-banana-edit”。 用户要求在保持主体身份的同时将背景替换为雨中的霓虹赛博朋克街道

预期结果:

模型生成 1-4 张图片,主体保持不变,置于雨中的霓虹赛博朋克背景前,姿态和构图保持一致。

正在使用“nano-banana-edit”。 用户要求用温暖的摄影棚渐变背景编辑多张产品照片

预期结果:

3-5 张产品图片的批量处理,具有一致的暖灰色摄影棚背景和主体定位,可直接用于电商 listing。

安全审计

安全
v1 • 5/28/2026

Static analysis flagged 78 potential issues, but evaluation reveals all are false positives. The skill is a thin wrapper for the RunComfy CLI that invokes `runcomfy run google/nano-banana-2/edit` to call a legitimate image editing API. The "external commands" detections are markdown bash command examples, not executable code. The "path traversal" flags reference placeholder parameter examples (`<absolute/path>`) in documentation. The "weak crypto" detection is frontmatter YAML. Network access is scoped to RunComfy API endpoints only. Security controls are properly documented including JSON string transmission (no shell injection) and secure token storage with mode 0600.

1
已扫描文件
186
分析行数
8
发现项
1
审计总数

高风险问题 (3)

Static Analysis Pattern Detected: Weak Cryptographic Algorithm
Scanner flagged lines 4 and 162 as containing weak crypto. Evaluation shows this is a false positive: line 4 is YAML frontmatter with model documentation, line 162 is exit code documentation. No cryptographic operations present in this skill.
Static Analysis Pattern Detected: Path Traversal
Scanner flagged lines 71, 82, 95 as path traversal. Evaluation shows this is a false positive: these lines contain `<absolute/value>` style placeholder examples in documentation explaining CLI parameter types. These are not actual path traversal attempts.
Static Analysis Pattern Detected: Hidden File Access
Scanner flagged line 181 as hidden file access. Evaluation shows this is documented security practice: token is stored at `~/.config/runcomfy/token.json` with mode 0600 (owner-only read/write). This is intentional secure credential handling, not a vulnerability.
中风险问题 (1)
Static Analysis Pattern Detected: External Commands
Scanner flagged 57 locations as 'Ruby/shell backtick execution'. Evaluation shows this is a false positive: these are bash command examples in markdown documentation blocks showing CLI usage syntax. The skill is a documentation wrapper, not executable code.
低风险问题 (2)
Static Analysis Pattern Detected: Hardcoded URLs
Scanner flagged multiple URLs as hardcoded. Evaluation shows these are legitimate API endpoints for the RunComfy Model API service being wrapped by this skill.
Static Analysis Pattern Detected: System Reconnaissance
Scanner flagged line 38 as system reconnaissance. Evaluation shows this is simple user intent detection for routing requests to the correct skill.
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
32
社区
66
安全
91
规范符合性

你能构建什么

电商产品摄影

批量编辑产品图片,保持背景一致。单次调用可编辑最多 20 张 SKU 图片,在保持产品身份的同时替换工作室背景。

营销活动创意

使用种子锁定的多输出来创建 A/B 测试变体用于广告创意。为影响者内容和品牌内容生成背景替换和本地化编辑。

品牌资产本地化调整

在保持构图的同时为不同市场调整品牌资产。跨本地化内容变体保持一致的文字和调色板替换。

试试这些提示

简单背景替换
保持主体身份不变。将背景转换为 [所需背景的描述]。
本地化物体编辑
仅移除 [特定物体]。保持 [要保留的元素列表]、[环境元素] 和光线不变。
批量背景一致性
对于每张输入图片:保持 [主体身份/姿态/服装] 不变。将背景转换为 [描述]。将主体居中在输入画面中相同的比例位置。
多图片变体集
对于每个输入:保留 [身份/品牌元素]。将 [特定元素] 替换为 [新描述]。在所有输出中保持一致的光线和调色板。

最佳实践

  • 先说明保留要求,最后说明变更。先说明要保持什么,然后描述编辑内容。
  • 使用具体空间语言进行本地化编辑:'仅背景'、'左侧物体'、'右上角'。
  • 锁定 aspect_ratio 和 resolution 以保持批量一致性。在批量编辑中使用相同的提示语法。

避免

  • 避免使用冗长的复合指令(变更 A 和 B 和 C),这会导致模型漂移。
  • 编辑指令不要使用被动语态。要使用祈使语气:'将 X 替换为 Y',而不是'背景应该被改变'。
  • 不要跳过保留目标。明确说明要保持什么不变,否则模型会微妙地修改人脸和品牌元素。

常见问题

一次批量请求可以编辑多少张图片?
每次 API 调用可以传递 1 到 20 张输入图片。第一张图片被视为主图,其余提供辅助参考。
每次请求可以生成多少张输出图片?
可以使用 number_of_images 参数请求每次调用生成 1 到 4 张输出图片。
如何在编辑过程中保持主体身份?
在提示开头使用保留指令:'保持主体身份、姿态和服装不变。' 然后说明要变更的内容。
何时应使用 Nano Banana Edit 与其他模型?
使用 Nano Banana Edit 进行批量编辑、背景替换和空间定位。使用 GPT Image 2 编辑处理多语言文字。使用 Flux Kontext 进行带有精确本地编辑的单一参考。
输出支持哪些文件格式?
输出格式包括 PNG、JPEG 和 WebP。分辨率选项范围从 0.5K 到 4K。
该技能如何处理 API 认证?
认证使用 runcomfy login 进行交互式会话,或使用 RUNCOMFY_TOKEN 环境变量进行 CI。令牌以 mode 0600 权限安全存储。

开发者详情

文件结构

📄 SKILL.md