Token导航 LogoToken导航

Agent Skill · 开发

nano-banana-2-skill(纳米香蕉 2 技能)

nano-banana-2-skill 用于辅助测试设计、自动化测试和回归验证,适合在 OpenClaw 中需要补充测试、分析失败日志或验证功能改动时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

nano-banana-2-skill 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 1,905。

总安装 22,535周安装 968GitHub Stars 2下载 7,899核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:nano-banana-2-skill(纳米香蕉 2 技能)
来源仓库:https://github.com/xixihhhh/nano-banana-2-skill
安装命令:
openclaw skills install nano-banana-2-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install nano-banana-2-skill

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

nano-banana-2-skill 用于辅助测试设计、自动化测试和回归验证,适合在 OpenClaw 中需要补充测试、分析失败日志或验证功能改动时使用。适用于使用 Google 的 Nano Banana 2 (Imagen) 模型生成和编辑图像。

通过 clawhub 安装并使用 openclaw skills install nano-banana-2-skill 命令部署。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。可结合来源仓库和原始 README 继续核验具体用法和功能细节。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install nano-banana-2-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

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

在终端执行 openclaw skills install nano-banana-2-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

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

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

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

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

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

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

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

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

nano-banana-2-skill 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
nano-banana-2-skill

纳米香蕉 2 技能 · 本页

22,5352接触敏感数据MIT-0通过

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

SKILL.md 原文

name
nano-banana-2
description
Generate and edit images using Google's Nano Banana 2 (Imagen) model — the latest high-quality image generation AI. Supports text-to-image generation and image editing with up to 14 reference images. Two provider modes: Atlas Cloud and Google AI Studio. Use this skill whenever the user wants to generate images, create AI art, edit photos with AI, do image-to-image transformation, create illustrations, make visual content, or mentions Nano Banana, Imagen, Gemini image, or Google image generation. Also trigger when users ask to create sprites, thumbnails, banners, logos, product photos, concept art, or any visual asset using AI.
source
https://github.com/AtlasCloudAI/nano-banana-2-skill
homepage
https://github.com/AtlasCloudAI/nano-banana-2-skill
metadata
openclaw
requires
env
primaryEnv
ATLASCLOUD_API_KEY

Nano Banana 2 Image Generation

Generate and edit images using Google's Nano Banana 2 (Imagen) model via two provider options.

Privacy & data note: This skill sends text prompts and image data to third-party APIs (Atlas Cloud at api.atlascloud.ai or Google AI Studio at generativelanguage.googleapis.com) for image generation. For image editing via Atlas Cloud, local files are uploaded to Atlas Cloud's temporary storage to obtain a URL — the agent MUST ask the user for explicit confirmation before uploading any local file. Uploaded files are temporary and may be cleaned up periodically. No data is stored locally beyond the downloaded output files.

Required Environment Variables

VariableRequiredDescription
ATLASCLOUD_API_KEYIf using Atlas CloudAtlas Cloud API key for image generation
GEMINI_API_KEYIf using Google AI StudioGoogle AI Studio API key

At least one of the above must be set. If both are set, ask the user which provider to use.

Provider Selection

  1. If ATLASCLOUD_API_KEY is set → use Atlas Cloud
  2. If GEMINI_API_KEY is set → use Google AI Studio
  3. If both are set → ask the user which provider to use
  4. If neither is set → ask the user to configure one:

- Atlas Cloud: Sign up at https://www.atlascloud.ai, Console → API Keys → Create key, then export ATLASCLOUD_API_KEY="your-key" - Google AI Studio: Get key from https://aistudio.google.com/apikey, then export GEMINI_API_KEY="your-key"

Atlas Cloud

  • Async API with polling workflow
  • Flat-rate pricing regardless of resolution
  • Supports 300+ models through one API key

Google AI Studio

  • Direct access via Google's Gemini API
  • Synchronous response with base64 image output

Pricing Comparison

