Token导航 LogoToken导航TokenDH.com
图像处理敏感数据github未标认证来源可访问clear审计未展示

nano-banana-image-generation纳米香蕉图像生成

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

4,235

周安装

206

GitHub Stars

公开资料未说明

下载量

1,356
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add the-focus-ai/nano-banana-cli --skill "nano-banana-image-generation"

简介

用于辅助图像生成和图片编辑工作流。nano-banana-image-generation 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

  • 适合让 Agent 根据文本生成图片或处理视觉素材。
  • 使用时需确认输入图片、版权来源和输出格式限制。
  • 涉及人物或品牌素材时应核对授权和合规要求。
  • 安装方式:通过 GitHub 仓库添加,支持 Codex、Claude 等宿主。

SKILL.md

Nano Banana Image Generation

Generate and edit images using Google's Gemini image models via the nano-banana CLI.

Prerequisites

  • GEMINI_API_KEY environment variable must be set
  • The CLI is installed via npx @the-focus-ai/nano-banana

Quick Reference

# Generate a new image
npx @the-focus-ai/nano-banana "a serene mountain landscape at sunset"

# Edit an existing image
npx @the-focus-ai/nano-banana "add a hot air balloon to the sky" --file photo.jpg

# Specify output path
npx @the-focus-ai/nano-banana "a minimalist logo" --output logo.png

# Use a specific model
npx @the-focus-ai/nano-banana "detailed illustration" --model gemini-2.0-flash-exp

Workflow

Step 1: Understand the Request

Before generating, clarify:

  • Subject: What should be in the image?
  • Style: Photorealistic, illustration, cartoon, abstract?
  • Mood: Bright, dark, moody, cheerful?
  • Composition: Close-up, wide shot, specific aspect ratio?
  • Use case: Hero image, icon, social media, print?

Step 2: Craft an Effective Prompt

See prompting-guide.md for comprehensive guidance.

Key principles:

  1. Be specific and descriptive
  2. Include style references
  3. Specify what you DON'T want
  4. Describe composition and framing

Example - Weak prompt:

"a cat"

Example - Strong prompt:

"A fluffy orange tabby cat curled up on a velvet armchair, soft afternoon sunlight streaming through a window, warm cozy interior, photorealistic style, shallow depth of field"

Step 3: Generate the Image

npx @the-focus-ai/nano-banana "your detailed prompt here"

Default output: output/generated-<timestamp>.png

Step 4: Iterate

If the result isn't right:

  1. Refine the prompt - Add more detail or constraints
  2. Edit the image - Use --file to modify the generated image
  3. Try a different model - Some models handle certain styles better

Commands

Text-to-Image Generation

npx @the-focus-ai/nano-banana "<prompt>"

Image Editing

npx @the-focus-ai/nano-banana "<edit instruction>" --file <input-image>

Edit instructions should describe the change:

  • "Remove the background and replace with a gradient"
  • "Add sunglasses to the person"
  • "Change the sky to sunset colors"
  • "Make it look like a watercolor painting"

Options

OptionDescription
--file <image>Input image for editing
--output <path>Custom output path
--model <name>Specific Gemini model
--flashUse gemini-2.0-flash (faster, simpler images)
--prompt-file <path>Read prompt from file
--list-modelsShow available models

Best Practices

For Better Results

  1. Start with composition: Describe the layout first, then details
  2. Use artistic references: "in the style of Studio Ghibli", "like a National Geographic photo"
  3. Specify lighting: "golden hour lighting", "dramatic chiaroscuro", "soft diffused light"
  4. Include negative guidance: Describe what to avoid in the prompt itself
  5. Consider aspect ratio: The model generates square by default; describe wide/tall if needed

For Editing

  1. Be specific about changes: "Add a blue butterfly to the top-left corner"
  2. Preserve what works: "Keep the background unchanged, only modify the foreground"
  3. Iterative refinement: Make one change at a time for better control

For Consistency

When creating multiple related images:

  1. Create a style guide in your prompt
  2. Use the same style descriptors across prompts
  3. Reference the first image when editing subsequent ones

Example Prompts

See the examples/ directory for full prompt examples.

Header/Hero Images

"Wide 16:9 header image for a technology blog. Clean minimalist design with
abstract geometric shapes in teal and orange. Bright white background,
editorial magazine aesthetic. No text, no dark colors, no gradients."

Product Photography Style

"Professional product photo of a ceramic coffee mug on a marble surface.
Soft natural lighting from the left, subtle shadow, clean white background.
Commercial photography style, 4K quality, sharp focus on the product."

Illustrations

"Whimsical children's book illustration of a fox reading a book under a
large oak tree. Soft watercolor style, warm autumn colors, gentle and
inviting mood. Simple composition with the fox as the focal point."

Icons and Logos

"Minimalist app icon for a meditation app. Simple lotus flower symbol in
a soft purple gradient. Clean geometric design, works at small sizes,
modern and calming aesthetic."

Troubleshooting

"No image in response"

  • Prompt may have triggered safety filters
  • Try rephrasing with less ambiguous terms
  • Check if the model supports image generation

Poor quality results

  • Add more specific style guidance
  • Use a more capable model (gemini-2.0-flash-exp)
  • Be more explicit about what you want

Image doesn't match description

  • Be more explicit about composition
  • Add negative constraints ("no X, no Y")
  • Try breaking complex prompts into simpler parts

Environment Setup

Ensure GEMINI_API_KEY is set:

export GEMINI_API_KEY="your-api-key-here"

Or create a .env file in your project:

GEMINI_API_KEY=your-api-key-here

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Cursor

70.45%
按下载量换算955

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills