Add this skill
npx mdskills install sanjay3290/imagenEnables cross-platform AI image generation with clear triggers and usage examples
1---2name: imagen3description: |4 Generate images using Google Gemini's image generation capabilities.5 Use this skill when the user needs to create, generate, or produce images6 for any purpose including UI mockups, icons, illustrations, diagrams,7 concept art, placeholder images, or visual representations.8license: Apache-2.09metadata:10 author: sanjay329011 version: "1.0"12---1314# Imagen - AI Image Generation Skill1516## Overview1718This skill generates images using Google Gemini's image generation model (`gemini-3-pro-image-preview`). It enables seamless image creation during any Claude Code session - whether you're building frontend UIs, creating documentation, or need visual representations of concepts.1920**Cross-Platform**: Works on Windows, macOS, and Linux.2122## When to Use This Skill2324Automatically activate this skill when:25- User requests image generation (e.g., "generate an image of...", "create a picture...")26- Frontend development requires placeholder or actual images27- Documentation needs illustrations or diagrams28- Visualizing concepts, architectures, or ideas29- Creating icons, logos, or UI assets30- Any task where an AI-generated image would be helpful3132## How It Works33341. Takes a text prompt describing the desired image352. Calls Google Gemini API with image generation configuration363. Saves the generated image to a specified location (defaults to current directory)374. Returns the file path for use in your project3839## Usage4041### Python (Cross-Platform - Recommended)4243```bash44# Basic usage45python scripts/generate_image.py "A futuristic city skyline at sunset"4647# With custom output path48python scripts/generate_image.py "A minimalist app icon for a music player" "./assets/icons/music-icon.png"4950# With custom size51python scripts/generate_image.py --size 2K "High resolution landscape" "./wallpaper.png"52```5354## Requirements5556- `GEMINI_API_KEY` environment variable must be set57- Python 3.6+ (uses standard library only, no pip install needed)5859## Output6061Generated images are saved as PNG files. The script returns:62- Success: Path to the generated image63- Failure: Error message with details6465## Examples6667### Frontend Development68```69User: "I need a hero image for my landing page - something abstract and tech-focused"70-> Generates and saves image, provides path for use in HTML/CSS71```7273### Documentation74```75User: "Create a diagram showing microservices architecture"76-> Generates visual representation, ready for README or docs77```7879### UI Assets80```81User: "Generate a placeholder avatar image for the user profile component"82-> Creates image in appropriate size for component use83```84
Full transparency — inspect the skill content before installing.