Generate images using Google's Gemini 2.5 Flash (Nano Banana Pro) for frontend designs. Use this skill when the user needs AI-generated images for web designs, landing pages, dashboards, React components, or any frontend project. Pairs with frontend-design skill to create complete visual experiences with custom imagery. Triggers on requests for generated images, AI artwork, custom graphics, hero images, illustrations, or visual assets for web projects.
/plugin marketplace add buildatscale-tv/claude-code-plugins/plugin install buildatscale-tv-buildatscale@buildatscale-tv/claude-code-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/generate_image.pyGenerate custom images using Google's Gemini 2.5 Flash model for integration into frontend designs.
Set the GEMINI_API_KEY environment variable with your Google AI API key.
Use scripts/generate_image.py with uv. The script is located in the skill directory at skills/nano-banana-pro/scripts/generate_image.py:
uv run "${SKILL_DIR}/scripts/generate_image.py" \
--prompt "Your image description" \
--output "/path/to/output.png"
Where ${SKILL_DIR} is the directory containing this SKILL.md file.
Options:
--prompt (required): Detailed description of the image to generate--output (required): Output file path (PNG format)--aspect (optional): Aspect ratio - "square", "landscape", "portrait" (default: square)After generating images, incorporate them into frontend code:
HTML/CSS:
<img src="./generated-hero.png" alt="Description" class="hero-image" />
React:
import heroImage from './assets/generated-hero.png';
<img src={heroImage} alt="Description" className="hero-image" />
CSS Background:
.hero-section {
background-image: url('./generated-hero.png');
background-size: cover;
background-position: center;
}
Write detailed, specific prompts for best results:
Good prompt:
A minimalist geometric pattern with overlapping translucent circles in coral, teal, and gold on a deep navy background, suitable for a modern fintech landing page hero section
Avoid vague prompts:
A nice background image
When used alongside the frontend-design skill:
By default, save generated images to the project's assets directory:
./assets/ for simple HTML projects./src/assets/ or ./public/ for React/Vue projectshero-abstract-gradient.png, icon-user-avatar.pngCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.