技能 nano-banana-2
🎨

nano-banana-2

低风险 ⚙️ 外部命令🌐 网络访问

使用 Google Nano Banana 2 生成图片

也可从以下获取: inference-sh-9,tul-sh,inferen-sh,agentspace-so,runcomfy-com,inference-shell,toolshell

通过 RunComfy CLI 快速使用 Google Nano Banana 2 生成图片。包含优化提示模式、批量生成支持,以及用于当前事件的网络检索上下文功能。

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

下载技能 ZIP

2

在 Claude 中上传

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

3

开启并开始使用

测试它

正在使用“nano-banana-2”。 A minimalist 16:9 product card: a matte black ceramic mug centered on a soft warm-grey paper background, rim highlight from upper-left, the headline "Brewed Quietly" in clean bold sans-serif top-right

预期结果:

A 16:9 PNG image showing a centered black ceramic mug on grey paper with "Brewed Quietly" text rendered in bold sans-serif at top-right, clean studio lighting, balanced composition

正在使用“nano-banana-2”。 A 9:16 vertical hero for a wellness brand: a single ceramic teacup on a linen runner, soft morning side-light, the words "Slow Down" in hand-drawn serif large at the top

预期结果:

A 9:16 vertical PNG showing a teacup on linen with "Slow Down" rendered in hand-drawn serif at top, soft natural lighting, warm neutral palette

安全审计

低风险
v1 • 5/31/2026

Evaluated 88 static pattern detections. All high-severity findings are false positives: backtick patterns are markdown code formatting, path traversal is a markdown link reference, hidden file detection is a standard CLI config path, and weak crypto/system reconnaissance are keyword misidentifications. The skill is legitimate image generation documentation calling the RunComfy CLI. User prompts are transmitted as JSON without shell expansion, preventing injection. No malicious patterns confirmed.

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

高风险问题 (3)

Path Traversal Sequence Flagged
Static analyzer flagged '../nano-banana-edit' at line 70 as path traversal. This is a markdown relative link reference to a sibling skill file, not a security vulnerability. FALSE POSITIVE.
Hidden File Access Flagged
Static analyzer flagged '~/.config/runcomfy/token.json' at line 202 as hidden file access. This is the documented RunComfy CLI token storage location with mode 0600 (owner-only). Legitimate configuration behavior, not a vulnerability. FALSE POSITIVE.
Weak Cryptographic Algorithm Flagged
Static analyzer flagged lines 4, 60, 132, 183 as weak crypto. Direct review shows no cryptographic algorithms are used - the analyzer misidentified documentation keywords. FALSE POSITIVE.
中风险问题 (1)
Ruby/Shell Backtick Execution Pattern Detected
Static analyzer flagged 70 instances of backtick patterns. These are markdown code formatting syntax (`code` and ```bash blocks) in documentation, not Ruby/shell backtick execution. The code examples show legitimate CLI invocation examples. FALSE POSITIVE.
低风险问题 (2)
Hardcoded URLs Detected
Static analyzer flagged URLs to runcomfy.com and model-api.runcomfy.net. These are expected external service endpoints for this image generation skill. LEGITIMATE - no data exfiltration or suspicious endpoints.
System Reconnaissance Pattern Flagged
Static analyzer flagged mentions of 'Gemini' model family as system reconnaissance. These are legitimate product references in documentation describing the Nano Banana 2 model lineage. FALSE POSITIVE.

风险因素

⚙️ 外部命令 (1)
🌐 网络访问 (1)
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
51
安全
83
规范符合性

你能构建什么

快速营销草稿迭代

以 0.5K 分辨率批量生成 4 个缩略图变体进行快速视觉探索,然后将优胜变体提升至 2K 用于最终交付。

社交媒体素材创作

创建平台原生素材,包括 Reels/Stories 的 9:16 竖屏格式、Instagram 动态的 4:5 格式或帖子的 1:1 格式 - 带有可预测的图像内文本渲染。

当前事件可视化

使用启用了 enable_web_search 的网络检索生成功能,创建引用真实世界实体或本周新闻事件的图片。

试试这些提示

基础图片生成
Use nano-banana-2 to generate: A minimalist product photo of a white ceramic mug on a grey background with the text "Hello World" in bold sans-serif, centered
批量变体生成
Use nano-banana-2 to generate 4 vertical variants of: A wellness brand hero showing a ceramic teacup on linen, with the words "Slow Down" in hand-drawn serif, soft morning light
网络检索当前事件图片
Use nano-banana-2 with web search enabled to generate: A cinematic shot of the SpaceX launch from yesterday, rocket against orange sunset sky
可复现的种子锁定变体
Use nano-banana-2 with seed 42 to generate: A 16:9 cinematic portrait of a chef in a Paris kitchen, golden hour light through windows, ultra-detailed realistic

最佳实践

  • 将主要主体放在前面,然后添加环境、风格和相机指令
  • 需要图像内排版渲染时,精确引用字面文本字符
  • 从 0.5K 分辨率开始快速迭代,仅将最终交付物升级到 2K

避免

  • 冲突的风格指令 - 不要组合使用"极简 + 华丽 + 复古 + 赛博朋克"
  • 用于图像内排版的非引用文本 - 会导致不可预测的渲染效果
  • 请求超出 0.5K、1K、2K、4K 分层范围的分辩率 - 将返回 422 错误

常见问题

什么会触发 nano-banana-2 技能?
使用诸如"nano banana"、"nano-banana-2"、"nano banana 2"、"google image gen"、"gemini image"等短语,或任何明确要求使用此模型生成的表述。
如何在图片内部渲染文本?
引用您想要渲染的确切文本字符。例如:"the label reads 'AURA' in clean bold sans-serif, centered"。
为什么我在 0.5K 分辨率下生成的图片很模糊?
0.5K 仅用于快速草稿和构思。使用 1K 作为标准输出,或使用 2K/4K 用于需要清晰细节的最终交付物。
我什么时候应该启用网络搜索?
仅在您的提示引用需要最新信息的当前事件或真实世界实体时启用 enable_web_search。它会增加成本和延迟。
我可以用这个技能编辑现有图片吗?
不可以,此技能仅用于文生图。如需图片编辑(保留主体、更换背景),请使用单独的 nano-banana-edit 技能。
如何获得一致的结果进行细化?
在迭代提示时将种子参数设置为固定数字(如 42)。使用相同提示重复使用相同种子会产生一致的构图。

开发者详情

文件结构

📄 SKILL.md