Token导航 LogoToken导航

Agent Skill · 研究检索

gemini-nano-banana-2(Gemini nano banana 2 搜索)

gemini-nano-banana-2 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gemini-nano-banana-2 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 62,001。

总安装 343周安装 14GitHub Stars 8下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-nano-banana-2(Gemini nano banana 2 搜索)
来源仓库:https://github.com/tamtom/image-generation-skills
仓库路径:skills/gemini-nano-banana-2
安装命令:
npx skills add https://github.com/tamtom/image-generation-skills --skill gemini-nano-banana-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tamtom/image-generation-skills --skill gemini-nano-banana-2

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。gemini-nano-banana-2 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合根据关键词快速定位候选结果或来源线索。通过 GitHub 安装,建议确认搜索范围和结果过滤方式。可能触发联网请求,需评估数据源可靠性和更新频率。

适用于 Codex、Claude、Cursor 和 Gemini CLI 研究场景。

来源仓库内路径:skills/gemini-nano-banana-2

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tamtom/image-generation-skills --skill gemini-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gemini-nano-banana-2 怎么安装?

在终端执行 npx skills add https://github.com/tamtom/image-generation-skills --skill gemini-nano-banan…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gemini-nano-banana-2 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gemini-nano-banana-2 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

gemini-nano-banana-2 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gemini-nano-banana-2 用的人多吗?

公开数据是累计安装 343 次,近一周安装 14 次,下载 111 次,GitHub 8 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gemini-nano-banana-2 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gemini-nano-banana-2

Gemini nano banana 2 搜索 · 本页

3438接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Gemini Nano Banana 2 - Image Generation & Editing

Generate new images or edit existing ones using Google's Gemini Nano Banana 2 model (gemini-3.1-flash-image-preview) via the Gemini API. This is the latest and most capable Gemini image model, featuring advanced reasoning ("Thinking") with controllable levels, high-fidelity text rendering, Google Web + Image Search grounding, output from 512 up to 4K resolution, and 14 aspect ratios.

Usage

Run the script using absolute path (do NOT cd to skill directory first):

Generate new image:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "your image description" --filename "output.png" [--aspect-ratio 1:1|1:4|1:8|2:3|3:2|3:4|4:1|4:3|4:5|5:4|8:1|9:16|16:9|21:9] [--resolution 512|1K|2K|4K] [--output-format png|webp|jpeg] [--response-modality text-and-image|image-only] [--thinking-level minimal|high] [--google-search] [--image-search] [--yes] [--cost-threshold 0.10] [--api-key KEY]

Edit existing image:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "editing instructions" --filename "output.png" --input-image "path/to/input.png" [--aspect-ratio 1:1] [--resolution 2K] [--api-key KEY]

Edit with multiple reference images (compositing/style transfer, up to 14 images):

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "combine the subject from first image with the style of second image" --filename "output.png" --input-image "subject.png" --input-image "style-ref.png" [--resolution 2K] [--api-key KEY]

Generate with Google Web Search grounding (real-time data):

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "visualize the current weather forecast for San Francisco" --filename "output.png" --google-search --aspect-ratio 16:9 [--api-key KEY]

Generate with Google Image Search grounding (visual reference from the web):

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "a detailed painting of a resplendent quetzal bird resting on a flower" --filename "output.png" --image-search [--api-key KEY]

Generate with high thinking level (complex prompts):

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "A futuristic city built inside a giant glass bottle floating in space" --filename "output.png" --thinking-level high --resolution 2K [--api-key KEY]

Important: Always run from the user's current working directory so images are saved where the user is working, not in the skill directory.

Parameters

Aspect Ratio Options (14 ratios)

  • 1:1 (default) - Square format
  • 1:4 - Extreme vertical (banners)
  • 1:8 - Ultra-extreme vertical
  • 2:3 - Portrait
  • 3:2 - Landscape
  • 3:4 - Portrait (closer to square)
  • 4:1 - Extreme horizontal (banners)
  • 4:3 - Landscape (closer to square)
  • 4:5 - Portrait (social media)
  • 5:4 - Landscape (social media)
  • 8:1 - Ultra-extreme horizontal
  • 9:16 - Tall portrait (stories/reels)
  • 16:9 - Wide landscape (presentations/video)
  • 21:9 - Ultra-wide (cinematic)

Map user requests:

  • No mention of size/ratio -> 1:1
  • "square" -> 1:1
  • "portrait", "vertical", "tall" -> 2:3 or 9:16
  • "landscape", "horizontal", "wide" -> 3:2 or 16:9
  • "stories", "reels", "mobile" -> 9:16
  • "presentation", "video", "widescreen" -> 16:9
  • "cinematic", "ultra-wide" -> 21:9
  • "social media post" -> 4:5 (portrait) or 5:4 (landscape)
  • "banner", "header" -> 4:1 or 1:4 depending on orientation
  • "panoramic" -> 8:1

Resolution Options

  • 512 - Small/thumbnail (~512px, fastest, lowest cost)
  • 1K (default) - Standard quality (~1024px, fast)
  • 2K - High quality (~2048px, good balance)
  • 4K - Maximum quality (~4096px, slowest, highest cost)

Map user requests:

  • No mention of resolution -> 1K
  • "thumbnail", "icon", "small" -> 512
  • "high quality", "detailed", "high-res" -> 2K
  • "maximum quality", "4K", "ultra", "print quality" -> 4K
  • "quick", "fast", "draft" -> 512 or 1K

Output Format Options

  • png (default) - Lossless, supports transparency
  • webp - Smaller file size, supports transparency
  • jpeg - Smallest file size, no transparency

Map user requests:

  • No mention of format -> png
  • "small file", "compressed", "web" -> webp
  • "jpg", "jpeg", "photo" -> jpeg

Response Modality

  • text-and-image (default) - Returns both text description and image
  • image-only - Returns only the generated image, no text

Map user requests:

  • Default -> text-and-image
  • "just the image", "no text", "image only" -> image-only

Thinking Level

  • minimal (default) - Faster generation, good for simple prompts
  • high - Better quality for complex prompts with many elements, text rendering, or spatial relationships

Map user requests:

  • Default / simple prompts -> minimal
  • Complex scenes, precise text, many elements -> high
  • "think harder", "best quality", "complex" -> high

Google Web Search Grounding

  • --google-search flag enables Google Web Search grounding
  • Allows the model to use real-time web data when generating images
  • Useful for: current weather, recent events, factual infographics, stock charts, data visualizations

Map user requests:

  • "current", "today", "latest", "real-time", "up to date" -> add --google-search
  • Factual data requests (weather, news, sports scores) -> add --google-search
  • Creative/fictional prompts -> omit (not needed)

Google Image Search Grounding (Nano Banana 2 exclusive)

  • --image-search flag enables Google Image Search grounding
  • Allows the model to find and use web images as visual reference for generation
  • Useful for: accurate depictions of real species, landmarks, products, or people
  • Can be combined with --google-search for both web and image grounding

Map user requests:

  • "accurate", "realistic depiction of [real thing]" -> add --image-search
  • Requests for specific real-world subjects (animals, landmarks, products) -> add --image-search
  • Abstract/creative prompts -> omit (not needed)

Cost Warning & Auto-Approve

  • The script estimates request cost before calling the API
  • If estimated cost ≥ $0.10 (default threshold), it shows a breakdown and asks for confirmation
  • --yes / -y — Skip confirmation, auto-approve (always pass this flag so the user sees the prompt in their terminal)
  • --cost-threshold — Custom threshold in USD (default: 0.10)

Approximate per-image costs by resolution:

ResolutionPer Image
512$0.045
1K$0.067
2K$0.101
4K$0.151

Additional costs: thinking tokens ($0.006–$0.030), search grounding ($0.001), input images (~$0.0001 each). Requests at 2K or above will typically trigger the cost warning.

Important: Always pass --yes when calling from Claude so the user is not blocked by an interactive prompt they cannot see. Instead, inform the user of the estimated cost in your message before running the command. If the estimated cost would be high (2K+, 4K, high thinking), mention the approximate cost to the user first and ask if they want to proceed.

Input Images (editing, up to 14)

  • Use --input-image for each reference image (can repeat up to 14 times)
  • Up to 10 images of objects with high-fidelity detail preservation
  • Up to 4 images of characters for character consistency
  • Reference images by position in the prompt (e.g., "the person from the first image")

API Key

The script checks for API key in this order:

  1. --api-key argument (use if user provided key in chat)
  2. GEMINI_API_KEY environment variable
  3. GOOGLE_API_KEY environment variable

If none is available, the script exits with an error message.

Filename Generation

Generate filenames with the pattern: yyyy-mm-dd-hh-mm-ss-name.{ext}

Format: {timestamp}-{descriptive-name}.{ext}

  • Timestamp: Current date/time in format yyyy-mm-dd-hh-mm-ss (24-hour format)
  • Name: Descriptive lowercase text with hyphens
  • Extension: Match the --output-format (.png, .webp, .jpg)
  • Keep the descriptive part concise (1-5 words typically)
  • Use context from user's prompt or conversation

Examples:

  • Prompt "A serene Japanese garden" -> 2025-12-17-14-23-05-japanese-garden.png
  • Prompt "sunset over mountains" (webp) -> 2025-12-17-15-30-12-sunset-mountains.webp
  • Prompt "current weather in NYC" (jpeg) -> 2025-12-17-16-45-33-nyc-weather.jpg

Image Editing

All editing uses the same generate_content API by passing input images alongside the text prompt. The model natively understands editing context.

Single Image Edit

When the user wants to modify an existing image:

  1. Use --input-image parameter with the path to the image
  2. The prompt should contain editing instructions (e.g., "make the sky more dramatic", "change to cartoon style")

Multi-Image Input (Compositing, Style Transfer & Character Consistency)

