npx skills add ...
npx skills add the-focus-ai/nano-banana-cli --skill nano-banana-imagegen
Generate and edit images using Google Gemini image models. Use this skill when the user asks to create, generate, make, or edit images with AI. Supports text-to-image, image editing, style transfer, and multi-image composition. Trigger on requests like "create an image", "generate a picture", "make me a logo", "edit this photo", "add X to this image".
npx skills add the-focus-ai/nano-banana-cli --skill nano-banana-imagegen
Generate and edit images using Google's Gemini image models via the nano-banana CLI.
GEMINI_API_KEY environment variable must be setnpx @the-focus-ai/nano-bananaBefore generating, clarify:
See prompting-guide.md for comprehensive guidance.
Key principles:
Example - Weak prompt:
Example - Strong prompt:
Default output: output/generated-<timestamp>.png
If the result isn't right:
--file to modify the generated imageEdit instructions should describe the change:
| Option | Description |
|---|---|
--file <image> | Input image for editing |
--output <path> | Custom output path |
--model <name> | Specific Gemini model |
--flash | Use gemini-2.5-flash-image (faster, simpler images) |
--prompt-file <path> | Read prompt from file |
--list-models | Show available models |
When creating multiple related images:
See the examples/ directory for full prompt examples.
gemini-2.5-flash-image)Ensure GEMINI_API_KEY is set:
Or create a .env file in your project:
"a cat""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"npx @the-focus-ai/nano-banana "your detailed prompt here"npx @the-focus-ai/nano-banana "<prompt>"npx @the-focus-ai/nano-banana "<edit instruction>" --file <input-image>"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.""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.""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.""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."export GEMINI_API_KEY="your-api-key-here"GEMINI_API_KEY=your-api-key-here