Generate high-quality cover images and technical diagrams for your articles using the imagen CLI tool powered by gemini-2.5-flash-image.
This Claude Code skill provides a systematic workflow for creating two types of images for technical articles:
- Cover Images: High-impact, conceptual images that grab attention on LinkedIn/Medium
- In-Article Images: Technical diagrams and illustrations that explain specific concepts
The skill includes comprehensive prompt engineering guidance and best practices for integrating images with SEO-friendly ALT text.
The easiest way to install this skill is using the skilz universal installer:
skilz install SpillwaveSolutions_image_gen/image-genThis will automatically download and configure the skill for use with Claude Code.
Alternatively, you can manually clone the repository to your Claude Code skills directory:
git clone https://github.com/SpillwaveSolutions/image_gen.git ~/.claude/skills/image-gen- Python 3.12.9+ (managed via pyenv)
imagenCLI tool installed- Claude Code environment
# Generate a cover image
imagen generate "A stunning digital art cover image of [your concept]..." --output work/images/cover.png
# Generate a technical diagram
imagen generate "Technical diagram showing [your concept]..." --output work/images/diagram.pngIdentify:
- Main topic and key themes
- Complex concepts needing visualization
- Optimal section breaks for images
- Target audience level
Cover images should be conceptual and visually striking:
imagen generate "A stunning digital art cover image showing three glowing pathways (green, blue, gold) converging into a central AI cloud platform. Dramatic cinematic lighting, futuristic tech aesthetic. Style: conceptual, 3D render, high-detail, professional." --output work/images/article_cover.pngStyle keywords: digital art, 3D render, conceptual art, cinematic lighting
In-article images should be clear and educational:
imagen generate "Technical diagram showing three color-coded client libraries connecting to central platform with clear labels and arrows. Style: blueprint, technical diagram, clean." --output work/images/diagram.pngStyle keywords: technical diagram, blueprint, minimalist, clear labels
Add images to your markdown with descriptive ALT text:
# Article Title

## Section
Text content...
Good ALT Text (50-125 characters):
- "Architecture diagram showing Cloud Run connecting to AlloyDB via VPC Connector"
- "Comparison of manual infrastructure versus infrastructure-as-code automation"
Bad ALT Text:
- "diagram" or "image"
- "screenshot" or "image1.png"
Goal: Grab attention with metaphorical, dramatic visuals
Structure:
[Style] cover image of [Metaphor/Concept] representing [Topic], [Atmosphere/Lighting], [Composition]
Example:
A dramatic 3D render showing a database schema transforming like evolving architecture, with migration files as glowing blueprints guiding the transformation. Dark background with cinematic lighting. Style: conceptual art, digital art, high-detail, professional.
Goal: Explain concepts clearly and directly
Structure:
[Style] showing [Specific Concept], [Visual Elements], [Labels/Clarity]
Example:
A clean technical diagram showing three distinct client libraries connecting to a central platform. Use color-coded arrows and clear labels for each connection path. Style: blueprint, technical diagram, professional.
- Be Specific: Detailed descriptions produce better results (100+ words is fine)
- Define Style: Always specify artistic style explicitly
- Set Atmosphere: Use lighting and mood keywords
- Use Visual Language:
wide-angle,close-up,depth of field,connecting arrows
- Cover image only
- OR Cover + 1 key diagram
- Cover image (conceptual)
- 1-2 in-article images (technical diagrams)
- Cover image (conceptual)
- Workflow/architecture diagram
- Comparison illustration
- Example/output visualization
For an article on "Mastering Vertex AI":
# Step 1: Create output directory
mkdir -p work/images
# Step 2: Generate cover
imagen generate "A stunning digital art cover image showing three glowing pathways (green, blue, gold) converging into a central AI cloud platform representing Google Vertex AI. Dramatic cinematic lighting, futuristic tech aesthetic. Style: conceptual, 3D render, high-detail, professional." --output work/images/vertex_ai_cover.png
# Step 3: Generate technical diagram
imagen generate "Technical diagram showing three color-coded client libraries (green: Google SDK, blue: Anthropic SDK, gold: OpenAI SDK) connecting to central Vertex AI platform. Clear labels and arrows. Style: blueprint, technical diagram, clean." --output work/images/vertex_ai_diagram.png
# Step 4: Generate comparison
imagen generate "Side-by-side comparison: left shows traditional API integration with multiple adapters, right shows unified Vertex AI approach. Clean, minimalist. Style: minimalist illustration, professional." --output work/images/vertex_ai_comparison.pngThen integrate into markdown:
# Mastering Google Vertex AI: Three Client Patterns

## Introduction
Problem statement...

## Traditional vs Unified Approach
Comparison content...
| Aspect | Cover Images | In-Article Images |
|---|---|---|
| Goal | Grab attention | Explain concepts |
| Style | digital art, 3D render, conceptual art |
technical diagram, blueprint, minimalist |
| Approach | Metaphorical, abstract | Direct, educational |
| Keywords | cinematic, dramatic, futuristic |
clean, clear labels, organized |
- SKILL.md: Complete skill documentation with detailed workflow
- references/prompting_guide.md: Comprehensive prompt engineering guide with examples
- Be detailed in prompts - More description = better results
- Specify style explicitly - Never assume a default style
- Use color-coding - Helps distinguish elements in diagrams
- Request clear labels - Essential for technical diagrams
- Think metaphorically - For cover images, find visual metaphors
- Keep it simple - One concept per image for in-article illustrations
- Test and iterate - Generate multiple versions if needed
- Skilz Marketplace: https://skillzwave.ai/skill/SpillwaveSolutions__image_gen__image-gen__SKILL/
- GitHub Repository: https://github.com/SpillwaveSolutions/image_gen
This skill is part of the Claude Code ecosystem.