generate-image

Generate and edit images via Gemini 2.5 Flash Image from text prompts.

Updated Jan 26, 2013
One-click install
npx skills add https://github.com/boxp/dotfiles --skill generate-image-boxp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-image
Source: https://github.com/boxp/dotfiles/tree/main/.claude/skills/generate-image
Command: npx skills add https://github.com/boxp/dotfiles --skill generate-image-boxp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables rapid generation and editing of images using Gemini 2.5 Flash Image from natural language prompts or reference images, reducing manual design work.

Core Features & Use Cases

  • Generate images from text prompts with configurable model, size, and aspect ratio.
  • Edit existing images by applying styles or transformations using input images.
  • Use cases include creating banners, avatars, illustrations, and quick concept art for projects.

Quick Start

Use the generate-image skill to create an image from a prompt, for example: bb /home/boxp/.claude/skills/generate-image/generate-image.bb "夕焼けの海辺の風景" -a 16:9 -s 4K -m gemini-3-pro-image-preview -o banner.png You can also base an image on an existing file: bb /home/boxp/.claude/skills/generate-image/generate-image.bb -i ref.png "この画像をアニメ風にして"

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 from text prompts using Gemini 2.5?

To generate images from text prompts using Gemini 2.5, you provide a natural language description and configure the model, size, and aspect ratio flags to output a desired image file for banners or illustrations.

Can I edit existing images by applying new styles with Gemini 2.5?

Yes, you can edit existing images by passing an input file with a reference image and providing a text prompt to apply transformations or styles, such as converting a photo into an anime-style illustration.

Do I need a GEMINI_API_KEY to use this image generation skill?

Yes, you must provide a valid GEMINI_API_KEY in your environment to access the Gemini API, as the skill relies on this key to authenticate and process your image generation and editing requests.

What image sizes and aspect ratios can I configure for AI art generation?

You can configure image generation by setting specific size and aspect ratio parameters, such as 4K for size and 16:9 for aspect ratio, tailoring the output for creative tasks like banners or avatars.

What is the best way to create a 16:9 banner from a text prompt?

The best way to create a 16:9 banner from a text prompt is to use the generation command, specify your descriptive prompt, and apply the aspect ratio flag to format the output exactly as needed.

Are there limitations when using Gemini 2.5 Flash Image for image editing?

Limitations of using Gemini 2.5 Flash Image for image editing include relying entirely on the accuracy of the Gemini API for transformations and requiring an active API key, which may restrict usage without proper configuration.