技能 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」。 User asks to swap background to a rainy neon cyberpunk street while keeping the subject identity

預期結果:

模型生成 1-4 張圖片,主體保持不變但背景變為雨夜霓虹賽博龐克風格,姿勢和取景保持一致。

正在使用「nano-banana-edit」。 User asks to edit multiple product photos with a warm studio sweep background

預期結果:

批次處理 3-5 張產品圖片,背景為一致的暖灰色攝影棚環境,主體位置統一,可直接用於電商上架。

安全審計

安全
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 變體,透過種子鎖定實現多重輸出。為網紅和品牌內容生成背景置換和局部編輯。

品牌資產本地化調整

在保留構圖的同時調整品牌資產以適應不同市場。在本地化內容變體中保持一致的文字和調色板替換。

試試這些提示

簡單背景置換
Keep the subject identity unchanged. Convert the background into [description of desired background].
局部物體編輯
Remove the [specific object] only. Keep [list of elements to preserve], the [environment elements], and the lighting unchanged.
批次背景一致性
For each input image: keep the [subject identity/pose/clothing] unchanged. Convert the background to [description]. Center the subject at the same fraction of frame as the input.
多圖變體集
For each input: preserve the [identity/brand element]. Replace [specific element] with [new description]. Maintain consistent lighting and color palette across all outputs.

最佳實務

  • 以保留指示開頭,以變更內容結尾。始終先說明要保留的內容,然後再描述編輯內容。
  • 使用具體的空間語言進行局部編輯:「僅背景」、「左側物體」、「右上角」。
  • 鎖定 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