/image-gen:image-genfrom image-gen
Generates and edits images via Google Gemini or OpenAI, supporting multi-image composition, masked inpainting, and text-accurate generation. Useful for diagrams, illustrations, and blog visuals.
Ships in image-gen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Multi-provider image generation. Default provider is Gemini (nano-banana-pro); pass --provider openai to use gpt-image-2.
--input-image repeatedly for multi-image composition.The skill ships a pre-bundled Node script — no tsx or dependency install needed. The script's --help is the authoritative flag reference; run it rather than guessing:
node ${CLAUDE_PLUGIN_ROOT}/skills/image-gen/dist/generate_image.js --help
Generate:
node ${CLAUDE_PLUGIN_ROOT}/skills/image-gen/dist/generate_image.js \
--prompt "your description" --filename "output.png"
Edit (image-to-image):
node ${CLAUDE_PLUGIN_ROOT}/skills/image-gen/dist/generate_image.js \
--prompt "editing instructions" --filename "output.png" \
--input-image "path/to/input.png"
Read from the environment unless --api-key overrides: Gemini uses GEMINI_API_KEY or GOOGLE_API_KEY; OpenAI uses OPENAI_API_KEY. If only OPENAI_API_KEY is set, the provider defaults to OpenAI.
YYYY-MM-DD-HH-MM-SS-descriptive-name.png.2K — anything with readable labels or callouts needs its text fidelity. Save to the post's content dir (e.g. src/content/blog/post-name/) and prefer clean, minimalist styles.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-generation, image-editing, gemini, openai, inpainting, diagram-creation
npx claudepluginhub nicknisi/claude-plugins --plugin image-genOther plugins' skills for the same job