generate-image

Generate and edit images using nano-banana-2 MCP tools with narrative prompting guidance.

1|Updated May 17, 2026
One-click install
npx skills add https://github.com/Envision-Construction/Envision-Skill-Repo --skill generate-image-envision-construction
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-image
Source: https://github.com/Envision-Construction/Envision-Skill-Repo/tree/main/plugins/generative/nano-banana-2/skills/generate-image
Command: npx skills add https://github.com/Envision-Construction/Envision-Skill-Repo --skill generate-image-envision-construction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating images through AI generation often produces poor results when prompts are written as keyword lists or lack structure. This Skill provides best-practice prompting guidance and a clear workflow for using the nano-banana-2 MCP image generation tools, so generated images match the intended composition, style, and text content. ## Core Features & Use Cases - Narrative Prompting Guidance: Enforces paragraph-style prompts that achieve roughly 94% coherence versus 61% for keyword lists, with rules for layout, text length, and style. - Generation and Iterative Editing: Covers the full workflow of generating an image, reviewing the saved file, and refining it with continue_editing calls. - Configuration and Defaults: Provides sensible defaults for resolution, aspect ratio, thinking mode, and output format, plus a first-time setup check for the GEMINI_API_KEY. - Use Case: A user asks for a side-by-side comparison diagram with labeled arrows. The Skill guides the model to write a narrative prompt, set thinking to high for the complex layout, generate the image, and refine labels through follow-up edits. ## Quick Start Ask the assistant to generate an image, for example: create a flat-style diagram showing the four stages of a construction project lifecycle with labeled arrows.

Frequently Asked Questions about generate-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images with nano-banana-2 in Claude Code?▼

Call the generate_image MCP tool with a narrative paragraph prompt describing the image type, layout, and style. The image is saved to disk, and you can refine it afterward using the continue_editing tool.

What prompting style works best for AI image generation?▼

Narrative paragraph prompts achieve roughly 94% coherence compared to about 61% for comma-separated keyword lists. Start with the image type, describe layout explicitly, keep embedded text under 25 characters, and avoid quality-booster phrases like 4k masterpiece.

Why is my nano-banana-2 image generation not working?▼

The most common cause is a missing GEMINI_API_KEY. Call get_configuration_status to verify the key is set, and if missing, add it to the MCP server's env block in Claude Code settings or .claude/settings.json.

How do I edit an image after generating it?▼

Use the continue_editing tool with a specific description of what to change. Each call builds on the previous result, so you can iterate on composition, labels, or style across multiple refinement steps.

How do I prevent generated images from filling the context window?▼

Set returnInlineImage to false when calling generate_image. The image is still saved to disk and can be viewed by the user, but the base64 data is not loaded into the conversation context.