When the user wants to combine elements from multiple images:

  1. Use --input-image multiple times (up to 14 images)
  2. Reference images by order in the prompt (e.g., "apply the style of the second image to the first image")
  3. For character consistency, provide multiple angles/poses of the same character

Common editing tasks: add/remove elements, change style, adjust colors, replace backgrounds, composite images, style transfer, character consistency across scenes, text overlay.

Prompt Handling

For generation: Pass user's image description as-is to --prompt. Only rework if clearly insufficient. The model excels at understanding natural language descriptions.

For editing: Pass editing instructions in --prompt (e.g., "add a rainbow in the sky", "make it look like a watercolor painting")

For multi-image: Reference images by position (e.g., "combine the person from the first image with the background of the second image")

For search-grounded: Include what real-time data is needed (e.g., "visualize the current weather forecast for the next 5 days in San Francisco")

Advanced text rendering: This model excels at generating legible text in images. When text is needed, first describe the text content clearly in the prompt (e.g., "a magazine cover with the title 'GEMINI' in bold serif font").

Preserve user's creative intent in all cases.

Thinking Mode

The model uses a built-in "Thinking" process that reasons through complex prompts. It generates interim "thought images" to refine composition before producing the final output.

  • minimal (default): Fast, sufficient for most prompts
  • high: Better quality for complex scenes, precise text, many elements

The thinking process:

  • Improves complex multi-element compositions
  • Helps with accurate text rendering
  • Refines layout and spatial relationships
  • Thinking tokens are billed regardless of output

Output

  • Saves image to current directory (or specified path if filename includes directory)
  • File extension is automatically matched to --output-format
  • If the model returns multiple images, files are numbered: name-1.ext, name-2.ext, etc.
  • Script outputs the full path(s) to the generated image(s)
  • Any text from the model (descriptions, explanations) is printed to stdout
  • Do not read the image back - just inform the user of the saved path(s)

Examples

Generate new image:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, inspecting a freshly glazed tea bowl in his rustic workshop. Soft golden hour light, 85mm portrait lens, bokeh background." --filename "2025-12-17-14-23-05-japanese-ceramicist.png" --resolution 2K --aspect-ratio 2:3

Generate with text rendering (high thinking):

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "A glossy magazine cover with the large bold title 'NANO BANANA' in serif font. A person in a sleek minimal dress playfully holds the number 2. Issue number and 'Feb 2026' in the corner with a barcode. The magazine is on a shelf against an orange plastered wall." --filename "2025-12-17-14-25-30-magazine-cover.png" --resolution 4K --aspect-ratio 3:4 --thinking-level high

Generate with Google Web Search grounding:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "Visualize the current weather forecast for the next 5 days in San Francisco as a clean, modern weather chart with outfit suggestions for each day" --filename "2025-12-17-14-26-00-sf-weather.png" --google-search --aspect-ratio 16:9 --resolution 2K

Generate with Google Image Search grounding:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "A detailed painting of a resplendent quetzal bird resting on a flower, with a natural gradient background" --filename "2025-12-17-14-26-30-quetzal-painting.png" --image-search --aspect-ratio 3:2 --resolution 2K

Edit existing image (style transfer):

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "Transform this photograph into the artistic style of Vincent van Gogh's Starry Night, with swirling impasto brushstrokes and a palette of deep blues and bright yellows" --filename "2025-12-17-14-27-00-starry-night-style.png" --input-image "city-photo.jpg" --resolution 2K

Composite from multiple images:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "Place the person from the first image into the beach scene from the second image, maintaining their appearance and clothing" --filename "2025-12-17-14-29-00-beach-composite.png" --input-image "person.png" --input-image "beach.png" --resolution 2K

Product mockup with logo:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "Put this logo on a high-end advertisement for a premium perfume. The logo is perfectly integrated into the bottle design." --filename "2025-12-17-14-30-00-perfume-ad.png" --input-image "logo.png" --resolution 4K --aspect-ratio 3:4

Character consistency across scenes:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "An office group photo of these people, they are making funny faces" --filename "2025-12-17-14-31-00-office-group.png" --input-image "person1.png" --input-image "person2.png" --input-image "person3.png" --aspect-ratio 5:4 --resolution 2K

Small thumbnail / icon:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "A kawaii-style sticker of a happy red panda wearing a tiny bamboo hat, munching on a green bamboo leaf. Bold clean outlines, cel-shading, vibrant colors. White background." --filename "2025-12-17-14-32-00-red-panda-sticker.png" --resolution 512 --response-modality image-only

Ultra-wide cinematic banner:

uv run ~/.claude/skills/gemini-nano-banana-2/scripts/generate_image.py --prompt "A cinematic sci-fi landscape with a massive ring-shaped space station orbiting a gas giant, dramatic volumetric lighting" --filename "2025-12-17-14-33-00-space-banner.png" --aspect-ratio 21:9 --resolution 4K --thinking-level high

平台分布

Codex

33.5%
按下载量换算37

Claude

31.32%
按下载量换算35

Cursor

20.5%
按下载量换算23

Gemini CLI

9.14%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills