MCPInstall

generate-image

Image generation via Gemini 3 Pro Image: aspect ratio, resolution, reference images. Use when creating artwork, product photos, or mockups with AI.

Installs
177
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/laurigates/claude-plugins --skill generate-image
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads generate-image automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Generate images using Google's Nano Banana Pro (Gemini 3 Pro Image) model.

When to Use This Skill

Use this skill when...Use imagemagick-conversion instead when...
Producing a brand-new image from a text promptConverting, resizing, or compressing an existing image
Generating cinematic, product, or portrait artworkBuilding thumbnails or batch-processing many files
Mixing up to five reference images into a new renderApplying deterministic transforms (rotate, crop, format)
Use this skill when...Use mermaid-diagrams or d2-diagrams instead when...
The output is a photographic or illustrative imageThe output is a flowchart, sequence, or architecture diagram
Quality settings (1K/2K/4K) and aspect ratio matterDiagram-as-code rendering would be more maintainable

Parameters

Parse these from $ARGUMENTS. The prompt is the quoted string (or, if unquoted, every token before the first -- flag):

  • prompt (required): Image description. If $ARGUMENTS is empty, ask the user for one and stop.
  • --aspect: Aspect ratio (1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9) - default: 16:9
  • --resolution: Image resolution (1K, 2K, 4K) - default: 2K
  • --reference: Path to reference image (repeatable, max 5)
  • --output: Custom output path

Environment Requirements

Verify API key is set:

echo "API Key: ${GOOGLE_API_KEY:+SET}${GEMINI_API_KEY:+SET}"

If not set, get one from: https://aistudio.google.com/apikey

Usage Examples

/generate-image "A beautiful mountain landscape at sunset"
/generate-image "Product photo on white background" --aspect 1:1 --resolution 4K
/generate-image "Portrait photo" --aspect 3:4
/generate-image "Cinematic scene" --aspect 21:9
/generate-image "Similar style" --reference existing_image.png

Task Workflow

  1. Parse arguments from $ARGUMENTS (see Parameters):

    • Extract the prompt
    • Read --aspect (default 16:9), --resolution (default 2K), each --reference <path> (at most 5), and --output <path> if given
  2. Build and execute the command, substituting the parsed values for the <...> slots. Add one --reference <path> per reference image and --output <path> only when given:

    uv run python .claude/scripts/nano_banana_pro.py "<prompt>" \
      --aspect <ratio> \
      --resolution <size> \
      --reference <path>
    
  3. Report results:

    • Show path to generated image
    • Note any reference images used
    • Offer next steps (regenerate, different aspect, etc.)

Output

Default output: ./generated/image_YYYYMMDD_HHMMSS.png

Custom output with --output:

/generate-image "Scene" --output custom_name.png

Reference Images

Reference images help maintain consistency:

  • Use existing images as style references
  • Keep subjects consistent across generations
  • Match artistic styles

When using references, describe the relationship:

  • "Similar style to the reference"
  • "This person in a different setting"
  • "Same product, different angle"

Maximum 5 reference images per generation.

Aspect Ratio Quick Reference

Use CaseRatio
Square/Instagram1:1
Portrait3:4, 9:16
Landscape16:9
Ultrawide21:9
Photo3:2, 4:3

Resolution Quick Reference

Use CaseResolution
Preview1K
Standard2K
High quality4K

Error Handling

  • No API key: Set GOOGLE_API_KEY or GEMINI_API_KEY
  • Generation failed: Simplify prompt or reduce references
  • Rate limited: Wait and retry

FAQ

What does the generate-image skill do?

Image generation via Gemini 3 Pro Image: aspect ratio, resolution, reference images. Use when creating artwork, product photos, or mockups with AI.

How do I install generate-image?

Run npx skills add https://github.com/laurigates/claude-plugins --skill generate-image in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/generate-image/ (personal) or .claude/skills/generate-image/ (project).

Which AI agents can use generate-image?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is generate-image safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains generate-image?

It is published by laurigates in laurigates/claude-plugins. It has 177 recorded installs.

More from laurigates/claude-plugins

View all →

python-code-quality

laurigates/claude-plugins

Python code quality with ruff and ty. Use when the user mentions ruff, ty, linting, formatting, type checking, or Python code style.

1K installs

ruff-linting

laurigates/claude-plugins

Open the skill to read its SKILL.md instructions.

465 installs

python-testing

laurigates/claude-plugins

Python testing with pytest, coverage, fixtures, and mocking. Use when the user mentions pytest, unit tests, coverage, fixtures, mocking, or writing Python tests.

Testing & QA428 installs

pytest-advanced

laurigates/claude-plugins

Advanced pytest: fixtures, markers, parametrization, parallel execution. Use when implementing test infrastructure, writing fixtures, or running with coverage.

Testing & QA352 installs

uv-workspaces

laurigates/claude-plugins

Manage multi-package Python projects with uv workspaces. Use when the user mentions uv workspaces, Python monorepo, shared lockfiles, or member dependencies.

321 installs

uv-project-management

laurigates/claude-plugins

Python project setup, deps, and lockfiles with uv. Use when the user mentions uv, creating Python projects, managing dependencies, lockfiles, or pyproject.toml.

320 installs

Popular media & creative skills

View category →

hyperframes

heygen-com/hyperframes

Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.

Media & Creative1.2M installs

media-use

heygen-com/hyperframes

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.

Media & Creative1.1M installs

hyperframes-registry

heygen-com/hyperframes

About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.

Media & Creative1M installs

hyperframes-creative

heygen-com/hyperframes

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.

Media & Creative916.5K installs

ai-video-generation

101-skills/superpowers

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Media & Creative881.5K installs

ai-image-generation

101-skills/superpowers

Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image

Media & Creative880.3K installs