ResolutionGoogle AI StudioAtlas CloudSavings
1K (default)$0.080/image$0.072/image10% off
2K$0.080/image$0.072/image10% off
4K$0.080/image$0.072/image10% off

Atlas Cloud is 10% cheaper than Google AI Studio across all resolutions, with flat-rate pricing regardless of resolution.

Available Models

Text-to-Image Models

Model ID (Atlas Cloud)PriceDescription
google/nano-banana-2/text-to-image$0.072/imageStable, production-ready

Image Editing Models

Model ID (Atlas Cloud)PriceDescription
google/nano-banana-2/edit$0.072/imageStable image editing

Google AI Studio model: gemini-3.1-flash-image-preview (handles both generation and editing)


Mode 1: Atlas Cloud API

Setup

The user needs an Atlas Cloud API key. Guide them to:

  1. Sign up at https://www.atlascloud.ai
  2. Go to Console → API Keys → Create new key
  3. Set environment variable: export ATLASCLOUD_API_KEY="your-key"

Script Usage

This skill includes a Python script for image generation. Zero external dependencies required.

List available image models
python scripts/generate_image.py list-models
Generate an image
python scripts/generate_image.py generate \
  --model "MODEL_ID" \
  --prompt "Your prompt here" \
  --output ./output
Upload a local image (for editing)
python scripts/generate_image.py upload ./local-image.jpg
Edit an image
python scripts/generate_image.py generate \
  --model "MODEL_ID" \
  --prompt "Edit instruction" \
  --image "https://...uploaded-url..."

Run python scripts/generate_image.py generate --help for all options. Extra model params can be passed as key=value (e.g. aspect_ratio=16:9 resolution=2k).


Text-to-Image Generation

Parameters:

ParameterTypeRequiredDefaultOptions
promptstringYes-Text description of the image
aspect_ratiostringNo1:11:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
resolutionstringNo1k1k, 2k, 4k
output_formatstringNopngpng, jpeg
seedintegerNorandomFor reproducible results

Workflow — submit, poll, download:

# Step 1: Submit generation request
curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-2/text-to-image",
    "prompt": "A serene Japanese garden with cherry blossoms",
    "aspect_ratio": "16:9",
    "resolution": "2k"
  }'
# Response: { "code": 0, "data": { "id": "prediction-id" } }

# Step 2: Poll for result (repeat until status is "completed" or "succeeded")
curl -s "https://api.atlascloud.ai/api/v1/model/prediction/{prediction-id}" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY"
# Response when done: { "code": 0, "data": { "status": "completed", "outputs": ["https://...image-url..."] } }

# Step 3: Download the image
curl -o output.png "IMAGE_URL_FROM_OUTPUTS"

When implementing this workflow programmatically:

  • Poll every 2-3 seconds
  • Check for status: "completed" or "succeeded" means done
  • Check for status: "failed" means error — read the error field
  • Image URLs are in data.outputs[] array

Uploading Local Images

To use local images for editing, first upload them to get a URL. The agent MUST confirm with the user before uploading any local file (e.g., "I'll upload /path/to/image.jpg to Atlas Cloud for editing. Proceed?").

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/uploadMedia" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -F "file=@/path/to/local/image.jpg"
# Returns: { "code": 200, "data": { "download_url": "https://...url...", "filename": "image.jpg", "size": 123456 } }

Use the returned download_url as the image URL in the images array for editing requests.

Note: Uploaded files are for temporary use with Atlas Cloud generation tasks only. URLs may expire after a period of time.

Image Editing

Same workflow as text-to-image, but with additional images parameter:

ParameterTypeRequiredDefaultOptions
promptstringYes-Editing instruction
imagesarray of stringsYes-1-14 image URLs to edit
aspect_ratiostringNo-Same options as above
resolutionstringNo1k1k, 2k, 4k
curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-2/edit",
    "prompt": "Change the sky to a dramatic sunset",
    "images": ["https://example.com/photo.jpg"],
    "resolution": "2k"
  }'

Using Atlas Cloud MCP Tools (if available)

If the user has the Atlas Cloud MCP server configured, use the built-in tools directly:

# Quick generate
atlas_quick_generate(model_keyword="nano banana 2", type="Image", prompt="...")

# Or with specific model
atlas_generate_image(model="google/nano-banana-2/text-to-image", params={...})

# Check result
atlas_get_prediction(prediction_id="...")

Mode 2: Google AI Studio (Official)

Setup

  1. Get API key from https://aistudio.google.com/apikey
  2. Set environment variable: export GEMINI_API_KEY="your-key"

Text-to-Image Generation

curl -s -X POST \
  "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{
      "parts": [{"text": "A serene Japanese garden with cherry blossoms"}]
    }],
    "generationConfig": {
      "responseModalities": ["TEXT", "IMAGE"],
      "imageConfig": {
        "aspectRatio": "16:9",
        "imageSize": "2K"
      }
    }
  }'

Parameters for Google AI Studio:

ParameterLocationOptions
aspectRatiogenerationConfig.imageConfig1: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
imageSizegenerationConfig.imageConfig512px, 1K, 2K, 4K (uppercase K required)
responseModalitiesgenerationConfig["TEXT", "IMAGE"] for image output

Response handling: The response contains base64-encoded image data in candidates[0].content.parts[]. Loop through parts — text parts have .text, image parts have .inline_data.mime_type and .inline_data.data (base64).

Image Editing (Google AI Studio)

Include the source image as base64 inline_data alongside the text prompt:

curl -s -X POST \
  "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{
      "parts": [
        {"text": "Change the sky to a dramatic sunset"},
        {"inline_data": {
          "mime_type": "image/png",
          "data": "BASE64_ENCODED_IMAGE"
        }}
      ]
    }],
    "generationConfig": {
      "responseModalities": ["TEXT", "IMAGE"]
    }
  }'

Python Example (Google AI Studio)

from google import genai
from google.genai import types
import base64

client = genai.Client()

# Text-to-Image
response = client.models.generate_content(
    model="gemini-3.1-flash-image-preview",
    contents="A serene Japanese garden with cherry blossoms",
    config=types.GenerateContentConfig(
        response_modalities=['TEXT', 'IMAGE'],
        image_config=types.ImageConfig(
            aspect_ratio="16:9",
            image_size="2K"
        ),
    )
)

for part in response.parts:
    if part.text:
        print(part.text)
    elif image := part.as_image():
        image.save("output.png")

Implementation Guide

When the user asks to generate an image, follow this workflow:

  1. Determine provider: Check which API key is available (see Provider Selection above).
  1. Extract parameters from user request:

- Prompt: the image description - Aspect ratio: infer from context (banner→16:9, portrait→9:16, square→1:1, phone wallpaper→9:16, desktop wallpaper→16:9) - Resolution: default 1k unless user wants high quality (then 2k or 4k) - For editing: identify source image(s)

  1. Choose model (Atlas Cloud only):

- Use google/nano-banana-2/text-to-image for generation - Use google/nano-banana-2/edit for editing tasks

  1. Execute the API call using bash with curl
  1. For Atlas Cloud: Poll the prediction endpoint every 3 seconds until complete, then download the image
  1. For Google AI Studio: Parse the response, extract base64 image data, save to file
  1. Present the result: Show the saved file path and offer to open it

Prompt Engineering Tips

Share these with users to get better results:

  • Be specific about style: "oil painting", "photorealistic", "anime style", "watercolor"
  • Describe lighting: "golden hour", "studio lighting", "neon glow"
  • Mention composition: "close-up", "wide angle", "bird's eye view"
  • Include mood: "serene", "dramatic", "whimsical"
  • For text in images: Nano Banana 2 handles text rendering well — just include the text in quotes in your prompt

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

平台分布

OpenClaw

77.39%
按下载量换算6,113

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills