>
Generate images using Google's Nano Banana (Gemini) image generation API by crafting optimized prompts and running the bundled generation script.
This medium 691-word instruction set is purpose-built for testing & qa work in AI coding agents. Paste directly into your CLAUDE.md or AI agent settings.
Generate images using Google's Nano Banana (Gemini) image generation API by crafting
optimized prompts and running the bundled generation script.
The user needs:
google-genai Python package (pip install google-genai)GEMINI_API_KEY environment variable set (get one at https://aistudio.google.com/apikey)Ask targeted questions to fill gaps in the user's description. Focus on the most important
missing dimensions first — don't ask everything at once. Ask 2-3 questions max per round.
| Dimension | What to ask |
|-----------|------------|
| Subject | Who or what is the main focus? |
| Setting | Where does this take place? |
| Mood | What feeling should it evoke? |
| Style | Photorealistic, watercolor, cinematic, editorial, anime? |
| Composition | Close-up, wide shot, bird's eye? |
| Lighting | Golden hour, dramatic side-light, soft diffused, neon? |
| Purpose | Social media, website hero, print, presentation? |
| Text | Any text to render in the image? |
If the user gives a clear, detailed description, skip the questions and go straight to prompt building.
Write a natural-language prompt as if briefing a human artist. Key principles:
Run the generation script. The script path is relative to this skill's plugin directory:
python3 ~/.claude/skills/ad-creator/scripts/generate.py \
--prompt "THE CRAFTED PROMPT" \
--output "./generated-image.png"Available flags:
--prompt / -p: The image prompt (required)--output / -o: Output file path (default: output.png)--model / -m: Gemini model (default: gemini-2.5-flash-image)--ref / -r: Reference image path (can repeat up to 14 times)After generation, tell the user:
If the user wants changes, modify the prompt based on their feedback and regenerate.
Prefer targeted edits over starting from scratch.
For DTC product advertising, read ~/.claude/skills/ad-creator/references/ad-templates.md. It contains
40 proven ad templates covering social proof, comparison, UGC, editorial, and more — each with
detailed prompt structures and placeholders. When the user wants to generate ad creatives:
Product photography:
> A flat lay of artisanal coffee beans spilling from a matte black ceramic cup onto a weathered oak table, soft directional window light from the upper left, warm earth tones with deep shadows, shot from directly above, styled for a premium coffee brand's Instagram feed.
Portrait:
> A cinematic medium close-up portrait of a jazz musician mid-performance, eyes closed, sweat glistening under warm amber stage lighting, shallow depth of field with bokeh from string lights in the background, shot on what looks like 35mm film with natural grain.
Fantasy illustration:
> A lush watercolor illustration of a hidden forest library, towering bookshelves made from living trees with glowing mushrooms as reading lamps, a cozy armchair draped in moss-green velvet, shafts of golden sunlight filtering through the canopy above, whimsical and enchanting atmosphere.
Ad Creator is a free testing & qa skill for AI coding agents. >. It provides a specialized system prompt that configures your agent with testing & qa expertise.
Copy the system prompt below and paste it into your CLAUDE.md file or Claude Code's custom instructions to activate Ad Creator.
Ad Creator is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.
Yes, Ad Creator is completely free and open source. The full source is available on GitHub at https://github.com/lisovet/claude-skills/blob/main/skills/ad-creator/SKILL.md. You only need a subscription to the AI agent you use it with.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.